From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bill Hager Subject: Re: BEGIN_EXAMPLE question Date: Wed, 12 Aug 2009 11:38:02 -0400 Message-ID: References: <9544.1250052202@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1316713195==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbFty-0002Ep-BR for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 11:38:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbFts-0002AT-5s for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 11:38:08 -0400 Received: from [199.232.76.173] (port=33449 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbFtr-0002AL-Vh for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 11:38:04 -0400 Received: from mail-yw0-f202.google.com ([209.85.211.202]:45177) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbFtr-0002S5-Iv for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 11:38:03 -0400 Received: by ywh40 with SMTP id 40so133675ywh.14 for ; Wed, 12 Aug 2009 08:38:02 -0700 (PDT) In-Reply-To: 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@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org --===============1316713195== Content-Type: multipart/alternative; boundary=000e0cd2e590c5720b0470f39a90 --000e0cd2e590c5720b0470f39a90 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Wed, Aug 12, 2009 at 6:48 AM, Bill Hager wrote: > On Wed, Aug 12, 2009 at 12:43 AM, Nick Dokos wrote: > >> Bill Hager wrote: >> >> > I don't seem to understand #+BEGIN_EXAMPLE and it's relation to html >> > export. What I think is that everything between a #+BEGIN_EXAMPLE and >> > #+END_EXAMPLE should end up in
 tags when I do a HTML export with
>> C-c
>> > C-e b.  However, the reality is that everything ends up in a 

tag for >> me. >> > >> > My goal is to have sections of my org file end up in

 tags when I
>> HTML
>> > export.  Any ideas on how I can do this?
>> >
>> > I'm running the default emacs 22.2.1 on Ubuntu Jaunty.
>> >
>>
>> I can't reproduce this. I used the following simple org file:
>>
>> ,----
>> |
>> | * Test
>> |
>> | Here's an example:
>> |
>> | #+BEGIN_EXAMPLE
>> | This is a test.
>> | #+END_EXAMPLE
>> `----
>>
>> did C-c C-e h and got the attached html file. The example is
>> 
'd properly I think.
>>
>
> Thanks Nick.  That does help give me something to compare against.  I've
> attached my results from the same test you did with C-c C-e h showing 

> tags instead of

 tags for the BEGIN_EXAMPLE/END_EXAMPLE section.
>
> Thanks
>


I noticed that Nick was using emacs 23.  I downloaded and compiled 23.1 from
the GNU website.  The new version properly uses 
 tags for
#+BEGIN_EXAMPLE.

- Bill

--000e0cd2e590c5720b0470f39a90
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable



On Wed, Aug 12, 2009 at 6:48 AM, Bill Ha= ger <whager@gmail.= com> wrote:
On Wed, Aug 12= , 2009 at 12:43 AM, Nick Dokos <nicholas.dokos@hp.com> w= rote:
Bill Hager <whager@gmail.com> wrote:

> I don't seem to understand #+BEGIN_EXAMPLE and it's relation t= o html
> export. =A0What I think is that everything between a #+BEGIN_EXAMPLE a= nd
> #+END_EXAMPLE should end up in <pre> tags when I do a HTML expor= t with C-c
> C-e b. =A0However, the reality is that everything ends up in a <p&g= t; tag for me.
>
> My goal is to have sections of my org file end up in <pre> tags = when I HTML
> export. =A0Any ideas on how I can do this?
>
> I'm running the default emacs 22.2.1 on Ubuntu Jaunty.
>

I can't reproduce this. I used the following simple org fil= e:

,----
|
| * Test
|
| Here's an example:
|
| #+BEGIN_EXAMPLE
| This is a test.
| #+END_EXAMPLE
`----

did C-c C-e h and got the attached html file. The example is
<pre>'d properly I think.

Thanks Nick.=A0 That does help give me so= mething to compare against.=A0 I've attached my results from the same t= est you did with C-c C-e h showing <p> tags instead of <pre> ta= gs for the BEGIN_EXAMPLE/END_EXAMPLE section.

Thanks


I noticed that Nick was= using emacs 23.=A0 I downloaded and compiled 23.1 from the GNU website.=A0= The new version properly uses <pre> tags for #+BEGIN_EXAMPLE.
- Bill


--000e0cd2e590c5720b0470f39a90-- --===============1316713195== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1316713195==--