1

so I have a problem, I need to put in a dot symbol between my equations in verbatim mode. For some reason it does not work in verbatim mode, but I surely need my equations in verbatim. So do you guys know how to solve it?

here is are the screenshots

enter image description here enter image description here

1 Answers1

1

You don't really need verbatim, but you can use it.

\documentclass{article}

\begin{document}

\begin{flushleft}\ttfamily
\%\%Sinusse \\
y1 = x1·sin(w·t); \\
y2 = x2·sin(3w·t); \\
y3 = x3·sin(5w·t); \\
y4 = x4·sin(7w·t); \\
y5 = x5·sin(9w·t); \\
y6 = x6·sin(11w·t); \\
\end{flushleft}

\begin{verbatim}
%%Sinusse
y1 = x1·sin(w·t);
y2 = x2·sin(3w·t);
y3 = x3·sin(5w·t);
y4 = x4·sin(7w·t);
y5 = x5·sin(9w·t);
y6 = x6·sin(11w·t);
\end{verbatim}

\end{document}

enter image description here

With an older version of LaTeX (pre 2019), you want to add \usepackage{textcomp}.

egreg
  • 1,121,712