LyXDashed lines in tables (urgent)

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
montanussolis
Posts: 2
Joined: Sat Oct 03, 2009 2:15 pm

Dashed lines in tables (urgent)

Post by montanussolis »

Hi everyone,
I am a linguistics student using Lyx. The program is really helpful for writing linguistic assignments, but I am not very good at using it yet.

I really need to make vertical dashed lines in a table, but I am not able to do it. I have looked at the Lyx wiki article on tables, and they say this:
LyX doesn't natively support dashed lines, so you have to use ERT. Load the LaTeX-package arydshln in the preamble with the command

\usepackage{arydshln}

To make a vertical line dashed, enter the colon : together with the character for the horizontal alignment as LaTeX-argument in the table cell dialog.

For a horizontal dashed line add the command \hdashline in ERT as first element of the first cell in the table row.
I have loaded the package, and I manage to make horizontal dashed lines using these guidelines, but I don't understand what I am supposed to do to get the vertical dashed lines: I don't know what "the character for the horizontal alignment" is, and I don't know where to find the table cell dialog.

I have to write my assignment this coming week, so you are doing me a great service if you can help me out on this!

Thank you!

MontanusSolis

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

Dashed lines in tables (urgent)

Post by meho_r »

A character for horizontal alignment is c for center, l for left and r for right. Here's an example:

Code: Select all

\documentclass{article}
\usepackage{arydshln}

\begin{document}
\begin{tabular}{:c:c:c:}
\hdashline
test & test & test\\\hdashline
test & test & test\\\hdashline
\end{tabular}
\end{document}
In LyX, you'll have to put something like :c:c:c: for three columns as LaTeX argument. But, LyX really sucks at this since there's always one argument too much (turn on View > View Source and you'll know what I'm talking about). If you have problems with this, you may need to use a code for customizing table. This is one more limitation of LyX, unfortunately.
montanussolis
Posts: 2
Joined: Sat Oct 03, 2009 2:15 pm

Re: Dashed lines in tables (urgent)

Post by montanussolis »

Thank you! I'll try that.
Post Reply