From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: SOLVED: LaTeX source block problems Date: Mon, 28 Jan 2013 15:13:14 +0100 Message-ID: <5106877A.2040606@gmail.com> References: <51028BDB.1010306@gmail.com> <51063BAE.9080902@gmail.com> <51067D7C.5090603@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzptL-00064y-EL for emacs-orgmode@gnu.org; Mon, 28 Jan 2013 09:41:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TzptE-0005bI-GR for emacs-orgmode@gnu.org; Mon, 28 Jan 2013 09:40:59 -0500 Received: from mail-lb0-f171.google.com ([209.85.217.171]:54543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzptE-0005b4-4i for emacs-orgmode@gnu.org; Mon, 28 Jan 2013 09:40:52 -0500 Received: by mail-lb0-f171.google.com with SMTP id gg13so3938953lbb.2 for ; Mon, 28 Jan 2013 06:40:51 -0800 (PST) In-Reply-To: <51067D7C.5090603@gmail.com> 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: Rainer@krugs.de Cc: emacs-orgmode -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I solved it bu using the examples on http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html especially the tkz example. So it looks no as follow: * The gantt chart #+header: :fit yes :noweb yes :headers '("\\usepackage{pgfgantt}") #+BEGIN_SRC latex :exports results :file timeline.pdf \begin {ganttchart} [hgrid=true, % vgrid={ *{11}{blue, dotted}, *1{red} } % ]{36} \gantttitlelist {1,...,3}{12} \\ \gantttitlelist {1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12}{1} \\ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ganttgroup [inline, group label inline anchor/.style=above right, group label shape anchor=left] {Modelling}{1}{36} \\ \end {ganttchart} #+END_SRC and C-c in latex gives me: #+RESULTS: #+BEGIN_LaTeX [[file:timeline.pdf]] #+END_LaTeX Thanks, Rainer On 28/01/13 14:30, Rainer M Krug wrote: > On 28/01/13 14:10, John Hendy wrote: > >> On Jan 28, 2013 2:50 AM, "Rainer M Krug" > >> wrote: >>> >> On 25/01/13 18:35, Thomas S. Dye wrote: >>> Hi Rainer, > >>> Rainer M Krug > writes: > >>>> - C-c c results in "org-babel-execute-src-block: No org-babel-execute function for >>>> LaTeX!" > >>> Do you have something like this in .emacs? > >>> (org-babel-do-load-languages 'org-babel-load-languages '((latex . t))) > >> I have > >> (require 'ob-latex) > > >>> This is the old style. Could you try re-defining your Babel setup according to the current >>> manual/Worg instructions to see if that helps? > > Ok - I have changed it, but still the same. > > Rainer > > >>> John > >> which I remember reading somewhere is equivalent. > >> I also only have (require 'ob-R) > >> to enable language execution and R works. > >> Rainer > > >>> hth, Tom > > >>> > > > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRBod6AAoJENvXNx4PUvmCJBgH/3i6vVVz1KmUCDDYz/ybuphR mflp67kaaxzUs2yIacTruG2jP/5UpuaAUYN/Y88UwvWjANHb+B/B2QSFNwwaWcjN +oco756zMmtfDlARQm/ZlIgpJSl522d5lufnGPCy0mtIHfFFfbdVmDyYmiRp56kO aCEtJ6+7Gy1AYaAQAJHCmnnPIaBdSxWltifCMe+pEkVG5ZnMhMGv3iFCpF2kLikP 2s/gcDGIfzF0Ez1TI+Rj/n8c0+tSKsu0x69+kRmAR/0ksV+EC+D0lUZljwzSzvp9 ZPvMjxiVAjN3k5XwKjERzyM372/wL+1eLZT/of5ktYg7NoprxsYFrtrLiypKC20= =bV2F -----END PGP SIGNATURE-----