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?
An escape character—any character with category code 0—tells TeX to switch into a special reading mode and carefully scan (read) the subsequent characters because they identify the name of a command, not text to be typeset.
LaTeX Spacial Characters If you simply want the character to be printed just as any other letter, include a \ in front of the character. For example, \$ will produce $ in your output. The exception to the rule is the \ itself because \\ has its own special meaning. A \ is produced by typing $\backslash$ in your file.
Bookmark this question. Show activity on this post. \ignore{^&%$###___} that outputs exactly ' ^&%$###___ ' in the pdf document?
Escape CharactersUse the backslash character to escape a single character or symbol. Only the character immediately following the backslash is escaped. Note: If you use braces to escape an individual character within a word, the character is escaped, but the word is broken into three tokens.
There are only 10 special chars: \ { } _ ^ # & $ % ~
.
Use a verbatim
environment or the listings
package, then you can enter source code without escaping.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With