From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Love Subject: Re: LaTex Output with Index Date: Tue, 14 May 2019 23:58:22 -0500 Message-ID: References: <8A9663A3-665C-4216-96CF-40A3E3AE06B4@comcast.net> <87mujreax2.fsf@ucl.ac.uk> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:38477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQmAG-0008JM-2U for emacs-orgmode@gnu.org; Wed, 15 May 2019 01:09:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQlyU-00041V-A7 for emacs-orgmode@gnu.org; Wed, 15 May 2019 00:57:07 -0400 Received: from resqmta-ch2-02v.sys.comcast.net ([2001:558:fe21:29:69:252:207:34]:39956) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hQlyU-0003vc-1z for emacs-orgmode@gnu.org; Wed, 15 May 2019 00:57:06 -0400 In-Reply-To: <87mujreax2.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Fraga, Eric" Cc: emacs-orgmode list With your instructions I can now generate a document with an index. = Thanks. However, I have one hitch. How do I generate an index with an entry = that has an =E2=80=9C@=E2=80=9C symbol in it? For example #+index: @ terms I=E2=80=99ve tried \@ and \verb{@} and several other ideas but once = there is an @ sign, no entry shows up. If I have =E2=80=9Cterms=E2=80=9D = instead of =E2=80=9C@ terms=E2=80=9D it works fine. The @ sign shows up = OK in the body of the document, just not in an index. Any suggestions? =20 > On May 12, 2019, at 2:21 PM, Fraga, Eric wrote: >=20 > 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? >=20 > That part of the manual is for publishing to HTML, not for creating a > PDF via LaTeX. >=20 > To generate an index for LaTeX, you add >=20 > #+index: term >=20 > lines to your org file. =20 >=20 > 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: >=20 > #+LaTeX_HEADER: \usepackage{makeidx} \makeindex >=20 > and then a \printindex statement somewhere in your org file (probably = at > the end) for the index to be generated. >=20 > Once you have your org file the way you want it, you then need to use > LaTeX itself to create the index. So: >=20 > 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) >=20 > 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. >=20 > HTH. > --=20 > Eric S Fraga via Emacs 27.0.50, Org release_9.2.3-327-g3375f0