command textbackslash invalid in math mode
Code: Select all
{\fontsize{10pt}{12.0pt}\selectfont $\textbackslash$ def$\textbackslash$ cp$ \{ $ $\textbackslash$ textit$ \{ $ cp.$ \} $ $ \} $ \ \par}\par
Code: Select all
{\fontsize{10pt}{12.0pt}\selectfont $\textbackslash$ def$\textbackslash$ cp$ \{ $ $\textbackslash$ textit$ \{ $ cp.$ \} $ $ \} $ \ \par}\par
NEW: TikZ book now 40% off at Amazon.com for a short time.
\textbackslash
?Code: Select all
\documentclass{article}
\begin{document}
{\fontsize{10pt}{12.0pt}\selectfont \textbackslash def\textbackslash cp \{ \textbackslash textit \{ cp. \} \} \ \par}\par
\end{document}
Code: Select all
\documentclass{article}
\newcommand*{\cp}{\textit{cp.}}
\begin{document}
\cp
\end{document}
Code: Select all
\documentclass{article}
\begin{document}
\verb|\def\cp{\textit{cp.}}|
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.