[XeTeX] Color in RTL mode
Vafa Khalighi
vafa at users.berlios.de
Fri Nov 6 14:10:59 CET 2009
after playing with colors for a while, I came with a trick done in math mode
that allows color spanning multiple lines in RTL mode. so an example is:
\documentclass{article}
\usepackage{color}
\usepackage[RTLdocument]{bidi}
\begin{document}
${\color{red}\hbox{\vbox{This is a test This is a test This is a test This
is a test This is a test This is a test This is a test This is a test This
is a test This is a test This is a test This is a test test This is a test
}}}$
This is a test
\end{document}
With this, the color in RTL mode behaves correctly spanning multiple lines.
I think it seems a good idea to improve this. ofcourse with this tricks, I
do not think we could avoid
Overfull \hbox (15.0pt too wide) in paragraph at lines 5--6
[][]$[][]$ []
But that is not much important. TeX can complain as much as it likes; I do
not care since color issue is fixed.
Any ideas?
--
Vafa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20091107/c82c88c7/attachment.html>
More information about the XeTeX
mailing list