~ubuntu-branches/ubuntu/wily/dblatex/wily

« back to all changes in this revision

Viewing changes to xsl/latex_book.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Hoenen
  • Date: 2008-08-11 20:28:56 UTC
  • mfrom: (4.1.7 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080811202856-d2qjg24ut53mgufx
Tags: 0.2.9-3
* Improve CJK (Chinese/Japanese/Korean) support:
  + Let XSL configuration parameter cjk.font default to gkai (instead of the
    cyberbit font not included in Debian).
  + Add Suggests dependency on latex-cjk-all for the gkai fonts.
  + Fix the db2latex style not to collide with the CJKutf8.sty file.
  Thanks to W. Martin Borgert for reporting and hints.
  Closes: #482857, #492350
* Fix a name clash with TeXLive for spanish documents in native style.
  Thanks to W. Martin Borgert for reporting.  Closes: #492304
* Support underscore characters in xreflabel attributes.  Thanks to
  Sébastien Villemot for reporting.  Closes: #492959

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
<xsl:import href="mathml2/mathml.xsl"/>
12
12
 
13
13
 
 
14
<xsl:template name="apply-templates">
 
15
  <xsl:apply-imports/>
 
16
  <xsl:apply-templates select="." mode="annotation.links"/>
 
17
</xsl:template>
 
18
 
 
19
<xsl:template match="*[not(self::indexterm or
 
20
                           self::calloutlist or
 
21
                           self::programlisting or
 
22
                           self::screen)]">
 
23
  <xsl:call-template name="apply-templates"/>
 
24
</xsl:template>
 
25
 
14
26
<xsl:template match="*[@revisionflag]">
15
27
  <xsl:choose>
16
28
    <xsl:when test="local-name(.) = 'para'
 
29
                    or local-name(.) = 'simpara'
 
30
                    or local-name(.) = 'formalpara'
17
31
                    or local-name(.) = 'section'
 
32
                    or local-name(.) = 'sect1'
 
33
                    or local-name(.) = 'sect2'
 
34
                    or local-name(.) = 'sect3'
 
35
                    or local-name(.) = 'sect4'
 
36
                    or local-name(.) = 'sect5'
 
37
                    or local-name(.) = 'chapter'
 
38
                    or local-name(.) = 'preface'
 
39
                    or local-name(.) = 'itemizedlist'
 
40
                    or local-name(.) = 'varlistentry'
 
41
                    or local-name(.) = 'glossary'
 
42
                    or local-name(.) = 'bibliography'
18
43
                    or local-name(.) = 'appendix'">
19
 
      <xsl:text>\cbstart{}</xsl:text>
20
 
      <xsl:apply-imports/>
 
44
      <xsl:text>&#10;\cbstart{}</xsl:text>
 
45
      <xsl:call-template name="apply-templates"/>
21
46
      <xsl:text>\cbend{}&#10;</xsl:text>
22
47
    </xsl:when>
23
48
    <xsl:when test="local-name(.) = 'phrase'
24
49
                    or local-name(.) = 'ulink'
 
50
                    or local-name(.) = 'filename'
 
51
                    or local-name(.) = 'literal'
 
52
                    or local-name(.) = 'member'
 
53
                    or local-name(.) = 'glossterm'
 
54
                    or local-name(.) = 'sgmltag'
 
55
                    or local-name(.) = 'quote'
 
56
                    or local-name(.) = 'emphasis'
 
57
                    or local-name(.) = 'command'
25
58
                    or local-name(.) = 'xref'">
26
59
      <xsl:text>\cbstart{}</xsl:text>
27
 
      <xsl:apply-imports/>
 
60
      <xsl:call-template name="apply-templates"/>
28
61
      <xsl:text>\cbend{}</xsl:text>
29
62
    </xsl:when>
30
63
    <xsl:otherwise>
31
64
      <xsl:message>
32
 
        <xsl:text>*** Revisionflag on unexpected element: </xsl:text>
 
65
        <xsl:text>Revisionflag on unexpected element: </xsl:text>
33
66
        <xsl:value-of select="local-name(.)"/>
34
 
        <xsl:text>(Assuming block)</xsl:text>
 
67
        <xsl:text> (Assuming block)</xsl:text>
35
68
      </xsl:message>
36
 
      <xsl:text>\cbstart{}</xsl:text>
37
 
      <xsl:apply-imports/>
 
69
      <xsl:text>&#10;\cbstart{}</xsl:text>
 
70
      <xsl:call-template name="apply-templates"/>
38
71
      <xsl:text>\cbend{}&#10;</xsl:text>
39
72
    </xsl:otherwise>
40
73
  </xsl:choose>