From: Carsten Dominik <carsten.dominik@gmail.com>
To: nicholas.dokos@hp.com
Cc: emacs-orgmode@gnu.org, waterloo <waterloo2005@gmail.com>
Subject: Re: how to draw picture in org-mode ? Does it support tikz/pgf ?
Date: Sun, 16 Aug 2009 09:40:38 +0200 [thread overview]
Message-ID: <1A930E45-F6B9-42D2-8666-0CF67BEEB94D@gmail.com> (raw)
In-Reply-To: <12174.1250247199@gamaville.dokosmarshall.org>
On Aug 14, 2009, at 12:53 PM, Nick Dokos wrote:
> Graham Smith <myotisone@gmail.com> wrote:
>
>> Something I, as a comparative beginner can answer :-)
>>
>>> how to draw picture in org-mode ? Does it support tikz/pgf ?
>>
>> Yes, I found it worked fine for me. I had a silly problem with page
>> margins (searchng the forum for tikz/pgf will find my recent posts),
>> that was my fault but other than that the flow charts and mindmaps I
>> have done work well.
>>
>
> Let me add a qualifier: if you try to preview the image, then it does
> not seem to work, but that seems to be a characteristic of tikz/pgf,
> rather than org-mode.
>
> Here's the experiment, should somebody care to try it:
>
> o Start with a simple picture - the one waterloo posted earlier in
> the month will do:
>
> ,----
> | #+LaTeX_HEADER: \usepackage{tikz}
> |
> | * Draw
> |
> | \begin{tikzpicture}
> | \draw (0,0) -- (10,0);
> | \end{tikzpicture}
> `----
I think this should work, but I believe the latex
files that is used to create the image does not have te right
usepackage statement.
Right now I am on a machine without dvipng, so I cannot try this:
1. pull from git
2. Instead of #+LaTeX_HEADER: \usepackage{tikz}, use
(setq org-export-latex-packages-alist '(("" "tikz))
because this customization will now also be seen by
the preview process.
I hope that then the preview will also work.
- Carsten
>
> o Export it to LaTeX with C-c C-e l.
>
> o Process the latex file with pdflatex and view with xpdf - everything
> is fine.
>
> o Process the latex file with latex, producing a dvi file. View the
> dvi
> file with xdvi: the picture is missing (and I get a Ghostscript
> error.)
>
> o Process the dvi file to PS with dvips and view the resulting PS
> file:
> the picture is there.
>
> Since (I'm guessing) preview processes the dvi file with dvipng and
> since the dvi file seems to have some kind of problem, preview does
> not
> work.
>
> HTH,
> Nick
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2009-08-16 7:40 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-14 7:22 how to draw picture in org-mode ? Does it support tikz/pgf ? waterloo
2009-08-14 8:03 ` Graham Smith
2009-08-14 10:53 ` Nick Dokos
2009-08-14 11:30 ` waterloo
[not found] ` <13156.1250249867@gamaville.dokosmarshall.org>
2009-08-14 11:50 ` waterloo
2009-08-15 11:37 ` waterloo
2009-08-15 14:26 ` Bernt Hansen
2009-08-16 2:23 ` waterloo
2009-08-16 2:42 ` Bernt Hansen
2009-08-16 2:46 ` waterloo
2009-08-16 15:58 ` Eric Schulte
2009-08-16 16:04 ` Eric Schulte
2009-08-16 18:40 ` waterloo
2009-08-16 7:40 ` Carsten Dominik [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-06-16 21:21 In response to: .emacs works on Mac but not on Ubuntu Jere McDevitt
2009-06-16 21:31 ` Graham Smith
2009-06-16 22:12 ` Nick Dokos
2009-06-17 15:40 ` Graham Smith
2009-06-17 16:24 ` Ian Barton
2009-06-17 16:46 ` Graham Smith
2009-06-17 17:28 ` Ian Barton
2009-06-17 18:04 ` Graham Smith
2009-06-17 17:30 ` Graham Smith
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=1A930E45-F6B9-42D2-8666-0CF67BEEB94D@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=nicholas.dokos@hp.com \
--cc=waterloo2005@gmail.com \
/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).