I know that Deutsche Bahn (German railway) is using (La)TeX to typeset their timetables. Are there any (freely available) packages that help in typesetting timetables? I'd be mostly interested in connection timetables, i.e. something like:
-
take train 123 at 5:45 from SomeStation platform 1 in direction of SomeFarAwayStation
-
[105 min]
-
arrive at ChangeStation platform 3 at 7:30
- walk for 150 m to the bus stop SomeBusStop [3 min]
- take bus 987 at 7:38 in direction of SomeFarAwayBusStop
- ….
All of this of course should be prettily formatted, perhaps even with some icons (for "bus/train/…").
One layout that I like is the one of VGN: timetable
Best Answer
Here's a stab. I've edited to create the environment
timetable
, which sets up the TABstack, and lets you fill in the details. I've added a variety of helper macros for regular things, like\firststation
,\nextstation
, and\laststation
for the symbols in the first column;\terminus{}
and\waypoint{}
for the names of the endpoint and waypoint stations;\routedetails[<direction modifier>]{<mode>}{<number>}{<direction>}
for the route data;\onbus
,\onmetro
, and\ontrain
to provide icons for the various transportation modes; and\depart{}
,\arrive{}
, and\duration{}
for the timing.EDITED to use appropriate clipart
https://www.iconsdb.com/red-icons/bus-icon.html
http://www.clker.com/clipart-subway-blue.html
http://www.softicons.com/web-icons/awt-travel-blue-icons-by-awt-media/train-icon
(Make sure you use the latest version of
tabstackengine 2018/03/05 (V2.10)
)The following MWE compiles as is, but if you download the cited icons, you can also uncomment the redefinitions to get those icons, as I show in the actual image.