From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: [Babel] Need for an extra literal block construct Date: Mon, 22 Nov 2010 22:46:42 +0100 Message-ID: <80k4k5t4jh.fsf@missioncriticalit.com> References: <87zkvhoh18.fsf@mundaneum.com> <87fwx5c98w.fsf@gmail.com> <87sk14p6y6.fsf@mundaneum.com> <87mxrbdyhs.fsf@gmail.com> <87tylfsd7h.fsf@mundaneum.com> <4C9D1196.8030309@gmail.com> <87r5gfppob.fsf@mundaneum.com> <8039qxmojd.fsf_-_@mundaneum.com> <4CE694F1.2050409@christianmoe.com> <8039qx3wff.fsf@missioncriticalit.com> <80tyjd2h6q.fsf@missioncriticalit.com> <87ipzt0x5g.fsf@gmail.com> <87eiag29qh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, "Eric Schulte" wrote: > "Eric Schulte" writes: >> This would be useful for custom export of the proposed future babel >> results block (which I promise I'll implement soon). > > An experimental patch implementing wrapping of results using a new > "wrap" :results header argument is attached. Here is an example of its > usage. > > ** introducing =3Dwrap=3D header argument > #+begin_src emacs-lisp :results wrap > (mapcar (lambda (el) (list el (+ 1 (* el el)))) (number-sequence 0 10)) > #+end_src > > #+results: > #+BEGIN_RESULT > | 0 | 1 | > | 1 | 2 | > | 2 | 5 | > | 3 | 10 | > | 4 | 17 | > | 5 | 26 | > | 6 | 37 | > | 7 | 50 | > | 8 | 65 | > | 9 | 82 | > | 10 | 101 | > #+END_RESULT > > now indented > - first > - second > #+begin_src emacs-lisp :results wrap > "something else" > #+end_src > > #+results: > #+BEGIN_RESULT > : something else > #+END_RESULT > > I haven't applied it directly to the repository because I fear it could h= ave > negative effects on the wrapping of results in HTML and LaTeX blocks, so = if > any brave souls could try this out over the next day or two and let me kn= ow > how it works I'd then feel much more comfortable about dropping it into t= he > core. Tested it (yesterday) for HTML. Per-fect! Thanks a lot... It's of great us= e. Tried to test it (now) for LaTeX. Can't, for the same reason as described i= n: [[http://mid.gmane.org/80eiadw0dh.fsf%40missioncriticalit.com][Email fro= m S=C3=A9bastien Vauban: Debugger entered--Lisp error: ]]** TODO Debugger e= ntered--Lisp error: (void-function -mode) [2010-11-22 Mon 21:48] Though, already a couple of comments: 1. I guess there is one little typo in your patch: + (wrap "#+BEGIN_LaTe\n" "#+END_LaTeX")) ^ 2. Could you make the wrap on by default? Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode