Skip to content

Commit

Permalink
Add system overview figure
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Jun 4, 2015
1 parent d364952 commit 0eff9b9
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 283 deletions.
18 changes: 10 additions & 8 deletions usersguide-sphinx/Makefile
Expand Up @@ -115,13 +115,6 @@ epub:
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."

latex: source/logo.pdf
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@echo "Run \`make' in that directory to run these through (pdf)latex" \
"(use \`make latexpdf' here to do that automatically)."

latexpdf:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through pdflatex..."
Expand Down Expand Up @@ -192,9 +185,18 @@ pseudoxml:
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
@echo
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."

latex: source/logo.pdf source/media/systemoverview.pdf
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@echo "Run \`make' in that directory to run these through (pdf)latex" \
"(use \`make latexpdf' here to do that automatically)."
pdf: latex
sed -i "s/usepackage.utf8..inputenc./usepackage[utf8x]{inputenc}/" build/latex/OpenModelicaUsersGuide.tex
sed -i "/DeclareUnicodeCharacter/d" build/latex/OpenModelicaUsersGuide.tex
(cd build/latex && latexmk -pdf OpenModelicaUsersGuide.tex)
source/logo.pdf: source/logo.svg
rsvg-convert -f pdf -o $@ $<
inkscape -f $< -A $@
source/media/systemoverview.pdf: source/media/systemoverview.svg
inkscape -f $< --export-pdf $@
3 changes: 3 additions & 0 deletions usersguide-sphinx/source/conf.py
Expand Up @@ -365,3 +365,6 @@

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'https://docs.python.org/': None}

numfig = True
numfig_format = {'figure': "Figure %s", 'table': "Table %s", 'code-block': "Listing %s"}

0 comments on commit 0eff9b9

Please sign in to comment.