[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] inline src block results can be removed
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [PATCH] inline src block results can be removed |
Date: |
Thu, 13 Nov 2014 18:48:19 +0100 |
Hello,
"Charles C. Berry" <address@hidden> writes:
> I like the flexibility that macros would allow.
I like it too. Macros are much better than export snippets for the task.
> I don't think the usual #+MACRO works here, as the definition would be
> found in `org-macro-templates' by the first call and existing stuff
> would be expanded instead of being left for babel to remove it. But
> setting it up as a document keyword should work, right?
>
> Don't know if there are other gotchas.
>
> Maybe a limited collection of formats could be set up to support basic
> markup options and the macro could choose amongst them with a second
> arg set by a babel header arg.
I think {{{results()}}} should remain a dumb wrapper itself and not try
to do some formatting (i.e., a simple, hard-coded macro). Formatting
should be on the side of Babel and, possibly, its arguments. Let's not
duplicate features.
> I am not quite sure how to marry this to header args. Maybe the :wrap
> header arg should be hijacked for inline src blocks to specify a macro
> for the results.
Macro can be the default output. If you don't want a macro, use raw
header. IOW, there is no need for a specific header arg.
> I mean, does anyone actually use stuff like src_R[:wrap latex]{1+2}?
> The current result cannot be parsed as an export block, AFAICS.
It could evaluate to @@latex:3@@. Parsing can also be solved if
necessary.
Thanks for your work.
Regards,
--
Nicolas Goaziou
- [O] [PATCH] inline src block results can be removed, Charles C. Berry, 2014/11/11
- Re: [O] [PATCH] inline src block results can be removed, Andreas Leha, 2014/11/11
- Re: [O] [PATCH] inline src block results can be removed, Aaron Ecay, 2014/11/12
- Re: [O] [PATCH] inline src block results can be removed, Charles C. Berry, 2014/11/12
- Re: [O] [PATCH] inline src block results can be removed,
Nicolas Goaziou <=
- Re: [O] [PATCH] inline src block results can be removed, Andreas Leha, 2014/11/13
- Re: [O] [PATCH] inline src block results can be removed, Charles C. Berry, 2014/11/14
- Re: [O] [PATCH] inline src block results can be removed, Nicolas Goaziou, 2014/11/14
- Re: [O] [PATCH] inline src block results can be removed, Aaron Ecay, 2014/11/14
- Re: [O] [PATCH] inline src block results can be removed, Nicolas Goaziou, 2014/11/15
- Re: [O] [PATCH] inline src block results can be removed, Charles C. Berry, 2014/11/15
- Re: [O] [PATCH] inline src block results can be removed, Nicolas Goaziou, 2014/11/16
- Re: [O] [PATCH] inline src block results can be removed, Daniele Pizzolli, 2014/11/24
- Re: [O] [PATCH] inline src block results can be removed, Andreas Leha, 2014/11/24