Dustinsfl Messages 2,217 Reaction score 5 Thread starter Dec 17, 2012 #1 How can I enter code in Latex documents?
Sudharaka Gold Member MHB Messages 1,558 Reaction score 1 Dec 17, 2012 #2 dwsmith said: How can I enter code in Latex documents? 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? 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.