summaryrefslogtreecommitdiff
path: root/doc/context/third
diff options
context:
space:
mode:
authorPhilipp Gesang <gesang@stud.uni-heidelberg.de>2012-06-14 10:36:30 +0200
committerPhilipp Gesang <gesang@stud.uni-heidelberg.de>2012-06-14 10:36:30 +0200
commitbcea502ef79449ab4115dd5be0fe225ffdf32709 (patch)
treec15942189effdb45c09eca00eec86c2945063167 /doc/context/third
parenta907ca78f3043cc3eb450d8062ea60d0abd05a10 (diff)
downloadenigma-bcea502ef79449ab4115dd5be0fe225ffdf32709.tar.gz
[examples] further Context demo
Diffstat (limited to 'doc/context/third')
-rw-r--r--doc/context/third/enigma/examples/enigma-example-context.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/context/third/enigma/examples/enigma-example-context.tex b/doc/context/third/enigma/examples/enigma-example-context.tex
index 21baf4c..846fa17 100644
--- a/doc/context/third/enigma/examples/enigma-example-context.tex
+++ b/doc/context/third/enigma/examples/enigma-example-context.tex
@@ -2,6 +2,16 @@
\usetypescript [iwona]
\setupbodyfont [iwona,20pt]
+\defineenigma [nilsettings]
+\setupenigma [nilsettings] [ %% a machine with vanilla settings
+ other_chars = no,
+ day_key = B I II III 01 01 01,
+ rotor_setting = aaa,
+ verbose = 3,
+]
+
+\defineenigma [othernilsettings] [nilsettings]
+
\defineenigma [secretmessage]
\setupenigma [secretmessage] [
other_chars = yes,
@@ -16,6 +26,18 @@
\starttext
+\placefigure{Enigma output and its reversal using nil settings}{
+ \framed [width=.7\hsize,frame=off,align=middle]{
+ \startnilsettings
+ aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aa
+ \stopnilsettings
+
+ \startothernilsettings
+ bdzgo wcxlt ksbtm cdlpb muqof xyhcx tgyjf linhn xs
+ \stopothernilsettings
+ }
+}
+
\startsecretmessage
føo bąr baž
\stopsecretmessage