From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: formatted index entries Date: Wed, 18 Jun 2014 15:16:47 +0200 Message-ID: <878uoul5mo.fsf@nicolasgoaziou.fr> References: <87oaxqlft4.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxFit-0008QW-7b for emacs-orgmode@gnu.org; Wed, 18 Jun 2014 09:16:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxFik-0006SI-Tb for emacs-orgmode@gnu.org; Wed, 18 Jun 2014 09:16:19 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:46840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxFik-0006Rw-Nj for emacs-orgmode@gnu.org; Wed, 18 Jun 2014 09:16:10 -0400 In-Reply-To: (Nicolas Berthier's message of "Wed, 18 Jun 2014 14:18: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: Nicolas Berthier Cc: emacs-orgmode@gnu.org Hello, Nicolas Berthier writes: > IMHO, the handling of Org markups (at least) by the LaTeX exporter (and > maybe others) would suffice to implement this feature (with a few tricks > to still allow sorting by makeindex). Am I right? Handling Org markup in the general case is difficult because INDEX keywords, as any other keyword, are not parsed. You can force latex back-end to translate the value of the keyword for a partial support of Org markup (e.g., no macros besides those defined by default, no noweb syntax in Babel). If that sufficient, you can ask `org-latex-keyword' to first split value at exclamation marks, and send each part through `org-export-string-as' in order to get valid LaTeX markup. Regards, -- Nicolas Goaziou