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: Wed, 24 Nov 2010 00:15:17 +0100 Message-ID: <804ob7my2i.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> <80k4k5t4jh.fsf@missioncriticalit.com> <87lj4keupm.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, (will answer to the other posts later, need to go and rest) "Eric Schulte" wrote: > S=C3=A9bastien Vauban writes: >> Tested it (yesterday) for HTML. Per-fect! Thanks a lot... It's of great= use. > > great, thanks for testing Confirmed. >> Tried to test it (now) for LaTeX. Can't, for the same reason as >> described in: >> >> [[http://mid.gmane.org/80eiadw0dh.fsf%40missioncriticalit.com]] >> [2010-11-22 Mon 21:48] > > After looking at this message I don't understand what the error is, are > you getting a "void-function -mode" error when exporting to LaTeX? The > following exports fine to LaTeX for me w/o error. As David explained, it must be a bad interaction of the "src native fontification". Solved by coming back to Org master, only applying your pat= ch, and staying (temporarily) in "no native fontification" mode. >> Though, already a couple of comments: >> >> 1. I guess there is one little typo in your patch: >> + (wrap "#+BEGIN_LaTe\n" "#+END_LaTeX")) > > Fixed version attached, Thanks Tested it. Works perfect... after, of course, defining a new environment, such as (used for my test, after loading package =3Dxcolor=3D): #+begin_src latex \newenvironment{RESULT}[0]% {\color{green}} {} #+end_src Only "glitch" is, when applying your patch: #+begin_src sh sva@MEDIACENTER:~/src/org-mode 0$ git apply 0001-wrap-results-header-argume= nt-wraps-code-block-result.patch 0001-wrap-results-header-argument-wraps-code-block-result.patch:29: trailin= g whitespace. (cond warning: 1 line adds whitespace errors. #+end_src There are, indeed, a couple of spaces and tabs after one of the 2 conds you introduce in the patch. Why is it a problem (even if a warning only), I have no idea? >> 2. Could you make the wrap on by default? > > No Why not? Because one needs first to add a environment in LaTeX? Other rea= sons? > but you can by adding (:results . "wrap") to `org-babel-default-header-ar= gs' > in your personal configuration. OK. > Although I guess if this is turned on by default then there should be a w= ay > to turn it off, either a "nowrap" header argument or a "plain" header > argument or something that would be on by default. This would certainly be useful at some point in time, yes. > So do you think this could be applied to the core? If not what changes > would you recommend? I vote for applying it to master. Thanks a lot, once more! 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