From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: Babel language "org"? Date: Sat, 4 Apr 2015 12:40:06 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0102f308a38af40512e8b753 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeR7B-0007BA-5D for emacs-orgmode@gnu.org; Sat, 04 Apr 2015 12:40:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YeR79-0004Ln-MW for emacs-orgmode@gnu.org; Sat, 04 Apr 2015 12:40:09 -0400 Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]:36517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeR79-0004Jr-5K for emacs-orgmode@gnu.org; Sat, 04 Apr 2015 12:40:07 -0400 Received: by pdea3 with SMTP id a3so103914583pde.3 for ; Sat, 04 Apr 2015 09:40:06 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --089e0102f308a38af40512e8b753 Content-Type: text/plain; charset=UTF-8 Yes, it's being used as a sort of escape backslash, sort of like when you do \" to have the quotation mark actually show up, or like the
 tag in
html. That's what I thought at first too, i.e., so the #+TITLE: etc. won't
be taken literally by org-mode. But I guess I meant to ask, Is this
orgmode's "official escape backslash" mechanism? What about #+BEGIN_EXAMPLE
... #+END_EXAMPLE or #+BEGIN_QUOTE ... #+END_QUOTE?  It seems like putting
org-mode "code" inside of babel code wrapper would be something about
writing a(n eventual) second, "external" org file while still the first org
file. Or, simpler, I might create a library, i.e., an org file with useful
org-mode templates etc. and have them accessible a la "linked data," the
unique key being the #+NAME: field. But again, I'm very curious, what
exactly is babel's relationship to "org code"? What qualifies as "org
code," as far as babel is concerned?

On Sat, Apr 4, 2015 at 11:47 AM, Ken Mankoff  wrote:

>
> If it weren't wrapped, it would be exported and not show up in the
> document text.
>
>   -k.
>
> On 2015-04-04 at 11:41, Lawrence Bottorff  wrote:
> > I'm taking a closer look at Eric Neilsen's "Emacs org-mode examples and
> > cookbook," specifically the org file Eric sent me. And right off the bat
> I
> > see something interesting:
> >
> > ** General metadata
> >
> > An initial group sets the metadata used in any title pages, headers,
> > footers, etc. used by the various exporters:
> >
> > #+NAME: orgmode-header-metadata
> > #+BEGIN_SRC org
> > #+TITLE:     Emacs org-mode examples
> > #+AUTHOR:    Eric H. Neilsen, Jr.
> > #+EMAIL:     neilsen@fnal.gov
> > #+END_SRC
> >
> > . . . which shows up in the final html version as just
> >
> > #+TITLE:     Emacs org-mode examples
> > #+AUTHOR:    Eric H. Neilsen, Jr.
> > #+EMAIL:     neilsen@fnal.gov
> >
> > Why did he use what looks like babel source formatting? What is gained
> from
> > having org "code" as literate programming? Any docs talking specifically
> > about this, best practices? My first guess is he's just using this as an
> > org-to-html formatting convention, but, again, how much of "org code"
> > (whatever we call "org code") can I put in babel source containers?
> >
> > LB
>
>

--089e0102f308a38af40512e8b753
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Yes, it's being used as a sort of escape backslash, so= rt of like when you do \" to have the quotation mark actually show up,= or like the <pre> tag in html. That's what I thought at first to= o, i.e., so the #+TITLE: etc. won't be taken literally by org-mode. But= I guess I meant to ask, Is this orgmode's "official escape backsl= ash" mechanism? What about #+BEGIN_EXAMPLE ... #+END_EXAMPLE or=C2=A0#+BEGIN_QUOTE ... #+END_QUOTE?=C2=A0= =C2=A0It seems like putting org-mode "code" inside of babel code = wrapper would be something about writing a(n eventual) second, "extern= al" org file while still the first org file. Or, simpler, I might crea= te a library, i.e., an org file with useful org-mode templates etc. and hav= e them accessible a la "linked data," the unique key being the #+= NAME: field. But again, I'm very curious, what exactly is babel's r= elationship to "org code"? What qualifies as "org code,"= ; as far as babel is concerned?

On Sat, Apr 4, 2015 at 11:47 AM, Ken Mankoff <mankoff= @gmail.com> wrote:

If it weren't wrapped, it would be exported and not show up in the docu= ment text.

=C2=A0 -k.

On 2015-04-04 at 11:41, Lawrence Bottorff <borgauf@gmail.com> wrote:
> I'm taking a closer look at Eric Neilsen's "Emacs org-mod= e examples and
> cookbook," specifically the org file Eric sent me. And right off = the bat I
> see something interesting:
>
> ** General metadata
>
> An initial group sets the metadata used in any title pages, headers, > footers, etc. used by the various exporters:
>
> #+NAME: orgmode-header-metadata
> #+BEGIN_SRC org
> #+TITLE:=C2=A0 =C2=A0 =C2=A0Emacs org-mode examples
> #+AUTHOR:=C2=A0 =C2=A0 Eric H. Neilsen, Jr.
> #+EMAIL:=C2=A0 =C2=A0 =C2=A0neilse= n@fnal.gov
> #+END_SRC
>
> . . . which shows up in the final html version as just
>
> #+TITLE:=C2=A0 =C2=A0 =C2=A0Emacs org-mode examples
> #+AUTHOR:=C2=A0 =C2=A0 Eric H. Neilsen, Jr.
> #+EMAIL:=C2=A0 =C2=A0 =C2=A0neilse= n@fnal.gov
>
> Why did he use what looks like babel source formatting? What is gained= from
> having org "code" as literate programming? Any docs talking = specifically
> about this, best practices? My first guess is he's just using this= as an
> org-to-html formatting convention, but, again, how much of "org c= ode"
> (whatever we call "org code") can I put in babel source cont= ainers?
>
> LB


--089e0102f308a38af40512e8b753--