summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/modular/doc/modular_to_the_rescue.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/modular/doc/modular_to_the_rescue.tex')
-rw-r--r--macros/latex/contrib/modular/doc/modular_to_the_rescue.tex14
1 files changed, 14 insertions, 0 deletions
diff --git a/macros/latex/contrib/modular/doc/modular_to_the_rescue.tex b/macros/latex/contrib/modular/doc/modular_to_the_rescue.tex
new file mode 100644
index 0000000000..7aa864e58a
--- /dev/null
+++ b/macros/latex/contrib/modular/doc/modular_to_the_rescue.tex
@@ -0,0 +1,14 @@
+\levelstay{\fixedwidth{modular} to the rescue}
+
+The \fixedwidth{modular} package provides the \fixedwidth{subimportlevel} macro to solve our problem:
+
+\lstinputlisting[title=\textbf{article.tex}]{example/article.tex}
+When you build \fixedwidth{article.tex} you'll see that the habitat and lifecycle bits are subsections under the octopus section, just as we wanted!
+
+The \fixedwidth{subimportlevel} macro takes three arguments:
+\begin{itemize}
+ \item The relative path of the directory containing the file to import.
+ \item The file to import
+ \item The number of levels to go down when importing. Usually, this will be 0 or 1.
+\end{itemize}
+