Skip to content

Instantly share code, notes, and snippets.

@charlesetc
Created January 15, 2017 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charlesetc/f10111cb7f639f8444d9b1b9f737517a to your computer and use it in GitHub Desktop.
Save charlesetc/f10111cb7f639f8444d9b1b9f737517a to your computer and use it in GitHub Desktop.
diff --git a/src/preproc/eqn/lex.cpp b/src/preproc/eqn/lex.cpp
index b6f15bd..2f2a759 100644
--- a/src/preproc/eqn/lex.cpp
+++ b/src/preproc/eqn/lex.cpp
@@ -239,6 +239,25 @@ static struct builtin_def common_defs[] = {
{ "cdot", "type \"binary\" \\(md" },
{ "cdots", "type \"inner\" { \\(md \\(md \\(md }" },
{ "dollar", "$" },
+ { "emdash", "\\[em]"},
+ { "endash", "\\[en]"},
+ { "exists", "type \"operator\" \\[te]"},
+
+ { "forall", "type \"operator\" \\[fa]"},
+ { "suchthat", "type \"operator\" \\[st]"},
+ { "angleleft", "type \"opening\" \\[la]"},
+ { "angleright", "type \"closing\" \\[ra]"},
+ { "arrowboth", "type \"binary\" \\[<>]"},
+ { "implies", "type \"binary\" \\[rA]"},
+ { "qed", "\\0\\[sq]"},
+ { "therefore", "type \"operator\" \\[tf]"},
+ { "divide", "type \"binary\" \\[di]"},
+ { "emptyset", "\\[es]"},
+ { "element", "type \"binary\" \\[mo]"},
+ { "notelement", "type \"binary\" \\[nm]"},
+ { "subset", "type \"binary\" \\[sb]"},
+ { "notsubset", "type \"binary\" \\[nb]"},
+ { "reflexsubset", "type \"binary\" \\[ib]"},
};
/* composite definitions that require troff size and motion operators */
@charlesetc
Copy link
Author

charlesetc commented Jan 15, 2017

{x element A exists b} over {a notelement C subset D} forall x qed
equation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment