From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Generating indexes
Date: Fri, 04 Jul 2014 09:48:36 -0400 [thread overview]
Message-ID: <87y4w96xqj.fsf@gmail.com> (raw)
In-Reply-To: CAPDE7WxN4zGn8-pzKNKmycaBNMEoKY4GFcRH9Z=cN81jPQ1EMA@mail.gmail.com
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
prev parent reply other threads:[~2014-07-04 13:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-03 21:25 Generating indexes John Tait
2014-07-04 13:48 ` Nick Dokos [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y4w96xqj.fsf@gmail.com \
--to=ndokos@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).