diff options
| author | aarne <unknown> | 2004-04-29 04:03:19 +0000 |
|---|---|---|
| committer | aarne <unknown> | 2004-04-29 04:03:19 +0000 |
| commit | b5bb4fc2b5b1d7e8ce17eb87722ba11e46a2ab2b (patch) | |
| tree | d96f0012126c7c7a929fe1c0b4b600155672f8fa /grammars/timetable/TimetableLatex.gf | |
| parent | 6993118eab6699182738ffcbddf03731ec41e1db (diff) | |
multimodality exx
Diffstat (limited to 'grammars/timetable/TimetableLatex.gf')
| -rw-r--r-- | grammars/timetable/TimetableLatex.gf | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/grammars/timetable/TimetableLatex.gf b/grammars/timetable/TimetableLatex.gf new file mode 100644 index 000000000..f0d4f0939 --- /dev/null +++ b/grammars/timetable/TimetableLatex.gf @@ -0,0 +1,28 @@ +--# -path=.:../prelude + +concrete TimetableLatex of Timetable = open Prelude, Latex in { + + lincat + CityList = {s,s2 : Str} ; -- s2 encodes table width + + lin + MkTable cs ts = + ss ("\\documentstyle{article}" ++ inEnv "document" ( + (inEnv "tabular" ("{" ++ cs.s2 ++ "}" ++ "&" ++ cs.s ++ + command "hline" ++ ts.s)))) ; + NilTrain _ = ss [] ; + ConsTrain cs n t ts = ss (n.s ++ "&" ++ t.s ++ "\\\\" ++ ts.s) ; + OneCity c = {s = c.s ++ "\\\\" ; s2 = "l|l"} ; + ConsCity c cs = {s = c.s ++ "&" ++ cs.s ; s2 = "l|" ++ cs.s2} ; + + StopTime t = t ; + NoStop = ss "---" ; + + LocTrain c s = s ; + CityTrain c s cs t = ss (s.s ++ "&" ++ t.s) ; + + T i = i ; + N n = n ; --- ss (fun1 "textbf" n.s) ; + C s = s ; --- ss (fun1 "textbf" s.s) ; + +} |
