emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] SOLVED: LaTeX source block problems


From: Rainer M Krug
Subject: [O] SOLVED: LaTeX source block problems
Date: Mon, 28 Jan 2013 15:13:14 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/20121214 Thunderbird/18.0

-----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" <address@hidden 
>> <mailto:address@hidden>> 
>> wrote:
>>> 
>> On 25/01/13 18:35, Thomas S. Dye wrote:
>>> Hi Rainer,
> 
>>> Rainer M Krug <address@hidden <mailto:address@hidden>> 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-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]