Permalink
Browse files

* Introduce new book cover by Sebastian Riedel

* Include CC license in the back cover
* reorganize image handling in the build process
  • Loading branch information...
1 parent 7f38858 commit 6151b7167ec04e312d5445d611bbe2ea6fd54cb9 @rassie rassie committed Aug 15, 2010
View
@@ -33,7 +33,6 @@ html: prepare $(CHAPTERS) bin/book-to-html
$(PERL) bin/book-to-html $(CHAPTERS) > $(BOOK).html
pdf: tex lib/Makefile
- cp src/mmd-table.svg build/mmd-table.svg
cd build && make -I ../lib -f ../lib/Makefile
tex: prepare $(CHAPTERS) lib/Perl6BookLatex.pm lib/book.sty bin/book-to-latex
View
@@ -8,9 +8,13 @@
12pt,
twoside,
openright,
- cleardoublepage=plain
+ cleardoublepage=plain,
+ BCOR=0
]{scrbook}
+% For (r) and (c)
+\usepackage{textcomp}
+
% XeTeX unicode support -- e.g. character replacements
\usepackage{xunicode}
@@ -31,6 +35,9 @@
% For index generation. Supplies \printindex.
\usepackage{index}
+% For cover
+\usepackage{eso-pic}
+
% Fonts.
\usepackage{fontspec}
\setromanfont[Mapping=tex-text]{Minion Pro}
@@ -271,37 +278,41 @@
\begin{document}
-\subject{\includegraphics{../src/perl6logo}}
-\title{Using Perl~6}
+\AddToShipoutPicture*{%
+\includegraphics[width=\paperwidth]{../src/images/cover.jpg}
+}
+
+\titlehead{}
+\subject{}
+\title{}
\subtitle{}
\author{}
\date{}
\publishers{}
+\uppertitleback{
+ {\bfseries Credits}
+ \begin{description}
+ \item[Text] Jonathan S. Duff, Moritz Lenz, Carl Mäsak, Patrick R. Michaud, Jonathan Worthington with numerous contributions from the community.
+ \item[Front cover] Sebastian Riedel (\url{http://kraih.com})
+ \item[Fonts]Adobe Minion® Pro, Adobe Myriad® Pro, B\&H Luxi Mono
+ \item[\LaTeX-Layout] Nikolai Prokoschenko, Luc St-Louis et al. Special thanks to Konrad Mühler for his \LaTeX\ tips collection (\url{http://www.kfiles.de/latex.php})
+ \end{description}
+}
\lowertitleback{
-\begin{description}
-\item[Text] Jonathan S. Duff, Moritz Lenz, Carl Mäsak, Patrick R. Michaud, Jonathan Worthington with numerous contributions from the community.
-\item[Amelia Perl logo] Sebastian Riedel ({\bfseries kraih})
-\item[Fonts]Adobe Minion\textsuperscript{\textregistered} Pro, Adobe Myriad\textsuperscript{\textregistered} Pro, B\&H Luxi Mono
-\item[\LaTeX-Layout] Nikolai Prokoschenko, Luc St-Louis et al. Special thanks to Konrad Mühler for his \LaTeX\ tips collection (\url{http://www.kfiles.de/latex.php})
-\end{description}
+ \includegraphics[width=\textwidth]{../src/images/license.pdf}
}
\maketitle
-
-
+\frontmatter
\pagestyle{docINTRO}
-\pagenumbering{roman}
-
\tableofcontents
-\cleardoublepage
-%\newpage
+\mainmatter
\pagestyle{doc}
-\pagenumbering{arabic}
[% content %]
+
+\backmatter
\begin{appendix}
-\cleardoublepage
-%\newpage
\pagestyle{docAPPENDIX}
\printindex
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1,192 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+ xmlns:i="http://ns.adobe.com/AdobeIllustrator/10.0/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://web.resource.org/cc/"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="468px"
+ height="60px"
+ id="svg28920"
+ sodipodi:version="0.32"
+ inkscape:version="0.45+devel"
+ inkscape:export-filename="/Users/rebecca/Documents/creativecommons/marking/markers/png/300/By-nc-sa_plain300.png"
+ inkscape:export-xdpi="300"
+ inkscape:export-ydpi="300"
+ sodipodi:docbase="/Users/rebecca/Documents/creative_commons/imagemarkers/plain/svg"
+ sodipodi:docname="By-nc-sa_plain.svg"
+ inkscape:output_extension="org.inkscape.output.svg.inkscape">
+ <defs
+ id="defs28922" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="1.6970563"
+ inkscape:cx="238.92269"
+ inkscape:cy="30"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showborder="true"
+ inkscape:window-width="697"
+ inkscape:window-height="619"
+ inkscape:window-x="146"
+ inkscape:window-y="74" />
+ <metadata
+ id="metadata28925">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ id="layer1"
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer">
+ <g
+ id="g2922"
+ transform="translate(-5.191557,-0.7946525)">
+ <g
+ id="g2894">
+ <g
+ style="fill:#000000;fill-opacity:1"
+ id="g6307"
+ transform="matrix(0.2716088,0,0,0.2716129,103.53439,-28.449423)">
+ <path
+ d="M 40.61133,208.38574 C 40.61133,207.24414 39.68457,206.31933 38.54492,206.31933 L 25.45557,206.31933 C 24.31446,206.31933 23.38916,207.24413 23.38916,208.38574 L 23.38916,221.47558 L 27.04004,221.47558 L 27.04004,236.97558 L 36.95996,236.97558 L 36.95996,221.47558 L 40.61133,221.47558 L 40.61133,208.38574 L 40.61133,208.38574 z"
+ id="path6309"
+ style="fill:#000000;fill-opacity:1" />
+ <circle
+ cx="32"
+ cy="200.11914"
+ r="4.47754"
+ id="circle6311"
+ sodipodi:cx="32"
+ sodipodi:cy="200.11914"
+ sodipodi:rx="4.47754"
+ sodipodi:ry="4.47754"
+ style="fill:#000000;fill-opacity:1" />
+ <path
+ clip-rule="evenodd"
+ d="M 31.95996,184.30859 C 23.09521,184.30859 15.5918,187.40136 9.45166,193.58789 C 3.14941,199.98828 0,207.56152 0,216.30859 C 0,225.05468 3.14941,232.57617 9.45166,238.86914 C 15.75195,245.16211 23.25537,248.30859 31.95996,248.30859 C 40.77051,248.30859 48.40723,245.13671 54.86914,238.78906 C 60.95605,232.76367 64.00098,225.26953 64.00098,216.30859 C 64.00098,207.34765 60.90332,199.77441 54.70899,193.58789 C 48.51367,187.40137 40.93066,184.30859 31.95996,184.30859 z M 32.04004,190.06738 C 39.30274,190.06738 45.46973,192.62695 50.54395,197.74804 C 55.66993,202.81445 58.23243,209.00097 58.23243,216.30859 C 58.23243,223.66797 55.72364,229.77539 50.70313,234.6289 C 45.41602,239.85546 39.19532,242.46874 32.04004,242.46874 C 24.8833,242.46874 18.71582,239.8828 13.53613,234.70897 C 8.35644,229.53514 5.7666,223.40234 5.7666,216.30859 C 5.7666,209.21484 8.3833,203.02832 13.6167,197.74804 C 18.63672,192.62695 24.77686,190.06738 32.04004,190.06738 z"
+ id="path6313"
+ style="fill:#000000;fill-opacity:1;fill-rule:evenodd" />
+ </g>
+ <path
+ style="fill:#000000;fill-opacity:1"
+ d="M 136.03801,21.611165 C 138.47457,21.611165 140.53449,22.451202 142.21721,24.131541 C 143.8994,25.812149 144.74077,27.869139 144.74077,30.30278 C 144.74077,32.73642 143.91373,34.771926 142.26072,36.408765 C 140.5053,38.132608 138.43108,38.994394 136.03801,38.994394 C 133.67413,38.994394 131.63598,38.140033 129.9246,36.430517 C 128.21297,34.721264 127.35754,32.678334 127.35754,30.30278 C 127.35754,27.927225 128.21297,25.869972 129.9246,24.131541 C 131.59248,22.451202 133.63064,21.611165 136.03801,21.611165 z M 129.31295,27.968075 C 129.05353,28.701486 128.92382,29.47972 128.92382,30.30278 C 128.92382,32.229535 129.62726,33.895285 131.03413,35.300298 C 132.44126,36.705578 134.11603,37.408216 136.05976,37.408216 C 138.0035,37.408216 139.69312,36.698681 141.12917,35.278814 C 141.60979,34.814099 142.00554,34.30748 142.31641,33.758153 L 139.04007,32.299027 C 138.8178,33.401393 137.83533,34.146208 136.64755,34.233741 L 136.64755,35.573505 L 135.64996,35.573505 L 135.64996,34.233741 C 134.67438,34.222599 133.73196,33.823935 133.01155,33.192912 L 134.20887,31.985771 C 134.78525,32.528468 135.36163,32.772229 136.14889,32.772229 C 136.65869,32.772229 137.2242,32.572763 137.2242,31.908321 C 137.2242,31.67278 137.13296,31.509125 136.98919,31.386051 L 136.16082,31.017092 L 135.12875,30.557682 C 134.61842,30.330366 134.18607,30.137797 133.75211,29.944961 L 129.31295,27.968075 z M 136.05976,23.175326 C 134.08738,23.175326 132.41951,23.870806 131.05614,25.26176 C 130.6848,25.636024 130.36227,26.027263 130.08799,26.435477 L 133.41048,27.914761 C 133.71074,26.993293 134.58659,26.434416 135.64996,26.371819 L 135.64996,25.032057 L 136.64755,25.032057 L 136.64755,26.371819 C 137.33508,26.404976 138.08889,26.593301 138.8316,27.169154 L 137.68997,28.342873 C 137.26875,28.043938 136.73667,27.833331 136.20406,27.833331 C 135.77197,27.833331 135.16218,27.966484 135.16218,28.508914 C 135.16218,28.591674 135.18976,28.664614 135.24015,28.7296 L 136.35154,29.224285 L 137.10379,29.55956 C 137.58493,29.773615 138.04434,29.978121 138.49952,30.180767 L 142.953,32.163754 C 143.10049,31.58021 143.17423,30.959798 143.17423,30.302782 C 143.17423,28.317938 142.47821,26.6376 141.08566,25.261762 C 139.70743,23.870806 138.03267,23.175326 136.05976,23.175326 z"
+ id="path6315" />
+ <g
+ transform="matrix(0.2716854,0,0,0.2716854,151.17831,-53.502083)"
+ id="g23">
+ <path
+ clip-rule="evenodd"
+ d="M 31.95898,276.46289 C 23.09521,276.46289 15.59179,279.55664 9.45166,285.74219 C 3.14941,292.14258 0,299.7168 0,308.46289 C 0,317.20898 3.14941,324.73047 9.45166,331.02344 C 15.75195,337.31739 23.25537,340.46289 31.95898,340.46289 C 40.77002,340.46289 48.40673,337.29004 54.86865,330.94336 C 60.95556,324.91699 64.00049,317.42285 64.00049,308.46289 C 64.00049,299.50293 60.90283,291.92969 54.7085,285.74219 C 48.51318,279.55664 40.93018,276.46289 31.95898,276.46289 z M 32.03955,282.22168 C 39.30225,282.22168 45.46924,284.78223 50.54346,289.90234 C 55.66944,294.96875 58.23194,301.15527 58.23194,308.46289 C 58.23194,315.82227 55.72315,321.92969 50.70264,326.78418 C 45.41553,332.01074 39.19483,334.62305 32.03955,334.62305 C 24.8833,334.62305 18.71631,332.03614 13.53613,326.86328 C 8.35644,321.68945 5.7666,315.55664 5.7666,308.46289 C 5.7666,301.36914 8.3833,295.18262 13.6167,289.90234 C 18.63672,284.78223 24.77686,282.22168 32.03955,282.22168 z"
+ id="path25"
+ style="fill-rule:evenodd" />
+ <path
+ d="M 17.77539,303.94629 C 19.05225,295.89551 24.71924,291.59082 31.82227,291.59082 C 42.03858,291.59082 48.26416,299.00488 48.26416,308.88867 C 48.26416,318.53418 41.63916,326.02734 31.6626,326.02734 C 24.79883,326.02734 18.65332,321.80273 17.53565,313.51269 L 25.59717,313.51269 C 25.83643,317.81738 28.62988,319.33203 32.62061,319.33203 C 37.16944,319.33203 40.12354,315.10644 40.12354,308.64941 C 40.12354,301.87402 37.56885,298.28711 32.77979,298.28711 C 29.26856,298.28711 26.23584,299.5625 25.59717,303.94629 L 27.94043,303.93359 L 21.59522,310.27832 L 15.25,303.93359 L 17.77539,303.94629 z"
+ id="path27" />
+ </g>
+ </g>
+ <g
+ inkscape:export-ydpi="200"
+ inkscape:export-xdpi="200"
+ inkscape:export-filename="/Users/rebecca/Documents/creative_commons/imagemarkers/by-nc-nd_plain.png"
+ transform="matrix(0.3864876,0,0,0.3864876,-114.37345,20.532194)"
+ id="g24834">
+ <text
+ xml:space="preserve"
+ style="font-size:20px;fill:#000000;fill-opacity:1"
+ x="742.46631"
+ y="18.445837"
+ id="text6295"><tspan
+ sodipodi:role="line"
+ x="742.46631"
+ y="18.445837"
+ id="tspan6297">Except where otherwise noted, this work is licensed under </tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-size:21px;font-weight:bold;fill:#000000;fill-opacity:1"
+ x="742.66553"
+ y="45.812576"
+ id="text6299"><tspan
+ sodipodi:role="line"
+ id="tspan6301"
+ x="742.66553"
+ y="45.812576">http://creativecommons.org/licenses/by-nc-sa/3.0/</tspan><tspan
+ sodipodi:role="line"
+ x="742.66553"
+ y="72.062576"
+ id="tspan6303" /></text>
+ </g>
+ <switch
+ transform="matrix(0.2746477,0,0,0.2746477,79.536887,21.599469)"
+ id="switch2746">
+ <foreignObject
+ id="foreignObject2748"
+ height="1"
+ width="1"
+ y="0"
+ x="0"
+ requiredExtensions="http://ns.adobe.com/AdobeIllustrator/10.0/">
+ <i:pgfRef
+ xlink:href="#adobe_illustrator_pgf" />
+ </foreignObject>
+ <g
+ id="g2750"
+ i:extraneous="self">
+ <g
+ i:rgbTrio="#4F008000FFFF"
+ i:dimmedPercent="100"
+ i:layer="yes"
+ id="Background" />
+ <g
+ i:rgbTrio="#4F008000FFFF"
+ i:dimmedPercent="100"
+ i:layer="yes"
+ id="Guides" />
+ <g
+ i:rgbTrio="#4F008000FFFF"
+ i:dimmedPercent="100"
+ i:layer="yes"
+ id="Foreground">
+ <g
+ id="g2755">
+ <path
+ style="fill-rule:evenodd"
+ id="path2757"
+ d="M 31.603,0 C 22.92,0 15.28,3.213 9.376,9.203 C 3.299,15.368 0,23.355 0,31.69 C 0,40.111 3.212,47.925 9.29,54.002 C 15.368,60.08 23.268,63.378 31.603,63.378 C 39.937,63.378 48.012,60.079 54.263,53.915 C 60.167,48.098 63.292,40.371 63.292,31.689 C 63.292,23.094 60.167,15.28 54.176,9.289 C 48.098,3.213 40.285,0 31.603,0 z M 31.689,5.73 C 38.809,5.73 45.147,8.421 50.095,13.37 C 54.957,18.232 57.561,24.657 57.561,31.689 C 57.561,38.808 55.043,45.059 50.182,49.835 C 45.059,54.871 38.461,57.562 31.689,57.562 C 24.831,57.562 18.406,54.871 13.457,49.922 C 8.508,44.973 5.73,38.462 5.73,31.69 C 5.73,24.831 8.508,18.32 13.457,13.284 C 18.319,8.335 24.57,5.73 31.689,5.73 z"
+ clip-rule="evenodd"
+ i:knockout="Off" />
+ <path
+ style="fill-rule:evenodd"
+ id="path2759"
+ d="M 31.281,26.424 C 29.491,23.16 26.437,21.861 22.892,21.861 C 17.732,21.861 13.625,25.511 13.625,31.69 C 13.625,37.973 17.486,41.519 23.067,41.519 C 26.648,41.519 29.702,39.553 31.386,36.57 L 27.455,34.569 C 26.577,36.675 25.243,37.307 23.559,37.307 C 20.645,37.307 19.311,34.885 19.311,31.691 C 19.311,28.497 20.435,26.074 23.559,26.074 C 24.401,26.074 26.086,26.531 27.069,28.636 L 31.281,26.424 z"
+ clip-rule="evenodd"
+ i:knockout="Off" />
+ <path
+ style="fill-rule:evenodd"
+ id="path2761"
+ d="M 49.562,26.424 C 47.772,23.16 44.718,21.861 41.173,21.861 C 36.013,21.861 31.906,25.511 31.906,31.69 C 31.906,37.973 35.767,41.519 41.349,41.519 C 44.929,41.519 47.983,39.553 49.668,36.57 L 45.737,34.569 C 44.859,36.675 43.526,37.307 41.841,37.307 C 38.927,37.307 37.593,34.885 37.593,31.691 C 37.593,28.497 38.717,26.074 41.841,26.074 C 42.683,26.074 44.368,26.531 45.351,28.636 L 49.562,26.424 z"
+ clip-rule="evenodd"
+ i:knockout="Off" />
+ </g>
+ </g>
+ </g>
+ </switch>
+ </g>
+ </g>
+</svg>
File renamed without changes.
View
@@ -301,7 +301,7 @@ narrowness of a match:
=end programlisting
=for figure
- \includegraphics[width=0.8\textwidth]{mmd-table.pdf}
+ \includegraphics[width=0.8\textwidth]{../src/images/mmd-table.pdf}
\caption{Who wins the \emph{Rock, Paper, Scissors} game?}
\label{fig:mmd-rock-paper-scissors}
View
Deleted file not rendered

0 comments on commit 6151b71

Please sign in to comment.