]> git.siccegge.de Git - teilnehmertool.git/commitdiff
toolchain optimized: use totags then topdf you get all-nup.pdf to print
authorMatthias Wirth <re97kobe@stud.informatik.uni-erlangen.de>
Sun, 27 Oct 2013 13:13:58 +0000 (14:13 +0100)
committerMatthias Wirth <re97kobe@stud.informatik.uni-erlangen.de>
Sun, 27 Oct 2013 13:13:58 +0000 (14:13 +0100)
nametag/topdf.sh [deleted file]
templates/nametag.svg
totags.sh

diff --git a/nametag/topdf.sh b/nametag/topdf.sh
deleted file mode 100755 (executable)
index 3446b43..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-for f in *.svg ;do echo $f; inkscape -z -A "$f.pdf" -- "$f"; done
-pdftk *.pdf output final/all.pdf
-pdfnup --nup 2x4 --no-landscape --a4paper  final/all.pdf
-
index 8478d24c8f6a670a6de9051303cbae1f961da713..a438244966166df241aeeb531b18731463134857 100644 (file)
@@ -14,7 +14,7 @@
    height="265.74802"
    id="svg2"
    version="1.1"
-   inkscape:version="0.48.4 r9939"
+   inkscape:version="0.48.3.1 r9886"
    inkscape:export-filename="/tmp/nametag.png"
    inkscape:export-xdpi="90"
    inkscape:export-ydpi="90">
      inkscape:pageopacity="1"
      inkscape:pageshadow="2"
      inkscape:zoom="1.1445313"
-     inkscape:cx="362.199"
-     inkscape:cy="32.226214"
+     inkscape:cx="273.3109"
+     inkscape:cy="146.68827"
      inkscape:document-units="px"
      inkscape:current-layer="layer1"
      showgrid="false"
      units="mm"
-     inkscape:window-width="1365"
-     inkscape:window-height="751"
+     inkscape:window-width="1916"
+     inkscape:window-height="529"
      inkscape:window-x="0"
-     inkscape:window-y="16"
+     inkscape:window-y="547"
      inkscape:window-maximized="0">
     <inkscape:grid
        type="xygrid"
      inkscape:groupmode="layer"
      inkscape:label="Layer 1">
     <rect
-       y="787.14893"
-       x="0.56504059"
-       height="70.866142"
-       width="371.62375"
+       y="794.82812"
+       x="8.8201303"
+       height="61.725994"
+       width="352.44714"
        id="rect4172"
        style="fill:#00386b;fill-opacity:1;stroke:none" />
     <g
        style="fill-rule:nonzero"
        inkscape:label="Ebene 1"
        id="layer1-5"
-       transform="matrix(0.18289475,0,0,0.18289475,-31.474341,758.92865)">
+       transform="matrix(0.18289475,0,0,0.18289475,-27.474341,760.92865)">
       <g
          style="fill-rule:nonzero"
          id="g6406"
     <text
        sodipodi:linespacing="125%"
        id="text3200"
-       y="807.52002"
+       y="809.52002"
        x="76.525444"
        style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Source Sans Pro;-inkscape-font-specification:Source Sans Pro"
        xml:space="preserve"><tspan
-         y="807.52002"
+         y="809.52002"
          x="76.525444"
          id="tspan3202"
          sodipodi:role="line">KIF 41,5</tspan><tspan
          id="tspan3204"
-         y="827.52002"
+         y="829.52002"
          x="76.525444"
          sodipodi:role="line">Friedrich-Alexander-Universität</tspan><tspan
          id="tspan3206"
-         y="847.52002"
+         y="849.52002"
          x="76.525444"
          sodipodi:role="line">Erlangen-Nürnberg</tspan></text>
     <rect
-       y="1017.8843"
-       x="-0.31188965"
-       height="35.433071"
-       width="372.12375"
+       y="1022.4544"
+       x="7.9884515"
+       height="25.183802"
+       width="352.92139"
        id="rect4172-0"
        style="fill:#00386b;fill-opacity:1;stroke:none" />
     <text
        xml:space="preserve"
        style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Source Sans Pro;-inkscape-font-specification:Source Sans Pro"
-       x="4"
+       x="12"
        y="1039.5862"
        id="text5667"
        sodipodi:linespacing="125%"><tspan
          sodipodi:role="line"
-         x="4"
+         x="12"
          y="1039.5862"
          id="tspan5671">Orga-Telefon:</tspan></text>
     <text
        xml:space="preserve"
        style="font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Source Sans Pro;-inkscape-font-specification:Source Sans Pro"
-       x="211"
+       x="197"
        y="1019.3622"
        id="text5673"
        sodipodi:linespacing="125%"><tspan
          sodipodi:role="line"
          id="tspan5675"
-         x="211"
+         x="197"
          y="1019.3622" /><tspan
          sodipodi:role="line"
-         x="211"
+         x="197"
          y="1039.3622"
          id="tspan5679">0157 / 33 23 28 23</tspan></text>
   </g>
   <text
      sodipodi:linespacing="125%"
      id="text2985"
-     y="158.07401"
-     x="183.96881"
-     style="font-size:88px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Source Sans Pro;-inkscape-font-specification:Source Sans Pro"
-     xml:space="preserve"><tspan
-       y="158.07401"
-       x="183.96881"
+     y="152.73964"
+     x="189.94026"
+     style="
+       {% if nick|length > 14 %} font-size:45px;
+       {% elif nick|length > 10 %} font-size:55px;
+       {% elif nick|length > 8 %} font-size:65px;
+       {% else %} font-size:80px;
+       {% endif %}
+       width=100%;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Source Sans Pro;-inkscape-font-specification:Source Sans Pro"
+     xml:space="preserve"
+     transform="scale(0.96625396,1.0349246)"><tspan
+       y="152.73964"
+       x="189.94026"
        id="tspan2987"
        sodipodi:role="line">{{nick}}</tspan></text>
   <text
index f850781947991835a341f634f3b7a78bf841ff72..e38082e1a0e43b136d0e8758947b132ee68e1639 100755 (executable)
--- a/totags.sh
+++ b/totags.sh
@@ -1 +1,3 @@
+rm -v -- nametag/*.svg
+mkdir nametag
 ./teilnehmertool.py --nametag -o nametag