Text Formatting ⇒ Hyphenation in marginpar
Hyphenation in marginpar
\newcommand{\marginlabel}[1]
{\mbox{}\marginpar[\footnotesize\raggedleft\hspace{0pt}#1]
{\footnotesize\raggedright\hspace{0pt}#1}}
I usually write these margin labels in footnotesize. Strangely enough the text in the margin labels is not hyphenated.
Why???
What can I do about it???
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Hyphenation in marginpar
Code: Select all
\usepackage{T1]{fontenc}
Please use the code environment to tag code as such (see Board Rules). This keeps posts clear and legible.
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10