Léo*_* 준영 1 latex escaping tabular
如何在不使用表格环境的情况下逃避下划线\_?
该主题通常讨论下划线.我不能逐字使用环境,也不能使用包下划线.
样本数据
\begin{tabular}{| l | l | p{5cm} |}
\hline
delete_a_question.php&poistaa kysymyksen&setterit \\ \hline
edit_question.php&muokkaa kysymyst\"{a}&getterit, HTML koodin generointia \\ \hline
--cut--
\end{tabular}
Run Code Online (Sandbox Code Playgroud)
\bgroup
\catcode`\_=13%
\def_{\textunderscore}%
\begin{tabular}{|l|l|p{4.5cm}}
test_444 & 555 & 4_4\\\hline
\end{tabular}
\egroup
And now for some normal maths: $a_i=3$.
在这里,我更改了下划线字符的类别代码,使其处于活动状态(这意味着我可以为下划线指定一个宏定义).我定义下划线字符以输出实际的下划线字符.
该\bgroup和\egroup限制重新定义下划线的效果.