Re: convert grace - pdf (not png)?

2006-10-03 Thread Helge Hafting

Georg Baum wrote:

Helge Hafting wrote:
  

I am not sure about how lyx handles graphichs included via
the graphichs inset, if that is what you use.  Perhaps someone
else can help with that.



It is hardcoded to png conversion for pdflatex, and yes, we need to change
that.

  

The external inset way works - in addition to converters, you
will need to modify the file external_templates.  Feel free to ask
if you want some help with that. A nice thing about external
insets is that you also may specify an editor for your .agr files.
That way, you can click on your graphichs in lyx, and have lyx
launch the proper editing app.



That does also work with graphic insets.
  


Hm.  If graphichs insets are changed to convert to pdf
when needed, then there is less need for the external inset.
Anything that simply is converted to png/eps/pdf as needed
with no further latex support, won't need an external inset then.

Because the graphichs inset will have all support needed.

Lilypond shouldn't need an external inset then?
It is all about running a converter (the lilypond executable)
in order to get a .eps, a .png or a .pdf depending on
what you're doing. There is no xfig-like extra latex stuff.

Helge Hafting


Re: convert grace - pdf (not png)?

2006-10-03 Thread Georg Baum
Am Dienstag, 3. Oktober 2006 12:46 schrieb Helge Hafting:
 Hm.  If graphichs insets are changed to convert to pdf
 when needed, then there is less need for the external inset.

I committed the change to 1.5svn this morning.

 Anything that simply is converted to png/eps/pdf as needed
 with no further latex support, won't need an external inset then.
 
 Because the graphichs inset will have all support needed.
 
 Lilypond shouldn't need an external inset then?
 It is all about running a converter (the lilypond executable)
 in order to get a .eps, a .png or a .pdf depending on
 what you're doing. There is no xfig-like extra latex stuff.

Then it is not really needed, but it has still one advantage: The 
predefined file filter in the browse dialog.
BTW I am still waiting for lilypond feedback :-) Did you see my message in 
the devel list?


Georg



Re: convert grace - pdf (not png)?

2006-10-03 Thread Helge Hafting

Georg Baum wrote:

Helge Hafting wrote:
  

I am not sure about how lyx handles graphichs included via
the graphichs inset, if that is what you use.  Perhaps someone
else can help with that.



It is hardcoded to png conversion for pdflatex, and yes, we need to change
that.

  

The external inset way works - in addition to converters, you
will need to modify the file external_templates.  Feel free to ask
if you want some help with that. A nice thing about external
insets is that you also may specify an editor for your .agr files.
That way, you can click on your graphichs in lyx, and have lyx
launch the proper editing app.



That does also work with graphic insets.
  


Hm.  If graphichs insets are changed to convert to pdf
when needed, then there is less need for the external inset.
Anything that simply is converted to png/eps/pdf as needed
with no further latex support, won't need an external inset then.

Because the graphichs inset will have all support needed.

Lilypond shouldn't need an external inset then?
It is all about running a converter (the lilypond executable)
in order to get a .eps, a .png or a .pdf depending on
what you're doing. There is no xfig-like extra latex stuff.

Helge Hafting


Re: convert grace - pdf (not png)?

2006-10-03 Thread Georg Baum
Am Dienstag, 3. Oktober 2006 12:46 schrieb Helge Hafting:
 Hm.  If graphichs insets are changed to convert to pdf
 when needed, then there is less need for the external inset.

I committed the change to 1.5svn this morning.

 Anything that simply is converted to png/eps/pdf as needed
 with no further latex support, won't need an external inset then.
 
 Because the graphichs inset will have all support needed.
 
 Lilypond shouldn't need an external inset then?
 It is all about running a converter (the lilypond executable)
 in order to get a .eps, a .png or a .pdf depending on
 what you're doing. There is no xfig-like extra latex stuff.

Then it is not really needed, but it has still one advantage: The 
predefined file filter in the browse dialog.
BTW I am still waiting for lilypond feedback :-) Did you see my message in 
the devel list?


