[texhax] LaTeX tabbing oddities
juanalberdi
juanalberdi at euskalnet.net
Wed Jun 30 20:03:53 CEST 2004
Hello Angela,
I suggest trying
\usepackage[T1]{fontenc}
in the preamble
Juan
Angela Thomas wrote:
> Hello, I have been referred to your group after having no luck finding
> the asnwer to my question through various LaTeX FAQs and even the
> LaTeX3 project website and FAQ archive.
>
> I am trying to print a section of XML text so that it will appear as
> an XML code snippet in the document that I am producing. To create
> the appropriate style for this code layout, I am trying to use the
> tabbing environment to properly distribute the code segments.
>
> \begin{tabbing}
> \=\hspace{0.25in} \=\hspace{0.25in} \=\hspace{0.25in}
> \=\hspace{0.25in} \kill
> \> <category>\\
> \> \> <pattern>WHAT IS A *</pattern>\\
> \> \> \> <template><srai>DEFINE <star index ="1"/></srai>\\
> \> \> \> </template>\\
> \> </category>\\
> \\
> \> <category>\\
> \> \> <pattern>DO YOU KNOW WHAT A * IS</pattern>\\
> \> \> \> <template><srai>DEFINE <star index ="1"/></srai></template>\\
> \> </category>\\
> \end{tabbing}
>
> For obvious reasons, the tabbing environment will not allow me to
> print things like "\>", however when I pdflatex my file, it converts
> all "<" tags into upside-down ! and all of my ">" into upside down
> question marks. I am not able to escape these characters to make them
> print properly, as a "\>" means move up to the next tab space.
>
> Is there a way to properly display this bit of code in a tabbing
> environment, or should I just manually format each line with spaces?
>
> Thank you so much for your help,
>
>
> -angela
>
> ==
> Angela Thomas
> Summer Research Student
>
>
> __ This communication is intended for the use of the recipient to
> whom it
> is addressed, and may contain confidential, personal, and or
> privileged
> information. Please contact us immediately if you are not the intended
> recipient of this communication, and do not copy, distribute, or take
> action relying on it. Any communications received in error, or
> subsequent reply, should be deleted or destroyed.
> ---
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> TeX newsgroup: http://groups.google.com/groups?group=comp.text.tex
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
>
More information about the texhax
mailing list