From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Williams Subject: Re: Problem exporting code Date: Sun, 20 Jan 2013 22:57:47 -0600 Message-ID: References: <87libnmdjx.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6252366c6e6d04d3c54d6f Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx9SB-0003yF-H8 for emacs-orgmode@gnu.org; Sun, 20 Jan 2013 23:57:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tx9S9-0005bj-2o for emacs-orgmode@gnu.org; Sun, 20 Jan 2013 23:57:51 -0500 Received: from mail-ee0-f50.google.com ([74.125.83.50]:40225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx9S8-0005bf-Oh for emacs-orgmode@gnu.org; Sun, 20 Jan 2013 23:57:49 -0500 Received: by mail-ee0-f50.google.com with SMTP id e51so2710426eek.37 for ; Sun, 20 Jan 2013 20:57:47 -0800 (PST) In-Reply-To: <87libnmdjx.fsf@ucl.ac.uk> 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: Ken Williams , emacs-orgmode@gnu.org --047d7b6252366c6e6d04d3c54d6f Content-Type: text/plain; charset=ISO-8859-1 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. =)

 -Ken

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


= On Sun, Jan 20, 2013 at 9:15 PM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
Ken Williams <kenahoo@gmail.com> writes:

Unfortunately, downgrading to 7.8.11 didn't change the behavior - all c= ode sections are still exported to HTML as class "example".
I also see that on one machine, using 7.9.2, I get the desired <pre clas= s=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, but have y= ou 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 code very well. =3D)

=A0-Ke= n
--047d7b6252366c6e6d04d3c54d6f--