-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\struts in LaTeX add too much vertical space above lists inside tables #3436
Comments
We need to carefully reconstruct why the @jlduran perhaps you can shed some light on this issue? |
I have—the discussions all deal with cell alignment and width resizing, which is fine. I think this extra-spacing-above-the-lists issue is an unintended side effect of using them, since none of the discussions mention the alignment of lists inside table cells. Ideally it'd be nice to eliminate the spacing with some sort of adjustment or addition to the preamble rather than restructuring all the |
Agreed. I'll take a look at it. |
@jlduran any progress on this? |
Not really. The solution that comes to mind is to check for lists and remove the struts, otherwise leave as is. But that adds too much complexity and may even be another corner cases. The other option, remove the struts entirely, is simpler and perhaps less noticeable. |
When including lists inside grid tables, like so…
… there is too much vertical space above the list:
This appears to be a result of using a bunch of
\strut
s in the resulting TeX file:I've tried adding different commands to the preamble to remove the vertical space, but it appears that the
\strut
s prevent this from happening.If I remove
\strut
s that precede\begin{itemize}
either manually or withperl -0777 -pe 's/\\strut\n\\begin{itemize}/\n\\begin{itemize}/gm;' blah.tex
, the vertical space disappears:Removing the struts seems to go against earlier pull requests like #1573 and #2913 and feels wrong (and also depends on the user having Perl or manually adjusting the TeX file before compiling).
Is there a recommended way to remove vertical space above lists inside grid tables in LaTeX?
(This is all using pandoc 1.19.2.1 with the default TeX template)
The text was updated successfully, but these errors were encountered: