<div dir="ltr">I have been playing a bit with \special lately for fixing the issue of color in bidi.<br><br>If I make something like<br><br>\makeatletter<br>\def\set@color@stack{%<br>  \beginL\special{color push \current@color}\beginR%<br>
\aftergroup\reset@color<br>}<br><br>\def\reset@color@stack{%<br> \endR \special{color pop}\endL%<br>  \expandafter\checkfor@moreresets<br>}<br><br>\makeatother<br><br>So the idea is that I make ouside the \special s LTR, but making inside RTL, this works fine when using \color and \textcolor commands, but if I say \colorbox{yellow}{This is a test} then I get just a yellow box without the `This is just a test&#39;. I have tried very hard but could not find a way to fix it. Does anyone know how could I possible fix this?<br>
<br>-- <br>Vafa<br>
</div>