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

BUGFIX: LaTeX Error: Option clash for package graphicx.

parent f4c5f540
No related branches found
No related tags found
No related merge requests found
......@@ -111,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 '/graphicx/d' $(BUILDDIR)/latex/sphinx.sty # Hack to prevent error '! LaTeX Error: Option clash for package graphicx.' while compiling
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
......
......@@ -110,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 '/graphicx/d' $(BUILDDIR)/latex/sphinx.sty # Hack to prevent error '! LaTeX Error: Option clash for package graphicx.' while compiling
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
......
......@@ -110,6 +110,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 '/graphicx/d' $(BUILDDIR)/latex/sphinx.sty # Hack to prevent error '! LaTeX Error: Option clash for package graphicx.' while compiling
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
......
......@@ -111,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 '/graphicx/d' $(BUILDDIR)/latex/sphinx.sty # Hack to prevent error '! LaTeX Error: Option clash for package graphicx.' while compiling
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
......
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