On Sat, Nov 16, 2002 at 11:44:18AM -0600, Peter Clark wrote:
>       Thanks for the tips on making text vertical--now one more question: Is there 
> any way to make the text in reverse, i.e. from right-to-left? Preferably, 
> without having to install Hebrew or Arabic support. In this case, the letters 
> don't need to be completely reverse; .enif si siht ekil tsuj

Here is a tex solution:

\def\reverse#1{\Reverse#1\end}
\def\Reverse#1#2\end{\def\tmp{#2}\ifx\tmp\empty\else\Reverse#2\end\fi#1}
\reverse{some\ text}

(note the use of '\ ' instead of normal space. Protected space can also
be used)
or

\def\beginr{\catcode\ =\active\Beginr}
\def\Beginr#1#2\endr{\def\tmp{#2}\ifx\tmp\empty\catcode\ =10\else%
\Beginr#2\endr\fi#1}

\beginr some text\endr

Reply via email to