You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by he...@apache.org on 2006/07/22 11:06:32 UTC

svn commit: r424540 - in /jakarta/velocity/docbook/trunk: README build-docbook.xml project.properties src/styles/pdf.xsl src/styles/pdf/custom.xsl

Author: henning
Date: Sat Jul 22 02:06:31 2006
New Revision: 424540

URL: http://svn.apache.org/viewvc?rev=424540&view=rev
Log:
Remove the hard-coded "A4" format of the Velocity PDF
documentation. Allow the size to be changed by an ant define.

Change the default to "Letter" as suggested from the mailing list, so
that both US and europeans can print out the docs.

Add some documentation on how to do this.


Modified:
    jakarta/velocity/docbook/trunk/README
    jakarta/velocity/docbook/trunk/build-docbook.xml
    jakarta/velocity/docbook/trunk/project.properties
    jakarta/velocity/docbook/trunk/src/styles/pdf.xsl
    jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl

Modified: jakarta/velocity/docbook/trunk/README
URL: http://svn.apache.org/viewvc/jakarta/velocity/docbook/trunk/README?rev=424540&r1=424539&r2=424540&view=diff
==============================================================================
--- jakarta/velocity/docbook/trunk/README (original)
+++ jakarta/velocity/docbook/trunk/README Sat Jul 22 02:06:31 2006
@@ -117,6 +117,19 @@
 distribution.
 
 
+Notes
+=====
+
+* Changing the paper size
+
+  The docbook framework renders its pages in "Letter" format
+  (8.5 x 11 inches).  This allows printing in both, Letter and A4
+  format. If you want to reformat the PDF documentation in A4, you
+  can use the 'paper.type' parameter:
+
+  ant -Dpaper.type=A4 will render the documentation in A4.
+
+
 Add a new DocBook document
 ==========================
 

Modified: jakarta/velocity/docbook/trunk/build-docbook.xml
URL: http://svn.apache.org/viewvc/jakarta/velocity/docbook/trunk/build-docbook.xml?rev=424540&r1=424539&r2=424540&view=diff
==============================================================================
--- jakarta/velocity/docbook/trunk/build-docbook.xml (original)
+++ jakarta/velocity/docbook/trunk/build-docbook.xml Sat Jul 22 02:06:31 2006
@@ -60,6 +60,7 @@
   <!-- This filterset is used to convert the style sheets to reference
        the actual locations of the docbook XSLT files -->
   <filterset id="filterset.docbook.location">
+    <filter token="paper.type" value="${paper.type}" />
     <filter token="file.prefix" value="${file.prefix}" />
     <filter token="docbook.xml" value="${docbook.xml.path}" />
     <filter token="docbook.xsl" value="${docbook.xsl.path}" />

Modified: jakarta/velocity/docbook/trunk/project.properties
URL: http://svn.apache.org/viewvc/jakarta/velocity/docbook/trunk/project.properties?rev=424540&r1=424539&r2=424540&view=diff
==============================================================================
--- jakarta/velocity/docbook/trunk/project.properties (original)
+++ jakarta/velocity/docbook/trunk/project.properties Sat Jul 22 02:06:31 2006
@@ -35,6 +35,9 @@
 # Directory for temporary files
 tmp.dir = ${target.dir}/tmp
 
+# The size of the PDF pages.
+paper.type= Letter
+
 # Directories into which the docbook reference archives are expanded
 docbook.xml.dir = ${target.dir}/docbook-xml-${docbook.xml.version}
 docbook.xsl.dir = ${target.dir}/docbook-xsl-${docbook.xsl.version}

Modified: jakarta/velocity/docbook/trunk/src/styles/pdf.xsl
URL: http://svn.apache.org/viewvc/jakarta/velocity/docbook/trunk/src/styles/pdf.xsl?rev=424540&r1=424539&r2=424540&view=diff
==============================================================================
--- jakarta/velocity/docbook/trunk/src/styles/pdf.xsl (original)
+++ jakarta/velocity/docbook/trunk/src/styles/pdf.xsl Sat Jul 22 02:06:31 2006
@@ -31,6 +31,7 @@
   <xsl:param name="admon.graphics">'1'</xsl:param>
   <xsl:param name="admon.graphics.path">@file.prefix@@docbook.xsl@/images/</xsl:param>
   <xsl:param name="draft.watermark.image" select="'@file.prefix@@docbook.xsl@/images/draft.png'"/>
+  <xsl:param name="paper.type" select="'@paper.type@'"/>
 
 </xsl:stylesheet>
 

Modified: jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl
URL: http://svn.apache.org/viewvc/jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl?rev=424540&r1=424539&r2=424540&view=diff
==============================================================================
--- jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl (original)
+++ jakarta/velocity/docbook/trunk/src/styles/pdf/custom.xsl Sat Jul 22 02:06:31 2006
@@ -153,7 +153,6 @@
     ################################################### -->
 
     <!-- Paper type, no headers on blank pages, no double sided printing -->
-    <xsl:param name="paper.type" select="'A4'"/>
     <xsl:param name="double.sided">0</xsl:param>
     <xsl:param name="headers.on.blank.pages">0</xsl:param>
     <xsl:param name="footers.on.blank.pages">0</xsl:param>



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org