Skip to content
forked from xyz2tex/dot2tex

Convert graphs generated by Graphviz to LaTeX friendly formats. Python 3.5+ version. Not official, not (yet) on PyPI, but it works fine!

License

Notifications You must be signed in to change notification settings

Naereen/dot2tex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dot2tex - A Graphviz to LaTeX converter

Hack on the original dot2tex project to port it to Python 3.


Tests

Testing for Python 2

cd /tmp/
git clone https://github.com/Naereen/dot2tex/
cd dot2tex
sudo pip2 install virtualenv
# activate virtualenv
virtualenv2 venv
./venv/bin/activate
type python2  # should be ./venv/bin/python2
type pip2  # should be ./venv/bin/pip2
pip2 install pyparsing
# examples
cd examples
for i in ./*.dot; do
    python2 ../dot2tex/dot2tex $i
done
echo "Examples passed!"
cd ..
# build and install in the virtualenv
python2 setup.py install
echo "Installed correctly!"
# tests
cd tests
for i in ./*.py; do
    python2 $i
done
echo "Tests passed!"

Testing for Python 3

cd /tmp/
git clone https://github.com/Naereen/dot2tex/
cd dot2tex
sudo pip3 install virtualenv
# activate virtualenv
virtualenv3 venv
./venv/bin/activate
type python3  # should be ./venv/bin/python3
type pip3  # should be ./venv/bin/pip3
pip3 install pyparsing
# examples
cd examples
for i in ./*.dot; do
    python3 ../dot2tex/dot2tex $i
done
echo "Examples passed!"
cd ..
# build and install in the virtualenv
python3 setup.py install
echo "Installed correctly!"
# tests
cd tests
for i in ./*.py; do
    python3 $i
done
echo "Tests passed!"

Author

Lilian Besson (Naereen).

📜 License ? GitHub license

This plug-in is published under the terms of the GPLv3 License (file LICENSE), © Lilian Besson, 2016.

Maintenance Ask Me Anything ! Analytics made-with-python

ForTheBadge uses-badges ForTheBadge uses-git

ForTheBadge built-with-love

About

Convert graphs generated by Graphviz to LaTeX friendly formats. Python 3.5+ version. Not official, not (yet) on PyPI, but it works fine!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%