x^3
button.But the calculator has a "x" button, a "^" button and a "3" button, which I want to be printed exactly as "x^3".
On the other hand, there is an "
x^2
" button, so I do want that text to be interpreted as math. You can see how I put the dollar signs around that statement.How can I get the latex compiler to stop inserting unwanted $s?
You can enter the integral from line 2 into your calculator as\newline
\texttt{\textsc{[math] 9 2[$\pi$]1/6(x^3 [>] +3/x) [2nd] [$x^2$] 1/4(x [$x^2$] +x^-2 [>] ) [$x^2$],x,1/2,x}}
Code: Select all
\documentclass[fleqn]{article}
\usepackage{amsfonts,amsmath,amssymb,amsthm,nicefrac}
\everymath{\displaystyle}
\setlength{\parindent}{0pt}
\setlength{\parskip}{\baselineskip}
\begin{document}
Alternately, you can enter the integral from line 2 into your calculator as\newline
\newline
\texttt{\textsc{[math] 9 2[$\pi$]1/6(x^3 [>] +3/x) [2nd] [$x^2$] 1/4(x [$x^2$] +x^-2 [>] ) [$x^2$],x,1/2,x}}
\end{document}