Re: How to get a preview for custom graphics format?

2009-08-25 Thread Daniel Lohmann
On 14.08.2009, at 15:56, Pavel Sanda wrote: Daniel Lohmann wrote: Or am I mistaken here? I am still seeking for a definite answer regarding the conversion route that to my understanding is automatically deduced by LyX (TiKZ -- PDF | PDF -- Preview). It seem that (newer?) versions of LyX

Re: How to get a preview for custom graphics format?

2009-08-25 Thread Daniel Lohmann
On 14.08.2009, at 15:56, Pavel Sanda wrote: Daniel Lohmann wrote: Or am I mistaken here? I am still seeking for a definite answer regarding the conversion route that to my understanding is automatically deduced by LyX (TiKZ -- PDF | PDF -- Preview). It seem that (newer?) versions of LyX

Re: How to get a preview for "custom" graphics format?

2009-08-25 Thread Daniel Lohmann
On 14.08.2009, at 15:56, Pavel Sanda wrote: Daniel Lohmann wrote: Or am I mistaken here? I am still seeking for a definite answer regarding the conversion route that to my understanding is automatically deduced by LyX (TiKZ --> PDF | PDF --> Preview). It seem that (newer?) versions of

Re: How to get a preview for custom graphics format?

2009-08-14 Thread Pavel Sanda
Daniel Lohmann wrote: Or am I mistaken here? I am still seeking for a definite answer regarding the conversion route that to my understanding is automatically deduced by LyX (TiKZ -- PDF | PDF -- Preview). It seem that (newer?) versions of LyX just pass everything right through to

Re: How to get a preview for custom graphics format?

2009-08-14 Thread Pavel Sanda
Daniel Lohmann wrote: Or am I mistaken here? I am still seeking for a definite answer regarding the conversion route that to my understanding is automatically deduced by LyX (TiKZ -- PDF | PDF -- Preview). It seem that (newer?) versions of LyX just pass everything right through to

Re: How to get a preview for "custom" graphics format?

