Is there a way to disable LaTeX's transformation of all double quotes e.g. ''
``
<< >>
into formatted double quotes when using the verbatim
package in conjunction with fontenc
and redefining \verbatim@font
such as:
\documentclass[a4paper,11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{verbatim}
\makeatletter
\renewcommand{\verbatim@font}{\fontsize{10pt}{12pt}\selectfont\ttfamily}%
\makeatother
\newenvironment{code}
{\topsep=0pt\partopsep=0pt\endgraf\verbatim}
{\endverbatim}
\begin{document}
\begin{code}
0x3333 << 1
\end{code}
\end{document}
The above turns <<
into a formatted french quote. If I don't use the fontenc
package, or if I don't redefine \verbatim@font
then it displays ok. For my document, I want to redefine the font (mainly to have better granularity than \small
, \tiny
etc) and I use the fontenc
package because other parts of the document otherwise display wrong fonts.
Can I disable double quotes inside \verbatim
or globally?
I could also ditch the verbatim
package, but I want to define a command around verbatim text, and you can't do that by default.
It all works apart from those pesky quotes ... any help will be appreciated
Thanks in advance.
<