2

I struggle a bit with UNC paths in latex.

My paths looks something like

\\server\folder\folder

I found this. Which recommends to change \ to /. Thats not really a solution.

I put the path in a verbatim block which work but ignores the text flow. My other 'solution' is to replace every \ with \textbackslash{}

The question I have is: Is there any recommended or best practices way to deal with UNC paths?

6

I think you are trying to print the paths. If so, you may need this:

\documentclass{article}
\usepackage[obeyspaces]{url}

\begin{document}
  \path{\\server\folder\folder}

  \path{\\server\my folder\folder}
\end{document}

enter image description here

  • Yeah this is exactly what I searched. And now I feeling a bit stupid because path is kinda obvious. – Sir l33tname Aug 28 '14 at 6:50
  • 1
    @Sirl33tname Glad my guess is correct. I know that feeling as it happens to me too. It's OK. :-) – user11232 Aug 28 '14 at 6:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.