Documentation Tools

Changeset 201


Ignore:
Timestamp:
07/08/07 03:10:31 (5 years ago)
Author:
nick
Message:

tex/book.tex: First attempt at setting up <part> support -- some minor <part> level customizations.
tex/common.tex:

  • Remove entity definition for mdash, load entities.tex file which now contains it.
  • Add a float type for admonitions called WPIadmonition.

tex/entities.tex: Create file.

  • Contains the following entities (which texml emits as \textfoo): + textemdash (from common.tex) + textendash + texttrademark + textregistered + texttimes

xsl/texml/common.xsl:

  • Include the admon.xsl sheet which handles admonitions.
  • Remove <note> from the todo list (implemented in admon.xsl)
  • Add legalnotice, titleabbrev, guilabel, guimenuitem and guimenu to the todo list.

xsl/texml/common/admon.xsl: Create file.

  • Implement admonitions (<note>, <caution>, <important>, <warning>, <tip>) using a basic-admonitions template.

xsl/texml/common/sections.xsl: First beginning steps at <part> support.

Location:
trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/tex/book.tex

    r191 r201  
    55\input common.tex 
    66 
     7\setupsection[section-1][previousnumber=yes,conversion=Romannumerals] 
     8\setupsectionblock[section-1][page=yes] 
  • trunk/tex/common.tex

    r198 r201  
    1212% $Id$ 
    1313 
     14\input entities.tex 
     15 
    1416\useregime 
    1517        [utf] 
     
    2022\setuppagenumbering 
    2123        [location=footer] 
    22  
    23 % TeXML generates this, which I think it assumes exists from LaTeX 
    24 % I don't know why it dosen't simply write "---" instead. 
    25 \def\textemdash{---} 
    2624 
    2725% Dotted contents 
     
    123121 
    124122 
     123% admonition things 
     124\definefloat[WPIadmonition][WPIadmonitions] 
     125\setupfloat[WPIadmonition][location=middle] 
     126\setupcaption[WPIadmonition][location=none] 
     127 
    125128% TODO source custom style after that so the customisations have 
    126129% precidence 
  • trunk/tex/docs.tex

    r190 r201  
    7777 
    7878% background-image: url(logo.png); 
    79  
    80  
    81  
  • trunk/xsl/texml/common.xsl

    r185 r201  
    2020        <xsl:include href="common/table.xsl"/> 
    2121        <xsl:include href="common/person.xsl"/> 
     22        <xsl:include href="common/admon.xsl"/> 
    2223 
    2324        <xsl:template match="title" name="title"> 
     
    2930        <!-- TODO don't forget common attributes! --> 
    3031 
    31         <xsl:template match="note"/>    <!-- TODO --> 
    3232        <xsl:template match="abstract"/>        <!-- TODO --> 
    3333        <xsl:template match="appendix"/>        <!-- TODO --> 
     
    4141        <xsl:template match="revhistory"/>      <!-- TODO --> 
    4242        <xsl:template match="releaseinfo"/>     <!-- TODO --> 
     43        <xsl:template match="legalnotice"/>     <!-- TODO --> 
     44        <xsl:template match="titleabbrev"/> <!-- TODO --> 
     45        <xsl:template match="guilabel"/> <!-- TODO --> 
     46        <xsl:template match="guimenuitem"/> <!-- TODO --> 
     47        <xsl:template match="guimenu"/> <!-- TODO -->    
     48         
    4349 
    4450        <!-- TODO common attribute: language to {\language[] }--> 
  • trunk/xsl/texml/common/sections.xsl

    r191 r201  
    8080        </xsl:template> 
    8181 
    82         <xsl:template match="part">     <!-- TODO --> 
    83                 <xsl:apply-templates/> 
     82        <xsl:template match="part"> <!-- TODO --> 
     83                <cmd name="part"> 
     84                        <xsl:apply-templates select="title"/> 
     85                </cmd> 
     86                <xsl:apply-templates select="*[name() != 'title']"/> 
    8487        </xsl:template> 
    8588 
Note: See TracChangeset for help on using the changeset viewer.