summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/modular/modular_to_the_rescue.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-05-01 21:56:14 +0000
committerKarl Berry <karl@freefriends.org>2017-05-01 21:56:14 +0000
commit38d2a89de41f2ce5cd636a425d6d15682e5bd17b (patch)
tree6dc3664127c688922db32832a5c134e68747ce93 /Master/texmf-dist/doc/latex/modular/modular_to_the_rescue.tex
parentc398bf73a46b2ebddb1e34047c56456ac11f03c5 (diff)
modular (1may17)
git-svn-id: svn://tug.org/texlive/trunk@44142 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/modular/modular_to_the_rescue.tex')
-rw-r--r--Master/texmf-dist/doc/latex/modular/modular_to_the_rescue.tex14
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/modular/modular_to_the_rescue.tex b/Master/texmf-dist/doc/latex/modular/modular_to_the_rescue.tex
new file mode 100644
index 00000000000..7aa864e58a5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/modular/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}
+