0

I created a table in LyX, and then right-clicked the table, clicked: Settings -> Borders, then put "2mm" for the additional space at the top of the row.

The LaTeX code generated by LyX is the following:

\begin{tabular}{|c|c|c|c|c|c|}
\hline 
\noalign{\vskip2mm}
a & b & c & d & e & f\tabularnewline[2mm]
\hline 
\end{tabular}

This is what the PDF looks like:

enter image description here

I do not like the huge gap in the vertical lines!!

I searched all over the net to see if someone else asked the same question. Here's a similar problem but for horizontal lines: Horizontal lines don't close in table using LyX (but the answer was to change the table width in LyX, which doesn't seem to be an option for vertical lines).

This question: Lyx Table Vertical Alignment, seems to be related, but upon closer look it doesn't solve the specific problem I have.

Is there a way to solve this problem in LyX, without first making the table in TeX and then bringing it into the LyX editor?

6
  • 4 days, no up or down votes, no answers, no comments, no close votes, only 8 views! Aug 12 '19 at 3:32
  • Well, to earn badge "invisible", you should wait 26 days more :-). With this comment this opportunity is now lost ... Your approach to design of table is wrong. One of possibilities is: \documentclass{article} \usepackage{makecell} \begin{document} { \setcellgapes{5mm}% here set desired vertical space \makegapedcells \begin{tabular}{|c|c|c|c|c|c|} \hline a & b & c & d & e & f\tabularnewline \hline \end{tabular} } \end{document}. Since I'm not familiar with LyX, I don't know, how to adopt this solution to it.
    – Zarko
    Aug 12 '19 at 4:09
  • So the only difference is the "setcellpages" and "makegapedcells" ? Aug 13 '19 at 2:47
  • which are defined in the package makecell. Do you expect some more spectacular solution?
    – Zarko
    Aug 13 '19 at 3:04
  • @Zarko, I am just looking for something I can do in LyX! It does not need to be spectacular at all! Aug 13 '19 at 3:15

Your Answer

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

Browse other questions tagged or ask your own question.