summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/modular
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/tex/latex/modular
parentc398bf73a46b2ebddb1e34047c56456ac11f03c5 (diff)
modular (1may17)
git-svn-id: svn://tug.org/texlive/trunk@44142 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/modular')
-rw-r--r--Master/texmf-dist/tex/latex/modular/modular.sty24
1 files changed, 24 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/modular/modular.sty b/Master/texmf-dist/tex/latex/modular/modular.sty
new file mode 100644
index 00000000000..72d6fc912ab
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/modular/modular.sty
@@ -0,0 +1,24 @@
+% Copyright 2017 Daniel Thomas Sank (sank.daniel@gmail.com)
+%
+% This work may be distributed under the terms of the LPPL.
+% See README.md for details.
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{modular}[2016/12/27 Modular document design]
+\RequirePackage{ifthen}
+\RequirePackage{coseoul}
+\RequirePackage{import}
+
+\makeatletter
+\newcounter{currentimportdepth}
+\setcounter{currentimportdepth}{0}
+\newcommand{\subimportlevel}[3]{
+ \expandafter\edef\csname @currentlevel\thecurrentimportdepth\endcsname{\thecurrentlevel}
+ \addtocounter{currentimportdepth}{1}
+ \addtocounter{currentlevel}{-#3}
+ \subimport*{#1}{#2}
+ \addtocounter{currentimportdepth}{-1}
+ \setcounter{currentlevel}{\csname @currentlevel\thecurrentimportdepth\endcsname}
+ }
+\makeatother
+