General ⇒ How to use lstinputlisting for a path with spaces?
How to use lstinputlisting for a path with spaces?
I am using lstlisting.sty and the path to the source code contains some spaces.
For examaple, the path can be:
/some dir/sub dir/file 1.txt
\lstinputlisting{/some dir/sub dir/file 1.txt} does not work.
Is there a way to fix this problem?
Thank you in advance.
Yuko
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis