make pip an option
Build branch master (394ecc3) from kesslermaximilian/LatexPackages
This commit is contained in:
parent
b95bb33ade
commit
89e7d8c669
2 changed files with 23 additions and 19 deletions
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"build_time": "",
|
"build_time": "",
|
||||||
"source files": {
|
"source files": {
|
||||||
"version": "v2.9-2-g78e06ed",
|
"version": "v2.9-3-g394ecc3",
|
||||||
"commit": "78e06ed17dd5ebf120a0ee3059acff80a88bb436",
|
"commit": "394ecc310cf67afd6630fae6d9321e9ea2e2da8c",
|
||||||
"dirty": false
|
"dirty": false
|
||||||
},
|
},
|
||||||
"pytex": {
|
"pytex": {
|
||||||
|
@ -36,12 +36,12 @@
|
||||||
{
|
{
|
||||||
"name": "wip/code/mkessler-code.sty",
|
"name": "wip/code/mkessler-code.sty",
|
||||||
"source file": "wip/code/code.pysty",
|
"source file": "wip/code/code.pysty",
|
||||||
"build time": "2022/02/09 23:27",
|
"build time": "2022/02/09 23:40",
|
||||||
"source version": "v2.9-2-g78e06ed",
|
"source version": "v2.9-3-g394ecc3",
|
||||||
"source commit hash": "78e06ed17dd5ebf120a0ee3059acff80a88bb436",
|
"source commit hash": "394ecc310cf67afd6630fae6d9321e9ea2e2da8c",
|
||||||
"pytex version": "v1.2.0-31-gc9bb0e8",
|
"pytex version": "v1.2.0-31-gc9bb0e8",
|
||||||
"pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51",
|
"pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51",
|
||||||
"md5sum": "da4ba08d654053fb97e00862282c32ae",
|
"md5sum": "c7e63292c9f515f645da21352bb6785e",
|
||||||
"dirty": false
|
"dirty": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
%
|
%
|
||||||
% Build details:
|
% Build details:
|
||||||
% PyTeX version: v1.2.0-31-gc9bb0e8 (commit c9bb0e8)
|
% 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
|
% This LaTeX package is free software and is dual-licensed
|
||||||
% under the LPPLv1.3c and the GPLv3 licenses.
|
% 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
|
\catcode`_=13
|
||||||
\let_\_
|
\let_\_
|
||||||
|
@ -66,18 +69,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
\newif\ifactive\activefalse
|
\newif\ifactive\activefalse
|
||||||
\catcode`|=\active
|
\ifmkessler@code@pipe
|
||||||
\def|{
|
\catcode`|=\active
|
||||||
\ifactive
|
\def|{
|
||||||
\endgroup
|
\ifactive
|
||||||
\activefalse
|
\endgroup
|
||||||
\else
|
\activefalse
|
||||||
\begingroup
|
\else
|
||||||
\catcode`_=13
|
\begingroup
|
||||||
\ttfamily
|
\catcode`_=13
|
||||||
\fi
|
\ttfamily
|
||||||
}
|
\fi
|
||||||
|
}
|
||||||
% Quick fix for tables
|
% Quick fix for tables
|
||||||
\AddToHook{env/tabular/begin}[code]{\catcode`|=13}
|
\AddToHook{env/tabular/begin}[code]{\catcode`|=13}
|
||||||
\AddToHook{env/tabular/end}[code]{\catcode`|=8}
|
\AddToHook{env/tabular/end}[code]{\catcode`|=8}
|
||||||
|
\fi
|
||||||
|
|
Loading…
Reference in a new issue