\documentclass{article}
%\usepackage{amsmath} It does Not work !
\begin{document}
\[
x\lt y \gt z
\]
\end{document}
What library do I have to use such that the document can render \lt
and \gt
as less than
and greater than
signs, respectively?
Edit
I am using MathJax library in my site under Asp.net Mvc 3. Web application is vulnerable to XSS and XSRF attacks so <
and >
should be avoided as the input from the users.
My database will save LaTeX commands that can be rendered by both LaTeX compiler and MathJax. Therefore, I need \gt
and \lt
that already work in MathJax.
Source:
Rendered:
Best Answer
If that's all you want, add
to the preamble (before
begin{document}
). This should allow you to use\lt
and\gt
.