From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Re: Making an index in latex export --- surprisingly difficult Date: Tue, 26 Apr 2011 16:58:41 -0500 Message-ID: <4DB74011.2020600@sift.info> References: <4DB73482.5010608@sift.info> <6174.1303854727@alphaville.americas.hpqcorp.net> 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]:44847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEqHN-0007G1-11 for emacs-orgmode@gnu.org; Tue, 26 Apr 2011 17:58:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEqHL-0001Sx-Fr for emacs-orgmode@gnu.org; Tue, 26 Apr 2011 17:58:44 -0400 Received: from mpls.sift.info ([75.146.46.193]:40243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEqHL-0001Sc-B7 for emacs-orgmode@gnu.org; Tue, 26 Apr 2011 17:58:43 -0400 In-Reply-To: <6174.1303854727@alphaville.americas.hpqcorp.net> 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: nicholas.dokos@hp.com Cc: Org Mode On 4/26/11 Apr 26 -4:52 PM, Nick Dokos wrote: > 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: >> .... >> 2. put in \index commands (I don't /believe/ #+INDEX works, but I could >> be wrong) Am I right about #+INDEX not being translated in the latex back end (it seems not to work, but it's hard to verify a negative)? If so, would this be hard to fix? If it wouldn't, seems like that would be A Good Thing. .... >> 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. Once one has makeindex hacked in there (oh, and you've broken the security!), it works fine, thanks. > >> 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >