diff options
author | Gustav Eek <gustav.eek@fripost.org> | 2019-09-01 13:10:26 +0200 |
---|---|---|
committer | Gustav Eek <gustav.eek@fripost.org> | 2019-09-01 13:10:26 +0200 |
commit | 5e0cc1e9d0869a02ef0e6cbd6dc6f1fb8daaa8ee (patch) | |
tree | a50e26ed4a19d9e0c66251c81a2432cd372618dc /trivia/sensommarfest/sed | |
parent | 893634662574567f867559ffe05aa827dee17dd9 (diff) |
[trivia] Sensommarfest Inital full quiz added
Diffstat (limited to 'trivia/sensommarfest/sed')
-rw-r--r-- | trivia/sensommarfest/sed/answers.sed | 3 | ||||
-rw-r--r-- | trivia/sensommarfest/sed/latex.sed | 14 | ||||
-rw-r--r-- | trivia/sensommarfest/sed/questions.sed | 9 |
3 files changed, 26 insertions, 0 deletions
diff --git a/trivia/sensommarfest/sed/answers.sed b/trivia/sensommarfest/sed/answers.sed new file mode 100644 index 0000000..165c122 --- /dev/null +++ b/trivia/sensommarfest/sed/answers.sed @@ -0,0 +1,3 @@ +/^# / i \\\newpage + +/^\.\.\.$/ i geometry: margin=1cm diff --git a/trivia/sensommarfest/sed/latex.sed b/trivia/sensommarfest/sed/latex.sed new file mode 100644 index 0000000..bfdfa27 --- /dev/null +++ b/trivia/sensommarfest/sed/latex.sed @@ -0,0 +1,14 @@ +# Translate +# +# \begin{enumerate} +# \def\labelenumi{\arabic{enumi}.} +# \tightlist +# +# to +# +# \begin{enumerate}[label=\triviaenum*] + +/^.def.labelenumi/ d +/^.tightlist/ d + +/begin.*enumerate/ s/$/[label=\\triviaenum*]/ diff --git a/trivia/sensommarfest/sed/questions.sed b/trivia/sensommarfest/sed/questions.sed new file mode 100644 index 0000000..e6e2bc0 --- /dev/null +++ b/trivia/sensommarfest/sed/questions.sed @@ -0,0 +1,9 @@ + +/^# / i \\\newpage + +/^## /,/^# / { + /^# / p + d +} + +/^\.\.\.$/ i geometry: margin=2cm |