From mboxrd@z Thu Jan 1 00:00:00 1970 From: azubi Subject: Problem with org-mode and minted Date: Wed, 08 Apr 2015 14:11:09 +0200 Message-ID: <55251ADD.3010700@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfopM-0000de-Nw for emacs-orgmode@gnu.org; Wed, 08 Apr 2015 08:11:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfopI-0001TY-EH for emacs-orgmode@gnu.org; Wed, 08 Apr 2015 08:11:28 -0400 Received: from smtp-sh.infomaniak.ch ([128.65.195.4]:37456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfopI-0001TJ-5U for emacs-orgmode@gnu.org; Wed, 08 Apr 2015 08:11:24 -0400 Received: from smtp4.infomaniak.ch (smtp4.infomaniak.ch [84.16.68.92]) by smtp-sh.infomaniak.ch (8.14.5/8.14.5) with ESMTP id t38CBKKo007179 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 8 Apr 2015 14:11:21 +0200 Received: from [IPv6:2a02:1205:500c:5350:1103:f0bf:6f76:5882] (dynamic.wline.6rd.res.cust.swisscom.ch [IPv6:2a02:1205:500c:5350:1103:f0bf:6f76:5882] (may be forged)) (authenticated bits=0) by smtp4.infomaniak.ch (8.14.5/8.14.5) with ESMTP id t38CBKSn031903 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 8 Apr 2015 14:11:20 +0200 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: emacs-orgmode@gnu.org Hi all I've recently discovered babel (of org-mode) and I try to learn it. I've discovered a little problem that I cannot solve. Consider the following (almost) minimal example: ==================================================== * First example with language "c" #+BEGIN_SRC c :EXPORT results printf ("First example \n"); #+END_SRC * Second example with language "C" #+BEGIN_SRC C :EXPORT results printf ("second example \n"); #+END_SRC #+RESULTS: : second example ==================================================== The first example cannot be evaluated by a C-c C-c (?? due to the small "c" ??). The second example is evaluated without any problem. I've configured org-mode to use "minted" to colorize the source code when it is exported to latex. For the file above, the function "org-export-latex-to-pdf" gives the expected result for the first example but nothing for the second one (?? due to the big "C" ??). Minted understand "c" as a language but not "C". The latex code produced by the command is (without the very long standard preamble): ======================================================== \begin{document} \maketitle \tableofcontents \section{First example with language "c"} \label{sec-1} \begin{minted}[]{c} printf ("First example \n"); \end{minted} \section{Second example with language "C"} \label{sec-2} \begin{minted}[]{C} printf ("second example \n"); \end{minted} % Emacs 24.3.1 (Org mode 8.2.4) \end{document} =========================================================== What have I done wrong ? Thank you in advance for your help.