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.
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
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