██╗ █████╗ ████████╗███████╗██╗ ██╗████████╗ ██████╗ ██████╗███╗ ██╗███████╗ ██║ ██╔══██╗╚══██╔══╝██╔════╝╚██╗██╔╝╚══██╔══╝██╔═══██╗██╔════╝████╗ ██║██╔════╝ ██║ ███████║ ██║ █████╗ ╚███╔╝ ██║ ██║ ██║██║ ██╔██╗ ██║█████╗ ██║ ██╔══██║ ██║ ██╔══╝ ██╔██╗ ██║ ██║ ██║██║ ██║╚██╗██║██╔══╝ ███████╗██║ ██║ ██║ ███████╗██╔╝ ██╗ ██║ ╚██████╔╝╚██████╗██║ ╚████║██║ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═══╝╚═╝
python cli to convert latex input to CNF(Conjunctive Normal Form).
Installation
pip install this repo.
pip3 install LatexToCNF
Usage example
To get help with commandline arguments
LatexToCNF --help
Using Command-line Arguments
LatexToCNF -f "/path/to/folder/myinput.tex"
(or)
LatexToCNF -f "/path/to/folder/myinput.txt"
(or)
LatexToCNf --filepath "/path/to/folder/myinput.tex"
(or)
LatexToCNF --filepath "/path/to/folder/myinput.txt"
Sample input file
myinput.tex
\neg \neg p
\neg p \wedge q \rightarrow p \wedge (r \rightarrow q)
r \rightarrow (s \rightarrow (t \wedge s \rightarrow r))
myinput.text
\neg \neg p
\neg p \wedge q \rightarrow p \wedge (r \rightarrow q)
r \rightarrow (s \rightarrow (t \wedge s \rightarrow r))
output
line-1: p
line-2: (((p \vee (\neg q)) \vee p) \wedge ((p \vee (\neg q)) \vee ((\neg r) \vee q)))
line-3: ((\neg r) \vee ((\neg s) \vee (((\neg t) \vee (\neg s)) \vee r)))
Meta
Azgmohammadd – azgmohammadd@gmail.com
Distributed under the MIT license. See LICENSE for more information.
https://github.com/azgmohammadd
Contributing
- Fork it (https://github.com/azgmohammadd/azgmohammadd/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request
Metadata
Release files for LatexToCNF 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| LatexToCNF-0.1.4.tar.gz | 6.3 kB | Without provenance | Details for LatexToCNF-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| LatexToCNF-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for LatexToCNF-0.1.4-py3-none-any.whl |
Total release size: 14.1 kB
Release files / LatexToCNF-0.1.4.tar.gz
| Download URL | LatexToCNF-0.1.4.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a93c2a4ac6ec67c5b5355271229bd491f3cbcb64482e04c22775727afc4e40ac
|
|
BLAKE2b-256 checksum How to use checksums |
eb5fb9a3ded8ad38e2fb2cc3918e35849492901f660a9d903b503313309908cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / LatexToCNF-0.1.4-py3-none-any.whl
| Download URL | LatexToCNF-0.1.4-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46dc4072e00afb4484dc4a298c45bf1f8b895636de232a9b254664cb32b36e20
|
|
BLAKE2b-256 checksum How to use checksums |
b318f2bed3fe304d6cf139570ccac815055e2a61983089d7c4a5f851e8bccd28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for LatexToCNF 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.