* Generating indexes
@ 2014-07-03 21:25 John Tait
2014-07-04 13:48 ` Nick Dokos
0 siblings, 1 reply; 2+ messages in thread
From: John Tait @ 2014-07-03 21:25 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 157 bytes --]
Hi
Is is possible to produce an index using lines beginning with #+INDEX in
usual HTML or PDF export without setting up a publishing project?
Thanks, John
[-- Attachment #2: Type: text/html, Size: 216 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Generating indexes
2014-07-03 21:25 Generating indexes John Tait
@ 2014-07-04 13:48 ` Nick Dokos
0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2014-07-04 13:48 UTC (permalink / raw)
To: emacs-orgmode
John Tait <johngtait@gmail.com> writes:
> Is is possible to produce an index using lines beginning with #+INDEX
> in usual HTML or PDF export without setting up a publishing project?
>
It should be possible to use the machinery that publishing uses in the
HTML case, but I haven't tried.
For PDF, it is fairly easy: you have to add some stuff in the preamble
and then add a line to print the index - like this:
--8<---------------cut here---------------start------------->8---
#+LATEX_HEADER: \usepackage{makeidx}
#+LATEX_HEADER: \makeindex
* foo
#+INDEX: this
this
#+LATEX: \printindex
--8<---------------cut here---------------end--------------->8---
You have to make sure that your org-latex-pdf-process runs the
makeindex program. I use texi2dvi and it does that automatically.
I presume latexmk would also. But if you use the default of "three calls
to pdflatex", you will need to modify it. Do
C-h v org-latex-pdf-process RET
for more info.
--
Nick
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-04 13:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-03 21:25 Generating indexes John Tait
2014-07-04 13:48 ` Nick Dokos
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.