This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Extra Spaces Caused by <indexterm>s


Processing expectations for <indexterm> include:

    IndexTerms are suppressed in the primary text flow, although they
    contribute to the population of an index and serve as anchors for
    cross references. Under no circumstances is the actual content of
    IndexTerm rendered in the primary flow.

The DVI/PostScript file produced from the attached DocBook/XML file
has one erroneous space for each indexterm in the source.  Which tool
(or me?) is responsible for these erroneous spaces and how do we fix
it?

To create the DVI/PostScript file, I used

jade -D/usr/lib/sgml/stylesheets/docbook  -t sgml -d html.dsl  -V html-index dtds/decls/xml.dcl foo.xml
perl collateindex.pl -t 'Index' -i 'index' -g -p -o genindex.sgm HTML.index
jade -D/usr/lib/sgml/stylesheets/docbook  -t tex -d print.dsl  -V tex-backend -V use-eps dtds/decls/xml.dcl foo.xml
jadetex foo.tex
xdvi foo.dvi &

with versions:
jade -v
jade:I: Jade version "1.2.1"
jade:I: SP version "1.3.3"

collateindex.pl 1.1 2001/12/04

jadetex -v		
TeX (Web2C 7.3.1) 3.14159
kpathsea version 3.3.1
(I believe this is jadetex 3.12, but what command-line option do I use
to prove this?)

Attached:
1) foo.xml
2) foo.ps
3) print.dsl  (which does not modify indexterm)

Thanks for your help,
Jeffrey D. Oldham
oldham@codesourcery.com
<?xml version="1.0"?>

<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
[
  <!ENTITY ExecTest "<classname>ExecTest</classname>">
]>
<article>
<articleinfo>
  <title>Title</title>
  <authorgroup>
    <author>
      <firstname>Jeffrey</firstname><othername>D.</othername><surname>Oldham</surname>
      <affiliation>
        <orgname>Some Wonderful Company</orgname>
      </affiliation>
    </author>
  </authorgroup>
  <date>2001 November 07</date>
</articleinfo>

<section>
<title>Introduction</title>

<para>Why does adding indexterms cause spaces to appear here:
    <indexterm>
     <primary>data-parallel operation</primary>
    </indexterm>
    <indexterm>
     <primary>data-parallel operation</primary>
    </indexterm>
    <indexterm>
     <primary>data-parallel operation</primary>
    </indexterm>
    <indexterm>
     <primary>data-parallel operation</primary>
    </indexterm>
    <indexterm>
     <primary>data-parallel operation</primary>
    </indexterm>
    <indexterm>
     <primary>data-parallel operation</primary>
    </indexterm>
    <indexterm>
     <primary>data-parallel operation</primary>
    </indexterm>
    <indexterm>
     <primary>data-parallel operation</primary>
    </indexterm>
    <indexterm>
     <primary>data-parallel operation</primary>
    </indexterm>
ending here?</para>

<para>Why does omitting indexterms not cause spaces to appear here:
ending here?</para>

</section>

</article>

Attachment: foo.ps
Description: PostScript document

Attachment: print.dsl
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]