From 78e06ed17dd5ebf120a0ee3059acff80a88bb436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Thu, 10 Feb 2022 00:27:01 +0100 Subject: [PATCH] quick fix for tables --- src/wip/code/code.pysty | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wip/code/code.pysty b/src/wip/code/code.pysty index dbff810..b9830a3 100644 --- a/src/wip/code/code.pysty +++ b/src/wip/code/code.pysty @@ -1,5 +1,6 @@ __HEADER__(Hacky code setup for verbatim code) + \catcode`_=13 \let_\_ \catcode`_=8 @@ -25,3 +26,7 @@ __HEADER__(Hacky code setup for verbatim code) \ttfamily \fi } + +% Quick fix for tables +\AddToHook{env/tabular/begin}[code]{\catcode`|=13} +\AddToHook{env/tabular/end}[code]{\catcode`|=8}