[Tex/LaTex] Remove spacing after backslash

spacingsymbolssyntax

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?

Best Answer

\textbackslash opt\textbackslash mtwilson\textbackslash configuration

worked. Thanks @Christian Hupfer

Related Question