I'm currently building a table and came across an issue with texlive. I was designing my tex-template on windows with MikTex and it rendered just fine. When I rendered it on Linux using TexLive, I get an ugly double line wrap. Any Idea how to get rid of that and make the TexLive output the same as the MikTex output?

See Column Foo in the example below.

MikTex output: MikTex output

TexLive output: TexLive output





& & & & & \\[-.5em]
\normalsize\textbf{Blah} & \normalsize\textbf{Blub} & \normalsize\textbf{Foo} & \normalsize\textbf{Bar} & \normalsize\textbf{Baz} & \normalsize\textbf{FooBarBaz} \\ [5pt]\midrule

Test & Test & Test-Test-Test-Test 123 & Test & Test & Test \\


  • 1
    update to a newer texlive. In texlive 2021 it works, the different output is in texlive 2019. Aug 17 at 7:25
  • Ah okay. I was just using the distro default version, looking into it.
    – CShark
    Aug 17 at 7:26

The definition of \raggedright has changed. The newer version now changes also \finalhyphendemerits, and this means that tex no longer tries to avoid that the line before the last doesn't have an hyphen. You can correct the output in your older texlive with

\newcolumntype{L}[1]{>{\raggedright\finalhyphendemerits =0 \arraybackslash}p{#1}}
  • so, not my fault Aug 17 at 7:38
  • @DavidCarlisle definitly ;-) Aug 17 at 7:51
  • Ok, this is faster than installing and maintaining a manual tex environment, when I'm only using it for automated generation of documents :D
    – CShark
    Aug 17 at 8:12

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.