From f75a96c9f78cb0f29891296df6e409dd0bc52117 Mon Sep 17 00:00:00 2001 From: Michael Georg Hansen Date: Wed, 28 Oct 2020 16:29:20 +0100 Subject: [PATCH] Improve documentation. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 724dfab..5b343a9 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,13 @@ 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.