██╗ █████╗ ████████╗███████╗██╗ ██╗████████╗ ██████╗ ██████╗███╗ ██╗███████╗ ██║ ██╔══██╗╚══██╔══╝██╔════╝╚██╗██╔╝╚══██╔══╝██╔═══██╗██╔════╝████╗ ██║██╔════╝ ██║ ███████║ ██║ █████╗ ╚███╔╝ ██║ ██║ ██║██║ ██╔██╗ ██║█████╗ ██║ ██╔══██║ ██║ ██╔══╝ ██╔██╗ ██║ ██║ ██║██║ ██║╚██╗██║██╔══╝ ███████╗██║ ██║ ██║ ███████╗██╔╝ ██╗ ██║ ╚██████╔╝╚██████╗██║ ╚████║██║ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═══╝╚═╝
python cli to convert latex input to CNF(Conjunctive Normal Form).
pip install this repo.
pip3 install LatexToCNF
LatexToCNF --help
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"
\neg \neg p
\neg p \wedge q \rightarrow p \wedge (r \rightarrow q)
r \rightarrow (s \rightarrow (t \wedge s \rightarrow r))
\neg \neg p
\neg p \wedge q \rightarrow p \wedge (r \rightarrow q)
r \rightarrow (s \rightarrow (t \wedge s \rightarrow r))
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
Azgmohammadd – azgmohammadd@gmail.com
Distributed under the MIT license. See LICENSE
for more information.
https://github.com/azgmohammadd
- 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