From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel] Bug in output PDF with source blocks of unknown language Date: Mon, 18 Jan 2010 16:55:39 -0700 Message-ID: <87iqazynlw.fsf@gmail.com> References: <87y6k2kn4e.fsf@mundaneum.com> <87iqb67z7g.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NX1Rn-0000nd-6d for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 18:55:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NX1Rh-0000ma-Dw for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 18:55:49 -0500 Received: from [199.232.76.173] (port=55809 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NX1Rh-0000mX-7p for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 18:55:45 -0500 Received: from mail-px0-f192.google.com ([209.85.216.192]:55303) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NX1Rg-0000bg-OK for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 18:55:44 -0500 Received: by pxi30 with SMTP id 30so2265565pxi.14 for ; Mon, 18 Jan 2010 15:55:43 -0800 (PST) In-Reply-To: <87iqb67z7g.fsf@gmail.com> (Eric Schulte's message of "Wed, 13 Jan 2010 09:21:23 -0700") 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: Eric Schulte Cc: =?utf-8?Q?S=C3=A9bastien?= Vauban , emacs-orgmode@gnu.org This should now be fixed. "Eric Schulte" writes: > Hi S=C3=A9bastien, > > S=C3=A9bastien Vauban writes: > > [...] > >> * Bug >> >> You see that when the language is unknown to Org-babel (=3DDelphi=3D i= n this >> example), it gets ignored during export, and gets replaced by the prev= ious >> code block!! >> >> So, the current workaround is to take whatever other language know to = Babel >> (here: =3Dperl=3D) for the export to (at least) output the right code = in the >> generated document (even if not correctly highlighted). >> > > Oh, that certainly is a problem! Thanks for reporting I'll take a look. > For reference it's being tracked as a bug on our development page here > > http://eschulte.github.com/babel-dev/TODO-on-export-babel-overwrites-unre= cognized-source-blocks.html > >> >> * Other problem >> >> The selected language must also be known by =3Dlistings=3D... Hence, = =3DR=3D cannot >> be chosen for language; generating otherwise an error when compiling t= he >> LaTeX document. >> > > This should be an easier fix. It is possible to add listings alias by > adding an entry to the `org-src-lang-modes' variable. > > ,----[org-src-lang-modes] > | org-src-lang-modes is a variable defined in `org-src.el'. > | Its value is=20 > | (("ocaml" . tuareg) > | ("elisp" . emacs-lisp) > | ("ditaa" . artist) > | ("asymptote" . asy) > | ("dot" . fundamental)) > |=20 > |=20 > | Documentation: > | Alist mapping languages to their major mode. > | The key is the language name, the value is the string that should > | be inserted as the name of the major mode. For many languages this is > | simple, but for language where this is not the case, this variable > | provides a way to simplify things on the user side. > | For example, there is no ocaml-mode in Emacs, but the mode to use is > | `tuareg-mode'. > |=20 > | You can customize this variable. > `---- > > Best -- Eric > >> >> Best regards, >> Seb >> >> PS- I'll answer your posts shortly (Noweb vs Babel, and incompatibility = with >> Org-special-blocks). Have had no time up to now... > > I look forward to your reply when you do have time (no rush) -- notice > I've made a slight change to the look of the source names when exported > to LaTeX.