Suppress makeindex/printindex?

369 views
Skip to first unread message

william....@scality.com

unread,
Apr 12, 2019, 6:13:51 PM4/12/19
to sphinx-users
I have a set of books to which one of the other writers has added a glossary. Up until this addition, sphinx ran, found no index item tags, and generated PDF books with no index. The glossary entries, however, receive auto-generated index headings when the LaTeX engine (xelatex, I believe) is invoked. On the index run, makeindex sees the tags, and dutifully generates an index. This gives us a Glossary, immediately followed by an Index that only points to the glossary pages immediately before it. Not the look I'm after!

I have figured out that you can defeat this behavior by manually deleting either \makeindex or \printindex from the .tex file. I would prefer that the makeindex engine not be invoked at all, but I cannot find any way to toggle this off. I would be most grateful if someone could tell me if there is a way to do defeat makeindex, either from a configuration file, or from the command line. Failing this, if there were a way to redefine the glossary entry definition such that generated glossary entries do not contain an index tag, this would also probably do the trick without breaking anything important. 

Thanks for any help you can offer. 

--William

Komiya Takeshi

unread,
Apr 12, 2019, 10:28:22 PM4/12/19
to sphinx...@googlegroups.com
Hi,

You can suppress them all with following settings in conf.py:
```
latex_elements = {
'makeindex': '',
'printindex': '',
}
```

Thanks,
Takeshi KOMIYA

2019年4月13日(土) 7:13 william.abernathy via sphinx-users
<sphinx...@googlegroups.com>:
> --
> You received this message because you are subscribed to the Google Groups "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users...@googlegroups.com.
> To post to this group, send email to sphinx...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sphinx-users.
> For more options, visit https://groups.google.com/d/optout.

William Abernathy

unread,
Apr 15, 2019, 2:18:25 PM4/15/19
to sphinx...@googlegroups.com
Thank you, Mr. Takeshi. Your response was accurate and effective. Aregato gozai mas!

--William
--


William Abernathy

Sr. Tech Writer

San Francisco

Reply all
Reply to author
Forward
0 new messages