columns
authorMatthew Owens <matthew@owens.tech>
Fri, 10 May 2024 10:36:06 +0000 (11:36 +0100)
committerMatthew Owens <matthew@owens.tech>
Fri, 10 May 2024 10:36:06 +0000 (11:36 +0100)
src/body.md

index bc32e4c..79bd6ba 100644 (file)
@@ -2,6 +2,29 @@
 title: Fief
 toc: true
 geometry: margin=2cm
+keep-tex: true
+header-includes: |
+    \makeatletter
+    \let\oldlt\longtable
+    \let\endoldlt\endlongtable
+    \def\longtable{\@ifnextchar[\longtable@i \longtable@ii}
+    \def\longtable@i[#1]{\begin{table}[h]
+    \onecolumn
+    \begin{minipage}{.5\textwidth}
+    \oldlt[#1]
+    }
+    \def\longtable@ii{\begin{table}
+    \onecolumn
+    
+    \begin{minipage}{.5\textwidth}
+    \oldlt
+    }
+    \def\endlongtable{\endoldlt
+    \end{minipage}
+    \twocolumn
+    \end{table}
+    }
+    \makeatother
 mustache:
 - ./src/vars.yaml
 include-before: |
@@ -9,9 +32,12 @@ include-before: |
 
     or this one?
 ---
+
 \pagebreak
+::: columns
 # Gameplay
 {{title}} is a blah blah blah
+
 ## Checks
 Checks are made against a character's [*skills*](#skills). To make a skill attempt,
 roll 3d6 and compare the roll to the skill's [*ceiling roll (CR)*](#ceiling-roll). If
@@ -419,3 +445,4 @@ personally betrayed by a friend. Bleeding Out. The death of a friend.
 
 # TODO: Running The Game
 # TODO: Tables
+:::