From 89e7d8c6692e71ed713c9c24e8af040244f4cbd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler=20=28via=20gitlab=20runner=29?= Date: Wed, 9 Feb 2022 23:40:44 +0000 Subject: [PATCH] make pip an option Build branch master (394ecc3) from kesslermaximilian/LatexPackages --- build_info.json | 12 ++++++------ wip/code/mkessler-code.sty | 30 +++++++++++++++++------------- 2 files changed, 23 insertions(+), 19 deletions(-) diff --git a/build_info.json b/build_info.json index e6fd62c..c991817 100644 --- a/build_info.json +++ b/build_info.json @@ -1,8 +1,8 @@ { "build_time": "", "source files": { - "version": "v2.9-2-g78e06ed", - "commit": "78e06ed17dd5ebf120a0ee3059acff80a88bb436", + "version": "v2.9-3-g394ecc3", + "commit": "394ecc310cf67afd6630fae6d9321e9ea2e2da8c", "dirty": false }, "pytex": { @@ -36,12 +36,12 @@ { "name": "wip/code/mkessler-code.sty", "source file": "wip/code/code.pysty", - "build time": "2022/02/09 23:27", - "source version": "v2.9-2-g78e06ed", - "source commit hash": "78e06ed17dd5ebf120a0ee3059acff80a88bb436", + "build time": "2022/02/09 23:40", + "source version": "v2.9-3-g394ecc3", + "source commit hash": "394ecc310cf67afd6630fae6d9321e9ea2e2da8c", "pytex version": "v1.2.0-31-gc9bb0e8", "pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51", - "md5sum": "da4ba08d654053fb97e00862282c32ae", + "md5sum": "c7e63292c9f515f645da21352bb6785e", "dirty": false }, { diff --git a/wip/code/mkessler-code.sty b/wip/code/mkessler-code.sty index 9e795f9..e8698c7 100644 --- a/wip/code/mkessler-code.sty +++ b/wip/code/mkessler-code.sty @@ -31,7 +31,7 @@ % % Build details: % PyTeX version: v1.2.0-31-gc9bb0e8 (commit c9bb0e8) -% Source code version: v2.9-2-g78e06ed (commit 78e06ed) +% Source code version: v2.9-3-g394ecc3 (commit 394ecc3) % % This LaTeX package is free software and is dual-licensed % under the LPPLv1.3c and the GPLv3 licenses. @@ -51,6 +51,9 @@ +\newif\ifmkessler@code@pipe\mkessler@code@pipefalse +\DeclareOption{pipe}{\mkessler@code@pipetrue} +\ProcessOptions \catcode`_=13 \let_\_ @@ -66,18 +69,19 @@ } \newif\ifactive\activefalse -\catcode`|=\active -\def|{ - \ifactive - \endgroup - \activefalse - \else - \begingroup - \catcode`_=13 - \ttfamily - \fi -} - +\ifmkessler@code@pipe + \catcode`|=\active + \def|{ + \ifactive + \endgroup + \activefalse + \else + \begingroup + \catcode`_=13 + \ttfamily + \fi + } % Quick fix for tables \AddToHook{env/tabular/begin}[code]{\catcode`|=13} \AddToHook{env/tabular/end}[code]{\catcode`|=8} +\fi