On Monday, 13 Feb 2017 at 13:06, Russell Adams wrote:
> On Sun, Feb 12, 2017 at 04:30:48PM +0000, Eric S Fraga wrote:

[...]

>> Maybe use #index: ?
>
> Sorry, but do you mean in Latex or Org?

Sorry.  Not clear in my response!  The #+index: is an org directly.

"#+index: keyword" directives are then translated to LaTeX
\index{keyword} when exporting to PDF (say) and which can then be used
to create an index of keywords and page numbers using the \printindex
directive in LaTeX and the makeindex command to process these.  You'll
have to modify org-latex-pdf-process to invoke makeindex or else do this
manually from the exported LaTeX file.

See attached for a minimal example (org and resulting PDF).

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.4-242-g2c27b8
#+LaTeX_HEADER: \usepackage{makeidx} \makeindex

* Introduction
#+index: introduction
This is the start of the document.

\newpage
* Main contents
#+index: contents

Blah blah blah.
* Conclusions
#+index: conclusion
We conclude the document here.

\newpage
\printindex

Attachment: t.pdf
Description: Adobe PDF document

Attachment: signature.asc
Description: PGP signature

Reply via email to