summaryrefslogtreecommitdiff
path: root/main.tex
diff options
context:
space:
mode:
authorChloe Brown <chloe.brown.00@outlook.com>2025-06-12 14:36:30 +0100
committerChloe Brown <chloe.brown.00@outlook.com>2025-06-12 14:36:30 +0100
commit85905c93f74238b056f4b0ee0864782947ae02a6 (patch)
tree1a324a69d6242dd0e6edcaeb32a7dd3e725363ef /main.tex
parent31dcef8a998341145f0b08ae25d20395eaeb9d34 (diff)
Change syntax of `\judgement`
Diffstat (limited to 'main.tex')
-rw-r--r--main.tex4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.tex b/main.tex
index 1f8e1e5..17bbbee 100644
--- a/main.tex
+++ b/main.tex
@@ -162,7 +162,9 @@
\newcommand\rangeover[2]{\overrightarrow{#1}}
% Judgements for typing and such
-\newcommand\judgement[4][]{{#2} \vdash^{#1} {#3} : {#4}}
+\NewDocumentCommand\judgement{momO{:}m}{%
+ {#1} \vdash^{\IfNoValueF{#2}{#2}} {#3} \mathrel{#4} {#5}
+}
\newcommand\jdgmnt[3]{{#2} \vdash {#3}~\mathrm{#1}}
% List operators