Changeset 4685d1c for stylesheets


Ignore:
Timestamp:
07/07/2007 10:24:03 AM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
65b2904
Parents:
8e37798
Message:

Created directory to place the LFS-XSL Stylesheets tree.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6839 af4574ff-66df-0310-9fd7-8a98e5e911e0

Location:
stylesheets
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/blfs-chunked.xsl

    r8e37798 r4685d1c  
    1010                version="1.0">
    1111
    12   <xsl:import href="blfs-chunked1.xsl"/>
     12    <!-- LFS top-level chunk templates. -->
     13  <xsl:import href="lfs-xsl/chunkfast.xsl"/>
    1314
    14     <!-- Handle name and date in info section as a footnote -->
     15    <!-- The LFS book type to be processed (lfs, blfs, clfs, or hlfs) -->
     16  <xsl:param name="book-type">blfs</xsl:param>
    1517
    16   <xsl:template name="process.footnotes">
    17     <xsl:variable name="footnotes" select=".//footnote"/>
    18     <xsl:variable name="fcount">
    19       <xsl:call-template name="count.footnotes.in.this.chunk">
    20         <xsl:with-param name="node" select="."/>
    21         <xsl:with-param name="footnotes" select="$footnotes"/>
    22       </xsl:call-template>
    23     </xsl:variable>
     18    <!-- Are sections enumerated? 1 = yes, 0 = no
     19           Note: Activating this will increase a lot rendering time. -->
     20  <xsl:param name="section.autolabel" select="0"/>
    2421
    25     <!-- Only bother to do this if there's at least one non-table footnote -->
    26     <xsl:if test="$fcount &gt; 0">
    27       <div class="footnotes">
    28         <br/>
    29         <hr width="100" align="left"/>
    30         <xsl:call-template name="process.footnotes.in.this.chunk">
    31           <xsl:with-param name="node" select="."/>
    32           <xsl:with-param name="footnotes" select="$footnotes"/>
    33         </xsl:call-template>
    34       </div>
    35     </xsl:if>
    36 
    37     <!-- Add this to the footnotes -->
    38     <xsl:apply-templates select='prefaceinfo|chapterinfo|sect1info|./sect1[1]/sect1info' mode='attribution'/>
    39   </xsl:template>
    40 
    41   <xsl:template match='prefaceinfo|chapterinfo|sect1info' mode='attribution'>
    42     <p class='updated'> Last updated <!-- by
    43       <xsl:apply-templates select="othername" mode='attribution'/> -->
    44       on
    45       <xsl:apply-templates select="date" mode='attribution'/>
    46     </p>
    47   </xsl:template>
    48 
    49   <xsl:template match='othername' mode='attribution'>
    50      <xsl:variable name='author'>
    51           <xsl:value-of select='.'/>
    52      </xsl:variable>
    53      <xsl:variable name='nameonly'>
    54           <xsl:value-of select='substring($author,16)'/>
    55      </xsl:variable>
    56      <xsl:value-of select="substring-before($nameonly,'$')" />
    57   </xsl:template>
    58 
    59   <xsl:template match='date' mode='attribution'>
    60       <xsl:variable name='date'>
    61          <xsl:value-of select='.'/>
    62       </xsl:variable>
    63       <xsl:value-of select="substring($date,7,26)" />
    64   </xsl:template>
     22    <!-- Do section labels include the component label? 1 = yes, 0 = no -->
     23  <xsl:param name="section.label.includes.component.label" select="0"/>
    6524
    6625</xsl:stylesheet>
  • stylesheets/blfs-nochunks.xsl

    r8e37798 r4685d1c  
    1010                version="1.0">
    1111
    12     <!-- We use XHTML -->
    13   <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.69.1/xhtml/docbook.xsl"/>
     12    <!-- LFS top-level no-chunk templates. -->
     13  <xsl:import href="lfs-xsl/nochunks.xsl"/>
    1414
    15     <!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet -->
    16   <xsl:output method="html" encoding="ISO-8859-1" indent="no" />
     15    <!-- The LFS book type to be processed (lfs, blfs, clfs, or hlfs) -->
     16  <xsl:param name="book-type">blfs</xsl:param>
    1717
    18    <!-- Including our others customized templates -->
    19   <xsl:include href="xhtml/lfs-index.xsl"/>
    20   <xsl:include href="xhtml/lfs-mixed.xsl"/>
    21   <xsl:include href="xhtml/lfs-sections.xsl"/>
    22   <xsl:include href="xhtml/lfs-toc.xsl"/>
    23   <xsl:include href="xhtml/lfs-xref.xsl"/>
     18    <!-- Are sections enumerated? 1 = yes, 0 = no
     19           Note: Activating this will increase a lot rendering time. -->
     20  <xsl:param name="section.autolabel" select="0"/>
    2421
    25     <!-- This file contains our localization strings (for internationalization) -->
    26   <xsl:param name="local.l10n.xml" select="document('blfs-l10n.xml')"/>
    27 
    28     <!-- Dropping some unwanted style attributes -->
    29   <xsl:param name="ulink.target" select="''"></xsl:param>
    30   <xsl:param name="css.decoration" select="0"></xsl:param>
    31 
    32     <!-- Don't use graphics in admonitions -->
    33   <xsl:param name="admon.graphics" select="0"/>
    34 
    35     <!-- Changing the admonitions output tagging -->
    36   <xsl:template name="nongraphical.admonition">
    37     <div class="{name(.)}">
    38       <div class ="admonhead">
    39         <h3 class="admontitle">
    40           <xsl:apply-templates select="." mode="object.title.markup"/>
    41         </h3>
    42       </div>
    43       <div class="admonbody">
    44         <xsl:apply-templates/>
    45       </div>
    46     </div>
    47   </xsl:template>
    48 
    49     <!-- To drop the remainig dot when title is empty (from lfs-titles.xsl)
    50     Commented out until can do section numbering
    51   <xsl:template name="sect2.titlepage">
    52     <xsl:choose>
    53       <xsl:when test="string-length(title) = 0"/>
    54       <xsl:otherwise>
    55         <div class="titlepage">
    56           <xsl:if test="@id">
    57             <a id="{@id}" name="{@id}"/>
    58           </xsl:if>
    59           <h3 class="{name(.)}">
    60             <xsl:apply-templates select="." mode="label.markup"/>
    61             <xsl:text>. </xsl:text>
    62             <xsl:value-of select="title"/>
    63           </h3>
    64         </div>
    65       </xsl:otherwise>
    66     </xsl:choose>
    67   </xsl:template>-->
    68 
    69     <!-- Added the role param for proper punctuation in xref calls
    70             (from lfs-titles.xsl). -->
    71   <xsl:template match="*" mode="insert.title.markup">
    72     <xsl:param name="purpose"/>
    73     <xsl:param name="xrefstyle"/>
    74     <xsl:param name="title"/>
    75     <xsl:param name="role"/>
    76     <xsl:choose>
    77       <xsl:when test="$purpose = 'xref' and titleabbrev">
    78         <xsl:apply-templates select="." mode="titleabbrev.markup"/>
    79       </xsl:when>
    80       <xsl:otherwise>
    81         <xsl:copy-of select="$title"/>
    82         <xsl:value-of select="$role"/>
    83       </xsl:otherwise>
    84     </xsl:choose>
    85   </xsl:template>
    86 
    87     <!-- The CSS Stylesheet -->
    88   <xsl:template name='user.head.content'>
    89     <style type="text/css">
    90       <xsl:text>
    91 /* Global settings */
    92 body {
    93   font-family: verdana, tahoma, helvetica, arial, sans-serif;
    94   text-align: left;
    95   background: #fff;
    96   color: #333;
    97   margin: 1em;
    98   padding: 0;
    99   font-size: 1em;
    100   line-height: 1.2em
    101 }
    102 
    103 a:link { color: #22b; }
    104 a:visited { color: #7e4988; }
    105 a:hover, a:focus { color: #d30e08; }
    106 a:active { color: #6b77b1;}
    107 
    108 /* Headers */
    109 h1, h2, b, strong {
    110   color: #000;
    111   font-weight: bold;
    112 }
    113 
    114 h3, h4, h5, h6 {
    115   color: #222;
    116 }
    117 
    118 h1 { font-size: 173%; text-align: center; line-height: 1.2em; }
    119 h1.title sup { font-size: small; }
    120 h2 { font-size: 144%; line-height: 1.2em; }
    121 h2.subtitle { text-align: center; line-height: 1.2em; }
    122 h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; line-height: 1.2em; }
    123 h4 { font-size: 110%;}
    124 div.package h4, h5, h6 { font-size: 110%; font-style: italic; }
    125 
    126 /* TOC and Index*/
    127 
    128 div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
    129   list-style: none;
    130 }
    131 
    132 div.toc, div.dedication {
    133   padding-left: 1em;
    134 }
    135 
    136 li.preface {
    137   margin-left: 1em;
    138 }
    139 
    140 div.toc ul li h3, div.toc ul li h4 {
    141   margin: .4em;
    142 }
    143 
    144 .item {
    145     width: 18.5em;
    146     float: left;
    147 }
    148 
    149 .indexref {
    150     margin-left: 18.5em;
    151 }
    152 
    153 .secitem {
    154     font-weight: normal;
    155     width: 16em;
    156     float: left;
    157 }
    158 
    159 /* Admonitions */
    160 div.note, div.tip {
    161   background-color: #fffff6;
    162   border: 2px solid #dbddec;
    163   width: 90%;
    164   margin: .5em auto;
    165 }
    166 
    167 div.important, div.warning, div.caution {
    168   background-color: #fffff6;
    169   border: medium solid #400;
    170   width: 90%;
    171   margin: 1.5em auto;
    172   color: #600;
    173   font-size: larger;
    174 }
    175 
    176 div.important h3, div.warning h3, div.caution h3 {
    177   color: #900;
    178 }
    179 
    180 h3.admontitle {
    181   padding-left: 2.5em;
    182   padding-top: 1em;
    183 }
    184 
    185 div.admonbody {
    186   margin: .5em;
    187 }
    188 
    189 div.important em, div.warning em, div.caution em {
    190   color: #000;
    191   font-weight: bold;
    192 }
    193 
    194 div.important tt, div.warning tt, div.caution tt {
    195   font-weight: bold;
    196 }
    197 
    198 table {
    199   width: auto;
    200   margin-left: 1em;
    201 }
    202 
    203 td {
    204   vertical-align: top;
    205 }
    206 
    207 td span, td p {
    208   margin: 0.3em;
    209 }
    210 
    211 div.table table {
    212   border-collapse: collapse;
    213   }
    214 
    215 div.table td, div.table th {
    216   padding: 0.3em;
    217   text-align: right;
    218   vertical-align: baseline;
    219 }
    220 
    221 div.table tr > td:first-child, div.table tr > th:first-child {
    222   text-align: left;
    223 }
    224 
    225 span.term {
    226   display: block;
    227 }
    228 
    229 /* variablelist and segmentedlist */
    230 dl {
    231   margin: 0;
    232   padding: 0;
    233   list-style-type: none;
    234 }
    235 
    236 dt {
    237   display: list-item;
    238   font-weight: bold;
    239   margin: .33em 0 0 1em;
    240   padding: 0;
    241 }
    242 
    243 span.seg {
    244   display: block;
    245   padding-left: 12em;
    246 }
    247 
    248 div.content dt {
    249   list-style: none;
    250 }
    251 
    252 dd  {
    253   margin: 0 0 1em 3em;
    254   padding: 0;
    255 }
    256 
    257 div.variablelist dd {
    258   margin-bottom: 1em;
    259 }
    260 
    261 div.variablelist dd p {
    262   margin-top: 0px;
    263 }
    264 
    265 dl.materials dd {
    266   margin-left: 0px;
    267 }
    268 
    269 div.segmentedlist {
    270   margin-top: 1em;
    271 }
    272 
    273 div.segmentedlist p {
    274   margin: 0px auto;
    275 }
    276 
    277 span.segtitle {
    278   display: block;
    279   float: left;
    280   width: 12em;
    281 }
    282 
    283 div.seg {
    284   clear: left;
    285 }
    286 
    287 /* itemizedlist */
    288 
    289 div.itemizedlist {
    290   margin-left: 1em;
    291 }
    292 
    293 ul[compact="compact"] li p {
    294   padding: 0.3em;
    295   margin: 0em;
    296   background-color: #f0fff0;
    297 }
    298 
    299 /* Indented blocks */
    300 p, ul, dl, code, blockquote {
    301   padding-left: 1em;
    302 }
    303 
    304 /* Monospaced elements */
    305 tt, code, kbd, pre, .command {
    306   font-family: monospace;
    307 }
    308 
    309 pre.userinput {
    310   color: #101310;
    311   background-color: #e5e5e5;
    312   border: 1px solid #050505;
    313   padding: .5em 1em;
    314   margin: 0 2em;
    315   font-weight: bold;
    316 }
    317 
    318 pre.root {
    319   color: #101310;
    320   background-color: #e5e5e5;
    321   border: 1px solid #050505;
    322   padding: .5em 1em;
    323   margin: 0 2em;
    324   font-weight: bold;
    325 }
    326 
    327 .literal, .prompt {
    328   font-weight: normal;
    329 }
    330 
    331 pre.screen {
    332   background-color: #e9e9e9;
    333   border: 1px solid #050505;
    334   padding: .5em 1em;
    335   margin: 0 2em;
    336 }
    337 
    338 /* Sections */
    339 div h2 {
    340   padding: 1em 0 0.5em 0;
    341   margin: 0px auto;
    342 }
    343 
    344 div.glossary h2 {
    345   text-align: center;
    346    font-size: 173%;
    347    padding-top: 0.4em;
    348    border-bottom: .1em solid #dbddec;
    349 }
    350 
    351 div.package {
    352   padding: 0 0.5em 0.3em 0.5em;
    353   margin: 0.5em 0 0.5em 0;
    354 }
    355 
    356 div.kernel {
    357   padding: 0 0.5em 0.3em 0.5em;
    358   margin: 0.5em 0 0.5em 0;
    359 }
    360 
    361 div.installation {
    362   padding: 0 0.5em 0.3em 0.5em;
    363   margin: 0.5em 0 0.5em 0;
    364 }
    365 
    366 div.commands {
    367   padding: 0 0.5em 0.3em 0.5em;
    368   margin: 0.5em 0 0.5em 0;
    369 }
    370 
    371 div.testing {
    372   padding: 0 0.5em 0.3em 0.5em;
    373   margin: 0.5em 0 0.5em 0;
    374 }
    375 
    376 div.configuration {
    377   padding: 0 0.5em 0.3em 0.5em;
    378   margin: 0.5em 0 0.5em 0;
    379 }
    380 
    381 div.content {
    382   padding: 0 0.5em 0.3em 0.5em;
    383   margin: 0.5em 0 0.5em 0;
    384 }
    385 
    386 div.book, div.preface, div.part, div.chapter, div.sect1, div.appendix, div.index {
    387   padding-bottom: 0.5em;
    388 }
    389 
    390 div.preface h2, div.part h1, div.chapter h2.title, div.sect1 h2.title, div.appendix h1, div.index h1 {
    391   background: #f5f6f7;
    392   border-bottom: .1em solid #dbddec;
    393   border-top: .1em solid #dbddec;
    394   margin-top 1em;
    395   padding: .5em;
    396   text-align: center;
    397 }
    398 
    399 div.book h1 {
    400   background: #f5f6f7;
    401   margin: 0px auto;
    402   padding: 0.5em;
    403 }
    404 
    405 div.book h2.subtitle {
    406   background: #dbddec;
    407   margin: 0px auto;
    408   padding: 0.2em;
    409 }
    410 div.authorgroup, div p.copyright, div.abstract, div p.pubdate, div.revhistory {
    411   background: #f5f6f7;
    412   margin: 0px auto;
    413   padding:  1em 0.5em;
    414 }
    415 
    416 hr {
    417   background: #dbddec;
    418   height: .3em;
    419   border: 0px;
    420   margin: 0px auto;
    421   padding: 0;
    422 }
    423 
    424 /* Last edited info */
    425 p.updated {
    426   font-size: small;
    427   font-weight: bold;
    428   font-style: italic;
    429 }
    430 
    431 /* Inline tags */
    432 
    433 tt.systemitem {
    434   font-style: italic;
    435 }
    436       </xsl:text>
    437     </style>
    438   </xsl:template>
     22    <!-- Do section labels include the component label? 1 = yes, 0 = no -->
     23  <xsl:param name="section.label.includes.component.label" select="0"/>
    43924
    44025</xsl:stylesheet>
  • stylesheets/blfs-pdf.xsl

    r8e37798 r4685d1c  
    1010                version="1.0">
    1111
    12     <!-- We use FO and FOP as the processor -->
    13   <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.69.1/fo/docbook.xsl"/>
    14   <xsl:param name="fop.extensions" select="1"/>
    15   <xsl:param name="draft.mode" select="'no'"/>
     12    <!-- LFS top-level pdf templates. -->
     13  <xsl:import href="lfs-xsl/pdf.xsl"/>
    1614
    17     <!-- Including our others customized templates -->
    18   <xsl:include href="pdf/lfs-admon.xsl"/>
    19   <xsl:include href="pdf/lfs-index.xsl"/>
    20   <xsl:include href="pdf/lfs-mixed.xsl"/>
    21   <xsl:include href="pdf/lfs-pagesetup.xsl"/>
    22   <xsl:include href="pdf/lfs-sections.xsl"/>
    23   <xsl:include href="pdf/lfs-xref.xsl"/>
     15    <!-- The LFS book type to be processed (lfs, blfs, clfs, or hlfs) -->
     16  <xsl:param name="book-type">blfs</xsl:param>
    2417
    25     <!-- This file contains our localization strings (for internationalization) -->
    26   <xsl:param name="local.l10n.xml" select="document('blfs-l10n.xml')"/>
     18    <!-- Are sections enumerated? 1 = yes, 0 = no
     19           Note: Activating this will increase a lot rendering time. -->
     20  <xsl:param name="section.autolabel" select="0"/>
    2721
    28     <!-- Probably want to make the paper size configurable -->
    29   <xsl:param name="paper.type" select="'letter'"/>
    30 
    31     <!-- Printing Style -->
    32   <xsl:param name="double.sided" select="0"/>
    33   <xsl:param name="hyphenate">false</xsl:param>
    34   <xsl:param name="alignment">justify</xsl:param>
    35 
    36     <!-- Font size -->
    37   <xsl:param name="body.font.master">9</xsl:param>
    38   <xsl:param name="body.font.size">12pt</xsl:param>
    39 
    40     <!-- TOC generation -->
    41   <xsl:param name="generate.toc">
    42     book      toc
    43     part      nop
    44   </xsl:param>
    45   <xsl:param name="toc.section.depth">1</xsl:param>
    46   <xsl:param name="generate.section.toc.level" select="-1"/>
    47   <xsl:param name="toc.indent.width" select="18"/>
    48 
    49   <!-- Page number in Xref-->
    50   <xsl:param name="insert.xref.page.number">no</xsl:param>
    51 
    52   <!-- Prevent duplicate e-mails in the Acknowledgments pages-->
    53   <xsl:param name="ulink.show" select="0"/>
     22    <!-- Do section labels include the component label? 1 = yes, 0 = no -->
     23  <xsl:param name="section.label.includes.component.label" select="0"/>
    5424
    5525</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.