emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: "Clément Pit--Claudel" <clement.pit@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Restrict include to some backend
Date: Wed, 14 Sep 2016 11:55:58 +0000	[thread overview]
Message-ID: <CAFyQvY0LUfsFSad4UJPRMvsmJZzisuALUOrnfDiZ7_PELq24gA@mail.gmail.com> (raw)
In-Reply-To: <475d2764-542a-6bb0-bc3a-ff7fd7294097@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

On Mon, Sep 12, 2016 at 11:14 PM Clément Pit--Claudel <clement.pit@gmail.com>
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?

-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 2786 bytes --]

  reply	other threads:[~2016-09-14 11:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-06  5:13 Restrict include to some backend Fabrice Popineau
2016-09-06 13:59 ` Clément Pit--Claudel
2016-09-06 14:59   ` Clément Pit--Claudel
2016-09-06 15:58   ` Nicolas Goaziou
2016-09-06 18:15     ` Clément Pit--Claudel
2016-09-06 20:32       ` Nicolas Goaziou
2016-09-13  3:10         ` Kaushal Modi
2016-09-13  3:14           ` Clément Pit--Claudel
2016-09-14 11:55             ` Kaushal Modi [this message]
2016-09-14 12:21               ` Clément Pit--Claudel
2016-09-14 12:33                 ` Kaushal Modi
2016-09-06 20:10   ` Fabrice Popineau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFyQvY0LUfsFSad4UJPRMvsmJZzisuALUOrnfDiZ7_PELq24gA@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=clement.pit@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).