[texhax] printing a backslash

Axel E. Retif axel.retif at mac.com
Sun Sep 2 21:41:40 CEST 2007


On Sep 2, 2007, at 12:45 PM, awishnia at notes.cc.sunysb.edu wrote:

> Is there any way in TeX to print a literal backslash?
> For example
>         c:\subd1\subsubd1


In TeX and LaTeX:

This is a $\backslash$ (backslash).

This is a {\tt\char`\\} (backslash).

In LaTeX, also

This is a \textbackslash{} (backslash).


So, for example,

c:$\backslash$subd1$\backslash$subsubd1


Best,

Axel


More information about the texhax mailing list