I am using sinple margin labels in my German text with the marginlabel command which I created as:
\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???
Text Formatting ⇒ Hyphenation in marginpar
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Hyphenation in marginpar
Hyphenation in narrow columns is always tricky. Since you are writing in German, you should generally enable Cork Encoding for better hyphenation (if not done yet).
The marginnote package improves typesetting of marginals notes. In your case further enhancements might come by using the ragged2e package.
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
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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10