Georg



Re: convert grace -> pdf (not png)?

2006-10-03 Thread Helge Hafting

Georg Baum wrote:

Helge Hafting wrote:
  

I am not sure about how lyx handles graphichs included via
the graphichs inset, if that is what you use.  Perhaps someone
else can help with that.



It is hardcoded to png conversion for pdflatex, and yes, we need to change
that.

  

The external inset way works - in addition to converters, you
will need to modify the file "external_templates.  Feel free to ask
if you want some help with that. A nice thing about external
insets is that you also may specify an editor for your .agr files.
That way, you can click on your graphichs in lyx, and have lyx
launch the proper editing app.



That does also work with graphic insets.
  


Hm.  If graphichs insets are changed to convert to pdf
when needed, then there is less need for the external inset.
Anything that simply is converted to png/eps/pdf as needed
with no further latex support, won't need an external inset then.

Because the graphichs inset will have all support needed.

Lilypond shouldn't need an external inset then?
It is all about running a converter (the lilypond executable)
in order to get a .eps, a .png or a .pdf depending on
what you're doing. There is no xfig-like extra latex stuff.

Helge Hafting


Re: convert grace -> pdf (not png)?

2006-10-03 Thread Georg Baum
Am Dienstag, 3. Oktober 2006 12:46 schrieb Helge Hafting:
> Hm.  If graphichs insets are changed to convert to pdf
> when needed, then there is less need for the external inset.

I committed the change to 1.5svn this morning.

> Anything that simply is converted to png/eps/pdf as needed
> with no further latex support, won't need an external inset then.
> 
> Because the graphichs inset will have all support needed.
> 
> Lilypond shouldn't need an external inset then?
> It is all about running a converter (the lilypond executable)
> in order to get a .eps, a .png or a .pdf depending on
> what you're doing. There is no xfig-like extra latex stuff.

Then it is not really needed, but it has still one advantage: The 
predefined file filter in the browse dialog.
BTW I am still waiting for lilypond feedback :-) Did you see my message in 
the devel list?


Georg



Re: convert grace - pdf (not png)?

2006-09-29 Thread Helge Hafting

Neal Becker wrote:

I want to include grace (.agr) graphics.  I want to export to pdf.

The default setup works, but grace is converted to png.  I want to convert
to pdf instead.

How do I convince lyx?

I tried:
\converter agr pdf2 gracebat -hardcopy -printfile $$o -hdevice PDF $$i
2/dev/null 
  

I did this with lilypond files.  It works well, because I use an
external inset.  So I get conversion to .pdf for pdflatex,
.eps for plain latex, and .png for the instant preview in lyx.

I am not sure about how lyx handles graphichs included via
the graphichs inset, if that is what you use.  Perhaps someone
else can help with that.

The external inset way works - in addition to converters, you
will need to modify the file external_templates.  Feel free to ask
if you want some help with that. A nice thing about external
insets is that you also may specify an editor for your .agr files.
That way, you can click on your graphichs in lyx, and have lyx
launch the proper editing app.

Helge Hafting


Re: convert grace - pdf (not png)?

2006-09-29 Thread Georg Baum
Helge Hafting wrote:

 Neal Becker wrote:
 I want to include grace (.agr) graphics.  I want to export to pdf.

 The default setup works, but grace is converted to png.  I want to
 convert to pdf instead.

 How do I convince lyx?

By changing the source code, function findTargetFormat in
src/insets/insetgraphics.C.

 I tried:
 \converter agr pdf2 gracebat -hardcopy -printfile $$o -hdevice PDF
 $$i 2/dev/null 

You should use pdf instead of pdf2 if there would not be the hardcoding
problem.

 I did this with lilypond files.  It works well, because I use an
 external inset.  So I get conversion to .pdf for pdflatex,
 .eps for plain latex, and .png for the instant preview in lyx.

