Skip to content

Commit

Permalink
fix sed expression for changing svg to pdf in .tex
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo committed Dec 20, 2018
1 parent 79083ae commit d08d562
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UsersGuide/Makefile
Expand Up @@ -212,11 +212,12 @@ ADDED_SVGS=$(wildcard source/ProfilingTest_*.svg)
addedPdfs: $(ADDED_SVGS:%.svg=%.pdf)
pdf: latex
$(MAKE) addedPdfs
cp source/ProfilingTest_*.pdf build/latex/.
sed -i "s/usepackage.utf8..inputenc./usepackage[utf8x]{inputenc}/" build/latex/OpenModelicaUsersGuide.tex
sed -i -e "/^ *\\\\DeclareUnicodeCharacter/d" build/latex/OpenModelicaUsersGuide.tex
# sphinx seems to only handle .* extension for images?
sed -i "s,{\(media/[A-Za-z_0-9.-]*\)[.][*],{`pwd`/source/\1.pdf,g" build/latex/OpenModelicaUsersGuide.tex
sed -i "s,{ProfilingTest_prof[.]\([^.]*\)[.]thumb[.]svg,{`pwd`/source/ProfilingTest_prof-\1-thumb.pdf,g" build/latex/OpenModelicaUsersGuide.tex
sed -i "s,{ProfilingTest_prof[.]\([^.]*\)[.]thumb}[.]svg,{`pwd`/source/ProfilingTest_prof-\1-thumb}.pdf,g" build/latex/OpenModelicaUsersGuide.tex
(cd build/latex && latexmk -pdf OpenModelicaUsersGuide.tex)
source/logo.pdf: source/logo.svg
inkscape -f $< -A $@
Expand Down

0 comments on commit d08d562

Please sign in to comment.