Wrapper around pdflatex to use pythontex in lyx.
Go to file
2020-10-29 13:09:31 +01:00
.gitignore Add .gitignore file. 2020-10-28 16:23:53 +01:00
demo-document.lyx Initial import. 2020-10-25 21:38:08 +01:00
demo-multirun.lyx Add a way to request two pythontex runs. 2020-10-28 16:24:31 +01:00
LICENSE.txt Add license file. 2020-10-25 21:42:14 +01:00
pythontex-wrapper.sh Remove stray debug output and properly log output of pythontex. 2020-10-29 13:09:31 +01:00
README.md Improve documentation. 2020-10-28 16:29:20 +01:00
references.bib Initial import. 2020-10-25 21:38:08 +01:00

pythontex-wrapper License: CC0-1.0

Wrapper around pdflatex to use pythontex in lyx.

Usage

Modify an existing format converter in lyx (for example pdflatex) to use pythontex-wrapper.sh instead of pdflatex.

You can edit the CONVERTERS SECTION in the lyx configuration file ~/.lyx/preferences:

#
# CONVERTERS SECTION ##########################
#

\converter "pdflatex" "pdf2" "/home/mike/src/latex-stuff/python/lyx/pythontex-wrapper.sh $$i" "latex=pdflatex,hyperref-driver=pdftex"

This will change the pdflatex generator to use the pythontex-wrapper. If no pythontex-code is contained in your document, pythontex will not be run and you will get normal pdflatex output. I could not find a way to generate a pdflatex+pythontex format that works as expected.