1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
|
removed `\mathrm{\LaTeX}` code snippets which Sphinx does not
translate correctly, replaced them with LaTeX. Closes debian bug #940843
Index: sympy/doc/src/modules/parsing.rst
===================================================================
--- sympy.orig/doc/src/modules/parsing.rst
+++ sympy/doc/src/modules/parsing.rst
@@ -57,15 +57,15 @@ don't need to be manually added by the u
.. autofunction:: sympy.parsing.sympy_parser.factorial_notation
-Experimental `\mathrm{\LaTeX}` Parsing
+Experimental LaTeX Parsing
--------------------------------------
The current implementations are experimental. The behavior, parser backend(s) and
-API might change in the future. Unlike some of the other parsers, `\mathrm{\LaTeX}` is
+API might change in the future. Unlike some of the other parsers, LaTeX is
designed as a *type-setting* language, not a *computer algebra system* and so
can contain typographical conventions that might be interpreted multiple ways.
-`\mathrm{\LaTeX}` Parsing Functions Reference
+LaTeX Parsing Functions Reference
---------------------------------------------
.. autofunction:: sympy.parsing.latex.parse_latex
@@ -73,14 +73,14 @@ can contain typographical conventions th
ANTLR Backend
^^^^^^^^^^^^^
-The ANTLR-based `\mathrm{\LaTeX}` parser was ported from
+The ANTLR-based LaTeX parser was ported from
`latex2sympy <https://github.com/augustt198/latex2sympy>`_. While functional
and its API should remain stable, the parsing behavior or backend may change in
future releases.
.. _ANTLR parser caveats:
-ANTLR `\mathrm{\LaTeX}` Parser Caveats
+ANTLR LaTeX Parser Caveats
""""""""""""""""""""""""""""""""""""""
In its current definition, the parser may fail to fully parse
@@ -98,7 +98,7 @@ The Lark-based LaTeX parser is newer, an
replace the ANTLR-based parser. It has most of the features that the ANTLR-based
parser provides, with some extras.
-Lark `\mathrm{\LaTeX}` Parser Features
+Lark LaTeX Parser Features
""""""""""""""""""""""""""""""""""""""
One thing to note is that the Lark backend does not support ill-formed expressions,
@@ -118,15 +118,15 @@ Apart from that, there are a couple of e
supports that the ANTLR-based parser does not. They are:
1. Detecting ambiguous expressions, and
-2. Allowing user-customization of the `\mathrm{\LaTeX}` grammar at runtime.
+2. Allowing user-customization of the LaTeX grammar at runtime.
-Expressions like `f(x)` are technically ambiguous `\mathrm{\LaTeX}` expressions
+Expressions like `f(x)` are technically ambiguous LaTeX expressions
because the `f` might be a function or a variable name. Lark has the capability to
point out these ambiguities and notify the user, or even return all possible
interpretations.
The Lark-based parser exposes a number of internals which allow the user to customize
-the parser's behavior. For example, the user can specify their own `\mathrm{\LaTeX}`
+the parser's behavior. For example, the user can specify their own LaTeX
grammar by passing the path to the grammar file to the ``LarkLaTeXParser`` while
instantiating the parser.
@@ -137,7 +137,7 @@ The two examples mentioned above can be
`test_custom_latex.py <https://github.com/sympy/sympy/blob/395e820b114d2b169483354f1f4ee2f439faa292/sympy/parsing/tests/test_custom_latex.py>`_
file.
-Lark `\mathrm{\LaTeX}` Parser Capabilities
+Lark LaTeX Parser Capabilities
""""""""""""""""""""""""""""""""""""""""""
In order to use the Lark-based LaTeX parser, it is important to know what it can
@@ -207,19 +207,19 @@ may be added in the future:
* Double and triple integrals.
-Lark `\mathrm{\LaTeX}` Parser Functions
+Lark LaTeX Parser Functions
"""""""""""""""""""""""""""""""""""""""
.. autofunction:: sympy.parsing.latex.parse_latex_lark
-Lark `\mathrm{\LaTeX}` Parser Classes
+Lark LaTeX Parser Classes
"""""""""""""""""""""""""""""""""""""
.. autoclass:: sympy.parsing.latex.lark.LarkLaTeXParser
.. autoclass:: sympy.parsing.latex.lark.TransformToSymPyExpr
-`\mathrm{\LaTeX}` Parsing Exceptions Reference
+LaTeX Parsing Exceptions Reference
----------------------------------------------
.. autoclass:: sympy.parsing.latex.LaTeXParsingError
Index: sympy/doc/src/modules/solvers/solveset.rst
===================================================================
--- sympy.orig/doc/src/modules/solvers/solveset.rst
+++ sympy/doc/src/modules/solvers/solveset.rst
@@ -241,7 +241,7 @@ Why not use dicts as output?
represent partial solution of the given equation `fg = 0` using dicts.
This problem is solved with sets using a ``ConditionSet`` object:
- `sol_f \cup \{x | x ∊ \mathbb{R} ∧ g = 0\}`, where `sol_f` is the solution
+ `sol_f \cup \{x | x \in \mathbb{R} \land g = 0\}`, where `sol_f` is the solution
of the equation `f = 0`.
* Using a dict may lead to surprising results like:
@@ -507,7 +507,7 @@ How do we deal with cases where only som
We can represent it as:
- `\{-2, 2\} ∪ \{x | x \in \mathbb{R} ∧ x + \sin(x) = 0\}`
+ `\{-2, 2\} \cup \{x | x \in \mathbb{R} \land x + \sin(x) = 0\}`
How are symbolic parameters handled in solveset?
Index: sympy/doc/src/tutorials/intro-tutorial/intro.rst
===================================================================
--- sympy.orig/doc/src/tutorials/intro-tutorial/intro.rst
+++ sympy/doc/src/tutorials/intro-tutorial/intro.rst
@@ -111,7 +111,7 @@ to do all sorts of computations symbolic
compute derivatives, integrals, and limits, solve equations, work with
matrices, and much, much more, and do it all symbolically. It includes
modules for plotting, printing (like 2D pretty printed output of math
-formulas, or `\mathrm{\LaTeX}`), code generation, physics, statistics, combinatorics,
+formulas, or LaTeX), code generation, physics, statistics, combinatorics,
number theory, geometry, logic, and more. Here is a small sampling of the sort
of symbolic power SymPy is capable of, to whet your appetite.
@@ -175,7 +175,7 @@ spherical Bessel function `j_\nu(z)`.
────────────────────
√π
-Print `\int_{0}^{\pi} \cos^{2}{\left (x \right )}\, dx` using `\mathrm{\LaTeX}`.
+Print `\int_{0}^{\pi} \cos^{2}{\left (x \right )}\, dx` using LaTeX.
>>> latex(Integral(cos(x)**2, (x, 0, pi)))
\int\limits_{0}^{\pi} \cos^{2}{\left(x \right)}\, dx
Index: sympy/doc/src/tutorials/intro-tutorial/printing.rst
===================================================================
--- sympy.orig/doc/src/tutorials/intro-tutorial/printing.rst
+++ sympy/doc/src/tutorials/intro-tutorial/printing.rst
@@ -59,17 +59,17 @@ create some common Symbols, setup plotti
In any case, this is what will happen:
-- In the IPython QTConsole, if `\mathrm{\LaTeX}` is installed, it will enable a printer
- that uses `\mathrm{\LaTeX}`.
+- In the IPython QTConsole, if LaTeX is installed, it will enable a printer
+ that uses LaTeX.
.. image:: ../../pics/ipythonqtconsole.png
:height: 500
- If `\mathrm{\LaTeX}` is not installed, but Matplotlib is installed, it will use the
+ If LaTeX is not installed, but Matplotlib is installed, it will use the
Matplotlib rendering engine. If Matplotlib is not installed, it uses the
Unicode pretty printer.
-- In the IPython notebook, it will use MathJax to render `\mathrm{\LaTeX}`.
+- In the IPython notebook, it will use MathJax to render LaTeX.
.. image:: ../../pics/ipythonnotebook.png
:height: 250
@@ -86,7 +86,7 @@ In any case, this is what will happen:
.. image:: ../../pics/consoleascii.png
:width: 700
-To explicitly not use `\mathrm{\LaTeX}`, pass ``use_latex=False`` to ``init_printing()``
+To explicitly not use LaTeX, pass ``use_latex=False`` to ``init_printing()``
or ``init_session()``. To explicitly not use Unicode, pass
``use_unicode=False``.
@@ -177,10 +177,10 @@ pass ``use_unicode=True`` to force it to
.. _LaTeX:
-`\mathrm{\LaTeX}`
+LaTeX
-----------------
-To get the `\mathrm{\LaTeX}` form of an expression, use ``latex()``.
+To get the LaTeX form of an expression, use ``latex()``.
>>> print(latex(Integral(sqrt(1/x), x)))
\int \sqrt{\frac{1}{x}}\, dx
Index: sympy/doc/src/contributing/dependencies.md
===================================================================
--- sympy.orig/doc/src/contributing/dependencies.md
+++ sympy/doc/src/contributing/dependencies.md
@@ -111,7 +111,7 @@ images rendered with LaTeX. `preview()`
show it with a viewer.
(dependencies-latex)=
-- **LaTeX**: A $\mathrm{\LaTeX}$ distributions such as [TeXLive](https://tug.org/texlive/) or
+- **LaTeX**: A LaTeX distributions such as [TeXLive](https://tug.org/texlive/) or
[MiKTeX](https://miktex.org/) is required for {func}`~.preview` to function.
### Parsing
|