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

Include build step for a file containing just the sage in main.tex

parent 9179ff76
No related branches found
No related tags found
No related merge requests found
main.* main.*
!main.tex !main.tex
filtered_sage.txt
...@@ -14,6 +14,9 @@ main.sagetex.sout: ${SAGETEXSCRIPT} ${PYPLOTFILES} ...@@ -14,6 +14,9 @@ main.sagetex.sout: ${SAGETEXSCRIPT} ${PYPLOTFILES}
${SAGETEXSCRIPT}: ${TEXFILES} ${SAGETEXSCRIPT}: ${TEXFILES}
latexmk -interaction=nonstopmode ${MAINTEXFILE} || echo this shoud fail latexmk -interaction=nonstopmode ${MAINTEXFILE} || echo this shoud fail
filtered_sage.txt: ${MAINTEXFILE} filter_sage.sed
./filter_sage.sed ${MAINTEXFILE} > $@
.PHONY: clean .PHONY: clean
clean: clean:
rm -rf **/__pycache__ rm -rf **/__pycache__
......
#!/usr/bin/sed -f
0,/^\\begin{sagesilent}/d
/^\\end{sagesilent}/,/^\\begin{sagesilent}/{
s;.*\\sage{\(.*\)}.*;\n# RENDERED TO LATEX: \1\n;p
d
}
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