Dec 17, 2012 Thread starter #1 D dwsmith Well-known member Feb 1, 2012 1,673 How can I enter code in Latex documents?
Dec 17, 2012 #2 Sudharaka Well-known member MHB Math Helper Feb 5, 2012 1,621 dwsmith said: How can I enter code in Latex documents? Click to expand... Hi dwsmith, One way to do this is to surround your text with \verb|......| command. Examples, \[\verb|$y=2x+1$|\] \[\verb|\prod_{i=m}^{\infty}x_{i}=\lim_{n\to\infty}\prod_{i=m}^{n}x_{i}|\] For larger portions of text use the \(\verb|\begin{verbatim}........\end{verbatim}|\) environment. Kind Regards, Sudharaka.
dwsmith said: How can I enter code in Latex documents? Click to expand... Hi dwsmith, One way to do this is to surround your text with \verb|......| command. Examples, \[\verb|$y=2x+1$|\] \[\verb|\prod_{i=m}^{\infty}x_{i}=\lim_{n\to\infty}\prod_{i=m}^{n}x_{i}|\] For larger portions of text use the \(\verb|\begin{verbatim}........\end{verbatim}|\) environment. Kind Regards, Sudharaka.