{"action":"opened","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/3436","repository_url":"https://api.github.com/repos/jgm/pandoc","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/3436/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/3436/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/3436/events","html_url":"https://github.com/jgm/pandoc/issues/3436","id":206996473,"number":3436,"title":"\\struts in LaTeX add too much vertical space above lists inside tables","user":{"login":"andrewheiss","id":73663,"avatar_url":"https://avatars.githubusercontent.com/u/73663?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewheiss","html_url":"https://github.com/andrewheiss","followers_url":"https://api.github.com/users/andrewheiss/followers","following_url":"https://api.github.com/users/andrewheiss/following{/other_user}","gists_url":"https://api.github.com/users/andrewheiss/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewheiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewheiss/subscriptions","organizations_url":"https://api.github.com/users/andrewheiss/orgs","repos_url":"https://api.github.com/users/andrewheiss/repos","events_url":"https://api.github.com/users/andrewheiss/events{/privacy}","received_events_url":"https://api.github.com/users/andrewheiss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-11T17:55:12Z","updated_at":"2017-02-11T17:55:12Z","closed_at":null,"body":"When including lists inside grid tables, like so…\r\n\r\n```\r\n: Sample grid table.\r\n\r\n+---------------+---------------+--------------------+\r\n| Fruit         | Price         | Advantages         |\r\n+===============+===============+====================+\r\n| Bananas       | $1.34         | - built-in wrapper |\r\n|               |               | - bright color     |\r\n+---------------+---------------+--------------------+\r\n| Oranges       | $2.10         | - cures scurvy     |\r\n|               |               | - tasty            |\r\n+---------------+---------------+--------------------+\r\n```\r\n\r\n… there is too much vertical space above the list:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/73663/22855871/476d0248-f055-11e6-89bb-f3905fdeab92.png)\r\n\r\nThis appears to be a result of using a bunch of `\\strut`s in the resulting TeX file:\r\n\r\n```\r\n\\begin{minipage}[t]{0.32\\columnwidth}\\raggedright\\strut\r\n\\begin{itemize}\r\n\\tightlist\r\n\\item\r\n  built-in wrapper\r\n\\item\r\n  bright color\r\n\\end{itemize}\\strut\r\n\\end{minipage}\\tabularnewline\r\n```\r\n\r\n[I've tried adding different commands to the preamble to remove the vertical space,](https://tex.stackexchange.com/questions/353263/how-to-remove-vertical-space-above-itemize-only-inside-longtable-minipage) but it appears that the `\\strut`s prevent this from happening.\r\n\r\nIf I remove `\\strut`s that precede `\\begin{itemize}` either manually or with `perl -0777 -pe 's/\\\\strut\\n\\\\begin{itemize}/\\n\\\\begin{itemize}/gm;' blah.tex`, the vertical space disappears:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/73663/22856113/378adfb8-f059-11e6-8cb8-1ddd914c9c07.png)\r\n\r\nRemoving the struts seems to go against earlier pull requests like https://github.com/jgm/pandoc/pull/1573 and https://github.com/jgm/pandoc/pull/2913 and feels wrong (and also depends on the user having Perl or manually adjusting the TeX file before compiling). \r\n\r\nIs there a recommended way to remove vertical space above lists inside grid tables in LaTeX?\r\n\r\n(This is all using pandoc 1.19.2.1 with the default TeX template)"}}
{"actor":{"display_login":"andrewheiss"}}