简体   繁体   English

如何使用xmlmind docbook编辑器生成索引?

[英]How to generate an index with xmlmind docbook editor?

I am new to xml, but not to latex. 我是xml的新手,但不是乳胶。 I started using xmlmind. 我开始使用xmlmind。 I have a simple docbook example where I have only a term test indexed. 我有一个简单的docbook示例,其中仅对术语test索引。 The pdf or html generated does not include the index. 生成的pdf或html不包含索引。 What I am missing? 我缺少什么?

<?xml version="1.0" encoding="UTF-8"?>
<book version="5.1" xmlns="http://docbook.org/ns/docbook"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xila="http://www.w3.org/2001/XInclude/local-attributes"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  xmlns:trans="http://docbook.org/ns/transclusion"
  xmlns:svg="http://www.w3.org/2000/svg"
  xmlns:m="http://www.w3.org/1998/Math/MathML"
  xmlns:html="http://www.w3.org/1999/xhtml"
  xmlns:db="http://docbook.org/ns/docbook">
<info>
<title/>
<author>
  <personname><firstname/><surname/></personname>

  <affiliation>
    <orgname/>
  </affiliation>
</author>

<pubdate/>
</info>

<chapter>
<title/>
<section>
  <title/>
  <para>test<indexterm class="singular">
      <primary>test</primary>
    </indexterm></para>
</section>
</chapter>
</book>

Simply add an 只需添加一个

<index/>

after the 之后

</chapter> 

term. 术语。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM