* [bug] Removing the Babel results
@ 2015-02-03 14:26 Sebastien Vauban
2015-02-03 15:28 ` Daniele Pizzolli
0 siblings, 1 reply; 2+ messages in thread
From: Sebastien Vauban @ 2015-02-03 14:26 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-03 15:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-03 14:26 [bug] Removing the Babel results Sebastien Vauban
2015-02-03 15:28 ` Daniele Pizzolli
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).