emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: [bug] Removing the Babel results
Date: Tue, 03 Feb 2015 15:26:35 +0100	[thread overview]
Message-ID: <86bnlbxe90.fsf@example.com> (raw)

Hello,

Removing the Babel results (through `C-c C-v k') is not done in
a coherent way, as you can see in the following example:

  #+begin_src shell
  echo "| a |"
  echo "| very |"
  echo "| very |"
  echo "| long |"
  echo "| table |"
  #+end_src

  #+latex: \footnotesize
  #+attr_latex: :environment longtable
  #+caption: Nombre de dossiers par DR et par coordinateur
  #+results:
  |   |   | a     |   |
  |   |   | very  |   |
  |   |   | very  |   |
  |   |   | long  |   |
  |   |   | table |   |
  #+latex: \normalsize

After pressing `C-c C-v k', we end up with:

  #+begin_src shell
  echo "| a |"
  echo "| very |"
  echo "| very |"
  echo "| long |"
  echo "| table |"
  #+end_src

  #+latex: \footnotesize
  #+attr_latex: :environment longtable
  #+caption: Nombre de dossiers par DR et par coordinateur#+latex: \normalsize

... where the caption is changed (because an extra newline seems to
have been eaten).

Of course, re-executing the block would generate an more inadequate
situation...

  #+begin_src shell
  echo "| a |"
  echo "| very |"
  echo "| very |"
  echo "| long |"
  echo "| table |"
  #+end_src

  #+results:
  |   |   | a     |   |
  |   |   | very  |   |
  |   |   | very  |   |
  |   |   | long  |   |
  |   |   | table |   |

  #+latex: \footnotesize
  #+attr_latex: :environment longtable
  #+caption: Nombre de dossiers par DR et par coordinateur#+latex: \normalsize

... because, now, the results is completely "unbundled" from its
caption, and all the attributes.  But that's certainly more
a specification problem -- what should really happen?  Leave
the #+results keyword, etc.?

Best regards,
  Seb

PS- BTW, I don't understand why the generated table has 4 columns...

-- 
Sebastien Vauban

             reply	other threads:[~2015-02-03 14:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-03 14:26 Sebastien Vauban [this message]
2015-02-03 15:28 ` [bug] Removing the Babel results Daniele Pizzolli

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=86bnlbxe90.fsf@example.com \
    --to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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).