From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Restrict include to some backend Date: Wed, 14 Sep 2016 11:55:58 +0000 Message-ID: References: <87mvjluiin.fsf@saiph.selenimh> <1c034d43-221c-2f48-8693-9fbf7b5cb727@gmail.com> <87oa40rcpt.fsf@saiph.selenimh> <475d2764-542a-6bb0-bc3a-ff7fd7294097@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c060c8e3829e3053c766a19 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk8op-0006Yv-Bf for emacs-orgmode@gnu.org; Wed, 14 Sep 2016 07:57:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bk8ol-0007up-8S for emacs-orgmode@gnu.org; Wed, 14 Sep 2016 07:57:34 -0400 Received: from mail-yw0-f178.google.com ([209.85.161.178]:35852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk8ol-0007qy-32 for emacs-orgmode@gnu.org; Wed, 14 Sep 2016 07:57:31 -0400 Received: by mail-yw0-f178.google.com with SMTP id t67so12001537ywg.3 for ; Wed, 14 Sep 2016 04:57:09 -0700 (PDT) In-Reply-To: <475d2764-542a-6bb0-bc3a-ff7fd7294097@gmail.com> 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" To: =?UTF-8?B?Q2zDqW1lbnQgUGl0LS1DbGF1ZGVs?= Cc: emacs-orgmode@gnu.org --94eb2c060c8e3829e3053c766a19 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Sep 12, 2016 at 11:14 PM Cl=C3=A9ment Pit--Claudel wrote: > Sure thing :) Here it is: > Thanks! This works great! I added it to `org-export-before-processing-hook'= . And it works fine. I did not understand why you mentioned: "I call this before calling `org-latex-export-to-latex'.". I plan to add a "not" condition to this. That way, with below: #+BEGIN_ONLY tex foo #+END_ONLY tex #+BEGIN_EXCEPT tex bar #+END_EXCEPT tex foo will be exported only for tex, and for every other backend, bar will be exported. WDYT? --=20 Kaushal Modi --94eb2c060c8e3829e3053c766a19 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Mon, Sep 12= , 2016 at 11:14 PM Cl=C3=A9ment Pit--Claudel <clement.pit@gmail.com> wrote:
Sure thing :) Here it is:

<= div>Thanks! This works great! I added it to `org-export-before-processing-h= ook'.

And it works fine.

<= div>I did not understand why you mentioned: "I call this before calling `org-latex-export-to-latex'= .".

I plan to add a "not" condition to this. That way= , with below:

#+BEGIN_ONLY tex
foo
#+END_ONLY tex=C2=A0=C2=A0

<= span class=3D"inbox-inbox-inbox-inbox-Apple-converted-space" style=3D"color= :rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-= serif">#+BEGIN_EXCEPT tex
bar
#+END_EXCEPT tex=C2=A0=C2= =A0

foo will be export= ed only for tex, and for every other backend, bar will be exported.
WDYT?
=C2=A0
-- <= br>

Kaushal Modi

--94eb2c060c8e3829e3053c766a19--