-
Notifications
You must be signed in to change notification settings - Fork 5
Wrong margin side with rtl page direction in lualatex #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For compatibility with existing code, maybe adding new options, |
my knowledge about bidi and directions is rather scarce, but imho geometry can't do anything here. It basically only sets Which lead to the question why are you changing |
Just a bad example. What I'm looking for is a concise syntax that will work in all engines and with all values of \documentclass{article}
\usepackage[right=10cm]{geometry}
\begin{document}
Hello
\end{document} would simply work, but the following will work only in XeLaTeX and pdfLaTeX , while with LuaLaTeX \documentclass{article}
\usepackage[right=10cm]{geometry}
\usepackage[hebrew,provide=*,bidi=default]{babel}
\begin{document}
Hello
\end{document} So, to determine what options should I use, I'll need to test for the engine, and the main language being used, Maybe the geometry package can determine the value of BTW, I don't think this is not really relevant, but maybe will spark different ideas. LuaTeX does provide four new registers like |
Well yes, because babel changes pagedirection. So we are back to the question why this is done.
That wouldn't work for documents not using geometry but setting If the |
I made a few tests in plain. And what I gather is the following (I'm not sure if the ascii art really comes through ...) By default TeX places the top and left of the page box at the 1in/1in point. So it spills to the right and bottom:
If you set pagedirection to 1, the page box is placed at the \pagerightoffset point which is normally 1in from the right of the page.
It then normally would go out of the page as given by the mediabox. If you use If you set
Additionally the If you set both to 1, then the page is set on the right reference point and spills to left and so is correctly placed on the page:
but again As you want "left margin" to mean "left margin" imho the correct way to handle this not to set these directions at all. It looks wrong to change all reference points and then to add lots of complicated calculations to get the old behaviour back (and I ignored the additional problem of differences between the TeX page dimensions and the PDF page dimensions/mediabox anyway). Searching a bit around I found that the main reason that |
Uh oh!
There was an error while loading. Please reload this page.
I don't think this dependency is correct, left should mean left, with no regard to other parameters.
The text was updated successfully, but these errors were encountered: