From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Generating indexes Date: Fri, 04 Jul 2014 09:48:36 -0400 Message-ID: <87y4w96xqj.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X33rQ-0008Nw-DE for emacs-orgmode@gnu.org; Fri, 04 Jul 2014 09:49:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X33rG-0004M2-QY for emacs-orgmode@gnu.org; Fri, 04 Jul 2014 09:49:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:45523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X33rG-0004Ln-JU for emacs-orgmode@gnu.org; Fri, 04 Jul 2014 09:48:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X33rE-0001CJ-4Q for emacs-orgmode@gnu.org; Fri, 04 Jul 2014 15:48:56 +0200 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Jul 2014 15:48:56 +0200 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Jul 2014 15:48:56 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org John Tait 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