General ⇒ < and > become inverted ! and ? also in Verbatim - help!
-
- Posts: 2
- Joined: Tue Aug 05, 2008 9:18 pm
< and > become inverted ! and ? also in Verbatim - help!
fine but if i have to show some C code in TeX and i place the code within the Verbatim - this problem still occurs making the code very hard to read.
please - what is the solution to this??
Thanks.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
< and > become inverted ! and ? also in Verbatim - help!
welcome to the board!
it should work with inline math: $<$ text $>$
With
Code: Select all
\usepackage[T1]{fontenc}
Inside the verbatim environment < and > should behave as expected. Btw. consider to use the listings package for typesetting source code.
Stefan
-
- Posts: 2
- Joined: Tue Aug 05, 2008 9:18 pm
Re: < and > become inverted ! and ? also in Verbatim - help!
Thank you Stefan - it works great now.
Raffaello.