From: Julien Cubizolles <j.cubizolles@free.fr>
To: emacs-orgmode@gnu.org
Subject: Re: Problems with LaTeX source block
Date: Tue, 16 Jul 2013 17:04:46 +0200 [thread overview]
Message-ID: <87y596h7g1.fsf@free.fr> (raw)
In-Reply-To: 87zjtmhica.fsf@ucl.ac.uk
Hi Eric,
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> Interesting. I have this behaviour as well in terms of background. I
> use a dark theme on all of my windows, be they emacs or xterms. The png
> generated by imagemagick sets the background to transparent which means
> I cannot see the images produced as the actual drawing and text are
> black.
>
> I am happy with this: just had to remember to set the drawing colour to
> white by "\begin{tikzpicture}[white]".
The background/foreground are supposed to be changed by setting the
:buffer yes header and by customizing org-format-latex-options. I didn't
try it though, I'm happy with the [white] option to tikzpicture.
However, I noticed something odd. If I use the following headers
--8<---------------cut here---------------start------------->8---
#+header: :results raw :file py2tikz_sin.png
#+header: :imagemagick yes :fit yes :headers '("\\usepackage{tikz,pgfplots}")
#+header: :iminoptions -density 600 :imoutoptions -geometry 400
--8<---------------cut here---------------end--------------->8---
the png is transparent. If I remove the last line:
--8<---------------cut here---------------start------------->8---
#+header: :results raw :file py2tikz_sin.png
#+header: :imagemagick yes :fit yes :headers '("\\usepackage{tikz,pgfplots}")
--8<---------------cut here---------------end--------------->8---
I get the white background back, although in both cases, imagemagick is
used.
Julien.
prev parent reply other threads:[~2013-07-16 15:10 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
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 [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=87y596h7g1.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).