2009-08-14 Thread Pavel Sanda
Daniel Lohmann wrote: > Or am I mistaken here? I am still seeking for a definite answer regarding > the conversion route that to my understanding is automatically deduced by > LyX (TiKZ --> PDF | PDF --> Preview). It seem that (newer?) versions of LyX > just pass everything right through to

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Pavel Sanda
Paul Johnson wrote: I am sorry if I am telling you something you already know, but... thanks for info (i know basically nothing about tikz) It seems to me you are throwing away the value of TikZ by doing this. Recall that one of the strengths of TikZ/pgf is that the fonts and such in the

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Jürgen Spitzmüller
Pavel Sanda wrote: i see three possibilities: - one possibility would be to make external template which tries to the instant preview from the included file only. it will work 100% for typeset output, preview will work for figures and somewhat unreliably for the documents i guess.

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Pavel Sanda
Jürgen Spitzmüller wrote: IMHO the only way to go is an external inset that * outputs \input{myfigure.tiks} to LaTeX and * uses the graphics approach for the preview. I think this should be possible with the current external templates approach. and the parent preamble? pavel

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Jürgen Spitzmüller
Pavel Sanda wrote: and the parent preamble? I guess the tikz file would need its own preamble. Jürgen

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Pavel Sanda
Jürgen Spitzmüller wrote: Pavel Sanda wrote: and the parent preamble? I guess the tikz file would need its own preamble. well, i have written my ideas with taking into account Paul's concerns: Recall that one of the strengths of TikZ/pgf is that the fonts and such in the figure will

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Jürgen Spitzmüller
Pavel Sanda wrote: I guess the tikz file would need its own preamble. well, i have written my ideas with taking into account Paul's concerns: Recall that one of the strengths of TikZ/pgf is that the fonts and such in the figure will match the document. If you persist in keeping the TikZ

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Jürgen Spitzmüller
Pavel Sanda wrote: - to make a python script which would take the parent document dumps the preamble, then inputs tikz, latex it and returns figure for both preview and output. Here is such a python script (although it is a bit too UNIX-centric):

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Pavel Sanda
Jürgen Spitzmüller wrote: Pavel Sanda wrote: - to make a python script which would take the parent document dumps the preamble, then inputs tikz, latex it and returns figure for both preview and output. Here is such a python script (although it is a bit too UNIX-centric):

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Daniel Lohmann
On 13.08.2009, at 06:47, Paul Johnson wrote: On Fri, Aug 7, 2009 at 9:52 AM, Daniel Lohmanndaniel.lohm...@informatik.uni-erlangen.de wrote: Hi, So here is what I want to achieve: I have some TikZ figures (which are actually stand-alone LaTeX- documents with the extension .tikz) that I

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Daniel Lohmann
On 12.08.2009, at 09:53, Guenter Milde wrote: On 2009-08-11, Pavel Sanda wrote: Daniel Lohmann wrote: that mean that it is *not possible* to achieve goal (1) (the preview in LyX, everything else works) via file formats and converters only? unless imagemagick convert utility knows how to

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Daniel Lohmann
On 13.08.2009, at 11:22, Pavel Sanda wrote: Jürgen Spitzmüller wrote: Pavel Sanda wrote: - to make a python script which would take the parent document dumps the preamble, then inputs tikz, latex it and returns figure for both preview and output. Here is such a python script (although

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Jürgen Spitzmüller
Daniel Lohmann wrote: The real problem is to get the preamble right. Because TikZ is a huge package that has a noticeable impact on LaTeX compilation times (and memory consumption), it is pretty well modularized into multiple libraries. A typical preamble for a TikZ figure looks as

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Pavel Sanda
Paul Johnson wrote: I am sorry if I am telling you something you already know, but... thanks for info (i know basically nothing about tikz) It seems to me you are throwing away the value of TikZ by doing this. Recall that one of the strengths of TikZ/pgf is that the fonts and such in the

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Jürgen Spitzmüller
Pavel Sanda wrote: i see three possibilities: - one possibility would be to make external template which tries to the instant preview from the included file only. it will work 100% for typeset output, preview will work for figures and somewhat unreliably for the documents i guess.

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Pavel Sanda
Jürgen Spitzmüller wrote: IMHO the only way to go is an external inset that * outputs \input{myfigure.tiks} to LaTeX and * uses the graphics approach for the preview. I think this should be possible with the current external templates approach. and the parent preamble? pavel

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Jürgen Spitzmüller
Pavel Sanda wrote: and the parent preamble? I guess the tikz file would need its own preamble. Jürgen

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Pavel Sanda
Jürgen Spitzmüller wrote: Pavel Sanda wrote: and the parent preamble? I guess the tikz file would need its own preamble. well, i have written my ideas with taking into account Paul's concerns: Recall that one of the strengths of TikZ/pgf is that the fonts and such in the figure will

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Jürgen Spitzmüller
Pavel Sanda wrote: I guess the tikz file would need its own preamble. well, i have written my ideas with taking into account Paul's concerns: Recall that one of the strengths of TikZ/pgf is that the fonts and such in the figure will match the document. If you persist in keeping the TikZ

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Jürgen Spitzmüller
Pavel Sanda wrote: - to make a python script which would take the parent document dumps the preamble, then inputs tikz, latex it and returns figure for both preview and output. Here is such a python script (although it is a bit too UNIX-centric):

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Pavel Sanda
Jürgen Spitzmüller wrote: Pavel Sanda wrote: - to make a python script which would take the parent document dumps the preamble, then inputs tikz, latex it and returns figure for both preview and output. Here is such a python script (although it is a bit too UNIX-centric):

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Daniel Lohmann
On 13.08.2009, at 06:47, Paul Johnson wrote: On Fri, Aug 7, 2009 at 9:52 AM, Daniel Lohmanndaniel.lohm...@informatik.uni-erlangen.de wrote: Hi, So here is what I want to achieve: I have some TikZ figures (which are actually stand-alone LaTeX- documents with the extension .tikz) that I

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Daniel Lohmann
On 12.08.2009, at 09:53, Guenter Milde wrote: On 2009-08-11, Pavel Sanda wrote: Daniel Lohmann wrote: that mean that it is *not possible* to achieve goal (1) (the preview in LyX, everything else works) via file formats and converters only? unless imagemagick convert utility knows how to

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Daniel Lohmann
On 13.08.2009, at 11:22, Pavel Sanda wrote: Jürgen Spitzmüller wrote: Pavel Sanda wrote: - to make a python script which would take the parent document dumps the preamble, then inputs tikz, latex it and returns figure for both preview and output. Here is such a python script (although

Re: How to get a preview for custom graphics format?

2009-08-13 Thread Jürgen Spitzmüller
Daniel Lohmann wrote: The real problem is to get the preamble right. Because TikZ is a huge package that has a noticeable impact on LaTeX compilation times (and memory consumption), it is pretty well modularized into multiple libraries. A typical preamble for a TikZ figure looks as

Re: How to get a preview for "custom" graphics format?

2009-08-13 Thread Pavel Sanda
Paul Johnson wrote: > I am sorry if I am telling you something you already know, but... thanks for info (i know basically nothing about tikz) > It seems to me you are throwing away the value of TikZ by doing this. > > Recall that one of the strengths of TikZ/pgf is that the fonts and > such in

Re: How to get a preview for "custom" graphics format?

2009-08-13 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > i see three possibilities: > > - one possibility would be to make external template which tries to > the instant preview from the included file only. it will work 100% > for typeset output, preview will work for figures and somewhat unreliably > for the documents i

Re: How to get a preview for "custom" graphics format?

2009-08-13 Thread Pavel Sanda
Jürgen Spitzmüller wrote: > IMHO the only way to go is an external inset that > > * outputs \input{myfigure.tiks} to LaTeX > and > * uses the graphics approach for the preview. > > I think this should be possible with the current external templates approach. and the parent preamble? pavel

Re: How to get a preview for "custom" graphics format?

2009-08-13 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > and the parent preamble? I guess the tikz file would need its own preamble. Jürgen

Re: How to get a preview for "custom" graphics format?

2009-08-13 Thread Pavel Sanda
Jürgen Spitzmüller wrote: > Pavel Sanda wrote: > > and the parent preamble? > > I guess the tikz file would need its own preamble. well, i have written my ideas with taking into account Paul's concerns: > Recall that one of the strengths of TikZ/pgf is that the fonts and > such in the figure

Re: How to get a preview for "custom" graphics format?

2009-08-13 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > > I guess the tikz file would need its own preamble. > > well, i have written my ideas with taking into account Paul's concerns: > > Recall that one of the strengths of TikZ/pgf is that the fonts and > > such in the figure will match the document. If you persist in keeping > >

Re: How to get a preview for "custom" graphics format?

2009-08-13 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > - to make a python script which would take the parent document dumps the > preamble, then inputs tikz, latex it and returns figure for both preview > and output. Here is such a python script (although it is a bit too UNIX-centric):

Re: How to get a preview for "custom" graphics format?

2009-08-13 Thread Pavel Sanda
Jürgen Spitzmüller wrote: > Pavel Sanda wrote: > > - to make a python script which would take the parent document dumps the > > preamble, then inputs tikz, latex it and returns figure for both preview > > and output. > > Here is such a python script (although it is a bit too UNIX-centric): >

Re: How to get a preview for "custom" graphics format?

2009-08-13 Thread Daniel Lohmann
On 13.08.2009, at 06:47, Paul Johnson wrote: On Fri, Aug 7, 2009 at 9:52 AM, Daniel Lohmann wrote: Hi, So here is what I want to achieve: I have some TikZ figures (which are actually stand-alone LaTeX- documents with the extension .tikz) that I

Re: How to get a preview for "custom" graphics format?

2009-08-13 Thread Daniel Lohmann
On 12.08.2009, at 09:53, Guenter Milde wrote: On 2009-08-11, Pavel Sanda wrote: Daniel Lohmann wrote: that mean that it is *not possible* to achieve goal (1) (the preview in LyX, everything else works) via file formats and converters only? unless imagemagick convert utility knows how to

Re: How to get a preview for "custom" graphics format?

2009-08-13 Thread Daniel Lohmann
On 13.08.2009, at 11:22, Pavel Sanda wrote: Jürgen Spitzmüller wrote: Pavel Sanda wrote: - to make a python script which would take the parent document dumps the preamble, then inputs tikz, latex it and returns figure for both preview and output. Here is such a python script (although

Re: How to get a preview for "custom" graphics format?

2009-08-13 Thread Jürgen Spitzmüller
Daniel Lohmann wrote: > The real problem is to get the preamble right. Because TikZ is a huge > package that has a noticeable impact on LaTeX compilation times (and > memory consumption), it is pretty well modularized into multiple > libraries. A typical preamble for a TikZ figure looks as

Re: How to get a preview for custom graphics format?

2009-08-12 Thread Guenter Milde
On 2009-08-11, Pavel Sanda wrote: Daniel Lohmann wrote: that mean that it is *not possible* to achieve goal (1) (the preview in LyX, everything else works) via file formats and converters only? unless imagemagick convert utility knows how to deal with it (i think it doesn't) i'm not aware

Re: How to get a preview for custom graphics format?

2009-08-12 Thread Pavel Sanda
Guenter Milde wrote: On 2009-08-11, Pavel Sanda wrote: Daniel Lohmann wrote: that mean that it is *not possible* to achieve goal (1) (the preview in LyX, everything else works) via file formats and converters only? unless imagemagick convert utility knows how to deal with it (i think

Re: How to get a preview for custom graphics format?

2009-08-12 Thread Florian Rubach
Daniel Lohmann schrieb: Hi, ... So here is what I want to achieve: I have some TikZ figures (which are actually stand-alone LaTeX-documents with the extension .tikz) that I want to embed (not the source, but the PDF/EPS via \includegraphics) into my LyX document in a way that (1) the

Re: How to get a preview for custom graphics format?

2009-08-12 Thread Paul Johnson
On Fri, Aug 7, 2009 at 9:52 AM, Daniel Lohmanndaniel.lohm...@informatik.uni-erlangen.de wrote: Hi, So here is what I want to achieve: I have some TikZ figures (which are actually stand-alone LaTeX-documents with the extension .tikz) that I want to embed (not the source, but the PDF/EPS

Re: How to get a preview for custom graphics format?

2009-08-12 Thread Guenter Milde
On 2009-08-11, Pavel Sanda wrote: Daniel Lohmann wrote: that mean that it is *not possible* to achieve goal (1) (the preview in LyX, everything else works) via file formats and converters only? unless imagemagick convert utility knows how to deal with it (i think it doesn't) i'm not aware

Re: How to get a preview for custom graphics format?

2009-08-12 Thread Pavel Sanda
Guenter Milde wrote: On 2009-08-11, Pavel Sanda wrote: Daniel Lohmann wrote: that mean that it is *not possible* to achieve goal (1) (the preview in LyX, everything else works) via file formats and converters only? unless imagemagick convert utility knows how to deal with it (i think

Re: How to get a preview for custom graphics format?

2009-08-12 Thread Florian Rubach
Daniel Lohmann schrieb: Hi, ... So here is what I want to achieve: I have some TikZ figures (which are actually stand-alone LaTeX-documents with the extension .tikz) that I want to embed (not the source, but the PDF/EPS via \includegraphics) into my LyX document in a way that (1) the

Re: How to get a preview for custom graphics format?

2009-08-12 Thread Paul Johnson
On Fri, Aug 7, 2009 at 9:52 AM, Daniel Lohmanndaniel.lohm...@informatik.uni-erlangen.de wrote: Hi, So here is what I want to achieve: I have some TikZ figures (which are actually stand-alone LaTeX-documents with the extension .tikz) that I want to embed (not the source, but the PDF/EPS

Re: How to get a preview for "custom" graphics format?

2009-08-12 Thread Guenter Milde
On 2009-08-11, Pavel Sanda wrote: > Daniel Lohmann wrote: >> that mean that it is *not possible* to achieve goal (1) (the preview in >> LyX, everything else works) via file formats and converters only? > unless imagemagick convert utility knows how to deal with it (i think > it doesn't) i'm not

Re: How to get a preview for "custom" graphics format?

2009-08-12 Thread Pavel Sanda
Guenter Milde wrote: > On 2009-08-11, Pavel Sanda wrote: > > Daniel Lohmann wrote: > >> that mean that it is *not possible* to achieve goal (1) (the preview in > >> LyX, everything else works) via file formats and converters only? > > > unless imagemagick convert utility knows how to deal with

Re: How to get a preview for "custom" graphics format?

2009-08-12 Thread Florian Rubach
Daniel Lohmann schrieb: Hi, ... So here is what I want to achieve: I have some TikZ figures (which are actually stand-alone LaTeX-documents with the extension .tikz) that I want to embed (not the source, but the PDF/EPS via \includegraphics) into my LyX document in a way that (1) the

Re: How to get a preview for "custom" graphics format?

2009-08-12 Thread Paul Johnson
On Fri, Aug 7, 2009 at 9:52 AM, Daniel Lohmann wrote: > Hi, > > > > So here is what I want to achieve: > > I have some TikZ figures (which are actually stand-alone LaTeX-documents > with the extension .tikz) that I want to embed (not the source, but the >

Re: How to get a preview for custom graphics format?

2009-08-11 Thread Daniel Lohmann
On 09.08.2009, at 17:31, Pavel Sanda wrote: Daniel Lohmann wrote: Your help is highly appreciated! try to mimic http://www.lyx.org/trac/changeset/27914 and ask for inclusion if you succeed. you may also want to comment on bug 4882. Hi Pavel, Thanks for your answer! However, I have to

Re: How to get a preview for custom graphics format?

2009-08-11 Thread Pavel Sanda
Daniel Lohmann wrote: that mean that it is *not possible* to achieve goal (1) (the preview in LyX, everything else works) via file formats and converters only? unless imagemagick convert utility knows how to deal with it (i think it doesn't) i'm not aware of such a plain route. pavel

Re: How to get a preview for custom graphics format?

2009-08-11 Thread Daniel Lohmann
On 09.08.2009, at 17:31, Pavel Sanda wrote: Daniel Lohmann wrote: Your help is highly appreciated! try to mimic http://www.lyx.org/trac/changeset/27914 and ask for inclusion if you succeed. you may also want to comment on bug 4882. Hi Pavel, Thanks for your answer! However, I have to

Re: How to get a preview for custom graphics format?

2009-08-11 Thread Pavel Sanda
Daniel Lohmann wrote: that mean that it is *not possible* to achieve goal (1) (the preview in LyX, everything else works) via file formats and converters only? unless imagemagick convert utility knows how to deal with it (i think it doesn't) i'm not aware of such a plain route. pavel

Re: How to get a preview for "custom" graphics format?

2009-08-11 Thread Daniel Lohmann
On 09.08.2009, at 17:31, Pavel Sanda wrote: Daniel Lohmann wrote: Your help is highly appreciated! try to mimic http://www.lyx.org/trac/changeset/27914 and ask for inclusion if you succeed. you may also want to comment on bug 4882. Hi Pavel, Thanks for your answer! However, I have to

Re: How to get a preview for "custom" graphics format?

2009-08-11 Thread Pavel Sanda
Daniel Lohmann wrote: > that mean that it is *not possible* to achieve goal (1) (the preview in > LyX, everything else works) via file formats and converters only? unless imagemagick convert utility knows how to deal with it (i think it doesn't) i'm not aware of such a plain route. pavel

Re: How to get a preview for custom graphics format?

2009-08-09 Thread Pavel Sanda
Daniel Lohmann wrote: Your help is highly appreciated! try to mimic http://www.lyx.org/trac/changeset/27914 and ask for inclusion if you succeed. you may also want to comment on bug 4882. pavel

Re: How to get a preview for custom graphics format?

2009-08-09 Thread Pavel Sanda
Daniel Lohmann wrote: Your help is highly appreciated! try to mimic http://www.lyx.org/trac/changeset/27914 and ask for inclusion if you succeed. you may also want to comment on bug 4882. pavel

Re: How to get a preview for "custom" graphics format?

2009-08-09 Thread Pavel Sanda
Daniel Lohmann wrote: > Your help is highly appreciated! try to mimic http://www.lyx.org/trac/changeset/27914 and ask for inclusion if you succeed. you may also want to comment on bug 4882. pavel