Consider the following MWE:
\documentclass[oneside,leqno,fleqn]{book}
\usepackage{marginnote}
\usepackage{geometry}
\geometry{%
left=70mm,
textwidth=130mm,
marginparsep=8.2mm,
marginparwidth=50mm,
showframe
}
\usepackage{polyglossia}
\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\defaultfontfeatures{Scale = MatchUppercase , Ligatures =TeX}
\newfontfamily\englishfont{Latin Modern Roman}[Script=Latin,Language=English]
\newfontfamily\hebrewfont{David CLM}[Script=Hebrew]
\begin{document}
לורם איפסום דולור סיט אמט.
\marginnote{זו הערה שצריכה להופיע בשולי הדף}
\end{document}
Why is the marginnote
text not typed in the margin paragraph area? How to fix it?
Best Answer
I think that the source of that deviation is from the fact that
bidi
changes the value of\oddsidemargin
. Note that by defaultmarginnote
should be touching the right border of themarginpar
part. Here is a quick patch that should solve your particular caseWith
lualatex
you wont get this deviation