I'm trying to create a subsection named with the < symbol in it, e.g.,
State<T>
but
\subsection{\verb+State<T>+}
gives me the above error. I also tried 'verbatim' with similar results.
Please help...
-rich
>
>I'm trying to create a subsection named with the < symbol in it, e.g.,
>
> State<T>
>
>but
>
> \subsection{\verb+State<T>+}
>
>gives me the above error. I also tried 'verbatim' with similar results.
>
It seems that <T> in your text is a math notation. Then the proper way
is \subsection{State $<T>$}, or, even better, \subsection{State
$\left\langle T \right\rangle$}. In the other hand, you might mean
just typewriter <T>. Then use \subsection{State \texttt{<T>}}
Good luck
-Boris
<a href="http://planck.psu.edu/~boris">Home page</a>
If you looked up \verb in the LaTeX book (or any other documentation)
you would find that it may not be used in command arguments, hence the error
you quoted above.
If you were using any font encoding other than OT1 you could just type <
and get a <, so I would add
\usepackage{T1}
to your preamble if you want to get a <.
However you do not want a < which is a less than sign, you want
an angle bracket, ie
\subsection{$\langle\mathrm{T}\rangle+$}
David
You can use
\subsection{\tt State$<$T$>$}
or
\subsection{\tt State$\langle$T$\rangle$}
RDT
\subsection{\tt State<T>}
which uses the correct font for < and >.
Bob T.
> In article <334273...@graphics.cornell.edu>,
> >I'm trying to create a subsection named with the < symbol in it, e.g.,
> >
> > State<T>
> Better than my previous suggestions is
> \subsection{\tt State<T>}
> which uses the correct font for < and >.
Please note that \usepackage[T1]{fontenc} allows State<T> directly.
If you use:
\section{State\textless T\textgreater}
you get the correct result whatever encoding you use (OT1 or T1).
---Alain.