Neal sent a message to the devel list with an external agr inset, but it
does not work. I have no idea why, and did not have the time yet to look at
it.

 I am not sure about how lyx handles graphichs included via
 the graphichs inset, if that is what you use.  Perhaps someone
 else can help with that.

It is hardcoded to png conversion for pdflatex, and yes, we need to change
that.

 The external inset way works - in addition to converters, you
 will need to modify the file external_templates.  Feel free to ask
 if you want some help with that. A nice thing about external
 insets is that you also may specify an editor for your .agr files.
 That way, you can click on your graphichs in lyx, and have lyx
 launch the proper editing app.

That does also work with graphic insets.


Georg



Re: convert grace - pdf (not png)?

2006-09-29 Thread Neal Becker
Georg Baum wrote:

 Helge Hafting wrote:
 
 Neal Becker wrote:
 I want to include grace (.agr) graphics.  I want to export to pdf.

 The default setup works, but grace is converted to png.  I want to
 convert to pdf instead.

 How do I convince lyx?
 
 By changing the source code, function findTargetFormat in
 src/insets/insetgraphics.C.
 
 I tried:
 \converter agr pdf2 gracebat -hardcopy -printfile $$o -hdevice PDF
 $$i 2/dev/null 
 
 You should use pdf instead of pdf2 if there would not be the hardcoding
 problem.
 
 I did this with lilypond files.  It works well, because I use an
 external inset.  So I get conversion to .pdf for pdflatex,
 .eps for plain latex, and .png for the instant preview in lyx.
 
 Neal sent a message to the devel list with an external agr inset, but it
 does not work. I have no idea why, and did not have the time yet to look
 at it.
 
 I am not sure about how lyx handles graphichs included via
 the graphichs inset, if that is what you use.  Perhaps someone
 else can help with that.
 
 It is hardcoded to png conversion for pdflatex, and yes, we need to change
 that.
 
 The external inset way works - in addition to converters, you
 will need to modify the file external_templates.  Feel free to ask
 if you want some help with that. A nice thing about external
 insets is that you also may specify an editor for your .agr files.
 That way, you can click on your graphichs in lyx, and have lyx
 launch the proper editing app.
 
 That does also work with graphic insets.
 
 
 Georg

Thank you.  Let me know if I can help with any testing.




Re: convert grace - pdf (not png)?

2006-09-29 Thread Helge Hafting

Neal Becker wrote:

I want to include grace (.agr) graphics.  I want to export to pdf.

The default setup works, but grace is converted to png.  I want to convert
to pdf instead.

How do I convince lyx?

I tried:
\converter agr pdf2 gracebat -hardcopy -printfile $$o -hdevice PDF $$i
2/dev/null 
  

I did this with lilypond files.  It works well, because I use an
external inset.  So I get conversion to .pdf for pdflatex,
.eps for plain latex, and .png for the instant preview in lyx.

I am not sure about how lyx handles graphichs included via
the graphichs inset, if that is what you use.  Perhaps someone
else can help with that.

The external inset way works - in addition to converters, you
will need to modify the file external_templates.  Feel free to ask
if you want some help with that. A nice thing about external
insets is that you also may specify an editor for your .agr files.
That way, you can click on your graphichs in lyx, and have lyx
launch the proper editing app.

Helge Hafting


Re: convert grace - pdf (not png)?

2006-09-29 Thread Georg Baum
Helge Hafting wrote:

 Neal Becker wrote:
 I want to include grace (.agr) graphics.  I want to export to pdf.

 The default setup works, but grace is converted to png.  I want to
 convert to pdf instead.

 How do I convince lyx?

By changing the source code, function findTargetFormat in
src/insets/insetgraphics.C.

 I tried:
 \converter agr pdf2 gracebat -hardcopy -printfile $$o -hdevice PDF
 $$i 2/dev/null 

You should use pdf instead of pdf2 if there would not be the hardcoding
problem.

 I did this with lilypond files.  It works well, because I use an
 external inset.  So I get conversion to .pdf for pdflatex,
 .eps for plain latex, and .png for the instant preview in lyx.

Neal sent a message to the devel list with an external agr inset, but it
does not work. I have no idea why, and did not have the time yet to look at
it.

 I am not sure about how lyx handles graphichs included via
 the graphichs inset, if that is what you use.  Perhaps someone
 else can help with that.

It is hardcoded to png conversion for pdflatex, and yes, we need to change
that.

 The external inset way works - in addition to converters, you
 will need to modify the file external_templates.  Feel free to ask
 if you want some help with that. A nice thing about external
 insets is that you also may specify an editor for your .agr files.
 That way, you can click on your graphichs in lyx, and have lyx
 launch the proper editing app.

That does also work with graphic insets.


Georg



Re: convert grace - pdf (not png)?

2006-09-29 Thread Neal Becker
Georg Baum wrote:

 Helge Hafting wrote:
 
 Neal Becker wrote:
 I want to include grace (.agr) graphics.  I want to export to pdf.

 The default setup works, but grace is converted to png.  I want to
 convert to pdf instead.

 How do I convince lyx?
 
 By changing the source code, function findTargetFormat in
 src/insets/insetgraphics.C.
 
 I tried:
 \converter agr pdf2 gracebat -hardcopy -printfile $$o -hdevice PDF
 $$i 2/dev/null 
 
 You should use pdf instead of pdf2 if there would not be the hardcoding
 problem.
 
 I did this with lilypond files.  It works well, because I use an
 external inset.  So I get conversion to .pdf for pdflatex,
 .eps for plain latex, and .png for the instant preview in lyx.
 
 Neal sent a message to the devel list with an external agr inset, but it
 does not work. I have no idea why, and did not have the time yet to look
 at it.
 
 I am not sure about how lyx handles graphichs included via
 the graphichs inset, if that is what you use.  Perhaps someone
 else can help with that.
 
 It is hardcoded to png conversion for pdflatex, and yes, we need to change
 that.
 
 The external inset way works - in addition to converters, you
 will need to modify the file external_templates.  Feel free to ask
 if you want some help with that. A nice thing about external
 insets is that you also may specify an editor for your .agr files.
 That way, you can click on your graphichs in lyx, and have lyx
 launch the proper editing app.
 
 That does also work with graphic insets.
 
 
 Georg

Thank you.  Let me know if I can help with any testing.




Re: convert grace -> pdf (not png)?

2006-09-29 Thread Helge Hafting

Neal Becker wrote:

I want to include grace (.agr) graphics.  I want to export to pdf.

The default setup works, but grace is converted to png.  I want to convert
to pdf instead.

How do I convince lyx?

I tried:
\converter "agr" "pdf2" "gracebat -hardcopy -printfile $$o -hdevice PDF $$i
2>/dev/null" ""
  

I did this with lilypond files.  It works well, because I use an
external inset.  So I get conversion to .pdf for pdflatex,
.eps for plain latex, and .png for the instant preview in lyx.

I am not sure about how lyx handles graphichs included via
the graphichs inset, if that is what you use.  Perhaps someone
else can help with that.

The external inset way works - in addition to converters, you
will need to modify the file "external_templates.  Feel free to ask
if you want some help with that. A nice thing about external
insets is that you also may specify an editor for your .agr files.
That way, you can click on your graphichs in lyx, and have lyx
launch the proper editing app.

Helge Hafting


Re: convert grace -> pdf (not png)?

2006-09-29 Thread Georg Baum
Helge Hafting wrote:

> Neal Becker wrote:
>> I want to include grace (.agr) graphics.  I want to export to pdf.
>>
>> The default setup works, but grace is converted to png.  I want to
>> convert to pdf instead.
>>
>> How do I convince lyx?

By changing the source code, function findTargetFormat in
src/insets/insetgraphics.C.

