GeneralHow to use lstinputlisting for a path with spaces?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
yoyoimut
Posts: 120
Joined: Mon Oct 19, 2009 6:58 am

How to use lstinputlisting for a path with spaces?

Post by yoyoimut »

Hi everyone,

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply