Welcome to the staging ground for new communities! Each proposal has a description in the "Descriptions" category and a body of questions and answers in "Incubator Q&A". You can ask questions (and get answers, we hope!) right away, and start new proposals.
Are you here to participate in a specific proposal? Click on the proposal tag (with the dark outline) to see only posts about that proposal and not all of the others that are in progress. Tags are at the bottom of each post.
Is this the neatest way to draw strokes on a Typst table? Question
+1
−0
Is there a more idiomatic way to create a table like this?
What I wrote (after a fair bit of trial and error) did achieve the result I was looking for, but the stroke
commands seem a bit complex and repetitive, and I feel that there's probably a better way to do it.
= Weekday Travel Options from Dublin to Tullamore
== Train (Iarnród Éireann) & Bus (Kearns Transport)
#set text(size: 10pt)
#table(
columns: 11,
stroke: (x, y) => {(
left: if x == 1 { 0.7pt } else { 0pt },
bottom: if (y == 0) or (y == 6) { 0.7pt } else if y == 5 { 2pt } else { 0pt }
)},
[], [IÉ], [IÉ], [IÉ], [IÉ], [IÉ], [IÉ], [IÉ], [Kearns], [IÉ], [Kearns],
[Cathal Brugha St], [], [], [], [], [], [], [], [], [], [],
[George's Quay], [], [], [], [], [], [], [], [], [], [],
[Ha'penny Bridge], [], [], [], [], [], [], [], [16:10], [], [16:30],
[Heuston Station], [07:35], [09:25], [11:30], [12:45], [13:30], [14:45], [15:35], [16:15], [16:30], [16:35],
[Tullamore], [08:32], [10:15], [12:22], [13:36], [14:21], [15:44], [16:31], [17:50], [17:26], [18:10\*],
[], [IÉ], [Kearns], [IÉ], [Kearns], [Kearns], [IÉ], [Kearns], [IÉ], [IÉ], [],
[Cathal Brugha St], [], [17:00], [], [], [], [], [18:00], [], [], [],
[George's Quay], [], [], [], [17:15], [], [], [], [], [], [],
[Ha'penny Bridge], [], [17:15], [], [17:30], [17:45], [], [18:15], [], [], [],
[Heuston Station], [17:10], [17:20], [17:30], [17:35], [17:50], [18:15], [18:20], [19:35], [20:30], [],
[Tullamore], [18:11], [18:55], [18:30], [19:10\*], [19:25], [19:14], [19:50], [20:28], [21:34], [],
)
\* Terminates in Tullamore.
0 comment threads