Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Änderungen des Skriptes für die Regionallogos #1

Merged
merged 2 commits into from
Sep 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
all: build/s4f-regionalgruppen-logos.zip


build/bars.pdf: plot_bars.py | build
python plot_bars.py


build/s4f_logo_dortmund.pdf: regionalgruppen.txt build/bars.pdf logo.tex create_logos.py
build/s4f_logo_dortmund.pdf: regionalgruppen.txt logo.tex create_logos.py
python create_logos.py


Expand Down
8 changes: 8 additions & 0 deletions create_logos.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ def build_logo(regionalgruppe):
'--export-plain-svg=' + filename + '.svg',
], cwd=OUTDIR, stdout=sp.PIPE, check=True)

sp.run([
'inkscape',
filename + '.pdf',
'--without-gui',
'--export-text-to-path',
'--export-pdf=' + filename + '.pdf',
], cwd=OUTDIR, stdout=sp.PIPE, check=True)

print(regionalgruppe, 'done')


Expand Down
2 changes: 1 addition & 1 deletion logo.tex
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

\begin{scope}
\clip (0, 0) circle (3.34cm);
\node[anchor=center] at (0, 0) {\includegraphics[height=6.68cm]{build/bars.pdf}};
\node[anchor=center] at (0, 0) {\includegraphics[height=6.68cm]{warming_stripes_circle.pdf}};
\end{scope}

\path[
Expand Down
35 changes: 0 additions & 35 deletions plot_bars.py

This file was deleted.

Binary file added warming_stripes_circle.pdf
Binary file not shown.