Skip to content

Color: issue in right to left text with \color  #57

@seloumi

Description

@seloumi

Brief outline of the bug

In right to left text (pdflatex or xelatex ) colors of text with \color command do not appear correctly
in particular the first and last line of colored text

Here clarification of the problem
https://tex.stackexchange.com/q/438323/54817

Minimal example showing the bug

\documentclass[12pt]{article}
\usepackage{xcolor}
\usepackage{fontspec} % with xetex
\setmainfont{Amiri} % with xetex 

\TeXXeTstate=1 % allow right to left writing   

\parindent=0pt

\begin{document}

\beginR
before {\color{red} text from  right to left   text from  right to left   text from  right to left   text from  right to left   text from  right to left   text from  right to left   text from  right to left   text from  right to left   } after 

\end{document}

Log file (required) and possibly PDF file

main.log
main.pdf

Metadata

Metadata

Assignees

Labels

category graphicsenhancementlong-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