Uwe
Uwe

Reputation: 295

latex escape chars

I want to prepare a text for the use in a LaTeX document.

I wrote a SQL Function which does a lot of REPLACE. For example _ -> \_ and so on.

But there are so many special chars and sometimes I get errors. Does anyone know a SQL-function or a Java package for escaping text to LaTeX?

Upvotes: 8

Views: 7833

Answers (2)

Alexey Malistov
Alexey Malistov

Reputation: 26985

There are only 10 special chars: \ { } _ ^ # & $ % ~.

Upvotes: 9

Philipp
Philipp

Reputation: 49812

Use a verbatim environment or the listings package, then you can enter source code without escaping.

Upvotes: 3

Related Questions