From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Target and link text normalised to `orgtargetn' Date: Mon, 20 Apr 2015 22:11:55 +0200 Message-ID: <87618qblv8.fsf@gmx.us> References: <20150414092530.GC2957@chitra.no-ip.org> <87zj699ez9.fsf@gmx.us> <20150416001830.GC14328@chitra.no-ip.org> <87egnk9ycz.fsf@gmx.us> <87k2x9cddu.fsf@nicolasgoaziou.fr> <20150419121305.GZ14328@chitra.no-ip.org> <87618smg2i.fsf@nicolasgoaziou.fr> <87d230rzak.fsf@gmx.us> <87vbgsdw2c.fsf@nicolasgoaziou.fr> <87pp70qi9w.fsf@gmx.us> <87oamkdu5v.fsf@nicolasgoaziou.fr> <87lhhoqbsc.fsf@gmx.us> <87fv7wdkz2.fsf@nicolasgoaziou.fr> <87383vqiuh.fsf@gmx.us> <87618rdv3w.fsf@nicolasgoaziou.fr> <87wq17p2x1.fsf@gmx.us> <87wq17ce98.fsf@nicolasgoaziou.fr> <87oamjce2q.fsf@gmx.us> <87sibvccnc.fsf@nicolasgoaziou.fr> <87618rc595.fsf@gmx.us> <87fv7ubyn6.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkI30-0004GY-Uw for emacs-orgmode@gnu.org; Mon, 20 Apr 2015 16:12:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkI2y-00052r-6f for emacs-orgmode@gnu.org; Mon, 20 Apr 2015 16:12:02 -0400 Received: from mout.gmx.net ([212.227.17.21]:51311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkI2x-00052j-ST for emacs-orgmode@gnu.org; Mon, 20 Apr 2015 16:12:00 -0400 Received: from x200s ([92.225.122.28]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Meutp-1YzJpP2c7V-00OX9q for ; Mon, 20 Apr 2015 22:11:58 +0200 In-Reply-To: <87fv7ubyn6.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Mon, 20 Apr 2015 17:35:57 +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 Nicolas Goaziou writes: > Rasmus writes: > >> Can we have conditional dependence on texmathp? > > I guess it doesn't hurt. You need to declare it as an external function > in order to silence byte-compiler, tho. You are right. Thanks. >> If so, maybe something like the attached, though the latex-environment >> part is ugly. > > Another option is to simply extract environment from :value and decide > if it is a math environment or not. This is what `texmathp' does (i.e., > `texmathp-tex-commands-default') although the list is configurable > (through `texmathp-tex-commands'). > > Nesting is not a problem here since you're only interested if the > top-most environment. Yeah, I though of that, but that require us to maintain a list of latex math environments, which may or may not be annoying. If we add such a variable where should it live? org.el or ox-latex.el? =E2=80=94Rasmus --=20 This message is brought to you by the department of redundant departments