[XeTeX] xltxtra: support for \verb*/verbatim*

Will Robertson wspr81 at gmail.com
Tue Jul 29 13:23:42 CEST 2008


Hi all,

I've uploaded a new version of xltxtra to the SVN repository:
   <http://scripts.sil.org/svn-public/xetex/TRUNK/texmf/tex/xelatex/xltxtra/ 
 >
with documentation here:
   <http://scripts.sil.org/svn-public/xetex/TRUNK/texmf/doc/xelatex/xltxtra/ 
 >

I've a test file below that should show the range of supported  
packages (verbatim, moreverb, fancyvrb, listings). Thanks again,  
Apostolos, for getting the ball rolling on this.

If you see any problems, please let me know! I'll send the update to  
CTAN in the next couple of days.

Good luck,
Will

P.S.  Oops! I just noticed I misspelt "Syropoulos", which I'll fix in  
the SVN repository at the same time I submit to CTAN.

***


\documentclass[twocolumn,12pt]{article}
\usepackage{xltxtra}
\usepackage{moreverb}
\usepackage{shortvrb}
\usepackage{fancyvrb}
\usepackage{listings}
\begin{document}

textvisiblespace: \textvisiblespace\par
fallback: \csname xxt at visiblespace@fallback\endcsname\par
maybespace: \csname xxt at visiblespace\endcsname

\section{Plain verb}
nostar: \verb|a b c|\qquad
star: \verb*|a b c|

\section{Plain verbatim}
nostar:
\begin{verbatim}
a b c
\end{verbatim}
\noindent star:
\begin{verbatim*}
a b c
\end{verbatim*}

\ifdefined\MakeShortVerb
\section{shortvrb}
\MakeShortVerb*{|}
(just checking)\par
|a b c|
\DeleteShortVerb{|}
\fi

\ifdefined\listing
\section{moreverb}
nostar:
\begin{listing}{2}
a b c
a b c
\end{listing}
star:
\begin{listing*}{1}
a b c
a b c
\end{listing*}
star:
\begin{listingcont*}
a b c
a b c
\end{listingcont*}
\fi

\ifdefined\Verbatim
\section{fancyvrb}
nostar:
\begin{Verbatim}
a b c
\end{Verbatim}
\noindent showspaces:
\begin{Verbatim}[showspaces]
a b c
\end{Verbatim}
\noindent star:
\begin{Verbatim*}
a b c
\end{Verbatim*}
\fi

\ifdefined\lstlisting
\section{listings}
nostar:
\begin{lstlisting}
a b c
\end{lstlisting}
\noindent showspaces:
\begin{lstlisting}[showspaces]
a b c
\end{lstlisting}
\fi

\end{document}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2415 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20080729/af65d6e5/attachment.bin 


More information about the XeTeX mailing list