Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mathics/builtin/box/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Boxing information, like the class of expression to be worked on and \
its size, allow formatters, like <url>:StandardForm:
/doc/reference-of-built-in-symbols/forms-of-input-and-output/printforms/standardform/</url> \
/doc/reference-of-built-in-symbols/forms-of-input-and-output/general-purpose-forms/standardform/</url> \
to do their work without \
having to know more specific details and intricacies of expression to be formatted.

Expand Down
6 changes: 3 additions & 3 deletions mathics/builtin/drawing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
:'Circle':
/doc/reference-of-built-in-symbols/drawing-graphics/circle</url> and <url>
:'Cuboid':
/doc/reference-of-built-in-symbols/graphics-and-drawing/three-dimensional-graphics/cuboid/</url> \
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/three-dimensional-graphics/cuboid/</url> \
and place them in a coordinate space.
<li>Compute the points of the space using a function. This is done using functions \
like <url>
:'Plot':
/doc/reference-of-built-in-symbols/graphics-and-drawing/plotting-data/plot</url> \
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/general-graphical-plots/plot</url> \
and <url>
:'ListPlot':
/doc/reference-of-built-in-symbols/graphics-and-drawing/plotting-data/listplot</url>.
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/list-plots/listplot</url>.
</ul>
"""

Expand Down
2 changes: 1 addition & 1 deletion mathics/builtin/drawing/graphics3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Graphics3D(Graphics):
<dd>represents a three-dimensional graphic.

See <url>:Drawing Option and Option Values:
/doc/reference-of-built-in-symbols/graphics-and-drawing/drawing-options-and-option-values
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/drawing-options-and-option-values
</url> for a list of Plot options.
</dl>

Expand Down
6 changes: 3 additions & 3 deletions mathics/builtin/drawing/plot_listplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ class ListPlot(_ListPlot):
= -Graphics-

Compare with <url>:'Plot':
/doc/reference-of-built-in-symbols/graphics-and-drawing/plotting-data/plot/</url>.
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/general-graphical-plots/plot/</url>.

>> ListPlot[Table[n ^ 2, {n, 30}], Filling->Axis]
= -Graphics-

Compare with <url>:'Plot':
/doc/reference-of-built-in-symbols/graphics-and-drawing/plotting-data/plot</url>.
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/general-graphical-plots/plot</url>.
"""

options = Graphics.options.copy()
Expand Down Expand Up @@ -405,7 +405,7 @@ class DiscretePlot(_ListPlot):
= -Graphics-

