r4157 - in branches/testing/BOOK: chapter02 chapter06 chapter07 prologue stylesheets/pdf

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sat Sep 11 14:10:09 PDT 2004


Author: manuel
Date: 2004-09-11 15:10:07 -0600 (Sat, 11 Sep 2004)
New Revision: 4157

Modified:
   branches/testing/BOOK/chapter02/creatingpartition.xml
   branches/testing/BOOK/chapter06/aboutdebug.xml
   branches/testing/BOOK/chapter06/man.xml
   branches/testing/BOOK/chapter07/udev.xml
   branches/testing/BOOK/prologue/prerequisites.xml
   branches/testing/BOOK/stylesheets/pdf/lfs-mixed.xsl
   branches/testing/BOOK/stylesheets/pdf/lfs-pagesetup.xsl
Log:
In the PDF output, added support for line break,
changed the tagging in splitted URLs, and changed chapter title font size to 21pt.

Modified: branches/testing/BOOK/chapter02/creatingpartition.xml
===================================================================
--- branches/testing/BOOK/chapter02/creatingpartition.xml	2004-09-11 13:18:05 UTC (rev 4156)
+++ branches/testing/BOOK/chapter02/creatingpartition.xml	2004-09-11 21:10:07 UTC (rev 4157)
@@ -15,12 +15,10 @@
 
 <note><para>This advanced procedure is not recommended
 for your first LFS installation, but if you are short on
-disk space the following document can be helpful: <phrase
-condition="html"><ulink
-url="&hints-root;lfs_next_to_existing_systems.txt"/></phrase><phrase
-condition="pdf"><ulink url="&hints-root;lfs_next_to_existing_systems.txt">
-http://www.linuxfromscratch.org/hints/downloads/files/
-lfs_next_to_existing_systems.txt</ulink></phrase>.</para></note>
+disk space the following document can be helpful: <ulink 
+url="&hints-root;lfs_next_to_existing_systems.txt"><phrase
+condition="pdf">http://www.linuxfromscratch.org/hints/downloads/files/
+lfs_next_to_existing_systems.txt</phrase></ulink>.</para></note>
 
 <para>A minimal system requires a partition of around 1.3 gigabytes
 (GB).  This is enough to store all the source tarballs and compile 

Modified: branches/testing/BOOK/chapter06/aboutdebug.xml
===================================================================
--- branches/testing/BOOK/chapter06/aboutdebug.xml	2004-09-11 13:18:05 UTC (rev 4156)
+++ branches/testing/BOOK/chapter06/aboutdebug.xml	2004-09-11 21:10:07 UTC (rev 4157)
@@ -44,10 +44,9 @@
 software, a lot of disk space can be regained by removing these
 symbols. The next section shows how to strip all debugging symbols
 from the programs and libraries. Additional information on system
-optimization can be found at <phrase condition="html"><ulink
-url="&hints-root;optimization.txt"/></phrase><phrase condition="pdf"><ulink
-url="&hints-root;optimization.txt">http://www.linuxfromscratch.org/hints/downloads/files/ 
-optimization.txt</ulink></phrase>.</para>
+optimization can be found at <ulink url="&hints-root;optimization.txt"><phrase 
+condition="pdf">http://www.linuxfromscratch.org/hints/downloads/files/
+optimization.txt</phrase></ulink>.</para>
 
 </sect1>
 

Modified: branches/testing/BOOK/chapter06/man.xml
===================================================================
--- branches/testing/BOOK/chapter06/man.xml	2004-09-11 13:18:05 UTC (rev 4156)
+++ branches/testing/BOOK/chapter06/man.xml	2004-09-11 21:10:07 UTC (rev 4157)
@@ -105,11 +105,9 @@
 
 <para>Additional information with regards to the compression of
 man—and info—pages can be found in the BLFS book at
-<phrase condition="html"><ulink
-url="&blfs-root;view/cvs/postlfs/compressdoc.html"/></phrase>
-<phrase condition="pdf"><ulink
-url="&blfs-root;view/cvs/postlfs/compressdoc.html">http://www.linuxfromscratch.org/blfs/view/cvs/postlfs/ 
-compressdoc.html</ulink></phrase>.</para>
+<ulink url="&blfs-root;view/cvs/postlfs/compressdoc.html"><phrase 
+condition="pdf">http://www.linuxfromscratch.org/blfs/view/cvs/postlfs/
+compressdoc.html</phrase></ulink>.</para>
 
 <beginpage/>
 </sect2>

Modified: branches/testing/BOOK/chapter07/udev.xml
===================================================================
--- branches/testing/BOOK/chapter07/udev.xml	2004-09-11 13:18:05 UTC (rev 4156)
+++ branches/testing/BOOK/chapter07/udev.xml	2004-09-11 21:10:07 UTC (rev 4157)
@@ -226,12 +226,18 @@
 sites:</para>
 
 <itemizedlist>
-<listitem><para>A Userspace Implementation of devfs – <ulink
-url="http://www.kroah.com/linux/talks/ols_2003_udev_paper/Reprint-Kroah-Hartman-OLS2003.pdf"/></para></listitem>
-<listitem><para>udev FAQ – <ulink
-url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-FAQ"/></para></listitem>
-<listitem><para>The Linux Kernel Driver Model – <ulink
-url="http://public.planetmirror.com/pub/lca/2003/proceedings/papers/Patrick_Mochel/Patrick_Mochel.pdf"/></para></listitem>
+<listitem><para remap="verbatim">A Userspace Implementation of devfs – 
+<ulink url="http://www.kroah.com/linux/talks/ols_2003_udev_paper/Reprint-Kroah-Hartman-OLS2003.pdf"><phrase
+conditon="pdf">http://www.kroah.com/linux/talks/ols_2003_udev_paper/
+Reprint-Kroah-Hartman-OLS2003.pdf</phrase></ulink></para></listitem>
+
+<listitem><para remap="verbatim">udev FAQ –
+<ulink url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-FAQ"/></para></listitem>
+
+<listitem><para remap="verbatim">The Linux Kernel Driver Model – 
+<ulink url="http://public.planetmirror.com/pub/lca/2003/proceedings/papers/Patrick_Mochel/Patrick_Mochel.pdf"><phrase  
+condition="pdf">http://public.planetmirror.com/pub/lca/2003/proceedings/papers/
+Patrick_Mochel/Patrick_Mochel.pdf</phrase></ulink></para></listitem>
 </itemizedlist>
 </sect2>
 

Modified: branches/testing/BOOK/prologue/prerequisites.xml
===================================================================
--- branches/testing/BOOK/prologue/prerequisites.xml	2004-09-11 13:18:05 UTC (rev 4156)
+++ branches/testing/BOOK/prologue/prerequisites.xml	2004-09-11 21:10:07 UTC (rev 4157)
@@ -12,17 +12,19 @@
 recommend reading the following HOWTOs:</para>
 
 <itemizedlist>
-<listitem><para>Software-Building-HOWTO – <ulink
-url="http://www.tldp.org/HOWTO/Software-Building-HOWTO.html"/></para>
+<listitem><para remap="verbatim">Software-Building-HOWTO –
+<ulink url="http://www.tldp.org/HOWTO/Software-Building-HOWTO.html"/></para>
 
 <para>This is a comprehensive guide to building and installing
 <quote>generic</quote> Unix software distributions under Linux.</para></listitem>
 
-<listitem><para>The Linux Users' Guide – <ulink url="http://espc22.murdoch.edu.au/~stewart/guide/guide.html"/></para>
+<listitem><para remap="verbatim">The Linux Users' Guide –
+<ulink url="http://espc22.murdoch.edu.au/~stewart/guide/guide.html"/></para>
 
 <para>This guide covers the usage of assorted Linux software.</para></listitem>
 
-<listitem><para>The Essential Pre-Reading Hint – <ulink url="&hints-root;essential_prereading.txt"/></para>
+<listitem><para remap="verbatim">The Essential Pre-Reading Hint –
+<ulink url="&hints-root;essential_prereading.txt"/></para>
 
 <para>This is an LFS Hint written specifically for users new to Linux.
 It includes a list of links to excellent sources of information on a

Modified: branches/testing/BOOK/stylesheets/pdf/lfs-mixed.xsl
===================================================================
--- branches/testing/BOOK/stylesheets/pdf/lfs-mixed.xsl	2004-09-11 13:18:05 UTC (rev 4156)
+++ branches/testing/BOOK/stylesheets/pdf/lfs-mixed.xsl	2004-09-11 21:10:07 UTC (rev 4157)
@@ -11,6 +11,25 @@
   <xsl:template match="beginpage">
     <fo:block break-after="page"/>
   </xsl:template>
+  
+    <!-- Allow forced line breaks inside paragraphs emulating literallayout. -->
+ <xsl:template match="para">
+    <xsl:choose>
+      <xsl:when test="./@remap='verbatim'">
+        <fo:block wrap-option="no-wrap"
+                    white-space-collapse="false"
+                    white-space-treatment="preserve"
+                    text-align="start"
+                    linefeed-treatment="preserve">
+          <xsl:call-template name="anchor"/>
+          <xsl:apply-templates/>
+        </fo:block>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:apply-imports/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
 
     <!-- Show URLs in italic font -->
   <xsl:template match="ulink" name="ulink">

Modified: branches/testing/BOOK/stylesheets/pdf/lfs-pagesetup.xsl
===================================================================
--- branches/testing/BOOK/stylesheets/pdf/lfs-pagesetup.xsl	2004-09-11 13:18:05 UTC (rev 4156)
+++ branches/testing/BOOK/stylesheets/pdf/lfs-pagesetup.xsl	2004-09-11 21:10:07 UTC (rev 4157)
@@ -62,6 +62,17 @@
     </fo:block>
   </xsl:template>
 
+    <!-- Font size for chapter title. -->
+  <xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
+    <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" 
+            xsl:use-attribute-sets="chapter.titlepage.recto.style" 
+            font-size="21pt" font-weight="bold" text-align="left">
+      <xsl:call-template name="component.title">
+        <xsl:with-param name="node" select="ancestor-or-self::chapter[1]"/>
+      </xsl:call-template>
+    </fo:block>
+  </xsl:template>
+
     <!-- Margins -->
   <xsl:param name="page.margin.inner">0.5in</xsl:param>
   <xsl:param name="page.margin.outer">0.375in</xsl:param>




More information about the lfs-book mailing list