Open samcarter opened 1 year ago
Thanks for bringing this up. I am not able to replicate your image. Mine looks ok with the title broken where expected.
Re font size commands, I don't know what font styles the user will use and \whatevertheyputin{...}
seemed to be a fairly robust solution. However in general the font specs commands, like \Huge
, have been a bit flakey. Using title-fontsize
which takes a different approach to setting font size has been more robust.
My system settings and what I compiled with:
I'll try updating my quarto to the latest version and see if that changes things.
Thanks for bringing this up. I am not able to replicate your image. Mine looks ok with the title broken where expected.
The break point is fine, but as also evident in your image, the spacing between the lines is wrong. The y
and the L
nearly touch each other. That's because the \par
is at the wrong position in the code.
EEH: to do for this issue
\Huge ...
being the right syntax won't fix since I don't know what the user will pass in for fontstyle and some need \foo{} syntax. Anyhow \Huge{}
seems to work 'ok'.{{\Huge{\nohyphens{Some Very Long Title Which Spans Multiple
Lines}}}\par
}%
{{\Huge{\nohyphens{Some Very Long Title Which Spans Multiple
Lines}}\par}
}%
System settings:
Description
A simple test file like
will result in the following latex syntax for the title:
There are a couple of problems with this syntax. The most important one is that the paragraph is ended at the wrong position. If you insert
\par
only after you switched back from the custom font size, then the text will be set with a wrong baselineskip (the one from the normal font around it and not with your title font). Try the following two lines to see the difference:Another potential problem: Depending on what comes after the title, you might get an additional space from the unprotected line ending after
\par}
Not a problem as such, just unnecessary:
{...}
is unnecessary\Huge
etc are switches and don't take an argument. Instead of writing\Huge{...}
it should normally be\Huge ...