Skip to content
Snippets Groups Projects
Commit 162ba335 authored by Luke Naylor's avatar Luke Naylor
Browse files

Move aux and output files to separate directories

parent 3433ec47
No related branches found
No related tags found
No related merge requests found
......@@ -9,15 +9,15 @@ pretex: rust_tex notebook_py_libs
# Sage artifacts which can only be generated after the first run of (pdf/lua)latex.
# `make main.sagetex.sout` is invoked by `latexmk -use-make` when needed
SAGETEXARTIFACT = main.sagetex.sout
SAGETEXARTIFACT = aux_files/main.sagetex.sout
# Location for all the python libraries generated from the jupyter notebooks:
GENERATED_PYLIBS_DIR=generated_py_libs
sage_artifacts: ${SAGETEXARTIFACT}
SAGETEXSCRIPT = main.sagetex.sage # generated by latex compile
${SAGETEXARTIFACT}: ${SAGETEXSCRIPT} notebook_py_libs
PYTHONPATH=./${GENERATED_PYLIBS_DIR} sage ${SAGETEXSCRIPT}
${SAGETEXARTIFACT}: aux_files/${SAGETEXSCRIPT} notebook_py_libs
cd aux_files && PYTHONPATH=../${GENERATED_PYLIBS_DIR} sage ${SAGETEXSCRIPT}
# PYTHON LIBS FROM NOTEBOOKS
......
......@@ -2,3 +2,6 @@
$pdf_mode = 1;
$pdflatex = 'lualatex -shell-escape -synctex=1 -interaction=nonstopmode';
@generated_exts = (@generated_exts, 'synctex.gz');
$use_make_for_missing_files = 1;
$aux_dir = 'aux_files';
$out_dir = 'latex_output';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment