From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: [babel] Bug in output PDF with source blocks of unknown language Date: Wed, 13 Jan 2010 17:04:01 +0100 Message-ID: <87y6k2kn4e.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric and Dan, --8<---------------cut here---------------start------------->8--- #+TITLE: Bug in output PDF with source blocks of unknown language #+AUTHOR: Seb Vauban #+EMAIL: no-LMehjL4SQ+Y@public.gmane.org #+DATE: 2010-01-13 #+DESCRIPTION:=20 #+KEYWORDS:=20 #+LANGUAGE: en_US * Context Here is a perfectly outputted block of code: #+SRCNAME: srcModifyDBPFI.sql #+BEGIN_SRC sql :tangle srcModifyDBPFI.sql -- add column `rolEngagDateFin' (if column does not exist yet) IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME =3D 'rol' AND COLUMN_NAME =3D 'rolEngagDateFin') BEGIN ALTER TABLE rol ADD rolEngagDateFin smalldatetime NULL END GO #+END_SRC Here is an Excel formula (using highlighting of Delphi, being quite similar -- but *unknown to Babel*): #+BEGIN_SRC Delphi (frmDateFin+1)+(frmNbrSem+frmDureeVA*0)*7-1 #+END_SRC and its simplified version: #+BEGIN_SRC perl frmDateFin+(frmNbrSem*7) #+END_SRC * Bug You see that when the language is unknown to Org-babel (=3DDelphi=3D in t= his example), it gets ignored during export, and gets replaced by the previous code block!! So, the current workaround is to take whatever other language know to Bab= el (here: =3Dperl=3D) for the export to (at least) output the right code in = the generated document (even if not correctly highlighted). * 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 the LaTeX document. --8<---------------cut here---------------end--------------->8--- 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... --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode