mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
Using profiles for print output.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3931 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
83698f82d5
commit
1d505377b8
5
Makefile
5
Makefile
@ -34,8 +34,9 @@ pdf:
|
||||
fop.sh lfs.fo $(PDF_OUTPUT)
|
||||
|
||||
print:
|
||||
xsltproc --xinclude --nonet --output lfs-print.fo \
|
||||
stylesheets/lfs-print.xsl index.xml
|
||||
xsltproc --xinclude --nonet --stringparam profile.condition print --output lfs-print.xml \
|
||||
stylesheets/lfs-profile.xsl index.xml
|
||||
xsltproc --nonet --output lfs-print.fo stylesheets/lfs-print.xsl lfs-print.xml
|
||||
sed -i -e "s/inherit/all/" lfs-print.fo
|
||||
fop.sh lfs-print.fo $(PRINT_OUTPUT)
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
<!ENTITY % general-entities SYSTEM "../general.ent">
|
||||
%general-entities;
|
||||
]>
|
||||
<sect1 id="ch-scatter-changelog">
|
||||
<sect1 id="ch-scatter-changelog" condition="no-print">
|
||||
<title>Changelog</title>
|
||||
<?dbhtml filename="changelog.html"?>
|
||||
|
||||
|
@ -36,7 +36,8 @@
|
||||
<xsl:param name="toc.indent.width" select="18"></xsl:param>
|
||||
|
||||
<!-- Page number in Xref-->
|
||||
<xsl:param name="insert.xref.page.number">yes</xsl:param> <xsl:template match="*" mode="page.citation">
|
||||
<xsl:param name="insert.xref.page.number">yes</xsl:param>
|
||||
<xsl:template match="*" mode="page.citation">
|
||||
<xsl:param name="id" select="'???'"/>
|
||||
<fo:inline keep-together.within-line="always">
|
||||
<xsl:text>[p</xsl:text>
|
||||
|
9
stylesheets/lfs-profile.xsl
Normal file
9
stylesheets/lfs-profile.xsl
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version='1.0' encoding='ISO-8859-1'?>
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:fo="http://www.w3.org/1999/XSL/Format"
|
||||
version="1.0">
|
||||
|
||||
<xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/profiling/profile.xsl"/>
|
||||
|
||||
</xsl:stylesheet>
|
Loading…
Reference in New Issue
Block a user