[OS X TeX] How make glossary with memoir class built-in facility and package imakeeidx

Herbert Schulz herbs at wideopenwest.com
Sat Jul 30 23:08:54 CEST 2016


> On Jul 30, 2016, at 3:31 PM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
> 
> What changes to the “pdflatexmk.engine" or the “latexmkrcedit" file might be needed, if any, in order to run “makeindex" from within a “memoir" document class .tex source so as to create a glossary (along with  an ordinary index)? Or is there an issue with the used “imakeidx” package itself or the way I’m using it?
> 
> Note that I’m using the built-in glossary facilities of the memoir class, and *not* the external package “glossaries”.
> 
> Below is the source, which when the pdflatexmk engine is run from within TeXShop, creates an *empty* file glossary.idx — hence no glossary appears in the resulting .pdf.
> 
>     \documentclass{memoir}
>     
>     \usepackage{amsmath}
>     
>     \usepackage[makeindex]{imakeidx}
>     \makeindex[options=-s indexheaders]
>     \makeglossary[glossary]
>     \makeindex[name=glossary,title=Index of notation,options=-s glossarystyle.gst -o book.gls book.glo]
>     
>     \begin{document}
>     
>     The empty set is denoted by $\emptyset$.%
>     \index{empty set!notation}
>     \glossary[glossary]{$\emptyset$}{empty set}
>     
>     The set of all subsets of a set $X$ is denoted by $\mathcal{P}(X)$.%
>     \index{power set}
>     \glossary[glossary]{$\mathcal{P}(X)$}{power set of set}
>     
>     \newpage
>     
>     For sets $X$ and $Y$, the notation $f \colon X \to Y$ means that $f$ is a functions from $X$ to $Y$.%
>     \index{function!notation}
>     \glossary[glossary]{$f \colon X \to Y$}{function from one set to another}.
>     
>     \printindex
>     \printglossary[glossary]
>     
>     \end{document}
> 
> This query is related to what I’ve posted a:t http://tex.stackexchange.com/questions/321597/how-run-makeindex-inside-memoir-class-document-for-glossary .
> At least I’ve progressed to the point that running the pdflatexmk engine no longer produces an error — just no glossary at all!

Howdy,

From the memoir manual, section 17.3.1 (and this has nothing to do with imakeidx---do you really need it?) the enclosed platexmkrc file should work. Place it in the same directory as your main/root source file and use the pdflatexmk engine.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: platexmkrc
Type: application/octet-stream
Size: 150 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20160730/1f7b9c2c/attachment-0001.obj>
-------------- next part --------------


Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


More information about the macostex-archives mailing list