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

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

Post Reply