From: "Fraga, Eric" <e.fraga@ucl.ac.uk>
To: Robert Love <rblove_lists@comcast.net>
Cc: emacs-orgmode list <emacs-orgmode@gnu.org>
Subject: Re: LaTex Output with Index
Date: Sun, 12 May 2019 19:21:30 +0000 [thread overview]
Message-ID: <87mujreax2.fsf@ucl.ac.uk> (raw)
In-Reply-To: <8A9663A3-665C-4216-96CF-40A3E3AE06B4@comcast.net> (Robert Love's message of "Sun, 12 May 2019 10:17:48 -0500")
On Sunday, 12 May 2019 at 10:17, Robert Love wrote:
> Can someone point to an example of using Org mode to generate a LaTeX
> document with an index? I see the Org has section 13.1.8 Generating
> an index. What is the means to turn that into LaTex with an index?
> Do I have to use a project? Is there a simple example?
That part of the manual is for publishing to HTML, not for creating a
PDF via LaTeX.
To generate an index for LaTeX, you add
#+index: term
lines to your org file.
You need to have a couple of extra bits in your org file for LaTeX to
know about creating an index. In particular, you need:
#+LaTeX_HEADER: \usepackage{makeidx} \makeindex
and then a \printindex statement somewhere in your org file (probably at
the end) for the index to be generated.
Once you have your org file the way you want it, you then need to use
LaTeX itself to create the index. So:
1. export to LaTeX
2. run pdflatex on the LaTeX file
3. run it again just to make sure (sometimes 3 runs are needed...)
4. then run makeindex on the file (base name)
5. finally run pdflatex again (maybe twice)
You can do all these steps from within Emacs. You can either visit the
LaTeX file directly to execute steps 2-5 or you can modify
org-latex-pdf-process (via file local variables, for instance) to insert
the makeindex command.
HTH.
--
Eric S Fraga via Emacs 27.0.50, Org release_9.2.3-327-g3375f0
next prev parent reply other threads:[~2019-05-12 19:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-12 15:17 LaTex Output with Index Robert Love
2019-05-12 19:21 ` Fraga, Eric [this message]
2019-05-15 4:58 ` Robert Love
2019-05-15 9:02 ` Fraga, Eric
2019-05-15 9:30 ` Julius Dittmar
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mujreax2.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=rblove_lists@comcast.net \
/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 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.