Skip to content
Snippets Groups Projects
Commit 17fde8d0 authored by Holger Dinkel's avatar Holger Dinkel
Browse files

update makefiles to NOT produce black boxes around codeblocks in PDF output

parent e39847aa
No related branches found
No related tags found
No related merge requests found
......@@ -78,17 +78,13 @@ qthelp:
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/IntroductiontotheLinuxCommandline.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/IntroductiontotheLinuxCommandline.qhc"
devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/IntroductiontotheLinuxCommandline"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/IntroductiontotheLinuxCommandline"
@echo "# devhelp"
epub:
......@@ -115,6 +111,7 @@ latexpdf:
sed -i -e 's/\\usepackage\[utf8\]{inputenc}/\\usepackage[utf8]{inputenc}\\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}/g' $(BUILDDIR)/latex/*.tex
sed -i -e 's|begin{Verbatim}\[|begin{Verbatim}\[frame=single, rulecolor=\\color{lightgray}, fontfamily=courier, |' $(BUILDDIR)/latex/*.tex
sed -i -e 's|\\fancyhead\[LE,RO\]{{\\py@HeaderFamily \\@title, \\py@release}}|\\fancyhead\[LE,RO\]{{\\py@HeaderFamily \\@title}}|' $(BUILDDIR)/latex/sphinx.sty
sed -i -e 's|\\definecolor{VerbatimBorderColor}{rgb}{0,0,0}|\\definecolor{VerbatimBorderColor}{rgb}{1,1,1}|' $(BUILDDIR)/latex/sphinx.sty
sed -i -e 's|^\\release.*||' $(BUILDDIR)/latex/*.tex
echo 'delim_0 "\\\dotfill"' >> $(BUILDDIR)/latex/python.ist
echo 'delim_1 "\\\dotfill"' >> $(BUILDDIR)/latex/python.ist
......
......@@ -78,17 +78,13 @@ qthelp:
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/IntroductiontotheLinuxCommandline.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/IntroductiontotheLinuxCommandline.qhc"
devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/IntroductiontotheLinuxCommandline"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/IntroductiontotheLinuxCommandline"
@echo "# devhelp"
epub:
......@@ -114,6 +110,7 @@ latexpdf:
sed -i -e 's/\\usepackage\[utf8\]{inputenc}/\\usepackage[utf8]{inputenc}\\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}/g' $(BUILDDIR)/latex/*.tex
sed -i -e 's|begin{Verbatim}\[|begin{Verbatim}\[frame=single, rulecolor=\\color{lightgray}, fontfamily=courier, |' $(BUILDDIR)/latex/*.tex
sed -i -e 's|\\fancyhead\[LE,RO\]{{\\py@HeaderFamily \\@title, \\py@release}}|\\fancyhead\[LE,RO\]{{\\py@HeaderFamily \\@title}}|' $(BUILDDIR)/latex/sphinx.sty
sed -i -e 's|\\definecolor{VerbatimBorderColor}{rgb}{0,0,0}|\\definecolor{VerbatimBorderColor}{rgb}{1,1,1}|' $(BUILDDIR)/latex/sphinx.sty
sed -i -e 's|^\\release.*||' $(BUILDDIR)/latex/*.tex
echo 'delim_0 "\\\dotfill"' >> $(BUILDDIR)/latex/python.ist
echo 'delim_1 "\\\dotfill"' >> $(BUILDDIR)/latex/python.ist
......
......@@ -78,17 +78,13 @@ qthelp:
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/LinuxCourse.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/LinuxCourse.qhc"
devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/LinuxCourse"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/LinuxCourse"
@echo "# devhelp"
epub:
......@@ -111,10 +107,12 @@ latex:
latexpdf:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Hacking TeXfile..."
sed -i -e 's/\\usepackage\[utf8\]{inputenc}/\\usepackage[utf8]{inputenc}\\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}/g' $(BUILDDIR)/latex/*.tex
sed -i -e 's/\\usepackage\[utf8\]{inputenc}/\\usepackage[utf8]{inputenc}\\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}\\usepackage{pdfpages}/g' $(BUILDDIR)/latex/*.tex
sed -i -e 's|begin{Verbatim}\[|begin{Verbatim}\[frame=single, rulecolor=\\color{lightgray}, fontfamily=courier, |' $(BUILDDIR)/latex/*.tex
sed -i -e 's|\\fancyhead\[LE,RO\]{{\\py@HeaderFamily \\@title, \\py@release}}|\\fancyhead\[LE,RO\]{{\\py@HeaderFamily \\@title}}|' $(BUILDDIR)/latex/sphinx.sty
sed -i -e 's|\\definecolor{VerbatimBorderColor}{rgb}{0,0,0}|\\definecolor{VerbatimBorderColor}{rgb}{1,1,1}|' $(BUILDDIR)/latex/sphinx.sty
sed -i -e 's|^\\release.*||' $(BUILDDIR)/latex/*.tex
sed -i -e 's|\\end{document}|\\ifthenelse{\\isodd{\\pageref{LastPage}}}{\\null\\clearpage\\thispagestyle{empty}}{}\\includepdf[pages=1]{../../_static/fwunixref.pdf}\\end{document} |' $(BUILDDIR)/latex/*.tex
echo 'delim_0 "\\\dotfill"' >> $(BUILDDIR)/latex/python.ist
echo 'delim_1 "\\\dotfill"' >> $(BUILDDIR)/latex/python.ist
echo 'delim_2 "\\\dotfill"' >> $(BUILDDIR)/latex/python.ist
......
......@@ -78,17 +78,13 @@ qthelp:
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/IntermediateLinuxCourse.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/IntermediateLinuxCourse.qhc"
devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/IntermediateLinuxCourse"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/IntermediateLinuxCourse"
@echo "# devhelp"
epub:
......@@ -115,6 +111,7 @@ latexpdf:
sed -i -e 's/\\usepackage\[utf8\]{inputenc}/\\usepackage[utf8]{inputenc}\\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}\\usepackage{pdfpages}/g' $(BUILDDIR)/latex/*.tex
sed -i -e 's|begin{Verbatim}\[|begin{Verbatim}\[frame=single, rulecolor=\\color{lightgray}, fontfamily=courier, |' $(BUILDDIR)/latex/*.tex
sed -i -e 's|\\fancyhead\[LE,RO\]{{\\py@HeaderFamily \\@title, \\py@release}}|\\fancyhead\[LE,RO\]{{\\py@HeaderFamily \\@title}}|' $(BUILDDIR)/latex/sphinx.sty
sed -i -e 's|\\definecolor{VerbatimBorderColor}{rgb}{0,0,0}|\\definecolor{VerbatimBorderColor}{rgb}{1,1,1}|' $(BUILDDIR)/latex/sphinx.sty
sed -i -e 's|^\\release.*||' $(BUILDDIR)/latex/*.tex
sed -i -e 's|\\end{document}|\\ifthenelse{\\isodd{\\pageref{LastPage}}}{\\null\\clearpage\\thispagestyle{empty}}{}\\includepdf[pages=1]{../../_static/fwunixref.pdf}\\end{document} |' $(BUILDDIR)/latex/*.tex
echo 'delim_0 "\\\dotfill"' >> $(BUILDDIR)/latex/python.ist
......
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