Skip to content

Commit ee072c8

Browse files
authored
Merge pull request #1400 from mathics/implies-doc-symbol
Rightarrow fixes and other small doc fixes
2 parents c179d30 + 0a48c80 commit ee072c8

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

mathics/builtin/logic.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class Nand(Builtin):
138138
"""
139139
<dl>
140140
<dt>'Nand[$expr1$, $expr2$, ...]'
141-
<dt>'$expr1$' \u22BC $expr2$ \u22BC ...
141+
<dt>$expr1$ \u22BC $expr2$ \u22BC ...
142142
<dd> Implements the logical NAND function. The same as 'Not[And['$expr1$, $expr2$, ...']]'
143143
</dl>
144144
>> Nand[True, False]
@@ -155,7 +155,7 @@ class Nor(Builtin):
155155
"""
156156
<dl>
157157
<dt>'Nor[$expr1$, $expr2$, ...]'
158-
<dt>'$expr1$' \u22BD $expr2$ \u22BD ...
158+
<dt>$expr1$ \u22BD $expr2$ \u22BD ...
159159
<dd>Implements the logical NOR function. The same as 'Not[Or['$expr1$, $expr2$, ...']]'
160160
</dl>
161161
>> Nor[True, False]
@@ -172,7 +172,7 @@ class Implies(BinaryOperator):
172172
"""
173173
<dl>
174174
<dt>'Implies[$expr1$, $expr2$]'
175-
<dt>'$expr1$ \uF523 $expr2$'
175+
<dt>$expr1$ \u21D2 $expr2$
176176
<dd>evaluates each expression in turn, returning 'True'
177177
as soon as the first expression evaluates to 'False'. If the
178178
first expression evaluates to 'True', 'Implies' returns the
@@ -187,10 +187,10 @@ class Implies(BinaryOperator):
187187
If an expression does not evaluate to 'True' or 'False', 'Implies'
188188
returns a result in symbolic form:
189189
>> Implies[a, Implies[b, Implies[True, c]]]
190-
= a \uF523 b \uF523 c
190+
= a \u21D2 b \u21D2 c
191191
"""
192192

193-
operator = "\uF523"
193+
operator = "\u21D2"
194194
precedence = 200
195195
grouping = "Right"
196196

mathics/doc/doc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ def repl_list(match):
271271
("\u22bb", r"$\oplus$"), # The WL veebar-looking symbol isn't in AMSLaTeX
272272
("\u22bc", r"$\barwedge$"),
273273
("\u22bd", r"$\veebar$"),
274+
("\u21d2", r"$\Rightarrow$"),
274275
("\uf74c", r"d"),
275276
],
276277
)

mathics/doc/tex/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ BASH ?= /bin/bash
77
#-quiet
88

99
#: Default target: Make everything
10-
all: mathics.pdf
10+
all doc: mathics.pdf
1111

1212
doc_tex_data.pcl:
1313
make -C ../../.. doc-data

mathics/doc/tex/mathics.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
{~}{{\textasciitilde}}1
6565
{⧦}{{===}}1
6666
{}{{=>}}1
67+
{⇒}{{$\Rightarrow$>}}1
6768
{⊻}{{$\oplus$}}1
6869
{…}{{...}}1
6970
{∫}{{S}}1

0 commit comments

Comments
 (0)