subfiles
subfiles copied to clipboard
Misbehaviour when subfiles is used with standalone
Inputting a tex file in a subfile when the standalone
package is loaded causes the appearance in the pdf (of both the subfile and the master file) of a text string containing excerpts of the path. This is related to the presence of spaces in the folders names.
Files are organised as follows:
master.tex sub folder_space/input.tex subfolder_nospace/input.tex subfiles/space.tex subfiles/nospace.tex
master.tex:
\documentclass{book}
\usepackage{subfiles}
\usepackage{standalone}
\usepackage{lipsum,}
\begin{document}
\subsection*{The input file is in a directory containing a space in the name but is not called form within a subfile}
\input{"sub folder_space"/input}
\subfile{subfiles/space}
\subfile{subfiles/nospace}
\end{document}
Both input files:
\lipsum[1]
subfiles/space.tex:
\documentclass[../master]{subfiles}
\begin{document}
\subsection*{The input file is in a directory containing a space in the name}
\input{../"sub folder_space"/input}
\end{document}
\end{document}
subfiles/nospace.tex
\documentclass[../master]{subfiles}
\begin{document}
\subsection*{The input file is in a directory NOT containing a space in the name}
\input{../"subfolder_nospace"/input}
\end{document}
\end{document}
In the pdf this is the string that shows up: folder ̇space/input.texfolder ̇space/input.tex
. Please notice the high dots.
The issue only occurs with subfiles >1.6 (in my test 2.2).
Lorenzo