Skip to content

Commit cf2544d

Browse files
committed
Corrected LaTex -> LaTeX
1 parent 3acdbab commit cf2544d

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The main features include:
1919
- The implementation of a Hilbert-style proof system
2020
- Automated theorem proving with the resolution procedure
2121

22-
The library also supports LaTex code generation for most of its functionalities.
22+
The library also supports LaTeX code generation for most of its functionalities.
2323

2424
For the complete documentation, see [https://cubix1729.github.io/logicalpy/](https://cubix1729.github.io/logicalpy/).
2525

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The main features include:
1919
- The implementation of a Hilbert-style proof system
2020
- Automated theorem proving with the resolution procedure
2121

22-
The library also supports LaTex code generation for most of its functionalities.
22+
The library also supports LaTeX code generation for most of its functionalities.
2323

2424
## Installation
2525

docs/usage/hilbert-style-proof-system.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ Example interactive proof of $A \to A$:
6969
\end{enumerate}
7070
```
7171

72-
Like for truth tables, the LaTex generated is not supported by MathJax, as it uses the `enumerate` environnement.
73-
With a LaTex compiler, it would render like this:
72+
Like for truth tables, the LaTeX generated is not supported by MathJax, as it uses the `enumerate` environnement.
73+
With a LaTeX compiler, it would render like this:
7474

75-
![LaTex Rendering](./hilbert_style_proof_example.svg){: style="height:180px;width:578px"}
75+
![LaTeX Rendering](./hilbert_style_proof_example.svg){: style="height:180px;width:578px"}
7676

7777
## Creating a new axiom system
7878

docs/usage/semantic-functions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Semantics functions are contained in the [`semantics`](../api-reference/logicalp
66

77
Truth tables can be built using the `TruthTable` class. Then, the string representation of the truth table
88
can be found with the `to_str` method (or directly with the `str` built-in constructor).
9-
You can also use the `to_latex()` or `to_markdown()` methods to render the truth table to LaTex or Markdown.
9+
You can also use the `to_latex()` or `to_markdown()` methods to render the truth table to LaTeX or Markdown.
1010

1111
Example:
1212

@@ -51,10 +51,10 @@ The above Markdown renders as follow:
5151

5252
!!! note
5353

54-
The LaTex code generated for a truth table uses the `tabular` environment, and it cannot be rendered using MathJax, but only
55-
using a pure LaTex compiler. Here is how the above LaTex code generated would render:
54+
The LaTeX code generated for a truth table uses the `tabular` environment, and it cannot be rendered using MathJax, but only
55+
using a pure LaTeX compiler. Here is how the above LaTeX code generated would render:
5656

57-
![LaTex rendering](./truth_table_latex_example.svg){: style="height:122px;width:238px"}
57+
![LaTeX rendering](./truth_table_latex_example.svg){: style="height:122px;width:238px"}
5858
<!---I doubled the dimentions of the image (w=119 and h=61) -->
5959

6060

docs/usage/using-formulae.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Using Formulae
22

3-
## Latex Rendering
3+
## LaTeX Rendering
44

5-
Formulae can be rendered as LaTex code, with the `to_latex()` method of `Formula` objects.
5+
Formulae can be rendered as LaTeX code, with the `to_latex()` method of `Formula` objects.
66
Example:
77

88
```python
@@ -12,7 +12,7 @@ Example:
1212
$(P \to (\neg P \land P)) \lor Q$
1313
```
1414

15-
The above LaTex would render as follow: $(P \to (\neg P \land P)) \lor Q$
15+
The above LaTeX would render as follow: $(P \to (\neg P \land P)) \lor Q$
1616

1717
## Equality testing
1818

src/logicalpy/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,10 @@ def __hash__(self) -> int:
399399
return hash(str(self))
400400

401401
def to_latex(self) -> str:
402-
"""Renders the formula as LaTex code
402+
"""Renders the formula as LaTeX code
403403
404404
Returns:
405-
(str): the LaTex representation of the formula, as inline math
405+
(str): the LaTeX representation of the formula, as inline math
406406
407407
"""
408408
formula_latex = self._formula.to_latex()

src/logicalpy/hilbert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ def __str__(self) -> str:
198198
return "\n".join(result_lines)
199199

200200
def to_latex(self) -> str:
201-
"""Renders the proof to LaTex
201+
"""Renders the proof to LaTeX
202202
203203
Returns:
204-
(str): the LaTex representation of the proof, which uses the `enumerate` environnement
204+
(str): the LaTeX representation of the proof, which uses the `enumerate` environnement
205205
206206
"""
207207
result_lines = [r"\begin{enumerate}"]

src/logicalpy/semantics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, formula: Formula):
2424
self._latex_table = None
2525

2626
def to_str(self) -> str:
27-
"""Renders the truth table as a str with the `tabulate` library (style used: 'simple')
27+
"""Renders the truth table as a str using the `tabulate` library (style used: 'simple')
2828
2929
Returns:
3030
(str): the truth table
@@ -112,10 +112,10 @@ def to_markdown(self) -> str:
112112
return self._str_table
113113

114114
def to_latex(self) -> str:
115-
"""Renders the truth table as LaTex (with the `tabulate` library)
115+
"""Renders the truth table as LaTeX (with the `tabulate` library)
116116
117117
Returns:
118-
(str): the LaTex output, which uses the `tabular` LaTex environment
118+
(str): the LaTeX output, which uses the `tabular` LaTeX environment
119119
120120
"""
121121
if self._latex_table is not None:

0 commit comments

Comments
 (0)