From: Rainer M Krug <r.m.krug@gmail.com>
To: Rainer@krugs.de
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: SOLVED: LaTeX source block problems
Date: Mon, 28 Jan 2013 15:13:14 +0100 [thread overview]
Message-ID: <5106877A.2040606@gmail.com> (raw)
In-Reply-To: <51067D7C.5090603@gmail.com>
-----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" <r.m.krug@gmail.com <mailto:r.m.krug@gmail.com>>
>> wrote:
>>>
>> On 25/01/13 18:35, Thomas S. Dye wrote:
>>> Hi Rainer,
>
>>> Rainer M Krug <r.m.krug@gmail.com <mailto:r.m.krug@gmail.com>> 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-----
prev parent reply other threads:[~2013-01-28 14:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-25 13:42 LaTeX source block problems Rainer M Krug
2013-01-25 17:35 ` Thomas S. Dye
2013-01-28 8:49 ` Rainer M Krug
[not found] ` <CA+M2ft_KF_XqgaVti-Acgd5QULxQC19YQTBcUtpxs+qHp3MzTw@mail.gmail.com>
2013-01-28 13:30 ` Rainer M Krug
2013-01-28 14:13 ` Rainer M Krug [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5106877A.2040606@gmail.com \
--to=r.m.krug@gmail.com \
--cc=Rainer@krugs.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).