From mboxrd@z Thu Jan 1 00:00:00 1970 From: waterloo Subject: Re: how to draw picture in org-mode ? Does it support tikz/pgf ? Date: Fri, 14 Aug 2009 19:30:22 +0800 Message-ID: <907065090908140430s34da9d5es34960e93b1473941@mail.gmail.com> References: <907065090908140022p728fc17el4fc3e2a02078c60f@mail.gmail.com> <2c75873c0908140103k2fd31e89s5870c8baeb9acb47@mail.gmail.com> <12174.1250247199@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0858870221==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbuzL-00065C-G6 for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 07:30:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbuzH-00060D-SD for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 07:30:27 -0400 Received: from [199.232.76.173] (port=39731 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbuzH-0005zy-PB for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 07:30:23 -0400 Received: from mail-yw0-f190.google.com ([209.85.211.190]:39686) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbuzH-0006YQ-D8 for emacs-orgmode@gnu.org; Fri, 14 Aug 2009 07:30:23 -0400 Received: by ywh28 with SMTP id 28so1987143ywh.27 for ; Fri, 14 Aug 2009 04:30:22 -0700 (PDT) In-Reply-To: <12174.1250247199@gamaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org --===============0858870221== Content-Type: multipart/alternative; boundary=00221532ca38b096290471186061 --00221532ca38b096290471186061 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Yes, dvi file can not display tikz picture correctly . Why do you use divpng? Auctex can preview tikz , it does not use dvipng. Thanks 2009/8/14 Nick Dokos > Graham Smith 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} > `---- > > 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 > --00221532ca38b096290471186061 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes, dvi file can not display tikz picture correctly .

Why do you us= e divpng? Auctex can preview tikz , it does not use dvipng.

Thanks

2009/8/14 Nick Dokos <nicholas.dokos@hp.com>=
<= div class=3D"h5">Graham Smith <my= otisone@gmail.com> wrote:

> Something I, as a comparative beginner =A0can 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 i= t 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}
`----

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. =A0View the dvi<= br> 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

--00221532ca38b096290471186061-- --===============0858870221== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0858870221==--