aboutsummaryrefslogtreecommitdiff
path: root/scripts/tex.py
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-09-18 14:54:48 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-09-18 14:54:48 +0200
commit0027f5df316892f121bb9f4b5b6b641646273ff0 (patch)
tree56edc328fd757ef1f22fa7aef99a7dd8bb3284bf /scripts/tex.py
parentf2e1083970107994a031a394198fde039bdf3b77 (diff)
add requirements + improve generated reqs.tex
Diffstat (limited to 'scripts/tex.py')
-rw-r--r--scripts/tex.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/tex.py b/scripts/tex.py
index e8fc65b..07d275a 100644
--- a/scripts/tex.py
+++ b/scripts/tex.py
@@ -69,3 +69,13 @@ def explist(*items):
out += explist(*item)
return out
+def sec(level, heading):
+ level = max(min(3, level), 0)
+ section = [
+ 'section',
+ 'subsection',
+ 'subsubsection',
+ 'paragraph',
+ ][level]
+ return cmd(section, heading)
+