From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel] latex code in final pdf Date: Tue, 17 Nov 2009 08:04:20 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAPbe-0005GV-BI for emacs-orgmode@gnu.org; Tue, 17 Nov 2009 10:04:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAPbZ-00058s-KK for emacs-orgmode@gnu.org; Tue, 17 Nov 2009 10:04:33 -0500 Received: from [199.232.76.173] (port=56038 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAPbZ-00058a-7c for emacs-orgmode@gnu.org; Tue, 17 Nov 2009 10:04:29 -0500 Received: from mail-yw0-f194.google.com ([209.85.211.194]:53779) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NAPbY-0003Hu-NK for emacs-orgmode@gnu.org; Tue, 17 Nov 2009 10:04:28 -0500 Received: by ywh32 with SMTP id 32so79649ywh.14 for ; Tue, 17 Nov 2009 07:04:28 -0800 (PST) In-Reply-To: (andrea Crotti's message of "Tue, 17 Nov 2009 11:05:04 +0000 (UTC)") 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: andrea Crotti Cc: emacs-orgmode@gnu.org Hi Andrea, It looks as thought the "|"s in your Haskell code are being interpreted as tables by org-mode. This was a problem a couple of months ago but has since been fixed. For example when I export #+begin_src haskell sumListCond :: Int -> Int -> [Int] -> Int sumListCond l n xs | foldl (+) 0 (take l xs) <= n = sumListCond (l + 1) n xs | otherwise = foldl (+) 0 (take (l - 1) xs) #+end_src to latex I get \begin{verbatim} sumListCond :: Int -> Int -> [Int] -> Int sumListCond l n xs | foldl (+) 0 (take l xs) <= n = sumListCond (l + 1) n xs | otherwise = foldl (+) 0 (take (l - 1) xs) \end{verbatim} as expected. Maybe it is possible that even though you have the latest org-mode on your computer your Emacs is still loading an older version? If that is not the case then it could be something specific to your configuration, which you can determine by starting Emacs with the -Q option and then loading up org-mode manually and trying to re-create the problem. Best of luck -- Eric andrea Crotti writes: > I'm not so sure it's related to babel since it's in > #+BEGIN_SRC haskell > > tags. > > Anyway in short I see latex code in the final source > code block exported. > I updated from git org-mode. > > This is the code that gives program: > > sumListCond :: Int -> Int -> [Int] -> Int > sumListCond l n xs > | foldl (+) 0 (take l xs) <= n = sumListCond (l + 1) n xs > | otherwise = foldl (+) 0 (take (l - 1) xs) > > > I get this strange thing > > sumListCond :: Int -> Int -> [Int] -> Int > sumListCond l n xs > \begin{center} \begin{tabular}{l} > foldl(+)0(takelxs)<=n=sumListCond(l+1)nxs \\ > otherwise = foldl (+) 0 (take (l - 1) xs) \\ \end{tabular} \end{center} > > > Who tell it to create a tabular in the center? > It's inside the source code block so it shoudn't evaluate "|" right? > > > > _______________________________________________ > 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