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

Herbert Schulz herbs at wideopenwest.com
Sat Jul 30 17:08:54 EDT 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: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20160730/1f7b9c2c/attachment.obj>
-------------- next part --------------


Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)








More information about the MacOSX-TeX mailing list