1

I want to have double lines in the top row in my tables in lyx. I searched through the site but could not find how to do this.

  • There are several possible solutions. Could we have a minimal code? – Bernard Nov 13 '14 at 20:42
  • I do not think LyX support for tables is intuitive in many cases. And I say this as one of the authors of the tabular code in LyX. I would like to redesign the code someday. I would appreciate it if you made a feature request for double lines in LyX at lyx.org/trac – scottkosty Nov 13 '14 at 23:29
3

Due to the nature of the setup in LyX, you could insert a ERT with \hline in the first cell of the table:

enter image description here

Nothing should be placed before it, but you can put content after it. The output is fairly horrible though:

enter image description here

It is advisable to use the "Formal" table border setting instead (Edit > Table Settings... > Borders > Style > Formal), since it uses booktabs in the presentation. This package uses \toprule and \bottomrule to emphasize the top/bottom of the table, setting it with a thicker rule.

|improve this answer|||||
0

To get a double border for both top and bottom, we can use the "Formal" table border setting as mentioned by Werner, then add the following in the preamble to convert the top and bottom borders to double \hline:

\renewcommand\toprule{\hline\hline}
\renewcommand\bottomrule{\hline\hline}
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.