Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am typing letters in Latex and I would like to just allow characters such as & and ' to be treated as regular characters and not latex related commands. Is there a simple way to this? Thanks

share|improve this question
1  
You could use a verbatim environment or insert them in a listings environment, or change the activeness of those characters. –  Christian Hupfer May 15 at 10:29
    
How do I use the verbatim package? –  linuxfreebird May 15 at 10:32
2  
\begin{verbatim} your text with & and ' characters \end{verbatim} -- but it does not look very nice. You don't need an extra package. –  Christian Hupfer May 15 at 10:33
    
Your right, vertbatim does not look very nice. How does listing work? –  linuxfreebird May 15 at 10:36
    
The question is, whether you want just put some (code) examples of & and ' characters in running text or layout them nicely... or just use David's answer below ;-) –  Christian Hupfer May 15 at 10:38
show 3 more comments

1 Answer 1

' 

is treated as a regular character.

For

&

if you don't need any tables or math alignments just put

\catcode`\&=12

after \begin{document}

You should probably use

\usepackage[T1]{fontenc}

as well, as the default OT1 encoding is a little eccentric

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.