From mboxrd@z Thu Jan 1 00:00:00 1970 From: rpgoldman@sift.info Subject: Translate #+INDEX to Latex \index{} on export Date: Thu, 28 Apr 2011 06:47:22 -0500 Message-ID: <1303991243-30731-1-git-send-email-rpgoldman@sift.info> Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFPhF-0006Ao-FT for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 07:47:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFPhE-0008Jp-36 for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 07:47:49 -0400 Received: from enchanter.real-time.com ([63.170.91.11]:3169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFPhD-0008Ja-TX for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 07:47:48 -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: emacs-orgmode@gnu.org The following email contains a patch that will cause the latex export preprocessor to rewrite #+INDEX: lines in an org file into LaTeX style \index{} entries. As far as I can tell, this should be The Right Thing --- latex doesn't seem to do anything bad if there are index entries without makeindex. So no downside. And it doesn't seem right to have to do #+INDEX for HTML export and #+LATEX: \index{} for latex export. I believe that this should be complemented by some additional code that would: 1. Add code to turn on and off index generation and appropriately add the makeindex package and the \makeindex 2. Possibly add code to turn /off/ this translation in the case where the user wishes to have HTML and Latex documents indexed differently. Cheers, r