# Tag Info

4

Yes. _ (in math mode) identifies "subscript notation"; similarly ^ identifies "superscript notation". From the TeX Book (Chapter 16: Typing Math Formulas, p 128): ... you can get superscripts (up high) and subscripts (down low) by using ^ and _, as shown in the following examples: Input -> Output $x^2$ -> x2 $x_2$ -> x2 $2^x$ -> 2x ...

0

Just to add on to what @TH mentioned, \texttt also works well inside equation/eqnarray environments and TikZ code. \verb (in its primitive form) doesn't work very well in such cases.

5

Thanks to Manuel's comment, mtpro2 apparently also defines \SQRT. Then calculator overwrites that definition since it is loaded later. Hence, when you try to use \SQRT, it is calculator's definition which is active. So, the error you get is the same as that with the following code: \documentclass{article} \usepackage{calculator} \begin{document} \$ ...

4

To get verbatim content inside the align* environments, my verbatimbox package can help. \documentclass{article} \usepackage{amsmath,verbatimbox} \begin{document} \begin{myverbbox}{\lineA}\int \sin x\,dx\end{myverbbox} \begin{myverbbox}{\lineB}\int{\sin x}\,dx\end{myverbbox} \begin{align*} \int \sin x\,dx && \lineA\\ \int{\sin x}\,dx && ...

2

You can't use \verb inside align*, just like in the argument to any other command; align is a special environment that reads its contents before starting typesetting and this has the consequence that \verb is not allowed. If you want to make examples of input and output, you can use array: \documentclass{article} \usepackage{array,booktabs} ...

Top 50 recent answers are included