私はLaTeXのファイルにLaTeXの特殊文字をdjangoテンプレートからエスケープできますか?
\documentclass[11pt]{report}
\begin{document}
\begin{table}
\centering
\begin{tabular}{lcr}
\hline
{% for col in head %}
\textbf{ {{col}} }
{% if not forloop.last %}
&
{% endif %}
{% endfor %}
\\
\hline
{% for row in table %}
{% for cell in row %}
{% if not forloop.last %}
&
{% endif %}
{% endfor %}
\\
{% endfor %}
\hline
\end{tabular}
\caption{Simple Phonebook}
\label{tab:phonebook}
\end{table}
\end{document}
を生成するために使用し、このDjangoテンプレートを持っていない。しかし、彼らはそれらのいずれかの特殊文字を含めることができるように、列の私の何が非常に大きいです。私はpdfファイルを生成中にエラーが発生しています。
どのようにしてすべての列のすべてのテキストをエスケープできますか?このような
また、r '\ textgreater' r '\ textless' – blueberryfields
またはr '\ ensuremath {<}'とr '\ ensuremath {>}'を含めることを忘れないでください。 – sastanin