Added PDF version with background.

svn path=/trunk/; revision=10271
This commit is contained in:
2008-03-26 09:30:07 +00:00
parent 4840a40ccc
commit 96292d5050
3 changed files with 3782 additions and 6 deletions

View File

@@ -18,11 +18,11 @@ leaflets.en.xml: $(sources) mk-leaflets-en-xml.sh
/bin/bash mk-leaflets-en-xml.sh $(sources)
%.0.pdf: %.xhtml mk-tex.xsl
xsltproc mk-tex.xsl $< > $*.0.tex
xsltproc --stringparam style 0 mk-tex.xsl $< > $*.0.tex
pdflatex -interaction=nonstopmode $*.0.tex || exit 0
rm --firm $*.tex $*.log $*.aux
rm --force $*.0.tex $*.0.log $*.0.aux
%.G.pdf: %.xhtml mk-tex.xsl
xsltproc mk-tex.xsl $< > $*.G.tex
xsltproc --stringparam style G mk-tex.xsl $< > $*.G.tex
pdflatex -interaction=nonstopmode $*.G.tex || exit 0
rm --firm $*.tex $*.log $*.aux
rm --force $*.G.tex $*.G.log $*.G.aux

File diff suppressed because one or more lines are too long

View File

@@ -3,6 +3,8 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="ISO-8859-1"/>
<xsl:param name="style"/>
<xsl:template match="html">
<xsl:apply-templates match="body"/>
</xsl:template>
@@ -15,7 +17,9 @@
\usepackage{helvet}
\usepackage{fancyheadings}
\usepackage{multicol}
</xsl:text><xsl:if test="$style='G'">\usepackage{graphics}
\usepackage[absolute]{textpos}
</xsl:if><xsl:text>
% Page layout
\setlength{\topmargin}{58pt}
\setlength{\headheight}{12pt}
@@ -58,7 +62,10 @@
<xsl:apply-templates select="address"/>
<xsl:text>
\begin{document}
\pagestyle{fancy}</xsl:text>
\pagestyle{fancy}</xsl:text><xsl:if test="$style='G'">
\begin{textblock*}{\paperwidth}(0pt,0pt)
\includegraphics{background.pdf}
\end{textblock*}</xsl:if>
<xsl:apply-templates select="h1"/>
<xsl:text>
\begin{bfseries}