Once again: It is not absolutely not clear, what you want. As already told: If you want to show the result of, e.g.,
\times
using
\textrm
would not make sense, because
\textrm
does not influence math mode and
\times
requires math mode. But if you want to show the code, you need
\verb
, e.g.
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{tabular}{|c|c|}
\hline
Symbol & Code \\
\hline
$+$ & + \\
$-$ & - \\
$*$ & * \\
$\cdot$ & \verb|\cdot| \\
$\times$ & \verb|\times| \\
$/$ & / \\
$\div$ & \verb|\div| \\
\hline
\end{tabular}
\end{document}
or maybe
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\begin{array}{|c|c|}
\hline
\text{Symbol} & \text{Code} \\
\hline
+ & + \\
- & - \\
* & * \\
\cdot & \verb|\cdot| \\
\times & \verb|\times| \\
/ & / \\
\div & \verb|\div| \\
\hline
\end{array}$
\end{document}
See a LaTeX introduction for more information about text mode vs. math mode,
\textrm
vs.
\mathrm
, and about verbatim material.
And please always explain exactly the expected printing. Always ask yourself: What does someone need to solve my problem, if he or she cannot see into my brain?