From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johan Ekh Subject: Re: pstricks in org-mode? Date: Fri, 2 Oct 2009 16:53:54 +0200 Message-ID: <417457b50910020753l6e64e753ra45be481dbb9f0c@mail.gmail.com> References: <417457b50909301530p2ac1a332ua287699c28012ceb@mail.gmail.com> <417457b50910011346o533328e6obcc5769295b214c6@mail.gmail.com> <417457b50910020552q366316bek88f6d73224940e9b@mail.gmail.com> <4ac5fff0.47c2f10a.46ff.166d@mx.google.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0527601276==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtjWC-0001eo-NN for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 10:54:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtjW8-0001dC-PD for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 10:54:00 -0400 Received: from [199.232.76.173] (port=55407 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtjW8-0001d9-KZ for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 10:53:56 -0400 Received: from mail-bw0-f220.google.com ([209.85.218.220]:56004) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtjW7-0002jV-MF for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 10:53:56 -0400 Received: by bwz20 with SMTP id 20so1104335bwz.42 for ; Fri, 02 Oct 2009 07:53:54 -0700 (PDT) In-Reply-To: <4ac5fff0.47c2f10a.46ff.166d@mx.google.com> 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: emacs-orgmode@gnu.org --===============0527601276== Content-Type: multipart/alternative; boundary=0023545bda28cc6e590474f4eecb --0023545bda28cc6e590474f4eecb Content-Type: text/plain; charset=ISO-8859-1 But is pdflatex also used for rendering the previews in emacs? The most convenient thing for me would be to see the preview while I am developing the picture and then as a last step export it to my latex document. Do you this is possible somehow? Best regards, Johan On Fri, Oct 2, 2009 at 3:28 PM, Darlan Cavalcante Moreira wrote: > > Remember that because pstricks use postscript commands it is necessary to > take > the long route in latex (latex->DVI->PS->PDF) instead of just using > pdflatex. Therefore, if you put some pstricks code in the org-file and > export to > PDF to see the result then this is the reason, since the exporter seems to > use > pdflatex to process the generated .tex file (I'm assuming this, since I > don't > see any DVI or PS file created by the exporter). > > Best, > Darlan > > At Fri, 2 Oct 2009 14:52:33 +0200, > Johan Ekh wrote: > > > > [1 ] > > [1.1 ] > > It seems that I can use any latex package that I want except for the > > pstricks ones. > > No picture is produced. No error message either. I load the same packages > > and use the same > > pstricks code that I have in a regular latex document (on the same > computer) > > and > > it works in that document. > > > > Any ideas? > > > > //Johan > > > > On Thu, Oct 1, 2009 at 10:46 PM, Johan Ekh wrote: > > > > > Thanks, I'll try it! > > > /Johan > > > > > > > > > On Thu, Oct 1, 2009 at 1:55 PM, Carsten Dominik < > carsten.dominik@gmail.com > > > > wrote: > > > > > >> > > >> On Oct 1, 2009, at 12:30 AM, Johan Ekh wrote: > > >> > > >> Hi all, > > >>> I'm using org-mode to write LaTeX snippets that I later (usually) > > >>> transfer into a separate latex document. > > >>> Can I also write and preview pstricks code in org-mode? > > >>> > > >>> Also, can I do "usepackage(xxx)" someway do use LaTeX extensions? > > >>> > > >> > > >> #+LaTeX_HEADER: \usepackage{pstricks} > > >> > > >> or something along those lines. > > >> > > >> HTH > > >> > > >> - Carsten > > >> > > >> > > > > > [1.2 ] > > > > [2 ] > > _______________________________________________ > > 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 > --0023545bda28cc6e590474f4eecb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable But is pdflatex also used for rendering the previews in emacs? The most con= venient thing for me would
be to see the preview while I am developing t= he picture and then as a last step export it to my latex document.

Do you this is possible somehow?

Best regards,
Johan

On Fri, Oct 2, 2009 at 3:28 PM, Darlan Cavalcante Mor= eira <darcamo@gma= il.com> wrote:

Remember that because pstricks use postscript commands it is necessary to t= ake
the long route in latex (latex->DVI->PS->PDF) instead of just usin= g
pdflatex. Therefore, if you put some pstricks code in the org-file and expo= rt to
PDF to see the result then this is the reason, since the exporter seems to = use
pdflatex to process the generated .tex file (I'm assuming this, since I= don't
see any DVI or PS file created by the exporter).

Best,
Darlan

At Fri, 2 Oct 2009 14:52:33 +0200,
Johan Ekh wrote:
>
> [1 =A0<multipart/alternative (7bit)>]
> [1.1 =A0<text/plain; ISO-8859-1 (7bit)>]
> It seems that I can use any latex pa= ckage that I want except for the
> pstricks ones.
> No picture is produced. No error message either. I load the same packa= ges
> and use the same
> pstricks code that I have in a regular latex document (on the same com= puter)
> and
> it works in that document.
>
> Any ideas?
>
> //Johan
>
> On Thu, Oct 1, 2009 at 10:46 PM, Johan Ekh <ekh.johan@gmail.com> wrote:
>
> > Thanks, I'll try it!
> > /Johan
> >
> >
> > On Thu, Oct 1, 2009 at 1:55 PM, Carsten Dominik <carsten.dominik@gmail.com
> > > wrote:
> >
> >>
> >> On Oct 1, 2009, at 12:30 AM, Johan Ekh wrote:
> >>
> >> =A0Hi all,
> >>> I'm using org-mode to write LaTeX snippets that I lat= er (usually)
> >>> transfer into a separate latex document.
> >>> Can I also write and preview pstricks code in org-mode? > >>>
> >>> Also, can I do "usepackage(xxx)" someway do use= LaTeX extensions?
> >>>
> >>
> >> #+LaTeX_HEADER: \usepackage{pstricks}
> >>
> >> or something along those lines.
> >>
> >> HTH
> >>
> >> - Carsten
> >>
> >>
> >
> [1.2 =A0<text/html; ISO-8859-1 (quoted-printable)>]<= br> >
> [2 =A0<text/plain; us-ascii (7bit)>]
> _______________________________________________
> 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

--0023545bda28cc6e590474f4eecb-- --===============0527601276== 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 --===============0527601276==--