From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Williams Subject: Re: Problem exporting code Date: Mon, 21 Jan 2013 00:11:46 -0600 Message-ID: References: <87libnmdjx.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b621e0cfaafdf04d3c655d6 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxAbn-0000Wm-6a for emacs-orgmode@gnu.org; Mon, 21 Jan 2013 01:11:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxAbj-0006K4-J5 for emacs-orgmode@gnu.org; Mon, 21 Jan 2013 01:11:51 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:50415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxAbj-0006K0-9I for emacs-orgmode@gnu.org; Mon, 21 Jan 2013 01:11:47 -0500 Received: by mail-ee0-f41.google.com with SMTP id c13so2743230eek.28 for ; Sun, 20 Jan 2013 22:11:46 -0800 (PST) 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: John Hendy Cc: emacs-orgmode@gnu.org --047d7b621e0cfaafdf04d3c655d6 Content-Type: text/plain; charset=ISO-8859-1 Argh, forgot my platform details - I'm using: Either org-mode 7.9.3d or 7.8.11 (same results) Aquamacs 2.4 (but I saw the same result using Emacs on a Linux box) Aquamacs is based on GNU Emacs 23.3.50.1. -Ken On Sun, Jan 20, 2013 at 11:36 PM, John Hendy wrote: > On Sun, Jan 20, 2013 at 10:57 PM, Ken Williams wrote: > > > > On Sun, Jan 20, 2013 at 9:15 PM, Eric S Fraga wrote: > >> > >> Ken Williams writes: > >> > >>> Unfortunately, downgrading to 7.8.11 didn't change the behavior - all > >>> code sections are still exported to HTML as class "example". > >>> I also see that on one machine, using 7.9.2, I get the desired
 >>> class="src src-R"> tag for R code export.  I can't figure out what's
> making
> >>> the difference though.
> >>
> >>
> >> I'm grasping at straws here, having seldom exported to HTML, but have
> you
> >> loaded the languages for babel?
> >
> >
> > Yes, I believe that's set up properly, because I can do "C-c C-c" and it
> > knows how to run my R sections and return the correct values.  Also,
> when I
> > "describe org-babel-load-languages", I see:
> >
> > org-babel-load-languages is a variable defined in `org.el'.
> > Its value is ((emacs-lisp . t)
> >  (sh . t)
> >  (R . t)
> >  (perl . t))
> >
> > I'm grasping at straws too, not knowing my way around the elisp code very
> > well. =)
>
> Just tried myself on a file lying around with embedded R code, and I
> get "
" for my src blocks.
>
> Can we back up a bit and have you post a minimal config and sample
> file? Perhaps the output of =M-x org-version= as well, just to be sure
> on where emacs is pulling org code from? You might have done this; my
> apologies if so. Been following the thread from a distance as I didn't
> have much experience with html/src code export. Just thought I'd chime
> in on things I've been asked to do that usually do help the situation.
>
> With a minimal config (like your load directories and the babel
> language definitions above), we can try to replicate a bit better.
> Emacs configs get long, so it's really hard to know from user to user
> what else might be going on.
>
>
> Thanks!
> John
>
> >
> >  -Ken
>

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

Argh, forgot my platform details - I'm using:

=
Either org-mode 7.9.3d or 7.8.11 (same results)
Aquamacs 2.4 (but I saw the same result using Emacs on a Linux box)
Aquamacs is based on=A0GNU Emacs 23.3.50.1.

=
=A0-Ken


On Sun, Jan 20, 2013 at 11:36 PM, John Hendy <jw.h= endy@gmail.com> wrote:
On S= un, Jan 20, 2013 at 10:57 PM, Ken Williams <kenahoo@gmail.com> wrote:
>
> On Sun, Jan 20, 2013 at 9:15 PM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
>>
>> Ken Williams <kenahoo@gmai= l.com> writes:
>>
>>> Unfortunately, downgrading to 7.8.11 didn't change the beh= avior - all
>>> code sections are still exported to HTML as class "exampl= e".
>>> I also see that on one machine, using 7.9.2, I get the desired= <pre
>>> class=3D"src src-R"> tag for R code export. =A0I = can't figure out what's making
>>> the difference though.
>>
>>
>> I'm grasping at straws here, having seldom exported to HTML, b= ut have you
>> loaded the languages for babel?
>
>
> Yes, I believe that's set up properly, because I can do "C-c = C-c" and it
> knows how to run my R sections and return the correct values. =A0Also,= when I
> "describe org-babel-load-languages", I see:
>
> org-babel-load-languages is a variable defined in `org.el'.
> Its value is ((emacs-lisp . t)
> =A0(sh . t)
> =A0(R . t)
> =A0(perl . t))
>
> I'm grasping at straws too, not knowing my way around the elisp co= de very
> well. =3D)

Just tried myself on a file lying around with embedded R code, = and I
get "<pre class=3D"src src-R">" for my src blocks= .

Can we back up a bit and have you post a minimal config and sample
file? Perhaps the output of =3DM-x org-version=3D as well, just to be sure<= br> on where emacs is pulling org code from? You might have done this; my
apologies if so. Been following the thread from a distance as I didn't<= br> have much experience with html/src code export. Just thought I'd chime<= br> in on things I've been asked to do that usually do help the situation.<= br>
With a minimal config (like your load directories and the babel
language definitions above), we can try to replicate a bit better.
Emacs configs get long, so it's really hard to know from user to user what else might be going on.


Thanks!
John

>
> =A0-Ken

--047d7b621e0cfaafdf04d3c655d6--