emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mike McLean <mike.mclean@pobox.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org, Eric Schulte <schulte.eric@gmail.com>
Subject: Re: [new exporter] Captions for tables made by source blocks
Date: Wed, 6 Mar 2013 20:52:54 -0500	[thread overview]
Message-ID: <CANid5Q45_m35zksKwwy0gZnt04s13HWTRDwMqRaX47LRJV8iNw@mail.gmail.com> (raw)
In-Reply-To: <87zjygzp9g.fsf@gmail.com>

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

On Wed, Mar 6, 2013 at 7:28 AM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:

> Vikas Rawal <vikaslists@agrarianresearch.org> writes:
>
> >> CAPTION keyword above a source block applies to the source block only.
> >> If the source block generates a table, you have to put a CAPTION above
> >> it, as it will not inherit the caption of the source block.
> >>
> >> It also implies that you need to name the results. Otherwise, source
> >> block will not recognize its own production, due to the CAPTION keyword
> >> above it.
> >>
> >
> > Thank you once again Nicolas.
> >
> > I understand from this that the variable org-babel-results-keyword has
> > to be changed to NAME. I did this and it works.
> >
> > Is there a way that this could be file-specific?
>
> I wasn't clear. By "naming the results", I mean that you must provide
> your source block a "#+NAME: something" attribute, so the generated
> table gets a "#+RESULTS: something" attribute.
>

Interesting that this topic comes up today just as I noticed it. I'm still
unclear about how to put the CAPTION keyword in when using a dynamic block
via org-collector.el.

I have the lines below and I do not get a table caption like I used to in
the old exporter.

#+NAME: tbl-coi
#+CAPTION: COI Table
#+BEGIN: propview :colnames ( "Area" "Shorthand" "COI" ) :cols ( AREA
CATEGORY ITEM ) :match "+COI+LEVEL=2-ARCHIVE" :noquote t :scope agenda
:inherit (AREA)

Mike

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

  parent reply	other threads:[~2013-03-07  1:53 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-06  9:55 [new exporter] Captions for tables made by source blocks Vikas Rawal
2013-03-06 10:05 ` Nicolas Goaziou
2013-03-06 10:54   ` Vikas Rawal
2013-03-06 12:28     ` Nicolas Goaziou
2013-03-06 23:46       ` Vikas Rawal
2013-03-07  0:03         ` Andreas Leha
2013-03-07  1:52       ` Mike McLean [this message]
2013-03-07  8:20         ` Nicolas Goaziou
2013-03-07 12:27           ` Vikas Rawal
2013-03-07 12:42             ` Nicolas Goaziou
2013-03-07 13:41               ` Vikas Rawal
2013-03-07 15:02                 ` Eric S Fraga
2013-03-07 14:43               ` Vikas Rawal
2013-03-07 17:33                 ` Nicolas Goaziou
2013-03-07 23:38                   ` Vikas Rawal
2013-03-08  0:00                   ` Vikas Rawal
2013-03-07 16:44           ` Achim Gratz
2013-03-07 20:48             ` Nicolas Goaziou
2013-03-07 21:41               ` Achim Gratz
2013-03-08  8:21                 ` Sebastien Vauban

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=CANid5Q45_m35zksKwwy0gZnt04s13HWTRDwMqRaX47LRJV8iNw@mail.gmail.com \
    --to=mike.mclean@pobox.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    --cc=schulte.eric@gmail.com \
    /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).