1

I see this is one option:

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

for representing

c:\subd1\subsubd1

is there something that leaves the TeX a bit more human-readable, such as

\escape{c:\subd1\subsubd1}
Martin Scharrer
  • 262,582
Hamy
  • 423

1 Answers1

3

The package url provides also the command \path{}:

\usepackage{url}%loaded by hyperref by default
.....
\path{c:\subd1\subsubd1}

enter image description here

Here the small MWE:

\documentclass{article}
\usepackage{url}
\begin{document}
\path{c:\subd1\subsubd1}
\end{document}
Marco Daniel
  • 95,681