File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 195195% - `\Weakening`: produces name or abbreviation for weakening rule,
196196% e.g., ``W''.
197197
198- \DeclareDocumentMacro \Weakening {\text {W }}
198+ \DeclareDocumentMacro \Weakening {\ensuremath { \mathrm {W} }}
199199
200200% - `\Contraction`: produces name or abbreviation for contraction rule,
201201% e.g., ``C''.
202202
203- \DeclareDocumentMacro \Contraction {\text {C }}
203+ \DeclareDocumentMacro \Contraction {\ensuremath { \mathrm {C} }}
204204
205205% - `\Exchange`: produces name or abbreviation for exchange rule,
206206% e.g., ``X''.
207207
208- \DeclareDocumentMacro \Exchange {\text {X }}
208+ \DeclareDocumentMacro \Exchange {\ensuremath { \mathrm {X} }}
209209
210210% - `\Cut`: produces name or abbreviation for cut rule,
211211% e.g., ``Cut''.
212212
213- \DeclareDocumentMacro \Cut {\text { Cut}}
213+ \DeclareDocumentMacro \Cut {\ensuremath { \mathrm { Cut} }}
214214
215215% - Rule names: `\Intro{Op}` typesets the name of an intro rule for
216216% operator `Op`, e.g., `\Intro{\land}` produces `$\land$Intro`.
Original file line number Diff line number Diff line change 8181% defined
8282% Tim Button adds: so:
8383%
84- % \ollabel {L}{YText}{NText}
84+ % \oliflabeldef {L}{YText}{NText}
8585%
8686% Should simply do something along these lines:
8787% If L is defined, then output: YText
Original file line number Diff line number Diff line change 5656\@ifpackagelater {xparse}{2018/04/17}{
5757\DeclareDocumentCommand \@printtoken { t^ ta m !ts } {%
5858 \IfBooleanTF {#1}
59- {\IfBooleanTF {#2}{\printtoken {A}{ #3}~%
59+ {\IfBooleanTF {#2}{\Article { #3}~%
6060 \IfBooleanTF {#4}
6161 {\printtoken {p}{#3}}
6262 {\printtoken {s}{#3}}}{%
6363 \IfBooleanTF {#4}
6464 {\printtoken {P}{#3}}
6565 {\printtoken {S}{#3}}}}{%
66- {\IfBooleanTF {#2}{\printtoken {a} {#3}~}{}%
66+ {\IfBooleanTF {#2}{\article {#3}~}{}%
6767 \IfBooleanTF {#4}
6868 {\printtoken {p}{#3}}
6969 {\printtoken {s}{#3}}}}}
7070}{
7171\DeclareDocumentCommand \@printtoken { t^ ta m ts } {%
7272 \IfBooleanTF {#1}
73- {\IfBooleanTF {#2}{\printtoken {A}{ #3}~%
73+ {\IfBooleanTF {#2}{\Article { #3}~%
7474 \IfBooleanTF {#4}
7575 {\printtoken {p}{#3}}
7676 {\printtoken {s}{#3}}}{%
7777 \IfBooleanTF {#4}
7878 {\printtoken {P}{#3}}
7979 {\printtoken {S}{#3}}}}{%
80- {\IfBooleanTF {#2}{\printtoken {a} {#3}~}{}%
80+ {\IfBooleanTF {#2}{\article {#3}~}{}%
8181 \IfBooleanTF {#4}
8282 {\printtoken {p}{#3}}
8383 {\printtoken {s}{#3}}}}}
101101% `\article{token}`, `\Article{token}` - just print the article for a
102102% token
103103
104- \def\article #1{\printtoken {a}{#1}}
105- \def\Article #1{\printtoken {A}{#1}}
104+ \def\article #1{\ifcsname TOK@a@#1\endcsname
105+ \tokenformat {\usetoken {a}{#1}}\else
106+ \PackageWarning {open-logic-tokenize}{Token #1 undefined}{\color {red}a}\fi }
107+ \def\Article #1{\ifcsname TOK@a@#1\endcsname
108+ \tokenformat {\usetoken {A}{#1}}\else
109+ \PackageWarning {open-logic-tokenize}{Token #1 undefined}{\color {red}A}\fi }
110+ % \def\Article#1{\printtoken{A}{#1}}
106111
107112% use shorthand mechanism from `babel.sty` to define `!!` as shorthand
108113% for `\printtoken`
You can’t perform that action at this time.
0 commit comments