0

I am trying to produce the following output:

\opt\mtwilson\configuration

by using \textbackslash{}opt \textbackslash{}mtwilson \textbackslash{}configuration, however this outputs

\opt \mtwilson \configuration

How do I remove the spacing?

  • 2
    \textbackslash opt\textbackslash mtwilson\textbackslash configuration, i.e. replace the {} by real space or try \verb!\opt\mtwilson\configuration! – user31729 Jun 24 '17 at 21:44
  • 1
    You have spaces after opt and mtwilson: just remove them. – egreg Jun 24 '17 at 21:46
  • @ChristianHupfer ??? The {} doesn't act like space and, indeed, that's not the source of the problem. – egreg Jun 24 '17 at 21:46
  • 1
    You could consider the url package and its \path command. – egreg Jun 24 '17 at 21:48
  • 1
    This is a unix path isn't it ? Don't you mean slashes / instead of backslashes \ , then ? – marsupilam Jun 24 '17 at 21:53
1
\textbackslash opt\textbackslash mtwilson\textbackslash configuration

worked. Thanks @Christian Hupfer

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.