Tex2txt: a flexible LaTeX filter
This Python script or module extracts plain text from LaTeX documents. Due to the following characteristics, it may be integrated with a proofreading software:
- tracking of line numbers or character positions during text manipulations,
- simple inclusion of own LaTeX macros and environments with tailored treatment,
- careful conservation of text flows,
- detection of trailing interpunction in equations,
- proper handling of nestable LaTeX elements like {} braces.
A more complete description is available at the GitHub page. For instance, the LaTeX input
Only few people\footnote{We use
\textcolor{red}{redx colour.}}
is lazy.
will lead to the subsequent output from example application script shell.py. The script invokes LanguageTool as proofreading software, using a local installation or the Web server hosted by LanguageTool.
1.) Line 2, column 17, Rule ID: MORFOLOGIK_RULE_EN_GB
Message: Possible spelling mistake found
Suggestion: red; Rex; reds; redo; Red; Rede; redox; red x
Only few people is lazy. We use redx colour.
^^^^
2.) Line 3, column 1, Rule ID: PEOPLE_VBZ[1]
Message: If 'people' is plural here, don't use the third-person singular verb.
Suggestion: am; are; aren
Only few people is lazy. We use redx colour.
^^
Run with option --html, the script produces an HTML report:
Metadata
Release files for tex2txt 1.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tex2txt-1.7.0.tar.gz | 31.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tex2txt-1.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.1 kB
Release files / tex2txt-1.7.0.tar.gz
| Download URL | tex2txt-1.7.0.tar.gz |
|---|---|
| Size | 31.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1930a27132cdc7ad6146871c48445e75cf059009861f56d9a410d3376000c02
|
|
BLAKE2b-256 checksum How to use checksums |
554e5efcd2f5ce0036dd137df30d6e6b1c9dfa35f01752504bc58f8e50f8f326
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.9
|
Release files / tex2txt-1.7.0-py3-none-any.whl
| Download URL | tex2txt-1.7.0-py3-none-any.whl |
|---|---|
| Size | 43.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d77f5167c62d314669ff90edbdb04e451b386ee9ee3f4fe5d7d20cab92b1697e
|
|
BLAKE2b-256 checksum How to use checksums |
957bd317768b6d41168aeff00c70929fb9f9797ebf0b1fe20391d3a383f16592
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.9
|