From: Cian Bagshaw Date: Sat, 28 Jun 2025 20:49:33 +0000 (+0100) Subject: Improved timeline and info macros with shifts X-Git-Url: https://tests.cianb.xyz/?a=commitdiff_plain;h=9f8b0977e99be18cea871ad61298aa39fa984763;p=cvTrf Improved timeline and info macros with shifts Arguments should no longer need to be placed in quotes --- diff --git a/cv.tmac b/cv.tmac index 13f2d1e..d730f0a 100644 --- a/cv.tmac +++ b/cv.tmac @@ -49,8 +49,10 @@ . sp (\\n[HEADER_TOP]u + \\n[PIC_HEIGHT]i + 1v - \\n[VERT_POS]u) .. .de INFO +. ds LABEL \\$1 +. shift . ta T 0.7i -. EXEC \fB\\$1:\fP\t\\$2 +. EXEC \fB\\*[LABEL]:\fP\t\\$* . br . ta T 0.5 .. @@ -90,9 +92,9 @@ . in +1i . sp -1 . LEFT_RULE -. EXEC \fB\\$3\fP +. shift 2 +. EXEC \fB\\$^\fP . br -. if \\n(.$.=4 \fB\\$4\fP: .. .de TIMELINE_DATE_END . LEFT_RULE_END