0

I'm trying to use Pythontex on Vim Latex-suite, compiling with arara 3.

I've tried the method that Uwe Ziegenhagen proposed here : Arara rule for Pythontex

I put exactly the same pythontex.yaml file in the right directory, i have Pythontex installed in my texmf... But when i try this :

% arara: lualatex: {synctex: yes, action: nonstopmode, options: "-file-line-error-style"}
% arara: pythontex
% arara: lualatex: {synctex: yes, action: nonstopmode, options: "-file-line-error-style"}

\documentclass[a4paper]{article}
\usepackage{pythontex}
\begin{document}

\begin{pycode}
a=5
print(a)
\end{pycode}
\end{document}

nothing happens... I precise that compiling with arara is ok otherwise (i use it to compile with luacode or to generate bibliographies...).

Any idea ??

7
  • Welcome to TeX.SE. The document works fine. Did you try it on the command line, without arara? – frougon Apr 11 '20 at 16:40
  • Thanks. I'm not sure to understand... I've modified my texrc in order to have a pdf output, and changed the CompileRule_pdf in TexLet g:Tex_CompileRule_pdf = 'arara -v $*' so i can compile with my arara parameters juste with the \ll command – Nnomuas Apr 11 '20 at 16:46
  • I asked if you could run the compilation commands in a terminal and obtain the expected result. If this is the case (for me, it is), this would imply that pythontex is correctly installed on your computer and the question would remain an arara configuration problem. Without this info, there is still doubt about where the issue lies. – frougon Apr 11 '20 at 17:10
  • Ok. The result of the pythontex compilation in my terminal is " This is PythonTeX 0.16 * PythonTeX error The version of the PythonTeX scripts does not match the last code saved by the document--run LaTeX to create an updated version. " so i guess pythontex is actually the problem...? – Nnomuas Apr 11 '20 at 17:12
  • In my case, PythonTeX prints This is PythonTeX 0.17 -------------------------------------------------- PythonTeX: document - 0 error(s), 0 warning(s). Not sure what happens on your side. Did you try it in a clean folder, with only the .tex file to begin with? – frougon Apr 11 '20 at 17:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.