LyXAdjust space between bullets in table

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
dennis
Posts: 7
Joined: Fri Oct 02, 2009 6:44 pm

Adjust space between bullets in table

Post by dennis »

Hi everyone,

I am using Lyx 1.6.4.2 for Mac.
I have constructed a table with three columns, one of which includes dates. I would like entries in the other two columns to match the dates in terms of spacing and position, but one of the columns includes bullet points, which by default have different positions. Is there a relatively simple way to adjust these? I attach a screenshot to illustrate the problem.

Thanks, Dennis
Attachments
Screen shot 2010-09-24 at 11.13.40.png
Screen shot 2010-09-24 at 11.13.40.png (50.22 KiB) Viewed 6841 times
Last edited by dennis on Thu Sep 30, 2010 9:27 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Re: Adjust space between bullets in table

Post by meho_r »

It will be useful if you posted your example .lyx file too.
dennis
Posts: 7
Joined: Fri Oct 02, 2009 6:44 pm

Re: Adjust space between bullets in table

Post by dennis »

There you go...
( I had to create a .zip-file, the forum doesn't allow .lyx-files)
Attachments
example.lyx.zip
(2.44 KiB) Downloaded 314 times
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Adjust space between bullets in table

Post by meho_r »

You may use enumitem package to remove vertical spacing between items. Put in the preamble:

Code: Select all

\usepackage{enumitem}
\setitemize{nolistsep}
Then, you may use minipage (Insert > Box) and put lists inside them (don't forget to set width of minipages).

Note: If you don't want \setitemize command to affect all lists in your document, you may define a command for easy switching before table (or, to apply it only to a table), e.g., instead of \setitemize{nolistsep} command from above, type:

Code: Select all

\newcommand{\mylist}{\setitemize{nolistsep}}
Now, just before a table press Ctrl+L and type:

Code: Select all

{\mylist
And after the table, press again Ctrl+L and type:

Code: Select all

}
Attachments
example.lyx.zip
(2.51 KiB) Downloaded 279 times
johnjamessmith0
Posts: 37
Joined: Sun Mar 29, 2009 1:41 am

Re: Adjust space between bullets in table

Post by johnjamessmith0 »

If you want the entries to line up horizontally with the dates, then wouldn't the most logical solution be to split up your table into more rows, with one row each date range? You can get rid of the extra horizontal lines that you don't want. You'll have to start a new itemize environment in each cell, though.
dennis
Posts: 7
Joined: Fri Oct 02, 2009 6:44 pm

Re: Adjust space between bullets in table

Post by dennis »

Thanks meho_r, that works perfectly, just what I wanted!

John, I thought about this option, but it doesn't really work since already the first line is slightly below the others when using bullets. See the line starting with "1963" in my example. The corresponding bullet "preferential access" is not in line. Thanks anyway for taking the time...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Adjust space between bullets in table

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic accordingly as clearly written in Section 3 of the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary anymore.


Best regards
Thorsten
Post Reply