Compare with <url>:'Plot':
/doc/reference-of-built-in-symbols/graphics-and-drawing/plotting-data/plot/</url>.
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/general-graphical-plots/plot/</url>.
"""

attributes = A_HOLD_ALL | A_PROTECTED
Expand Down
8 changes: 4 additions & 4 deletions mathics/builtin/drawing/plot_plot3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class ComplexPlot3D(_Plot3D):
$z_{max}$ with surface colored according to phase

See <url>:Drawing Option and Option Values:
/doc/reference-of-built-in-symbols/graphics-and-drawing/drawing-options-and-option-values
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/drawing-options-and-option-values
</url> for a list of Plot options.
</dl>

Expand All @@ -173,7 +173,7 @@ class ComplexPlot(_Plot3D):
$z_{max}$ colored according to phase

See <url>:Drawing Option and Option Values:
/doc/reference-of-built-in-symbols/graphics-and-drawing/drawing-options-and-option-values
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/drawing-options-and-option-values
</url> for a list of Plot options.
</dl>

Expand All @@ -196,7 +196,7 @@ class ContourPlot(_Plot3D):
$x$ ranging from $x_{min}$ to $x_{max}$ and $y$ ranging from $y_{min}$ to $y_{max}$.

See <url>:Drawing Option and Option Values:
/doc/reference-of-built-in-symbols/graphics-and-drawing/drawing-options-and-option-values
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/drawing-options-and-option-values
</url> for a list of Plot options.
</dl>

Expand Down Expand Up @@ -253,7 +253,7 @@ class Plot3D(_Plot3D):
$x_{max}$ and $y$ ranging from $y_{min}$ to $y_{max}$.

See <url>:Drawing Option and Option Values:
/doc/reference-of-built-in-symbols/graphics-and-drawing/drawing-options-and-option-values
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/drawing-options-and-option-values
</url> for a list of Plot options.
</dl>

Expand Down
2 changes: 1 addition & 1 deletion mathics/builtin/forms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

A <i>Form</i> specifies the way Mathics3 Expressions are formatted or displayed.

The variable <url>:$OutputForms:
The variable <url>:\$OutputForms:
/doc/reference-of-built-in-symbols/forms-of-input-and-output/form-variables/\$outputforms/</url> \
has a list of Forms defined.

Expand Down
4 changes: 2 additions & 2 deletions mathics/builtin/forms/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
Some forms are specific to formatting certain kinds of data, like numbers, strings, or matrices.

These are in contrast to the Forms like <url>:OutputForm:
/doc/reference-of-built-in-symbols/forms-of-input-and-output/printforms/outputform/</url> \
/doc/reference-of-built-in-symbols/forms-of-input-and-output/general-purpose-forms/outputform/</url> \
or <url>:StandardForm:
/doc/reference-of-built-in-symbols/forms-of-input-and-output/printforms/standardform/</url>, \
/doc/reference-of-built-in-symbols/forms-of-input-and-output/general-purpose-forms/standardform/</url>, \
which are intended to work over all kinds of data.
"""
from typing import Any, Callable, Dict, List, Optional
Expand Down
7 changes: 3 additions & 4 deletions mathics/builtin/forms/print.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@

A number of forms are suitable for formatting any kind of \Mathics expression.

The variable <url>:$PrintForms:
/doc/reference-of-built-in-symbols/forms-of-input-and-output/form-variables/$printforms/</url> \
The variable <url>:\$PrintForms:/doc/reference-of-built-in-symbols/forms-of-input-and-output/form-variables/\$printforms</url> \
contains a list of Forms \
that are in this category. After formatting the \Mathics expression, these removing mention of the form.

While Forms that appear in '$PrintForms' can be altered at run time, \
below are the functions that appear in '$PrintForms' at startup.
While Forms that appear in '\$PrintForms' can be altered at run time, \
below are the functions that appear in '\$PrintForms' at startup.
"""

from mathics.builtin.box.layout import InterpretationBox, PaneBox, StyleBox
Expand Down
4 changes: 2 additions & 2 deletions mathics/builtin/kernel_sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

class Out(Builtin):
r"""
<url>:WMA: https://reference.wolfram.com/language/ref/\$Out</url>
<url>:WMA: https://reference.wolfram.com/language/ref/Out</url>
<dl>
<dt>'%$k$' or 'Out'[$k$]
<dt>'$\%k$' or 'Out'[$k$]
<dd>gives the result of the $k$-th input line.

<dt>'%'
Expand Down
6 changes: 3 additions & 3 deletions mathics/builtin/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ class All(Predefined):

In <url>
:Plot:
/doc/reference-of-built-in-symbols/graphics-and-drawing/plotting-data/plot</url>, \
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/general-graphical-plots/plot</url>, \
setting the <url>
:Mesh:
/doc/reference-of-built-in-symbols/graphics-and-drawing/drawing-options-and-option-values/mesh</url> \
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/drawing-options-and-option-values/mesh</url> \
option to 'All' will show the specific plot points:

>> Plot[x^2, {x, -1, 1}, MaxRecursion->5, Mesh->All]
Expand Down Expand Up @@ -182,7 +182,7 @@ class None_(Predefined):

Plot3D shows the mesh grid between computed points by default. This the <url>
:Mesh:
/doc/reference-of-built-in-symbols/graphics-and-drawing/drawing-options-and-option-values/mesh</url> \
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/drawing-options-and-option-values/mesh</url> \

However, you hide the mesh by setting the 'Mesh' option value to 'None':

Expand Down
Loading