0

Notice here the marginpar has align on the left,

\documentclass{amsart} \usepackage{lipsum} \begin{document} \lipsum[1]\marginpar{One Two Three} \section{One}\marginpar{\raggedleft\text{One Two Three Four Five}} \lipsum[1]\marginpar{\raggedleft\text{One Two Three Four Five}} \section{Two} \lipsum[1]\marginpar{One Two} \end{document} 

enter image description here

How to align on the right? Like the following enter image description here

If I add \usepackage[top=1cm,bottom=1cm,left=0.5cm,right=.5cm]{geometry} in the above code, it becomes enter image description here Some part of the marginnote disappear, how to fix it? enter image description here

1 Answer 1

1

Do not use \text, it makes only sense inside math. And also package ragged2e, it allows hyphenation:

\documentclass{amsart} \usepackage{lipsum} \usepackage{ragged2e} \begin{document} \lipsum[1]\marginpar{One Two Three} \section{One}\marginpar{\RaggedLeft One Two Three Four Five} \lipsum[1]\marginpar{\RaggedLeft One Two Three Four Five} \section{Two} \lipsum[1]\marginpar{One Two} \end{document} 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.