latexcheck-2e5 1.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,86 @@
1
+ Metadata-Version: 2.4
2
+ Name: latexcheck-2e5
3
+ Version: 1.3.0
4
+ Summary: LaTeX linter
5
+ Author-email: Alex Dainiak <dainiak@gmail.com>
6
+ Project-URL: Homepage, https://github.com/Artoria2e5/latexcheck-py
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Requires-Python: >=3.8
9
+ Description-Content-Type: text/markdown
10
+ Requires-Dist: texsoup>=0.3.1
11
+
12
+ # LaTeXcheck — a linter for LaTeX documents
13
+
14
+ This is a console script version of a similarly designed [online LaTeX linter](https://www.dainiak.com/latexcheck/). The kind of errors that the program checks for are in the vein of [ChkTeX](https://ctan.org/pkg/chktex).
15
+
16
+ It is assumed that syntactic errors that lead to $\LaTeX$ compilation failures (like unbalanced parentheses) have been eliminated prior to running the tool.
17
+
18
+ Please note that the checker’s output may easily contain false positives. This is unlikely to be possible to completely eliminate due to $\LaTeX$ complexity and flexibility.
19
+
20
+ Installation:
21
+ ```bash
22
+ pip install latexcheck-2e5
23
+ ```
24
+
25
+ This fork is published as `latexcheck-2e5`; the console command is still `latexcheck`.
26
+
27
+ Usage:
28
+ ```bash
29
+ latexcheck somefile.tex
30
+ ```
31
+
32
+ Each finding is printed on one line as `path:line:column: CODE`, or `path:line:start_column-end_column: CODE` for a range. Pass `--grouped` for the older per-code output with snippets and explanations.
33
+
34
+ TeX math is often embedded in Markdown or other markup instead of living in a standalone `.tex` file. Use `--format` to lint the formulas in place:
35
+
36
+ ```bash
37
+ latexcheck --format doxygen doc.md
38
+ ```
39
+
40
+ Built-in formats:
41
+ - `tex` (default): the whole file is LaTeX.
42
+ - `markdown`: `$...$` and `$$...$$`.
43
+ - `doxygen`: `\f$...\f$` and `\f[...\f]` (used by OpenCV's docs).
44
+
45
+ Doxygen rules set `infer_line_prefix`: the comment marker before the opening delimiter (`*`, `///`, or `//!`) is reused for continuation lines. A rule may also set `line_prefix` to an explicit regex.
46
+
47
+ For other delimiters, pass a JSON config. A format with `extensions` is selected automatically when `--format` is omitted:
48
+
49
+ ```json
50
+ {
51
+ "formats": [
52
+ {
53
+ "name": "opencv",
54
+ "extensions": [".md"],
55
+ "rules": [
56
+ {"prefix": "\\f$", "suffix": "\\f$", "mode": "inline"},
57
+ {"prefix": "\\f[", "suffix": "\\f]", "mode": "display"}
58
+ ]
59
+ }
60
+ ]
61
+ }
62
+ ```
63
+
64
+ ```bash
65
+ latexcheck --config formats.json doc.md
66
+ ```
67
+
68
+ To silence a check that does not apply, use `--exclude` (repeatable, comma-separated):
69
+
70
+ ```bash
71
+ latexcheck --exclude MULTIPLICATION_SIGN doc.md
72
+ ```
73
+
74
+ Some checks have a mechanical fix. `--fix` prints a unified diff and leaves the file alone; `--write` applies the fixes in place:
75
+
76
+ ```bash
77
+ latexcheck --format doxygen --fix doc.md
78
+ latexcheck --format doxygen --write doc.md
79
+ ```
80
+
81
+ The fixer covers bare operator names (`max`), multiplication signs, Greek names, `\mbox`, low-level font commands, `\textit`, `>=`/`<=`, `\not =`/`\not \in`, ellipses, and inline math spans that only contain a single markup entity. It deliberately leaves prose and report-only checks alone; a diff is the safe way to review the rest.
82
+
83
+ Help:
84
+ ```bash
85
+ latexcheck --help
86
+ ```
@@ -0,0 +1,75 @@
1
+ # LaTeXcheck — a linter for LaTeX documents
2
+
3
+ This is a console script version of a similarly designed [online LaTeX linter](https://www.dainiak.com/latexcheck/). The kind of errors that the program checks for are in the vein of [ChkTeX](https://ctan.org/pkg/chktex).
4
+
5
+ It is assumed that syntactic errors that lead to $\LaTeX$ compilation failures (like unbalanced parentheses) have been eliminated prior to running the tool.
6
+
7
+ Please note that the checker’s output may easily contain false positives. This is unlikely to be possible to completely eliminate due to $\LaTeX$ complexity and flexibility.
8
+
9
+ Installation:
10
+ ```bash
11
+ pip install latexcheck-2e5
12
+ ```
13
+
14
+ This fork is published as `latexcheck-2e5`; the console command is still `latexcheck`.
15
+
16
+ Usage:
17
+ ```bash
18
+ latexcheck somefile.tex
19
+ ```
20
+
21
+ Each finding is printed on one line as `path:line:column: CODE`, or `path:line:start_column-end_column: CODE` for a range. Pass `--grouped` for the older per-code output with snippets and explanations.
22
+
23
+ TeX math is often embedded in Markdown or other markup instead of living in a standalone `.tex` file. Use `--format` to lint the formulas in place:
24
+
25
+ ```bash
26
+ latexcheck --format doxygen doc.md
27
+ ```
28
+
29
+ Built-in formats:
30
+ - `tex` (default): the whole file is LaTeX.
31
+ - `markdown`: `$...$` and `$$...$$`.
32
+ - `doxygen`: `\f$...\f$` and `\f[...\f]` (used by OpenCV's docs).
33
+
34
+ Doxygen rules set `infer_line_prefix`: the comment marker before the opening delimiter (`*`, `///`, or `//!`) is reused for continuation lines. A rule may also set `line_prefix` to an explicit regex.
35
+
36
+ For other delimiters, pass a JSON config. A format with `extensions` is selected automatically when `--format` is omitted:
37
+
38
+ ```json
39
+ {
40
+ "formats": [
41
+ {
42
+ "name": "opencv",
43
+ "extensions": [".md"],
44
+ "rules": [
45
+ {"prefix": "\\f$", "suffix": "\\f$", "mode": "inline"},
46
+ {"prefix": "\\f[", "suffix": "\\f]", "mode": "display"}
47
+ ]
48
+ }
49
+ ]
50
+ }
51
+ ```
52
+
53
+ ```bash
54
+ latexcheck --config formats.json doc.md
55
+ ```
56
+
57
+ To silence a check that does not apply, use `--exclude` (repeatable, comma-separated):
58
+
59
+ ```bash
60
+ latexcheck --exclude MULTIPLICATION_SIGN doc.md
61
+ ```
62
+
63
+ Some checks have a mechanical fix. `--fix` prints a unified diff and leaves the file alone; `--write` applies the fixes in place:
64
+
65
+ ```bash
66
+ latexcheck --format doxygen --fix doc.md
67
+ latexcheck --format doxygen --write doc.md
68
+ ```
69
+
70
+ The fixer covers bare operator names (`max`), multiplication signs, Greek names, `\mbox`, low-level font commands, `\textit`, `>=`/`<=`, `\not =`/`\not \in`, ellipses, and inline math spans that only contain a single markup entity. It deliberately leaves prose and report-only checks alone; a diff is the safe way to review the rest.
71
+
72
+ Help:
73
+ ```bash
74
+ latexcheck --help
75
+ ```
@@ -0,0 +1,29 @@
1
+ [build-system]
2
+ requires = ["setuptools>=42", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "latexcheck-2e5"
7
+ version = "1.3.0"
8
+ description = "LaTeX linter"
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ authors = [
12
+ {name = "Alex Dainiak", email = "dainiak@gmail.com"},
13
+ ]
14
+ classifiers = [
15
+ "License :: OSI Approved :: MIT License",
16
+ ]
17
+ dependencies = [
18
+ "texsoup>=0.3.1",
19
+ ]
20
+ urls = { "Homepage" = "https://github.com/Artoria2e5/latexcheck-py" }
21
+
22
+ [tool.setuptools]
23
+ package-dir = {"" = "src"}
24
+
25
+ [tool.setuptools.packages.find]
26
+ where = ["src"]
27
+
28
+ [project.scripts]
29
+ latexcheck = "latexcheck:main"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+