Skip to content

rotation in right to left contexts #241

@davidcarlisle

Description

@davidcarlisle

Brief outline of the bug

this is essentially a copy of

latex3/babel#42

but restricted to the core rotation issues.

\documentclass{article}


\usepackage{graphics}

\begin{document}


x\fbox{\rotatebox{90}{abc}}

\ifx\textdir\undefined\else
\textdir TRT 
\fi

\ifx\beginR\undefined\else
\TeXXeTstate=1
\leavevmode\beginR
\fi
x\fbox{\rotatebox{90}{abc}}y

\end{document}

In luatex you get

image

in xetex you get

image

and in pdftex you get

pdfTeX warning: pdflatex: \pdfrestore: missing \pdfsave

!pdfTeX error: pdflatex: 1 unmatched \pdfsave after page shipout
 ==> Fatal error occurred, no output PDF file produced!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcategory graphicslong-termissues/enhancements that will not be resolved any time soon; could/should be considered eventually

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions