Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write a path with LaTeX? [closed]

Tags:

windows

latex

How can I write a path with LaTeX? I want something like this:

C:\\Program Files\\My Program\\my file.txt  

I have to use double slashes, not single ones.

like image 384
Yerko Antonio Avatar asked Nov 27 '12 12:11

Yerko Antonio


1 Answers

Found this:

How does one insert a backslash or a tilde into Latex

The Comprehensive LaTeX Symbol List is your friend. \textbackslash and \textasciitilde are found in Table 2 of the list

So you should try

C:\textbackslash\textbackslash Program Files\textbackslash\textbackslash My Program\textbackslash\textbackslash my file.txt
like image 63
ppeterka Avatar answered Sep 28 '22 10:09

ppeterka