MartinScharrer / standalone

A LaTeX class and package is provided which allows LaTeX diagrams or other LaTeX code to be compiled standalone or as part of a main document. Special support for pictures with beamer overlays is also provided.
LaTeX Project Public License v1.3c
9 stars 2 forks source link

The collected sub-preambles in the `.sta` file should be written as they are in the the sub-files #5

Open dbitouze opened 1 year ago

dbitouze commented 1 year ago

The collected sub-preambles in the .sta file should be written as they are in the the sub-files, in order to avoid compilation errors.

E.g. the following code in the preamble of a sub-file:

\begin{filecontents*}[overwrite]{pixelart.csv}
  -,-,-,-,-,-,4,4,4,4,-,-,-,-,-,-
  -,-,-,-,4,4,1,1,1,1,4,4,-,-,-,-
  -,-,-,4,1,1,1,1,1,1,1,1,4,-,-,-
  -,-,4,1,1,1,1,1,1,1,1,1,1,4,-,-
  -,-,4,1,1,1,1,1,1,1,1,1,1,4,-,-
  -,4,1,9,9,1,1,1,1,1,1,9,9,1,4,-
  -,4,9,9,9,9,4,4,4,4,9,9,9,9,4,-
  -,4,9,4,9,9,4,4,4,4,9,4,9,9,4,-
  -,4,1,9,9,9,4,4,4,4,9,9,9,1,4,-
  -,-,4,1,1,9,4,4,4,4,9,1,1,4,-,-
  -,-,4,1,1,1,4,4,4,4,1,1,1,4,-,-
  -,-,-,4,1,1,1,4,4,1,1,1,4,-,-,-
  -,-,4,3,1,1,1,1,1,1,1,1,3,4,-,-
  -,4,6,3,1,1,1,1,1,1,1,1,3,6,4,-
  -,4,6,6,1,1,1,1,1,1,1,1,6,6,4,-
  -,4,6,6,1,1,1,1,1,1,1,1,6,6,4,-
  -,4,6,4,1,1,1,4,4,1,1,1,4,6,4,-
  2,2,4,2,4,4,4,2,2,4,4,4,2,4,2,2
  2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
  2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
  -,-,-,-,-,4,1,1,1,1,4,-,-,-,-,-
  -,-,-,-,-,-,4,1,1,4,-,-,-,-,-,-
  -,-,-,-,-,-,-,4,4,-,-,-,-,-,-,-
\end{filecontents*}

may be written (depending on what is before) in the .sta file as:

\begin {filecontents*}
[overwrite]{pixelart.csv}-,-,-,-,-,-,4,4,4,4,-,-,-,-,-,--,-,-,-,4,4,1,1,1...

which causes the compilation to fail.