summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2020-07-26 13:44:28 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2020-07-26 13:44:28 +0200
commit611af200936a56d2c8ce3af95001615303f49d24 (patch)
tree537cd0bac450a5b54b9e63a5514600c394468520
parent8553ff5e291a90746f1d2bc05b6ad02bc05f7676 (diff)
Move from tikz to EPS:
- Needs ghostscript
-rw-r--r--guix.scm2
-rw-r--r--templates/book.latex119
-rw-r--r--templates/img/publishing_logo.eps156
3 files changed, 160 insertions, 117 deletions
diff --git a/guix.scm b/guix.scm
index fdbcbe8..9ab06d7 100644
--- a/guix.scm
+++ b/guix.scm
@@ -1,2 +1,2 @@
(specifications->manifest
- '("python-pyyaml" "python" "chibi-scheme" "ghc-pandoc" "make"))
+ '("python-pyyaml" "python" "chibi-scheme" "ghc-pandoc" "make" "ghostscript"))
diff --git a/templates/book.latex b/templates/book.latex
index 704d8c4..83b6d31 100644
--- a/templates/book.latex
+++ b/templates/book.latex
@@ -41,121 +41,7 @@
]{$documentclass$}
\usepackage{tikz}
-\newcommand{\logo}[1]{
- \begin{tikzpicture}[y=0.80pt, x=0.80pt, yscale=-{#1}, xscale={#1}, inner sep=0pt, outer sep=0pt]
- \begin{scope}[shift={(3.54331,-984.39026)}]
- \begin{scope}[shift={(-161.98599,807.24042)}]
- \begin{scope}[shift={(-13.57143,-11.78571)},fill=black,line join=miter,line cap=butt,line width=0.800pt]
- \path[fill] (175.5574,234.4789) -- (203.0824,234.4789) -- (203.0824,231.7789) --
- (178.7824,231.7789) -- (178.7824,214.5289) -- (199.3324,214.5289) --
- (199.3324,211.8289) -- (178.7824,211.8289) -- (178.7824,195.9289) --
- (203.0824,195.9289) -- (203.0824,193.2289) -- (175.5574,193.2289) --
- (175.5574,234.4789) -- cycle;
- \path[fill] (208.2234,234.4789) -- (211.4484,234.4789) -- (211.4484,193.2289) --
- (208.2234,193.2289) -- (208.2234,234.4789) -- cycle;
- \path[fill] (216.6375,219.7039) .. controls (216.6375,230.9539) and
- (225.3375,235.3039) .. (233.1375,235.3039) .. controls (244.9875,235.3039) and
- (248.4375,230.5789) .. (249.1875,226.0789) -- (245.5875,226.0789) .. controls
- (244.8375,227.9539) and (243.4125,232.0789) .. (233.1375,232.0789) .. controls
- (227.2125,232.0789) and (220.6875,228.4789) .. (220.1625,221.0539) --
- (249.1875,221.0539) -- (249.1875,217.8289) .. controls (248.4375,207.4039) and
- (242.7375,202.0789) .. (233.1375,202.0789) .. controls (223.5375,202.0789) and
- (216.6375,209.2789) .. (216.6375,219.7039) -- cycle(220.3125,217.8289) ..
- controls (221.3625,209.9539) and (225.4875,205.2289) .. (233.4375,205.2289) ..
- controls (241.3875,205.2289) and (244.8375,210.3289) .. (245.5875,217.8289) --
- (220.3125,217.8289) -- cycle;
- \path[fill] (254.5875,234.4789) -- (257.8125,234.4789) -- (257.8125,208.6039) ..
- controls (259.3875,206.5789) and (262.8375,205.3789) .. (268.0125,205.3789) ..
- controls (271.6125,205.3789) and (276.1125,206.7289) .. (276.1125,213.0289) --
- (276.1125,234.4789) -- (279.5625,234.4789) -- (279.5625,213.0289) .. controls
- (279.5625,204.7789) and (273.4125,202.0789) .. (268.0125,202.0789) .. controls
- (262.4625,202.0789) and (258.9375,203.4289) .. (257.8125,206.1289) --
- (257.8125,202.9039) -- (254.5875,202.9039) -- (254.5875,234.4789) -- cycle;
- \path[fill] (284.5312,213.8539) .. controls (284.5312,225.0289) and
- (293.8313,235.3039) .. (305.1562,235.3039) .. controls (309.9563,235.3039) and
- (314.3062,233.4289) .. (317.8313,230.5039) -- (322.6313,234.4789) --
- (326.3813,234.4789) -- (319.7812,228.7039) .. controls (323.4563,224.7289) and
- (325.7812,219.4039) .. (325.7812,213.8539) .. controls (325.7812,202.7539) and
- (316.5562,192.4789) .. (305.1562,192.4789) .. controls (293.7563,192.4789) and
- (284.5312,202.6789) .. (284.5312,213.8539) -- cycle(287.8313,213.8539) ..
- controls (287.8313,204.7039) and (295.4062,195.5539) .. (305.1562,195.5539) ..
- controls (314.9062,195.5539) and (322.4812,204.7039) .. (322.4812,213.8539) ..
- controls (322.4812,223.0039) and (314.9062,232.2289) .. (305.1562,232.2289) ..
- controls (295.4062,232.2289) and (287.8313,223.0039) .. (287.8313,213.8539) --
- cycle;
- \end{scope}
- \begin{scope}[fill=black,line join=miter,line cap=butt,line width=0.800pt]
- \path[fill] (176.4077,232.6768) -- (180.4452,232.6768) -- (180.4452,244.8605) --
- (181.4665,244.8605) -- (181.4665,232.6768) -- (185.5277,232.6768) --
- (185.5277,231.7980) -- (176.4077,231.7980) -- (176.4077,232.6768) -- cycle;
- \path[fill] (187.0132,244.8605) -- (195.7295,244.8605) -- (195.7295,244.0055) --
- (188.0345,244.0055) -- (188.0345,238.5430) -- (194.5420,238.5430) --
- (194.5420,237.6880) -- (188.0345,237.6880) -- (188.0345,232.6530) --
- (195.7295,232.6530) -- (195.7295,231.7980) -- (187.0132,231.7980) --
- (187.0132,244.8605) -- cycle;
- \path[fill] (197.2387,238.3293) .. controls (197.2387,242.6043) and
- (199.2099,245.1218) .. (202.8674,245.1218) .. controls (205.6699,245.1218) and
- (208.0212,243.6255) .. (208.0212,241.4880) -- (206.8812,241.4880) .. controls
- (206.8812,242.7943) and (205.3137,244.1005) .. (202.8674,244.1005) .. controls
- (199.7087,244.1005) and (198.3549,241.0368) .. (198.3549,238.3293) .. controls
- (198.3549,235.2180) and (200.1837,232.5580) .. (202.9624,232.5580) .. controls
- (205.3849,232.5580) and (206.8812,233.8168) .. (206.8812,235.2418) --
- (208.0212,235.2418) .. controls (208.0212,232.8905) and (205.6699,231.5605) ..
- (202.8674,231.5605) .. controls (198.9724,231.5605) and (197.2387,235.0280) ..
- (197.2387,238.3293) -- cycle;
- \path[fill] (209.6499,244.8605) -- (210.6712,244.8605) -- (210.6712,238.5430) --
- (217.1787,238.5430) -- (217.1787,244.8605) -- (218.1999,244.8605) --
- (218.1999,231.7980) -- (217.1787,231.7980) -- (217.1787,237.6880) --
- (210.6712,237.6880) -- (210.6712,231.7980) -- (209.6499,231.7980) --
- (209.6499,244.8605) -- cycle;
- \path[fill] (219.9942,244.8605) -- (221.0392,244.8605) -- (221.0392,233.7455) --
- (228.2354,244.8605) -- (229.2567,244.8605) -- (229.2567,231.7980) --
- (228.2354,231.7980) -- (228.2354,243.0318) -- (221.0392,231.7980) --
- (219.9942,231.7980) -- (219.9942,244.8605) -- cycle;
- \path[fill] (230.8917,238.3293) .. controls (230.8917,241.8680) and
- (233.8367,245.1218) .. (237.4229,245.1218) .. controls (241.0092,245.1218) and
- (243.9542,241.8680) .. (243.9542,238.3293) .. controls (243.9542,234.8143) and
- (241.0329,231.5605) .. (237.4229,231.5605) .. controls (233.8129,231.5605) and
- (230.8917,234.7905) .. (230.8917,238.3293) -- cycle(231.9367,238.3293) ..
- controls (231.9367,235.4318) and (234.3354,232.5343) .. (237.4229,232.5343) ..
- controls (240.5104,232.5343) and (242.9092,235.4318) .. (242.9092,238.3293) ..
- controls (242.9092,241.2268) and (240.5104,244.1480) .. (237.4229,244.1480) ..
- controls (234.3354,244.1480) and (231.9367,241.2268) .. (231.9367,238.3293) --
- cycle;
- \path[fill] (245.5521,244.8605) -- (253.4609,244.8605) -- (253.4609,243.8393) --
- (246.5734,243.8393) -- (246.5734,231.7980) -- (245.5521,231.7980) --
- (245.5521,244.8605) -- cycle;
- \path[fill] (254.9200,238.3293) .. controls (254.9200,241.8680) and
- (257.8650,245.1218) .. (261.4513,245.1218) .. controls (265.0375,245.1218) and
- (267.9825,241.8680) .. (267.9825,238.3293) .. controls (267.9825,234.8143) and
- (265.0613,231.5605) .. (261.4513,231.5605) .. controls (257.8413,231.5605) and
- (254.9200,234.7905) .. (254.9200,238.3293) -- cycle(255.9650,238.3293) ..
- controls (255.9650,235.4318) and (258.3638,232.5343) .. (261.4513,232.5343) ..
- controls (264.5388,232.5343) and (266.9375,235.4318) .. (266.9375,238.3293) ..
- controls (266.9375,241.2268) and (264.5388,244.1480) .. (261.4513,244.1480) ..
- controls (258.3638,244.1480) and (255.9650,241.2268) .. (255.9650,238.3293) --
- cycle;
- \path[fill] (269.5092,238.3293) .. controls (269.5092,242.6043) and
- (271.4805,245.1218) .. (275.1380,245.1218) .. controls (276.7767,245.1218) and
- (278.2255,244.5993) .. (279.1517,243.7443) -- (279.1517,244.8605) --
- (280.1730,244.8605) -- (280.1730,238.4480) -- (274.9480,238.4480) --
- (274.9480,239.4693) -- (279.1517,239.4693) -- (279.1517,241.4880) .. controls
- (279.1517,242.7943) and (277.5842,244.1005) .. (275.1380,244.1005) .. controls
- (271.9792,244.1005) and (270.6255,241.0368) .. (270.6255,238.3293) .. controls
- (270.6255,235.2180) and (272.4542,232.5580) .. (275.2330,232.5580) .. controls
- (277.6555,232.5580) and (279.1517,233.8168) .. (279.1517,235.2418) --
- (280.1730,235.2418) .. controls (280.1730,232.8905) and (277.9405,231.5605) ..
- (275.1380,231.5605) .. controls (271.2430,231.5605) and (269.5092,235.0280) ..
- (269.5092,238.3293) -- cycle;
- \path[fill] (281.6818,231.7980) -- (286.4318,239.4218) -- (286.4318,244.8605) --
- (287.4531,244.8605) -- (287.4531,239.4218) -- (292.2268,231.7980) --
- (291.0868,231.7980) -- (286.9543,238.4480) -- (282.8456,231.7980) --
- (281.6818,231.7980) -- cycle;
- \end{scope}
- \end{scope}
- \end{scope}
- \end{tikzpicture}}
-
+\usepackage{epstopdf}
% Language control from Metadata
$if(lang)$
@@ -527,7 +413,8 @@ $endfor$
\cleartoleftpage
\thispagestyle{empty}
\null\vfill
-\logo{0.8}
+%\logo{0.8}
+\includegraphics[]{templates/img/publishing_logo.eps}
\vspace{0cm}
\end{document}
diff --git a/templates/img/publishing_logo.eps b/templates/img/publishing_logo.eps
new file mode 100644
index 0000000..4d12b1f
--- /dev/null
+++ b/templates/img/publishing_logo.eps
@@ -0,0 +1,156 @@
+%!PS-Adobe-3.0 EPSF-3.0
+%%Creator: cairo 1.16.0 (https://cairographics.org)
+%%CreationDate: Sun Jul 26 12:46:57 2020
+%%Pages: 1
+%%DocumentData: Clean7Bit
+%%LanguageLevel: 2
+%%BoundingBox: 4 4 125 56
+%%EndComments
+%%BeginProlog
+50 dict begin
+/q { gsave } bind def
+/Q { grestore } bind def
+/cm { 6 array astore concat } bind def
+/w { setlinewidth } bind def
+/J { setlinecap } bind def
+/j { setlinejoin } bind def
+/M { setmiterlimit } bind def
+/d { setdash } bind def
+/m { moveto } bind def
+/l { lineto } bind def
+/c { curveto } bind def
+/h { closepath } bind def
+/re { exch dup neg 3 1 roll 5 3 roll moveto 0 rlineto
+ 0 exch rlineto 0 rlineto closepath } bind def
+/S { stroke } bind def
+/f { fill } bind def
+/f* { eofill } bind def
+/n { newpath } bind def
+/W { clip } bind def
+/W* { eoclip } bind def
+/BT { } bind def
+/ET { } bind def
+/BDC { mark 3 1 roll /BDC pdfmark } bind def
+/EMC { mark /EMC pdfmark } bind def
+/cairo_store_point { /cairo_point_y exch def /cairo_point_x exch def } def
+/Tj { show currentpoint cairo_store_point } bind def
+/TJ {
+ {
+ dup
+ type /stringtype eq
+ { show } { -0.001 mul 0 cairo_font_matrix dtransform rmoveto } ifelse
+ } forall
+ currentpoint cairo_store_point
+} bind def
+/cairo_selectfont { cairo_font_matrix aload pop pop pop 0 0 6 array astore
+ cairo_font exch selectfont cairo_point_x cairo_point_y moveto } bind def
+/Tf { pop /cairo_font exch def /cairo_font_matrix where
+ { pop cairo_selectfont } if } bind def
+/Td { matrix translate cairo_font_matrix matrix concatmatrix dup
+ /cairo_font_matrix exch def dup 4 get exch 5 get cairo_store_point
+ /cairo_font where { pop cairo_selectfont } if } bind def
+/Tm { 2 copy 8 2 roll 6 array astore /cairo_font_matrix exch def
+ cairo_store_point /cairo_font where { pop cairo_selectfont } if } bind def
+/g { setgray } bind def
+/rg { setrgbcolor } bind def
+/d1 { setcachedevice } bind def
+/cairo_data_source {
+ CairoDataIndex CairoData length lt
+ { CairoData CairoDataIndex get /CairoDataIndex CairoDataIndex 1 add def }
+ { () } ifelse
+} def
+/cairo_flush_ascii85_file { cairo_ascii85_file status { cairo_ascii85_file flushfile } if } def
+/cairo_image { image cairo_flush_ascii85_file } def
+/cairo_imagemask { imagemask cairo_flush_ascii85_file } def
+%%EndProlog
+%%BeginSetup
+%%EndSetup
+%%Page: 1 1
+%%BeginPageSetup
+%%PageBoundingBox: 4 4 125 56
+%%EndPageSetup
+q 4 4 121 52 rectclip
+1 0 0 -1 0 58 cm q
+0 g
+4.074 35.84 m 26.105 35.84 l 26.105 33.684 l 6.652 33.684 l 6.652 19.887
+ l 23.105 19.887 l 23.105 17.715 l 6.652 17.715 l 6.652 4.996 l 26.105 4.996
+ l 26.105 2.84 l 4.074 2.84 l h
+4.074 35.84 m f
+30.176 2.84 2.578 33 re f
+36.957 24.027 m 36.957 33.027 43.91 36.496 50.16 36.496 c 59.645 36.496
+ 62.395 32.715 63.004 29.121 c 60.113 29.121 l 59.52 30.621 58.379 33.918
+ 50.16 33.918 c 45.41 33.918 40.191 31.043 39.785 25.105 c 63.004 25.105
+ l 63.004 22.527 l 62.395 14.184 57.832 9.918 50.16 9.918 c 42.473 9.918
+ 36.957 15.684 36.957 24.027 c h
+39.895 22.527 m 40.738 16.215 44.035 12.434 50.395 12.434 c 56.754 12.434
+ 59.52 16.527 60.113 22.527 c h
+39.895 22.527 m f
+67.316 35.84 m 69.895 35.84 l 69.895 15.137 l 71.16 13.527 73.91 12.559
+ 78.051 12.559 c 80.941 12.559 84.535 13.637 84.535 18.684 c 84.535 35.84
+ l 87.301 35.84 l 87.301 18.684 l 87.301 12.074 82.379 9.918 78.051 9.918
+ c 73.613 9.918 70.801 10.996 69.895 13.152 c 69.895 10.574 l 67.316 10.574
+ l h
+67.316 35.84 m f
+91.316 19.34 m 91.316 28.277 98.754 36.496 107.816 36.496 c 111.66 36.496
+ 115.145 34.996 117.957 32.652 c 121.801 35.84 l 124.801 35.84 l 119.52
+31.215 l 122.457 28.043 124.316 23.777 124.316 19.34 c 124.316 10.465 116.941
+ 2.246 107.816 2.246 c 98.707 2.246 91.316 10.402 91.316 19.34 c h
+93.957 19.34 m 93.957 12.027 100.02 4.699 107.816 4.699 c 115.613 4.699
+ 121.676 12.027 121.676 19.34 c 121.676 26.652 115.613 34.043 107.816 34.043
+ c 100.02 34.043 93.957 26.652 93.957 19.34 c h
+93.957 19.34 m f
+21.512 53.375 m 22.34 53.375 l 22.34 48.484 l 24.574 48.484 l 28.559 48.484
+ 28.402 46 28.402 45.625 c 28.418 43.953 27.262 42.922 25.371 42.922 c 21.512
+ 42.922 l h
+22.34 47.781 m 22.34 43.609 l 25.137 43.609 l 26.559 43.609 27.621 44.406
+ 27.621 45.625 c 27.621 47.016 26.559 47.781 25.137 47.781 c h
+22.34 47.781 m f
+30.781 50.016 m 30.781 52.422 32 53.578 34.391 53.578 c 36.797 53.578 37.984
+ 52.422 37.984 50.016 c 37.984 42.922 l 37.172 42.922 l 37.172 49.828 l
+37.172 51.734 36.328 52.766 34.391 52.766 c 32.453 52.766 31.609 51.719
+31.609 49.828 c 31.609 42.922 l 30.781 42.922 l h
+30.781 50.016 m f
+40.539 53.375 m 44.398 53.375 l 46.289 53.375 47.43 52.344 47.43 50.672
+ c 47.43 49.734 46.961 48.391 45.445 48.031 c 45.93 47.906 46.867 47.219
+ 46.867 45.453 c 46.867 43.891 45.727 42.922 43.789 42.922 c 40.539 42.922
+ l h
+41.367 52.688 m 41.367 48.516 l 44.164 48.516 l 45.586 48.516 46.648 49.297
+ 46.648 50.672 c 46.648 51.891 45.586 52.688 44.164 52.688 c h
+41.367 47.812 m 41.367 43.625 l 43.602 43.625 l 44.977 43.625 46.086 44.406
+ 46.086 45.453 c 46.086 47.062 44.961 47.812 43.602 47.812 c h
+41.367 47.812 m f
+49.805 53.375 m 56.133 53.375 l 56.133 52.562 l 50.633 52.562 l 50.633
+42.922 l 49.805 42.922 l h
+49.805 53.375 m f
+58.559 42.922 0.812 10.453 re f
+61.77 45.562 m 61.77 47.547 63.348 47.891 65.223 48.266 c 66.504 48.531
+ 68.426 48.719 68.426 50.625 c 68.426 52.062 66.863 52.766 65.66 52.766
+c 63.707 52.766 62.801 52.203 62.379 51.984 c 61.754 52.734 l 62.504 53.203
+ 63.332 53.578 65.66 53.578 c 67.551 53.578 69.316 52.062 69.316 50.625
+c 69.316 48.281 67.723 47.891 65.551 47.453 c 64.613 47.234 62.66 47.141
+ 62.66 45.562 c 62.66 44.219 63.754 43.531 65.082 43.547 c 67.035 43.547
+ 67.754 44.016 68.176 44.219 c 68.801 43.594 l 68.035 43.109 67.41 42.734
+ 65.082 42.734 c 63.082 42.734 61.77 44.156 61.77 45.562 c h
+61.77 45.562 m f
+71.754 53.375 m 72.566 53.375 l 72.566 48.328 l 77.77 48.328 l 77.77 53.375
+ l 78.598 53.375 l 78.598 42.922 l 77.77 42.922 l 77.77 47.641 l 72.566
+47.641 l 72.566 42.922 l 71.754 42.922 l h
+71.754 53.375 m f
+81.145 42.922 0.812 10.453 re f
+84.512 53.375 m 85.34 53.375 l 85.34 44.484 l 91.105 53.375 l 91.918 53.375
+ l 91.918 42.922 l 91.105 42.922 l 91.105 51.906 l 85.34 42.922 l 84.512
+ 42.922 l h
+84.512 53.375 m f
+94.375 48.156 m 94.375 51.562 95.953 53.578 98.875 53.578 c 100.188 53.578
+ 101.344 53.172 102.078 52.484 c 102.078 53.375 l 102.906 53.375 l 102.906
+ 48.25 l 98.719 48.25 l 98.719 49.062 l 102.078 49.062 l 102.078 50.672
+l 102.078 51.719 100.828 52.766 98.875 52.766 c 96.344 52.766 95.266 50.312
+ 95.266 48.156 c 95.266 45.656 96.719 43.531 98.953 43.531 c 100.891 43.531
+ 102.078 44.547 102.078 45.688 c 102.906 45.688 l 102.906 43.797 101.109
+ 42.734 98.875 42.734 c 95.75 42.734 94.375 45.516 94.375 48.156 c h
+94.375 48.156 m f
+Q Q
+showpage
+%%Trailer
+end
+%%EOF