9,258 reputation
44272
bio website iki.fi/suo
location Finland
age
visits member for 4 years, 3 months
seen 1 hour ago

2d
awarded  Famous Question
Oct
28
awarded  Good Answer
Oct
23
comment How to cite chapter in book?
@D.W.: 27 upvotes and only 1 downvote, so it is not just my personal opinion. :)
Oct
6
awarded  Notable Question
Sep
30
awarded  Explainer
Sep
24
comment Text in math mode: inherit bold but not italics
Is there a painless way to make \mathsf{foo} look like \textsf{foo} if I am using \usepackage[charter]{mathdesign}\renewcommand{\sfdefault}{phv}, i.e., Charter as serif font and Helvetica as sans-serif font?
Sep
24
accepted Text in math mode: inherit bold but not italics
Sep
24
comment Text in math mode: inherit bold but not italics
I like this alternative, even if it does not do exactly what I wanted. :)
Sep
24
comment Text in math mode: inherit bold but not italics
Why not just use \text instead of \mbox; then it would also scale correctly?
Sep
24
comment Text in math mode: inherit bold but not italics
It seems that this version gives a missing font warning (just like my original MWE). I guess it would be better to first use \upshape and only after that \sffamily to avoid the warning, e.g., \text{\upshape\sffamily foo}?
Sep
24
revised Text in math mode: inherit bold but not italics
Better example.
Sep
24
asked Text in math mode: inherit bold but not italics
Sep
21
comment titletoc: section titles ragged right
(Also, you can try to add \section{Lorem ipsum} before \section{\foo{}} in your example. Then you will see that the spacing between "Lorem" and "ipsum" in 1.1 is different from the spacing in 1.2 right below it.)
Sep
21
comment titletoc: section titles ragged right
(To better see what I mean, set e.g. \overfullrule=1mm and pay attention to the lines that are not marked with the overfull marker.)
Sep
21
comment titletoc: section titles ragged right
If I am not mistaken, the new version with \hyphenpenalty is still trying to make everything fully justified; you just get lots of overfull hboxes, so it "looks ragged". However, if you happen to have short enough words in the section titles, you will see that Latex is still stretching inter-word spacing to make the text as much fully justified as possible.
Sep
21
comment titletoc: section titles ragged right
Yes, the horizontal alignment looks wrong; the indentation of sections and subsections is missing, things stick out from left/right page margins, etc.
Sep
21
revised titletoc: section titles ragged right
Example
Sep
21
comment titletoc: section titles ragged right
The first version is not ragged right; it is fully justified. The second version is ragged right, but it looks very different from the original layout.
Sep
20
revised titletoc: section titles ragged right
MWE
Sep
20
asked titletoc: section titles ragged right