I have a hack for fitting as much text as possible in a 2-line parbox using \textls (microtype package). Here is the code:









\def\mytext{CA«S»TILLA 2000, vert foncé et or (millésime 1995)}

\advance \foo -5
\ifdim \mytextheight>10pt





For some reason the space before the closing guillemet is different from the one after the opening guillemet, which looks ugly. How may I correct this? Thanks for any idea. enter image description here

  • don't put % after literal integers. Commented Nov 20, 2020 at 17:49
  • I get ! Package csquotes Error: Invalid argument. from your example file Commented Nov 20, 2020 at 17:52
  • compiles just fine here Commented Nov 20, 2020 at 17:52
  • removed all % Commented Nov 20, 2020 at 17:53
  • I see what it is you have used \usepackage[latin1]{inputenc} specifying the file is in the legacy 8bit encoding but as posted to this site it (like every post here) is in UTF-8 so you need to remove the inputenc line Commented Nov 20, 2020 at 17:54

1 Answer 1


One solution is as follows:



It replaces aeguill and the hboxes avoid the weird-looking space before the closing guillemet. enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .