emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carlos Pita <carlosjosepita@gmail.com>
To: "Berry, Charles" <ccberry@ucsd.edu>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Feature Request: allow export yes/no for blocks that are valid babel inputs
Date: Tue, 16 Apr 2019 18:13:49 -0300	[thread overview]
Message-ID: <CAELgYhe7cCE10R6_sY=DHzm6H2kfRpQzRUgVp41cC_JHT9QJ6w@mail.gmail.com> (raw)
In-Reply-To: <F9806F2F-BD5E-4ADE-8E2A-989F76E31E8B@ucsd.edu>

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

Hi Berry,

sorry for the late reply, I was pretty busy lately.

I didn't know about inline tasks, thanks for let me know. The idea is cool
but I think that regarding the use case I'm suggesting, they are a more or
less hackish workaround and not a proper solution. I'm saying this because:

1) They are kinda optional, they are not enabled by default. But this is
not too important.

2) They are oriented towards tasks. Clearly, my use case is not about tasks
but about more granularity in exporting. It's true that, as a side effect,
you can wrap some additional syntactical constructions into selectively
exportable chunks by considering them as tasks.

Now, the concept of inline task could be generalized and, if the
generalization is "general enough", maybe even enabled by default. But this
is overkilling for my specific interest, specially if I had to implements
something like that by myself. Instead, I could implement a more modest
proposal (no Swift reference intended).

Regards
--
Carlos


On Sun, Mar 24, 2019 at 1:31 PM Berry, Charles <ccberry@ucsd.edu> wrote:

> AFAICS, the functionality you seek already exists, although it is not
> heavily advertised.
>
> `C-c C-x t' will insert an inline task. Within such a `task' you can put
> text, tables, src blocks and other objects.
>
> Setting option `inline:nil' will prevent export, but leave the content
> visible to src blocks etc.
>
> Alternatively, you can tag inlinetasks as with headlines to control their
> export.
>
> Browse the commentary in org-inlinetask.el for more details.
>
> HTH,
>
> Chuck
>
>
> > On Mar 23, 2019, at 2:20 PM, Carlos Pita <carlosjosepita@gmail.com>
> wrote:
> >
> > Hi all,
> >
> > when using lists, tables and example blocks as inputs to babel src
> > blocks sometimes the inputs are just... inputs. There is some
> > inconsistency in the fact that src blocks can be selectively exported
> > but not their inputs. Commenting these inputs out makes them invisible
> > to the block referencing them (apparently this method worked a time
> > ago but it's not working now). OTOH using the noexport tag introduces
> > spurious sections that interrupt the flow of the document and might be
> > hard to close afterwards (similar to the boilerplate introduced by
> > beamer blocks).
> >
> > What do you think of adding an :export yes/no parameter to these
> > blocks? Or to blocks in general.
> >
> > Best regards
> > --
> > Carlos
> >
> >
>
>
>

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

  reply	other threads:[~2019-04-16 21:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-23 21:20 Feature Request: allow export yes/no for blocks that are valid babel inputs Carlos Pita
2019-03-23 21:30 ` Carlos Pita
2019-03-23 21:35   ` Carlos Pita
2019-03-24 16:30 ` Berry, Charles
2019-04-16 21:13   ` Carlos Pita [this message]
2019-04-17  5:42     ` Fraga, Eric
2019-04-17 16:16       ` Berry, Charles

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='CAELgYhe7cCE10R6_sY=DHzm6H2kfRpQzRUgVp41cC_JHT9QJ6w@mail.gmail.com' \
    --to=carlosjosepita@gmail.com \
    --cc=ccberry@ucsd.edu \
    --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).