views:

437

answers:

2

How can you escape underscores only in the tabular environment without the use of \_?

This thread discusses about underscore in general. I cannot use the environment verbatim nor the package underscore.

Sample data

\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}
+3  A: 
dreamlax
+4  A: 

Rather than hacking with catcodes manually, the underscore package does it for you so that _ works in text as a printed underscore, while still behaving as a subscript modifier in maths mode. Just load the package.

Will Robertson