>> I tried:
>> \converter "agr" "pdf2" "gracebat -hardcopy -printfile $$o -hdevice PDF
>> $$i 2>/dev/null" ""

You should use pdf instead of pdf2 if there would not be the hardcoding
problem.

> I did this with lilypond files.  It works well, because I use an
> external inset.  So I get conversion to .pdf for pdflatex,
> .eps for plain latex, and .png for the instant preview in lyx.

Neal sent a message to the devel list with an external agr inset, but it
does not work. I have no idea why, and did not have the time yet to look at
it.

> I am not sure about how lyx handles graphichs included via
> the graphichs inset, if that is what you use.  Perhaps someone
> else can help with that.

It is hardcoded to png conversion for pdflatex, and yes, we need to change
that.

> The external inset way works - in addition to converters, you
> will need to modify the file "external_templates.  Feel free to ask
> if you want some help with that. A nice thing about external
> insets is that you also may specify an editor for your .agr files.
> That way, you can click on your graphichs in lyx, and have lyx
> launch the proper editing app.

That does also work with graphic insets.


Georg



Re: convert grace -> pdf (not png)?

2006-09-29 Thread Neal Becker
Georg Baum wrote:

> Helge Hafting wrote:
> 
>> Neal Becker wrote:
>>> I want to include grace (.agr) graphics.  I want to export to pdf.
>>>
>>> The default setup works, but grace is converted to png.  I want to
>>> convert to pdf instead.
>>>
>>> How do I convince lyx?
> 
> By changing the source code, function findTargetFormat in
> src/insets/insetgraphics.C.
> 
>>> I tried:
>>> \converter "agr" "pdf2" "gracebat -hardcopy -printfile $$o -hdevice PDF
>>> $$i 2>/dev/null" ""
> 
> You should use pdf instead of pdf2 if there would not be the hardcoding
> problem.
> 
>> I did this with lilypond files.  It works well, because I use an
>> external inset.  So I get conversion to .pdf for pdflatex,
>> .eps for plain latex, and .png for the instant preview in lyx.
> 
> Neal sent a message to the devel list with an external agr inset, but it
> does not work. I have no idea why, and did not have the time yet to look
> at it.
> 
>> I am not sure about how lyx handles graphichs included via
>> the graphichs inset, if that is what you use.  Perhaps someone
>> else can help with that.
> 
> It is hardcoded to png conversion for pdflatex, and yes, we need to change
> that.
> 
>> The external inset way works - in addition to converters, you
>> will need to modify the file "external_templates.  Feel free to ask
>> if you want some help with that. A nice thing about external
>> insets is that you also may specify an editor for your .agr files.
>> That way, you can click on your graphichs in lyx, and have lyx
>> launch the proper editing app.
> 
> That does also work with graphic insets.
> 
> 
> Georg

Thank you.  Let me know if I can help with any testing.




convert grace - pdf (not png)?

2006-09-28 Thread Neal Becker
I want to include grace (.agr) graphics.  I want to export to pdf.

The default setup works, but grace is converted to png.  I want to convert
to pdf instead.

How do I convince lyx?

I tried:
\converter agr pdf2 gracebat -hardcopy -printfile $$o -hdevice PDF $$i
2/dev/null 




convert grace - pdf (not png)?

2006-09-28 Thread Neal Becker
I want to include grace (.agr) graphics.  I want to export to pdf.

The default setup works, but grace is converted to png.  I want to convert
to pdf instead.

How do I convince lyx?

I tried:
\converter agr pdf2 gracebat -hardcopy -printfile $$o -hdevice PDF $$i
2/dev/null 




convert grace -> pdf (not png)?

2006-09-28 Thread Neal Becker
I want to include grace (.agr) graphics.  I want to export to pdf.

The default setup works, but grace is converted to png.  I want to convert
to pdf instead.

How do I convince lyx?

I tried:
\converter "agr" "pdf2" "gracebat -hardcopy -printfile $$o -hdevice PDF $$i
2>/dev/null" ""