Skip to content

Commit

Permalink
Remove notebook prompts from LaTeX output by sed removing them from t…
Browse files Browse the repository at this point in the history
…he tex file
  • Loading branch information
jobovy committed Mar 18, 2020
1 parent 27308c0 commit 7d95ea0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion notes/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ help:
latexpdf: Makefile
mkdir -p build/latex
cp "$(SOURCEDIR)/package.png" "$(BUILDDIR)/latex"
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
- bash -c ' (make latex LATEXMKOPTS="-f" LATEXOPTS="-f -interaction=nonstopmode" PAPER="letter") || echo itsallfine '
sed 's/\\llap{\\color{nbsphinxin}\[[0-9]*\]:\\,\\hspace{\\fboxrule}\\hspace{\\fboxsep}}//g' build/latex/code-packaging-minicourse.tex > tmp
mv tmp build/latex/code-packaging-minicourse.tex
make -C build/latex code-packaging-minicourse.pdf LATEXMKOPTS="-f" LATEXOPTS="-f -interaction=nonstopmode" PAPER="letter"

html: Makefile
- bash -c ' (make latexpdf LATEXMKOPTS="-f" LATEXOPTS="-f -interaction=nonstopmode" PAPER="letter") || echo itsallfine '
Expand Down

0 comments on commit 7d95ea0

Please sign in to comment.