* pstricks in org-mode?
@ 2009-09-30 22:30 Johan Ekh
2009-10-01 11:55 ` Carsten Dominik
0 siblings, 1 reply; 12+ messages in thread
From: Johan Ekh @ 2009-09-30 22:30 UTC (permalink / raw
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 259 bytes --]
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?
Best regards,
Johan
[-- Attachment #1.2: Type: text/html, Size: 301 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pstricks in org-mode?
2009-09-30 22:30 pstricks in org-mode? Johan Ekh
@ 2009-10-01 11:55 ` Carsten Dominik
[not found] ` <417457b50910011346o533328e6obcc5769295b214c6@mail.gmail.com>
0 siblings, 1 reply; 12+ messages in thread
From: Carsten Dominik @ 2009-10-01 11:55 UTC (permalink / raw
To: Johan Ekh; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pstricks in org-mode?
[not found] ` <417457b50910011346o533328e6obcc5769295b214c6@mail.gmail.com>
@ 2009-10-02 12:52 ` Johan Ekh
2009-10-02 13:28 ` Darlan Cavalcante Moreira
0 siblings, 1 reply; 12+ messages in thread
From: Johan Ekh @ 2009-10-02 12:52 UTC (permalink / raw
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 940 bytes --]
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 <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:
>>
>> 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
>>
>>
>
[-- Attachment #1.2: Type: text/html, Size: 1819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pstricks in org-mode?
2009-10-02 12:52 ` Johan Ekh
@ 2009-10-02 13:28 ` Darlan Cavalcante Moreira
2009-10-02 14:53 ` Johan Ekh
0 siblings, 1 reply; 12+ messages in thread
From: Darlan Cavalcante Moreira @ 2009-10-02 13:28 UTC (permalink / raw
To: Johan Ekh; +Cc: emacs-orgmode
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 <multipart/alternative (7bit)>]
> [1.1 <text/plain; ISO-8859-1 (7bit)>]
> 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 <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:
> >>
> >> 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 <text/html; ISO-8859-1 (quoted-printable)>]
>
> [2 <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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pstricks in org-mode?
2009-10-02 13:28 ` Darlan Cavalcante Moreira
@ 2009-10-02 14:53 ` Johan Ekh
2009-10-02 18:34 ` Darlan Cavalcante Moreira
0 siblings, 1 reply; 12+ messages in thread
From: Johan Ekh @ 2009-10-02 14:53 UTC (permalink / raw
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 2409 bytes --]
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 <darcamo@gmail.com
> 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 <multipart/alternative (7bit)>]
> > [1.1 <text/plain; ISO-8859-1 (7bit)>]
> > 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 <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:
> > >>
> > >> 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 <text/html; ISO-8859-1 (quoted-printable)>]
> >
> > [2 <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
>
[-- Attachment #1.2: Type: text/html, Size: 3524 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pstricks in org-mode?
2009-10-02 14:53 ` Johan Ekh
@ 2009-10-02 18:34 ` Darlan Cavalcante Moreira
[not found] ` <417457b50910030128s64c8c6ecu2bcb55b1a5f27bf1@mail.gmail.com>
0 siblings, 1 reply; 12+ messages in thread
From: Darlan Cavalcante Moreira @ 2009-10-02 18:34 UTC (permalink / raw
To: Johan Ekh; +Cc: emacs-orgmode
From the documentation it seems that org-mode uses dvipng.
[[info:org:LaTeX%20fragments][info:org:LaTeX fragments]]
But I don't know how it behaves with pstricks.
I usually create the graphics in a separated file when I'm working with
latex. It's a complete latex file with the necessary preamble that will be
later turned into comments when I'm finished and want to actually include the
graphic in my document. (using \input{graphic.tex})
When I'm working on it, Emacs occupies half of my screen (or more) and evince
occupies the other half. Whenever I compile the document (using pdflatex since I
use tikz to draw graphics) the pdf is automatically reloaded by evince. Since I
don't rely on the preview-latex for developing the graphics I don't know if it
works with tikz. I guess I'll give it a try.
...
I tried with the simple example
,----
| \begin{tikzpicture}
| \draw (0,0) -- (1,1);
| \end{tikzpicture}
`----
and it does not work. Only a little square is show in the Emacs buffer. Well,
this is expected since the package tikz is not included in the temporary .tex
file (and neither is pstricks as I could see).
After included the usepackage{tikz} in org-format-latex-header the preview is
"created". However nothing is show, since the graphic generated by tikz (and
pstricks) is not present at the DVI stage.
This seems to be a limitation of dvipng and not org-mode.
Darlan
At Fri, 2 Oct 2009 16:53:54 +0200,
Johan Ekh wrote:
>
> [1.1 <text/plain; ISO-8859-1 (7bit)>]
> 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 <darcamo@gmail.com
> > 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 <multipart/alternative (7bit)>]
> > > [1.1 <text/plain; ISO-8859-1 (7bit)>]
> > > 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 <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:
> > > >>
> > > >> 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 <text/html; ISO-8859-1 (quoted-printable)>]
> > >
> > > [2 <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
> >
> [1.2 <text/html; ISO-8859-1 (quoted-printable)>]
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pstricks in org-mode?
[not found] ` <417457b50910030128s64c8c6ecu2bcb55b1a5f27bf1@mail.gmail.com>
@ 2009-10-05 17:29 ` Darlan Cavalcante Moreira
2009-10-05 17:57 ` Carsten Dominik
0 siblings, 1 reply; 12+ messages in thread
From: Darlan Cavalcante Moreira @ 2009-10-05 17:29 UTC (permalink / raw
To: Johan Ekh; +Cc: emacs-orgmode
Even graphics made in tikz, that does not use postscript commands, do not appear
in DVI viewers. I haven't used the preview-latex with graphics in AucTeX, but if
it is able to view graphics made with pstricks, as it appears to be the case,
then maybe it is better to first investigate how preview-latex is able to do
this before searching for options to pass to dvipng in org-mode.
IMHO it would be even better if it was possible to use the original
preview-latex from AucTeX instead of reinventing the wheel.
Darlan
PS: Please, when answering E-Mails do not forget to also CC to the the org
mailing list.
At Sat, 3 Oct 2009 10:28:37 +0200,
Johan Ekh wrote:
>
> [1 <text/plain; ISO-8859-1 (7bit)>]
> Thanks for sharing with me! Your setup seems to give a good workflow. Before
> starting to use org-mode I worked with my
> graphics in emacs using the preview facility in AucTeX. Thus I could develop
> my picture and easily update the
> preview to see the effect of my last edit.
>
> Since starting to use org-mode I find that I have it open all the time and
> would like to include it as much as possible
> in my work flow. Many of my pictures share some content and it would be nice
> to develop some "templates" that
> I can start with when I do my pictures. Pstricks is postscript and usually
> do not display in dvi viewers. This is
> probably why dvipng doesn't work.
>
> Is there any way I can manipulate org-modes route to a png preview picture?
>
> Best regards,
> Johan
>
> On Fri, Oct 2, 2009 at 8:34 PM, Darlan Cavalcante Moreira <darcamo@gmail.com
> > wrote:
>
> >
> > From the documentation it seems that org-mode uses dvipng.
> > [[info:org:LaTeX%20fragments][info:org:LaTeX fragments]]
> > But I don't know how it behaves with pstricks.
> >
> > I usually create the graphics in a separated file when I'm working with
> > latex. It's a complete latex file with the necessary preamble that will be
> > later turned into comments when I'm finished and want to actually include
> > the
> > graphic in my document. (using \input{graphic.tex})
> >
> > When I'm working on it, Emacs occupies half of my screen (or more) and
> > evince
> > occupies the other half. Whenever I compile the document (using pdflatex
> > since I
> > use tikz to draw graphics) the pdf is automatically reloaded by evince.
> > Since I
> > don't rely on the preview-latex for developing the graphics I don't know if
> > it
> > works with tikz. I guess I'll give it a try.
> >
> > ...
> >
> > I tried with the simple example
> > ,----
> > | \begin{tikzpicture}
> > | \draw (0,0) -- (1,1);
> > | \end{tikzpicture}
> > `----
> > and it does not work. Only a little square is show in the Emacs buffer.
> > Well,
> > this is expected since the package tikz is not included in the temporary
> > .tex
> > file (and neither is pstricks as I could see).
> >
> > After included the usepackage{tikz} in org-format-latex-header the preview
> > is
> > "created". However nothing is show, since the graphic generated by tikz
> > (and
> > pstricks) is not present at the DVI stage.
> >
> > This seems to be a limitation of dvipng and not org-mode.
> >
> > Darlan
> >
> >
> > At Fri, 2 Oct 2009 16:53:54 +0200,
> > Johan Ekh wrote:
> > >
> > > [1.1 <text/plain; ISO-8859-1 (7bit)>]
> > > 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 <
> > darcamo@gmail.com
> > > > 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 <multipart/alternative (7bit)>]
> > > > > [1.1 <text/plain; ISO-8859-1 (7bit)>]
> > > > > 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 <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:
> > > > > >>
> > > > > >> 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 <text/html; ISO-8859-1 (quoted-printable)>]
> > > > >
> > > > > [2 <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
> > > >
> > > [1.2 <text/html; ISO-8859-1 (quoted-printable)>]
> > >
> >
> [2 <text/html; ISO-8859-1 (quoted-printable)>]
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pstricks in org-mode?
2009-10-05 17:29 ` Darlan Cavalcante Moreira
@ 2009-10-05 17:57 ` Carsten Dominik
2009-10-08 8:32 ` Johan Ekh
0 siblings, 1 reply; 12+ messages in thread
From: Carsten Dominik @ 2009-10-05 17:57 UTC (permalink / raw
To: Darlan Cavalcante Moreira; +Cc: emacs-orgmode
On Oct 5, 2009, at 7:29 PM, Darlan Cavalcante Moreira wrote:
>
> Even graphics made in tikz, that does not use postscript commands,
> do not appear
> in DVI viewers. I haven't used the preview-latex with graphics in
> AucTeX, but if
> it is able to view graphics made with pstricks, as it appears to be
> the case,
> then maybe it is better to first investigate how preview-latex is
> able to do
> this before searching for options to pass to dvipng in org-mode.
>
> IMHO it would be even better if it was possible to use the original
> preview-latex from AucTeX instead of reinventing the wheel.
:-) I'd be happy to accept a patch!
- Carsten
>
> Darlan
>
>
> PS: Please, when answering E-Mails do not forget to also CC to the
> the org
> mailing list.
>
>
>
> At Sat, 3 Oct 2009 10:28:37 +0200,
> Johan Ekh wrote:
>>
>> [1 <text/plain; ISO-8859-1 (7bit)>]
>> Thanks for sharing with me! Your setup seems to give a good
>> workflow. Before
>> starting to use org-mode I worked with my
>> graphics in emacs using the preview facility in AucTeX. Thus I
>> could develop
>> my picture and easily update the
>> preview to see the effect of my last edit.
>>
>> Since starting to use org-mode I find that I have it open all the
>> time and
>> would like to include it as much as possible
>> in my work flow. Many of my pictures share some content and it
>> would be nice
>> to develop some "templates" that
>> I can start with when I do my pictures. Pstricks is postscript and
>> usually
>> do not display in dvi viewers. This is
>> probably why dvipng doesn't work.
>>
>> Is there any way I can manipulate org-modes route to a png preview
>> picture?
>>
>> Best regards,
>> Johan
>>
>> On Fri, Oct 2, 2009 at 8:34 PM, Darlan Cavalcante Moreira <darcamo@gmail.com
>>> wrote:
>>
>>>
>>> From the documentation it seems that org-mode uses dvipng.
>>> [[info:org:LaTeX%20fragments][info:org:LaTeX fragments]]
>>> But I don't know how it behaves with pstricks.
>>>
>>> I usually create the graphics in a separated file when I'm working
>>> with
>>> latex. It's a complete latex file with the necessary preamble that
>>> will be
>>> later turned into comments when I'm finished and want to actually
>>> include
>>> the
>>> graphic in my document. (using \input{graphic.tex})
>>>
>>> When I'm working on it, Emacs occupies half of my screen (or more)
>>> and
>>> evince
>>> occupies the other half. Whenever I compile the document (using
>>> pdflatex
>>> since I
>>> use tikz to draw graphics) the pdf is automatically reloaded by
>>> evince.
>>> Since I
>>> don't rely on the preview-latex for developing the graphics I
>>> don't know if
>>> it
>>> works with tikz. I guess I'll give it a try.
>>>
>>> ...
>>>
>>> I tried with the simple example
>>> ,----
>>> | \begin{tikzpicture}
>>> | \draw (0,0) -- (1,1);
>>> | \end{tikzpicture}
>>> `----
>>> and it does not work. Only a little square is show in the Emacs
>>> buffer.
>>> Well,
>>> this is expected since the package tikz is not included in the
>>> temporary
>>> .tex
>>> file (and neither is pstricks as I could see).
>>>
>>> After included the usepackage{tikz} in org-format-latex-header the
>>> preview
>>> is
>>> "created". However nothing is show, since the graphic generated by
>>> tikz
>>> (and
>>> pstricks) is not present at the DVI stage.
>>>
>>> This seems to be a limitation of dvipng and not org-mode.
>>>
>>> Darlan
>>>
>>>
>>> At Fri, 2 Oct 2009 16:53:54 +0200,
>>> Johan Ekh wrote:
>>>>
>>>> [1.1 <text/plain; ISO-8859-1 (7bit)>]
>>>> 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 <
>>> darcamo@gmail.com
>>>>> 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 <multipart/alternative (7bit)>]
>>>>>> [1.1 <text/plain; ISO-8859-1 (7bit)>]
>>>>>> 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 <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:
>>>>>>>>
>>>>>>>> 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 <text/html; ISO-8859-1 (quoted-printable)>]
>>>>>>
>>>>>> [2 <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
>>>>>
>>>> [1.2 <text/html; ISO-8859-1 (quoted-printable)>]
>>>>
>>>
>> [2 <text/html; ISO-8859-1 (quoted-printable)>]
>>
>
>
> _______________________________________________
> 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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pstricks in org-mode?
2009-10-05 17:57 ` Carsten Dominik
@ 2009-10-08 8:32 ` Johan Ekh
2009-10-08 10:25 ` Carsten Dominik
0 siblings, 1 reply; 12+ messages in thread
From: Johan Ekh @ 2009-10-08 8:32 UTC (permalink / raw
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 7387 bytes --]
preview-latex in AucTeX works really well I think. It would be nice to use
it in org-mode.
I'm not a lisp programmer. I would be happy to contribute to org-mode but I
need support.
Could someone point me in the right direction to start developing such a
patch?
Or, if someone more skilled than me would like to pick it up and just do it,
that would
be fine with me!
//Johan
On Mon, Oct 5, 2009 at 7:57 PM, Carsten Dominik
<carsten.dominik@gmail.com>wrote:
>
> On Oct 5, 2009, at 7:29 PM, Darlan Cavalcante Moreira wrote:
>
>
>> Even graphics made in tikz, that does not use postscript commands, do not
>> appear
>> in DVI viewers. I haven't used the preview-latex with graphics in AucTeX,
>> but if
>> it is able to view graphics made with pstricks, as it appears to be the
>> case,
>> then maybe it is better to first investigate how preview-latex is able to
>> do
>> this before searching for options to pass to dvipng in org-mode.
>>
>> IMHO it would be even better if it was possible to use the original
>> preview-latex from AucTeX instead of reinventing the wheel.
>>
>
> :-) I'd be happy to accept a patch!
>
> - Carsten
>
>
>
>> Darlan
>>
>>
>> PS: Please, when answering E-Mails do not forget to also CC to the the org
>> mailing list.
>>
>>
>>
>> At Sat, 3 Oct 2009 10:28:37 +0200,
>> Johan Ekh wrote:
>>
>>>
>>> [1 <text/plain; ISO-8859-1 (7bit)>]
>>> Thanks for sharing with me! Your setup seems to give a good workflow.
>>> Before
>>> starting to use org-mode I worked with my
>>> graphics in emacs using the preview facility in AucTeX. Thus I could
>>> develop
>>> my picture and easily update the
>>> preview to see the effect of my last edit.
>>>
>>> Since starting to use org-mode I find that I have it open all the time
>>> and
>>> would like to include it as much as possible
>>> in my work flow. Many of my pictures share some content and it would be
>>> nice
>>> to develop some "templates" that
>>> I can start with when I do my pictures. Pstricks is postscript and
>>> usually
>>> do not display in dvi viewers. This is
>>> probably why dvipng doesn't work.
>>>
>>> Is there any way I can manipulate org-modes route to a png preview
>>> picture?
>>>
>>> Best regards,
>>> Johan
>>>
>>> On Fri, Oct 2, 2009 at 8:34 PM, Darlan Cavalcante Moreira <
>>> darcamo@gmail.com
>>>
>>>> wrote:
>>>>
>>>
>>>
>>>> From the documentation it seems that org-mode uses dvipng.
>>>> [[info:org:LaTeX%20fragments][info:org:LaTeX fragments]]
>>>> But I don't know how it behaves with pstricks.
>>>>
>>>> I usually create the graphics in a separated file when I'm working with
>>>> latex. It's a complete latex file with the necessary preamble that will
>>>> be
>>>> later turned into comments when I'm finished and want to actually
>>>> include
>>>> the
>>>> graphic in my document. (using \input{graphic.tex})
>>>>
>>>> When I'm working on it, Emacs occupies half of my screen (or more) and
>>>> evince
>>>> occupies the other half. Whenever I compile the document (using pdflatex
>>>> since I
>>>> use tikz to draw graphics) the pdf is automatically reloaded by evince.
>>>> Since I
>>>> don't rely on the preview-latex for developing the graphics I don't know
>>>> if
>>>> it
>>>> works with tikz. I guess I'll give it a try.
>>>>
>>>> ...
>>>>
>>>> I tried with the simple example
>>>> ,----
>>>> | \begin{tikzpicture}
>>>> | \draw (0,0) -- (1,1);
>>>> | \end{tikzpicture}
>>>> `----
>>>> and it does not work. Only a little square is show in the Emacs buffer.
>>>> Well,
>>>> this is expected since the package tikz is not included in the temporary
>>>> .tex
>>>> file (and neither is pstricks as I could see).
>>>>
>>>> After included the usepackage{tikz} in org-format-latex-header the
>>>> preview
>>>> is
>>>> "created". However nothing is show, since the graphic generated by tikz
>>>> (and
>>>> pstricks) is not present at the DVI stage.
>>>>
>>>> This seems to be a limitation of dvipng and not org-mode.
>>>>
>>>> Darlan
>>>>
>>>>
>>>> At Fri, 2 Oct 2009 16:53:54 +0200,
>>>> Johan Ekh wrote:
>>>>
>>>>>
>>>>> [1.1 <text/plain; ISO-8859-1 (7bit)>]
>>>>> 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 <
>>>>>
>>>> darcamo@gmail.com
>>>>
>>>>> 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 <multipart/alternative (7bit)>]
>>>>>>> [1.1 <text/plain; ISO-8859-1 (7bit)>]
>>>>>>> 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 <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:
>>>>>>>>>
>>>>>>>>> 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 <text/html; ISO-8859-1 (quoted-printable)>]
>>>>>>>
>>>>>>> [2 <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
>>>>>>>
>>>>>>
>>>>>> [1.2 <text/html; ISO-8859-1 (quoted-printable)>]
>>>>>
>>>>>
>>>> [2 <text/html; ISO-8859-1 (quoted-printable)>]
>>>
>>>
>>
>> _______________________________________________
>> 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
>>
>
>
[-- Attachment #1.2: Type: text/html, Size: 12173 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pstricks in org-mode?
2009-10-08 8:32 ` Johan Ekh
@ 2009-10-08 10:25 ` Carsten Dominik
2009-10-08 14:55 ` Johan Ekh
0 siblings, 1 reply; 12+ messages in thread
From: Carsten Dominik @ 2009-10-08 10:25 UTC (permalink / raw
To: Johan Ekh; +Cc: emacs-orgmode
On Oct 8, 2009, at 10:32 AM, Johan Ekh wrote:
> preview-latex in AucTeX works really well I think. It would be nice
> to use it in org-mode.
> I'm not a lisp programmer. I would be happy to contribute to org-
> mode but I need support.
> Could someone point me in the right direction to start developing
> such a patch?
>
> Or, if someone more skilled than me would like to pick it up and
> just do it, that would
> be fine with me!
I think you could start by investigating if it would be possible
to use preview-LaTeX in a file like an Org-mode file. For this you
probably
need to ask on the AUCTeX mailing lists.
- Carsten
>
> //Johan
>
> On Mon, Oct 5, 2009 at 7:57 PM, Carsten Dominik <carsten.dominik@gmail.com
> > wrote:
>
> On Oct 5, 2009, at 7:29 PM, Darlan Cavalcante Moreira wrote:
>
>
> Even graphics made in tikz, that does not use postscript commands,
> do not appear
> in DVI viewers. I haven't used the preview-latex with graphics in
> AucTeX, but if
> it is able to view graphics made with pstricks, as it appears to be
> the case,
> then maybe it is better to first investigate how preview-latex is
> able to do
> this before searching for options to pass to dvipng in org-mode.
>
> IMHO it would be even better if it was possible to use the original
> preview-latex from AucTeX instead of reinventing the wheel.
>
> :-) I'd be happy to accept a patch!
>
> - Carsten
>
>
>
> Darlan
>
>
> PS: Please, when answering E-Mails do not forget to also CC to the
> the org
> mailing list.
>
>
>
> At Sat, 3 Oct 2009 10:28:37 +0200,
> Johan Ekh wrote:
>
> [1 <text/plain; ISO-8859-1 (7bit)>]
> Thanks for sharing with me! Your setup seems to give a good
> workflow. Before
> starting to use org-mode I worked with my
> graphics in emacs using the preview facility in AucTeX. Thus I could
> develop
> my picture and easily update the
> preview to see the effect of my last edit.
>
> Since starting to use org-mode I find that I have it open all the
> time and
> would like to include it as much as possible
> in my work flow. Many of my pictures share some content and it would
> be nice
> to develop some "templates" that
> I can start with when I do my pictures. Pstricks is postscript and
> usually
> do not display in dvi viewers. This is
> probably why dvipng doesn't work.
>
> Is there any way I can manipulate org-modes route to a png preview
> picture?
>
> Best regards,
> Johan
>
> On Fri, Oct 2, 2009 at 8:34 PM, Darlan Cavalcante Moreira <darcamo@gmail.com
> wrote:
>
>
> From the documentation it seems that org-mode uses dvipng.
> [[info:org:LaTeX%20fragments][info:org:LaTeX fragments]]
> But I don't know how it behaves with pstricks.
>
> I usually create the graphics in a separated file when I'm working
> with
> latex. It's a complete latex file with the necessary preamble that
> will be
> later turned into comments when I'm finished and want to actually
> include
> the
> graphic in my document. (using \input{graphic.tex})
>
> When I'm working on it, Emacs occupies half of my screen (or more) and
> evince
> occupies the other half. Whenever I compile the document (using
> pdflatex
> since I
> use tikz to draw graphics) the pdf is automatically reloaded by
> evince.
> Since I
> don't rely on the preview-latex for developing the graphics I don't
> know if
> it
> works with tikz. I guess I'll give it a try.
>
> ...
>
> I tried with the simple example
> ,----
> | \begin{tikzpicture}
> | \draw (0,0) -- (1,1);
> | \end{tikzpicture}
> `----
> and it does not work. Only a little square is show in the Emacs
> buffer.
> Well,
> this is expected since the package tikz is not included in the
> temporary
> .tex
> file (and neither is pstricks as I could see).
>
> After included the usepackage{tikz} in org-format-latex-header the
> preview
> is
> "created". However nothing is show, since the graphic generated by
> tikz
> (and
> pstricks) is not present at the DVI stage.
>
> This seems to be a limitation of dvipng and not org-mode.
>
> Darlan
>
>
> At Fri, 2 Oct 2009 16:53:54 +0200,
> Johan Ekh wrote:
>
> [1.1 <text/plain; ISO-8859-1 (7bit)>]
> 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 <
> darcamo@gmail.com
> 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 <multipart/alternative (7bit)>]
> [1.1 <text/plain; ISO-8859-1 (7bit)>]
> 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 <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:
>
> 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 <text/html; ISO-8859-1 (quoted-printable)>]
>
> [2 <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
>
> [1.2 <text/html; ISO-8859-1 (quoted-printable)>]
>
>
> [2 <text/html; ISO-8859-1 (quoted-printable)>]
>
>
>
> _______________________________________________
> 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
>
>
> _______________________________________________
> 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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pstricks in org-mode?
2009-10-08 10:25 ` Carsten Dominik
@ 2009-10-08 14:55 ` Johan Ekh
2009-10-20 20:02 ` Johan Ekh
0 siblings, 1 reply; 12+ messages in thread
From: Johan Ekh @ 2009-10-08 14:55 UTC (permalink / raw
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 7242 bytes --]
OK!
I'll report back.
/Johan
On Thu, Oct 8, 2009 at 12:25 PM, Carsten Dominik
<carsten.dominik@gmail.com>wrote:
>
> On Oct 8, 2009, at 10:32 AM, Johan Ekh wrote:
>
> preview-latex in AucTeX works really well I think. It would be nice to use
>> it in org-mode.
>> I'm not a lisp programmer. I would be happy to contribute to org-mode but
>> I need support.
>> Could someone point me in the right direction to start developing such a
>> patch?
>>
>> Or, if someone more skilled than me would like to pick it up and just do
>> it, that would
>> be fine with me!
>>
>
> I think you could start by investigating if it would be possible
> to use preview-LaTeX in a file like an Org-mode file. For this you
> probably
> need to ask on the AUCTeX mailing lists.
>
> - Carsten
>
>
>
>> //Johan
>>
>> On Mon, Oct 5, 2009 at 7:57 PM, Carsten Dominik <
>> carsten.dominik@gmail.com> wrote:
>>
>> On Oct 5, 2009, at 7:29 PM, Darlan Cavalcante Moreira wrote:
>>
>>
>> Even graphics made in tikz, that does not use postscript commands, do not
>> appear
>> in DVI viewers. I haven't used the preview-latex with graphics in AucTeX,
>> but if
>> it is able to view graphics made with pstricks, as it appears to be the
>> case,
>> then maybe it is better to first investigate how preview-latex is able to
>> do
>> this before searching for options to pass to dvipng in org-mode.
>>
>> IMHO it would be even better if it was possible to use the original
>> preview-latex from AucTeX instead of reinventing the wheel.
>>
>> :-) I'd be happy to accept a patch!
>>
>> - Carsten
>>
>>
>>
>> Darlan
>>
>>
>> PS: Please, when answering E-Mails do not forget to also CC to the the org
>> mailing list.
>>
>>
>>
>> At Sat, 3 Oct 2009 10:28:37 +0200,
>> Johan Ekh wrote:
>>
>> [1 <text/plain; ISO-8859-1 (7bit)>]
>> Thanks for sharing with me! Your setup seems to give a good workflow.
>> Before
>> starting to use org-mode I worked with my
>> graphics in emacs using the preview facility in AucTeX. Thus I could
>> develop
>> my picture and easily update the
>> preview to see the effect of my last edit.
>>
>> Since starting to use org-mode I find that I have it open all the time and
>> would like to include it as much as possible
>> in my work flow. Many of my pictures share some content and it would be
>> nice
>> to develop some "templates" that
>> I can start with when I do my pictures. Pstricks is postscript and usually
>> do not display in dvi viewers. This is
>> probably why dvipng doesn't work.
>>
>> Is there any way I can manipulate org-modes route to a png preview
>> picture?
>>
>> Best regards,
>> Johan
>>
>> On Fri, Oct 2, 2009 at 8:34 PM, Darlan Cavalcante Moreira <
>> darcamo@gmail.com
>> wrote:
>>
>>
>> From the documentation it seems that org-mode uses dvipng.
>> [[info:org:LaTeX%20fragments][info:org:LaTeX fragments]]
>> But I don't know how it behaves with pstricks.
>>
>> I usually create the graphics in a separated file when I'm working with
>> latex. It's a complete latex file with the necessary preamble that will be
>> later turned into comments when I'm finished and want to actually include
>> the
>> graphic in my document. (using \input{graphic.tex})
>>
>> When I'm working on it, Emacs occupies half of my screen (or more) and
>> evince
>> occupies the other half. Whenever I compile the document (using pdflatex
>> since I
>> use tikz to draw graphics) the pdf is automatically reloaded by evince.
>> Since I
>> don't rely on the preview-latex for developing the graphics I don't know
>> if
>> it
>> works with tikz. I guess I'll give it a try.
>>
>> ...
>>
>> I tried with the simple example
>> ,----
>> | \begin{tikzpicture}
>> | \draw (0,0) -- (1,1);
>> | \end{tikzpicture}
>> `----
>> and it does not work. Only a little square is show in the Emacs buffer.
>> Well,
>> this is expected since the package tikz is not included in the temporary
>> .tex
>> file (and neither is pstricks as I could see).
>>
>> After included the usepackage{tikz} in org-format-latex-header the preview
>> is
>> "created". However nothing is show, since the graphic generated by tikz
>> (and
>> pstricks) is not present at the DVI stage.
>>
>> This seems to be a limitation of dvipng and not org-mode.
>>
>> Darlan
>>
>>
>> At Fri, 2 Oct 2009 16:53:54 +0200,
>> Johan Ekh wrote:
>>
>> [1.1 <text/plain; ISO-8859-1 (7bit)>]
>> 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 <
>> darcamo@gmail.com
>> 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 <multipart/alternative (7bit)>]
>> [1.1 <text/plain; ISO-8859-1 (7bit)>]
>> 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 <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:
>>
>> 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 <text/html; ISO-8859-1 (quoted-printable)>]
>>
>> [2 <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
>>
>> [1.2 <text/html; ISO-8859-1 (quoted-printable)>]
>>
>>
>> [2 <text/html; ISO-8859-1 (quoted-printable)>]
>>
>>
>>
>> _______________________________________________
>> 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
>>
>>
>> _______________________________________________
>> 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
>>
>
>
[-- Attachment #1.2: Type: text/html, Size: 9303 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pstricks in org-mode?
2009-10-08 14:55 ` Johan Ekh
@ 2009-10-20 20:02 ` Johan Ekh
0 siblings, 0 replies; 12+ messages in thread
From: Johan Ekh @ 2009-10-20 20:02 UTC (permalink / raw
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 7937 bytes --]
No luck! I did not manage to create an interest in the AucTeX mailing list
for using AucTeX preview-latex in org-mode.
Does anyone have an idea how to proceed with this?
I really think that it would be a good feature to be able to work with
pstricks code in org-mode. I'm I the only one
to think that way?
Best regards,
Johan
On Thu, Oct 8, 2009 at 4:55 PM, Johan Ekh <ekh.johan@gmail.com> wrote:
> OK!
> I'll report back.
> /Johan
>
>
> On Thu, Oct 8, 2009 at 12:25 PM, Carsten Dominik <
> carsten.dominik@gmail.com> wrote:
>
>>
>> On Oct 8, 2009, at 10:32 AM, Johan Ekh wrote:
>>
>> preview-latex in AucTeX works really well I think. It would be nice to
>>> use it in org-mode.
>>> I'm not a lisp programmer. I would be happy to contribute to org-mode but
>>> I need support.
>>> Could someone point me in the right direction to start developing such a
>>> patch?
>>>
>>> Or, if someone more skilled than me would like to pick it up and just do
>>> it, that would
>>> be fine with me!
>>>
>>
>> I think you could start by investigating if it would be possible
>> to use preview-LaTeX in a file like an Org-mode file. For this you
>> probably
>> need to ask on the AUCTeX mailing lists.
>>
>> - Carsten
>>
>>
>>
>>> //Johan
>>>
>>> On Mon, Oct 5, 2009 at 7:57 PM, Carsten Dominik <
>>> carsten.dominik@gmail.com> wrote:
>>>
>>> On Oct 5, 2009, at 7:29 PM, Darlan Cavalcante Moreira wrote:
>>>
>>>
>>> Even graphics made in tikz, that does not use postscript commands, do not
>>> appear
>>> in DVI viewers. I haven't used the preview-latex with graphics in AucTeX,
>>> but if
>>> it is able to view graphics made with pstricks, as it appears to be the
>>> case,
>>> then maybe it is better to first investigate how preview-latex is able to
>>> do
>>> this before searching for options to pass to dvipng in org-mode.
>>>
>>> IMHO it would be even better if it was possible to use the original
>>> preview-latex from AucTeX instead of reinventing the wheel.
>>>
>>> :-) I'd be happy to accept a patch!
>>>
>>> - Carsten
>>>
>>>
>>>
>>> Darlan
>>>
>>>
>>> PS: Please, when answering E-Mails do not forget to also CC to the the
>>> org
>>> mailing list.
>>>
>>>
>>>
>>> At Sat, 3 Oct 2009 10:28:37 +0200,
>>> Johan Ekh wrote:
>>>
>>> [1 <text/plain; ISO-8859-1 (7bit)>]
>>> Thanks for sharing with me! Your setup seems to give a good workflow.
>>> Before
>>> starting to use org-mode I worked with my
>>> graphics in emacs using the preview facility in AucTeX. Thus I could
>>> develop
>>> my picture and easily update the
>>> preview to see the effect of my last edit.
>>>
>>> Since starting to use org-mode I find that I have it open all the time
>>> and
>>> would like to include it as much as possible
>>> in my work flow. Many of my pictures share some content and it would be
>>> nice
>>> to develop some "templates" that
>>> I can start with when I do my pictures. Pstricks is postscript and
>>> usually
>>> do not display in dvi viewers. This is
>>> probably why dvipng doesn't work.
>>>
>>> Is there any way I can manipulate org-modes route to a png preview
>>> picture?
>>>
>>> Best regards,
>>> Johan
>>>
>>> On Fri, Oct 2, 2009 at 8:34 PM, Darlan Cavalcante Moreira <
>>> darcamo@gmail.com
>>> wrote:
>>>
>>>
>>> From the documentation it seems that org-mode uses dvipng.
>>> [[info:org:LaTeX%20fragments][info:org:LaTeX fragments]]
>>> But I don't know how it behaves with pstricks.
>>>
>>> I usually create the graphics in a separated file when I'm working with
>>> latex. It's a complete latex file with the necessary preamble that will
>>> be
>>> later turned into comments when I'm finished and want to actually include
>>> the
>>> graphic in my document. (using \input{graphic.tex})
>>>
>>> When I'm working on it, Emacs occupies half of my screen (or more) and
>>> evince
>>> occupies the other half. Whenever I compile the document (using pdflatex
>>> since I
>>> use tikz to draw graphics) the pdf is automatically reloaded by evince.
>>> Since I
>>> don't rely on the preview-latex for developing the graphics I don't know
>>> if
>>> it
>>> works with tikz. I guess I'll give it a try.
>>>
>>> ...
>>>
>>> I tried with the simple example
>>> ,----
>>> | \begin{tikzpicture}
>>> | \draw (0,0) -- (1,1);
>>> | \end{tikzpicture}
>>> `----
>>> and it does not work. Only a little square is show in the Emacs buffer.
>>> Well,
>>> this is expected since the package tikz is not included in the temporary
>>> .tex
>>> file (and neither is pstricks as I could see).
>>>
>>> After included the usepackage{tikz} in org-format-latex-header the
>>> preview
>>> is
>>> "created". However nothing is show, since the graphic generated by tikz
>>> (and
>>> pstricks) is not present at the DVI stage.
>>>
>>> This seems to be a limitation of dvipng and not org-mode.
>>>
>>> Darlan
>>>
>>>
>>> At Fri, 2 Oct 2009 16:53:54 +0200,
>>> Johan Ekh wrote:
>>>
>>> [1.1 <text/plain; ISO-8859-1 (7bit)>]
>>> 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 <
>>> darcamo@gmail.com
>>> 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 <multipart/alternative (7bit)>]
>>> [1.1 <text/plain; ISO-8859-1 (7bit)>]
>>> 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 <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:
>>>
>>> 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 <text/html; ISO-8859-1 (quoted-printable)>]
>>>
>>> [2 <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
>>>
>>> [1.2 <text/html; ISO-8859-1 (quoted-printable)>]
>>>
>>>
>>> [2 <text/html; ISO-8859-1 (quoted-printable)>]
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>
>>
>
[-- Attachment #1.2: Type: text/html, Size: 10063 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-10-20 20:02 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30 22:30 pstricks in org-mode? Johan Ekh
2009-10-01 11:55 ` Carsten Dominik
[not found] ` <417457b50910011346o533328e6obcc5769295b214c6@mail.gmail.com>
2009-10-02 12:52 ` Johan Ekh
2009-10-02 13:28 ` Darlan Cavalcante Moreira
2009-10-02 14:53 ` Johan Ekh
2009-10-02 18:34 ` Darlan Cavalcante Moreira
[not found] ` <417457b50910030128s64c8c6ecu2bcb55b1a5f27bf1@mail.gmail.com>
2009-10-05 17:29 ` Darlan Cavalcante Moreira
2009-10-05 17:57 ` Carsten Dominik
2009-10-08 8:32 ` Johan Ekh
2009-10-08 10:25 ` Carsten Dominik
2009-10-08 14:55 ` Johan Ekh
2009-10-20 20:02 ` Johan Ekh
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.