latex3 / latex2e

The LaTeX2e kernel
https://www.latex-project.org/
LaTeX Project Public License v1.3c
1.95k stars 267 forks source link

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

Open seloumi opened 6 years ago

seloumi commented 6 years ago

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

ghost commented 5 years ago

Please see https://github.com/bidi-tex/xepersian/issues/3 where the issue is explained in details.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity.