diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-03-20 19:13:05 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-03-20 19:13:05 +0100 |
| commit | 3fd5f8fa221ad0e4ccdffbdef39d0a0088bd9937 (patch) | |
| tree | 188c823ad3303aed3dfedc1a03f9ce65b5cf3d80 | |
| parent | ee334962c53fcb469015298878b46d40034008ae (diff) | |
| download | unterricht-3fd5f8fa221ad0e4ccdffbdef39d0a0088bd9937.tar.gz unterricht-3fd5f8fa221ad0e4ccdffbdef39d0a0088bd9937.zip | |
add common planning class options declaring the debug toggle
| -rw-r--r-- | latex/common_planning_options.tex | 10 | ||||
| -rw-r--r-- | latex/map.cls | 1 | ||||
| -rw-r--r-- | latex/sequence.cls | 1 |
3 files changed, 12 insertions, 0 deletions
diff --git a/latex/common_planning_options.tex b/latex/common_planning_options.tex new file mode 100644 index 00000000..5207ca72 --- /dev/null +++ b/latex/common_planning_options.tex @@ -0,0 +1,10 @@ +\RequirePackage{etoolbox} + +\newtoggle{debug} +\DeclareOption{debug}{\toggletrue{debug}} + +\ProcessOptions\relax + +\iftoggle{debug}{ + \RequirePackage{showframe} % Seitenlayout anzeigen +}{} diff --git a/latex/map.cls b/latex/map.cls index 0e4b93e1..a3b164a2 100644 --- a/latex/map.cls +++ b/latex/map.cls @@ -5,6 +5,7 @@ \ProcessOptions\relax \LoadClass{scrartcl} +\input{common_planning_options.tex} \input{common_packages.tex} \input{common_planning.tex} diff --git a/latex/sequence.cls b/latex/sequence.cls index cc4e9fb0..4c28cc78 100644 --- a/latex/sequence.cls +++ b/latex/sequence.cls @@ -5,6 +5,7 @@ \ProcessOptions\relax \LoadClass{scrartcl} +\input{common_planning_options.tex} \input{common_packages.tex} \input{common_planning.tex} |
