From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Making an index in latex export --- surprisingly difficult Date: Tue, 26 Apr 2011 17:52:07 -0400 Message-ID: <6174.1303854727@alphaville.americas.hpqcorp.net> References: <4DB73482.5010608@sift.info> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEqB1-0005xU-47 for emacs-orgmode@gnu.org; Tue, 26 Apr 2011 17:52:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEqB0-0000hq-6q for emacs-orgmode@gnu.org; Tue, 26 Apr 2011 17:52:11 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:22650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEqB0-0000hk-0b for emacs-orgmode@gnu.org; Tue, 26 Apr 2011 17:52:10 -0400 In-Reply-To: Message from Robert Goldman of "Tue, 26 Apr 2011 16:09:22 CDT." <4DB73482.5010608@sift.info> 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: rpgoldman@sift.info Cc: nicholas.dokos@hp.com, Org Mode Robert Goldman wrote: > 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...] > Maybe you can try the texi2dvi option (I think it runs makeindex), but texi2dvi did have a bug that has caused problems here in the past: that's the reason it's not the default setting for org-latex-to-pdf-process. If you run into the bug but still want to try texi2dvi anyway, see http://lists.gnu.org/archive/html/bug-texinfo/2010-03/msg00032.html for the fix Karl Berry applied to the development sources. > 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? > I haven't had the problem, primarily because I haven't used bibtex through org yet :-) But bibtex should exhibit the same problem: the bibtex change predated the makeindex one. Maybe bibtex is only called with a relative path (if that's the case, then the same method should cure makeindex as well). BTW, ".." is not allowed in the relative path: you can only use subdirectories of the current directory. Nick