eg. Let say we have a python file songbook-makeindex.py which required input as .xsd file extension and give output as .sbx file extension, which needs to be run inside the latex file.
\documentclass{article}
{here some required packages}
\begin{document}
songbook-makeindex.py english_auth.sxd > english_auth.sbx
songbook-makeindex.py english_title.sxd > english_title.sbx
\end{document}
Best Answer
It could be a single file for all? I mean LaTeX code plus python code plus python output all mixed in one file with the
.Rnw
extension.If so, you must convert it to
.tex
withR
andknitr
and then compile the LaTeX file as usual, or munch better, left to Rstudio to take care of the whole process.Example: