[XeTeX] escaping the pipe

R (Chandra) Chandrasekhar chyavana at gmail.com
Wed Mar 3 13:06:19 CET 2010

maxwell wrote:

> I want to output something like
>    a {b|c} d
> from XeLaTeX.  I've managed to get part way there by escaping the curly
> braces in the input, but I can't figure out how to escape the pipe
> character.  

\setmainfont{DejaVu Sans}

% Assuming textmode in XeLaTeX
% a{b|c}d with and without spaces

a \{ b \textbar\ c \} d

\texttt{a \{ b \textbar\ c \} d}

a\{b\textbar c\}d

\texttt{a\{b\textbar c\}d}

% If in mathode, use instead



and see if it fits the bill.


More information about the XeTeX mailing list