Welcome to our community

Be a part of something great, join today!

code tags

dwsmith

Well-known member
Feb 1, 2012
1,673
How can I enter code in Latex documents?
 

Sudharaka

Well-known member
MHB Math Helper
Feb 5, 2012
1,621
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.