From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Making an index in latex export --- surprisingly difficult Date: Tue, 26 Apr 2011 16:09:22 -0500 Message-ID: <4DB73482.5010608@sift.info> Reply-To: rpgoldman@sift.info Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEpVf-0005Mw-OU for emacs-orgmode@gnu.org; Tue, 26 Apr 2011 17:09:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEpVe-0002f5-NI for emacs-orgmode@gnu.org; Tue, 26 Apr 2011 17:09:27 -0400 Received: from mpls.sift.info ([75.146.46.193]:54315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEpVe-0002ew-Jt for emacs-orgmode@gnu.org; Tue, 26 Apr 2011 17:09:26 -0400 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: Org Mode I was trying to make an index in latex export and found that it was very difficult to make it work. I wonder if this could be simplified. Here's what I had to do: 1. put \makeindex and \usepackage{makeidx} in latex export header [no big deal] 2. put in \index commands (I don't /believe/ #+INDEX works, but I could be wrong) 3. Put a \printindex in the end. [again, no big deal] 4. Modify the org-latex-to-pdf-process to ("pdflatex -interaction nonstopmode -output-directory %o %f" "makeindex -o %b.ind %b.idx" "pdflatex -interaction nonstopmode -output-directory %o %f" "pdflatex -interaction nonstopmode -output-directory %o %f") [This was /somewhat/ of a big deal. Suggest we add support for indexing as a built-in option, like bibtex...] 5. The REAL big deal: edit my texmf.cf file to break the security protection of openout_any=p. By default, makeindex will refuse to open an absolute pathname. But org-mode will only pass absolute pathnames to makeindex (AFAICT). Question: it seems like bibtex should suffer from this same restriction. Has anyone had that problem with it? Cheers, r