From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [patch][ox-latex] context-aware subscript Date: Wed, 28 Aug 2013 15:46:40 +0200 Message-ID: <8761uqorlr.fsf@gmx.us> References: <877gfjqq6w.fsf@pank.eu> <87tximt7bb.fsf@gmail.com> <87r4deqbav.fsf@gmx.us> <874naaorz1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEg5O-0003kG-4W for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 09:47:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEg5G-0007cm-Lx for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 09:47:02 -0400 Received: from plane.gmane.org ([80.91.229.3]:42658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEg5G-0007cU-Eu for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 09:46:54 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VEg5D-00028n-Uf for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 15:46:51 +0200 Received: from 87-57-37-13-dynamic.dk.customer.tdc.net ([87.57.37.13]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Aug 2013 15:46:51 +0200 Received: from rasmus by 87-57-37-13-dynamic.dk.customer.tdc.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Aug 2013 15:46:51 +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: emacs-orgmode@gnu.org Hi Nicolas, Nicolas Goaziou writes: >> I know it's intended but I dislike it. In earlier version of >> ox-latex.el it didn't use the \text-macro. > > Earlier versions were broken in many ways. They didn't handle spaces, > unicode characters and nested sub/superscript like \text does. OK. >>> Also, merging consecutive subscript and superscript is fragile >>> [...] >> OK. Perhaps it can be made less fragile. > > That's not an easy task. I think it would involve adding implicit > pseudo-objects (i.e. object types specific to `latex' back-end). > Unfortunately, there's no API for that in either org-element or ox. > > For now, I think we can put it aside. I'll just go ahead and trust you on that one. >> But it is broken, since even >> >> (*) $\beta$$_{\text{t}}$ >> >> doesn't produce the correct output (spacing is wrong; compare to >> $\beta_{\text{t}}$). > > Correct. Then, fixing it is more important than caring about some user > filter. OK, can I help? Or do you already have something in mind? >> 2. Try to make the type of subscript configurable. Previously, >> "math subscripts" were forced, now \text subscripts are forced. > > I think filters are good enough for the job. No need for another > configuration variable. I can settle for that. One day we'll (as in I'll) have to grog up a Worg page for sharing "useful" filters. > Also, entering math mode is easy enough in Org, whereas exiting math > mode isn't (if it is forced). I often use constructs like \(I_n\) since > I want the "I" char to be in the same font as "n". That's what I use as well, but I'd like to save the $'s around constructs like \(\beta_t\). I'll try to fix it via a filter. –Rasmus -- The Kids call him Billy the Saint