From: Julien Cubizolles <j.cubizolles@free.fr>
To: emacs-orgmode@gnu.org
Subject: Re: Problems with LaTeX source block
Date: Mon, 15 Jul 2013 12:24:33 +0200 [thread overview]
Message-ID: <87oba4gly6.fsf@free.fr> (raw)
In-Reply-To: 87wqos42vm.fsf@med.uni-goettingen.de
Hi Andreas
Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
> try that instead
>
> #+NAME: python-tikz
> #+header: :results raw :file py2tikz_sin.png
> #+header: :imagemagick yes :fit yes :headers '("\\usepackage{tikz,pgfplots}")
> #+BEGIN_SRC latex :exports results
> \begin{tikzpicture}
> \node[red!50!black] (a) {A};
> \node (b) [right of=a] {B};
> \draw[->] (a) -- (b);
> \end{tikzpicture}
> #+END_SRC
> for problem one: you are missing the :imagemagick yes header argument,
> which is necessary to do the latex->png conversion. Also, the filename
> is inserted for you and is, thus, not part of the latex block.
Thanks for clarifying it, in the worg page:
--8<---------------cut here---------------start------------->8---
The standard :file header argument associated with a LaTeX source code
block by itself can take the name of either a Portable Network Graphics
(png) or a Portable Document Format (pdf) file. File names for other
bitmap file types can be supplied in conjunction with the :imagemagick
header argument, described below.
--8<---------------cut here---------------end--------------->8---
the "other bitmap file types" led me to believe that imagemagick was not
needed for png.
> for problem two: :results raw solves that, although I agree that
> :results file should work here.
If it were to work, what would be the difference ? Would I need to add a
command in the LaTeX code to print the name of the file I want to link
to ?
Thanks for your precious help. I'm always amazed at the responsiveness
and helpfulness of this list.
Julien, eager to contribute but still not very useful.
next prev parent reply other threads:[~2013-07-15 18:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-15 8:34 Problems with LaTeX source block Julien Cubizolles
2013-07-15 8:57 ` Andreas Leha
2013-07-15 10:24 ` Julien Cubizolles [this message]
2013-07-15 21:06 ` Andreas Leha
2013-07-16 7:57 ` Julien Cubizolles
2013-07-16 8:03 ` Andreas Leha
2013-07-16 14:57 ` Julien Cubizolles
2013-07-16 11:09 ` Eric S Fraga
2013-07-16 15:04 ` Julien Cubizolles
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=87oba4gly6.fsf@free.fr \
--to=j.cubizolles@free.fr \
--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).