Re: LyX and XeTeX - how to preview PDF?

2009-04-20 Thread Kosta Welke

On Mon, 20 Apr 2009 12:28:58 +0200, Kosta Welke ko...@fillibach.de wrote:


The correct name is stdtoolbars.ui.


Stupid me, the actually correct name is stdtoolbars.inc :)

Kosta




Re: LyX and XeTeX - how to preview PDF?

2009-04-20 Thread Jürgen Spitzmüller
Kosta Welke wrote:
 Is there a way to just use ui/stdtoolbars.ui to just add a new toolbar and
 leave the old one untouched? Similar to .lyx/preferences? 

Unfortunately not.

 That would be
 much better, e.g. with respect to future lyx updates... (if I add this to
 the wiki, and stdtoolbars.ui changes in the next version, users will give
 you weird error reports).

I agree (there is already a bug report about this, IIRC).

Jürgen


Re: LyX and XeTeX - how to preview PDF?

2009-04-20 Thread Kosta Welke

On Mon, 20 Apr 2009 08:07:26 +0200, Jürgen Spitzmüller sp...@lyx.org wrote:


Copy the buffer-view_pdf2.png and buffer-update_pdf2.png icons to buffer-
view_pdf4.png and buffer-update_pdf4.png in your LyX user directory  
(create a new icons folder, if not already there).


The correct folder is images.

Then copy the stdtoolbars.ui file from the LyX System directory to your  
LyX user directory (new folder ui), and add the following lines to the

view/update section:



Item View PDF (XeTeX) buffer-view pdf4
Item Update PDF (XeTeX) buffer-update pdf4
This will add two new buttons.


The correct name is stdtoolbars.ui.

Thank you very much for your input! Thats extremely practical indeed.

Just one question though: Is there a way to just use ui/stdtoolbars.ui to just 
add a new toolbar and leave the old one untouched? Similar to .lyx/preferences? 
That would be much better, e.g. with respect to future lyx updates... (if I add 
this to the wiki, and stdtoolbars.ui changes in the next version, users will 
give you _weird_ error reports).

Cheers,

Kosta




Re: LyX and XeTeX - how to preview PDF?

2009-04-20 Thread Jürgen Spitzmüller
Micha Feigin wrote:
  I'm trying to use LyX together with Xetex and thanks to strangers on the
  internet, it actually works. I updated the wiki under
  http://wiki.lyx.org/LyX/XeTeX so that it might work for other people,
  too.
 
  There's one problem, though: As XeTeX must run through the xelatex, which
  is a different lyx file format, the preview PDF button does not work
  anymore (exporting using pdflatex gives an error, as you need to export
  using xelatex). What is the best/quickest/working way to get the
  preview/update PDF buttons to export using XeTeX instead of pdflatex?
  (optimally, this would be a document setting).

Copy the buffer-view_pdf2.png and buffer-update_pdf2.png icons to buffer-
view_pdf4.png and buffer-update_pdf4.png in your LyX user directory (create a 
new icons folder, if not already there).

Then copy the stdtoolbars.ui file from the LyX System directory to your LyX 
user directory (new folder ui), and add the following lines to the 
view/update section:

Item View PDF (XeTeX) buffer-view pdf4
Item Update PDF (XeTeX) buffer-update pdf4

This will add two new buttons.

  Thanks in advance for your help!
 
  Cheers,
  Kosta

 It's a dirty hack that would work only if you always want to use xetex
 instead of pdflatex. You can go into
 preferences-converters-Latex(pdflatex) and change the converter from
 pdflatex to xetex

You will be pleased to hear that forthcoming LyX 2.0 comes with (basic) native 
XeTeX support, which handles the basic settings for you. If you click use 
XeTeX, the right converter will be chosen, the toolbar and menu entries will 
be adapted, all the necessary preamble stuff will be inserted and you can even 
chose a system font from the document dialog.

Jürgen


Re: LyX and XeTeX - how to preview PDF?

2009-04-20 Thread Kosta Welke

On Mon, 20 Apr 2009 12:28:58 +0200, Kosta Welke ko...@fillibach.de wrote:


The correct name is stdtoolbars.ui.


Stupid me, the actually correct name is stdtoolbars.inc :)

Kosta




Re: LyX and XeTeX - how to preview PDF?

2009-04-20 Thread Jürgen Spitzmüller
Kosta Welke wrote:
 Is there a way to just use ui/stdtoolbars.ui to just add a new toolbar and
 leave the old one untouched? Similar to .lyx/preferences? 

Unfortunately not.

 That would be
 much better, e.g. with respect to future lyx updates... (if I add this to
 the wiki, and stdtoolbars.ui changes in the next version, users will give
 you weird error reports).

I agree (there is already a bug report about this, IIRC).

Jürgen


Re: LyX and XeTeX - how to preview PDF?

2009-04-20 Thread Kosta Welke

On Mon, 20 Apr 2009 08:07:26 +0200, Jürgen Spitzmüller sp...@lyx.org wrote:


Copy the buffer-view_pdf2.png and buffer-update_pdf2.png icons to buffer-
view_pdf4.png and buffer-update_pdf4.png in your LyX user directory  
(create a new icons folder, if not already there).


The correct folder is images.

Then copy the stdtoolbars.ui file from the LyX System directory to your  
LyX user directory (new folder ui), and add the following lines to the

view/update section:



Item View PDF (XeTeX) buffer-view pdf4
Item Update PDF (XeTeX) buffer-update pdf4
This will add two new buttons.


The correct name is stdtoolbars.ui.

Thank you very much for your input! Thats extremely practical indeed.

Just one question though: Is there a way to just use ui/stdtoolbars.ui to just 
add a new toolbar and leave the old one untouched? Similar to .lyx/preferences? 
That would be much better, e.g. with respect to future lyx updates... (if I add 
this to the wiki, and stdtoolbars.ui changes in the next version, users will 
give you _weird_ error reports).

Cheers,

Kosta




Re: LyX and XeTeX - how to preview PDF?

2009-04-20 Thread Jürgen Spitzmüller
Micha Feigin wrote:
> > I'm trying to use LyX together with Xetex and thanks to strangers on the
> > internet, it actually works. I updated the wiki under
> > http://wiki.lyx.org/LyX/XeTeX so that it might work for other people,
> > too.
> >
> > There's one problem, though: As XeTeX must run through the xelatex, which
> > is a different lyx file format, the preview PDF button does not work
> > anymore (exporting using pdflatex gives an error, as you need to export
> > using xelatex). What is the best/quickest/working way to get the
> > "preview/update PDF" buttons to export using XeTeX instead of pdflatex?
> > (optimally, this would be a document setting).

Copy the buffer-view_pdf2.png and buffer-update_pdf2.png icons to buffer-
view_pdf4.png and buffer-update_pdf4.png in your LyX user directory (create a 
new icons folder, if not already there).

Then copy the stdtoolbars.ui file from the LyX System directory to your LyX 
user directory (new folder "ui"), and add the following lines to the 
"view/update" section:

Item "View PDF (XeTeX)" "buffer-view pdf4"
Item "Update PDF (XeTeX)" "buffer-update pdf4"

This will add two new buttons.

> > Thanks in advance for your help!
> >
> > Cheers,
> > Kosta
>
> It's a dirty hack that would work only if you always want to use xetex
> instead of pdflatex. You can go into
> preferences->converters->Latex(pdflatex) and change the converter from
> pdflatex to xetex

You will be pleased to hear that forthcoming LyX 2.0 comes with (basic) native 
XeTeX support, which handles the basic settings for you. If you click "use 
XeTeX", the right converter will be chosen, the toolbar and menu entries will 
be adapted, all the necessary preamble stuff will be inserted and you can even 
chose a system font from the document dialog.

Jürgen


Re: LyX and XeTeX - how to preview PDF?

2009-04-20 Thread Kosta Welke

On Mon, 20 Apr 2009 12:28:58 +0200, Kosta Welke  wrote:


The correct name is stdtoolbars.ui.


Stupid me, the actually correct name is stdtoolbars.inc :)

Kosta




Re: LyX and XeTeX - how to preview PDF?

2009-04-20 Thread Jürgen Spitzmüller
Kosta Welke wrote:
> Is there a way to just use ui/stdtoolbars.ui to just add a new toolbar and
> leave the old one untouched? Similar to .lyx/preferences? 

Unfortunately not.

> That would be
> much better, e.g. with respect to future lyx updates... (if I add this to
> the wiki, and stdtoolbars.ui changes in the next version, users will give
> you weird error reports).

I agree (there is already a bug report about this, IIRC).

Jürgen


Re: LyX and XeTeX - how to preview PDF?

2009-04-20 Thread Kosta Welke

On Mon, 20 Apr 2009 08:07:26 +0200, Jürgen Spitzmüller  wrote:


Copy the buffer-view_pdf2.png and buffer-update_pdf2.png icons to buffer-
view_pdf4.png and buffer-update_pdf4.png in your LyX user directory  
(create a new icons folder, if not already there).


The correct folder is "images".

Then copy the stdtoolbars.ui file from the LyX System directory to your  
LyX user directory (new folder "ui"), and add the following lines to the

"view/update" section:



Item "View PDF (XeTeX)" "buffer-view pdf4"
Item "Update PDF (XeTeX)" "buffer-update pdf4"
This will add two new buttons.


The correct name is stdtoolbars.ui.

Thank you very much for your input! Thats extremely practical indeed.

Just one question though: Is there a way to just use ui/stdtoolbars.ui to just 
add a new toolbar and leave the old one untouched? Similar to .lyx/preferences? 
That would be much better, e.g. with respect to future lyx updates... (if I add 
this to the wiki, and stdtoolbars.ui changes in the next version, users will 
give you _weird_ error reports).

Cheers,

Kosta




LyX and XeTeX - how to preview PDF?

2009-04-19 Thread Kosta Welke

Hi!

I'm trying to use LyX together with Xetex and thanks to strangers on the internet, it actually works. I updated the wiki under http://wiki.lyx.org/LyX/XeTeX so that it might work for other people, too. 


There's one problem, though: As XeTeX must run through the xelatex, which is a different 
lyx file format, the preview PDF button does not work anymore (exporting using pdflatex 
gives an error, as you need to export using xelatex). What is the best/quickest/working 
way to get the preview/update PDF buttons to export using XeTeX instead of 
pdflatex? (optimally, this would be a document setting).

Thanks in advance for your help!

Cheers,
Kosta




Re: LyX and XeTeX - how to preview PDF?

2009-04-19 Thread Micha Feigin
On Sun, 19 Apr 2009 22:16:49 +0200
Kosta Welke ko...@fillibach.de wrote:

 Hi!
 
 I'm trying to use LyX together with Xetex and thanks to strangers on the 
 internet, it actually works. I updated the wiki under 
 http://wiki.lyx.org/LyX/XeTeX so that it might work for other people, too. 
 
 There's one problem, though: As XeTeX must run through the xelatex, which is 
 a different lyx file format, the preview PDF button does not work anymore 
 (exporting using pdflatex gives an error, as you need to export using 
 xelatex). What is the best/quickest/working way to get the preview/update 
 PDF buttons to export using XeTeX instead of pdflatex? (optimally, this 
 would be a document setting).
 
 Thanks in advance for your help!
 
 Cheers,
 Kosta
 
 

It's a dirty hack that would work only if you always want to use xetex instead
of pdflatex. You can go into preferences-converters-Latex(pdflatex) and
change the converter from pdflatex to xetex


LyX and XeTeX - how to preview PDF?

2009-04-19 Thread Kosta Welke

Hi!

I'm trying to use LyX together with Xetex and thanks to strangers on the internet, it actually works. I updated the wiki under http://wiki.lyx.org/LyX/XeTeX so that it might work for other people, too. 


There's one problem, though: As XeTeX must run through the xelatex, which is a different 
lyx file format, the preview PDF button does not work anymore (exporting using pdflatex 
gives an error, as you need to export using xelatex). What is the best/quickest/working 
way to get the preview/update PDF buttons to export using XeTeX instead of 
pdflatex? (optimally, this would be a document setting).

Thanks in advance for your help!

Cheers,
Kosta




Re: LyX and XeTeX - how to preview PDF?

2009-04-19 Thread Micha Feigin
On Sun, 19 Apr 2009 22:16:49 +0200
Kosta Welke ko...@fillibach.de wrote:

 Hi!
 
 I'm trying to use LyX together with Xetex and thanks to strangers on the 
 internet, it actually works. I updated the wiki under 
 http://wiki.lyx.org/LyX/XeTeX so that it might work for other people, too. 
 
 There's one problem, though: As XeTeX must run through the xelatex, which is 
 a different lyx file format, the preview PDF button does not work anymore 
 (exporting using pdflatex gives an error, as you need to export using 
 xelatex). What is the best/quickest/working way to get the preview/update 
 PDF buttons to export using XeTeX instead of pdflatex? (optimally, this 
 would be a document setting).
 
 Thanks in advance for your help!
 
 Cheers,
 Kosta
 
 

It's a dirty hack that would work only if you always want to use xetex instead
of pdflatex. You can go into preferences-converters-Latex(pdflatex) and
change the converter from pdflatex to xetex


LyX and XeTeX - how to preview PDF?

2009-04-19 Thread Kosta Welke

Hi!

I'm trying to use LyX together with Xetex and thanks to strangers on the internet, it actually works. I updated the wiki under http://wiki.lyx.org/LyX/XeTeX so that it might work for other people, too. 


There's one problem, though: As XeTeX must run through the xelatex, which is a different 
lyx file format, the preview PDF button does not work anymore (exporting using pdflatex 
gives an error, as you need to export using xelatex). What is the best/quickest/working 
way to get the "preview/update PDF" buttons to export using XeTeX instead of 
pdflatex? (optimally, this would be a document setting).

Thanks in advance for your help!

Cheers,
Kosta




Re: LyX and XeTeX - how to preview PDF?

2009-04-19 Thread Micha Feigin
On Sun, 19 Apr 2009 22:16:49 +0200
"Kosta Welke"  wrote:

> Hi!
> 
> I'm trying to use LyX together with Xetex and thanks to strangers on the 
> internet, it actually works. I updated the wiki under 
> http://wiki.lyx.org/LyX/XeTeX so that it might work for other people, too. 
> 
> There's one problem, though: As XeTeX must run through the xelatex, which is 
> a different lyx file format, the preview PDF button does not work anymore 
> (exporting using pdflatex gives an error, as you need to export using 
> xelatex). What is the best/quickest/working way to get the "preview/update 
> PDF" buttons to export using XeTeX instead of pdflatex? (optimally, this 
> would be a document setting).
> 
> Thanks in advance for your help!
> 
> Cheers,
> Kosta
> 
> 

It's a dirty hack that would work only if you always want to use xetex instead
of pdflatex. You can go into preferences->converters->Latex(pdflatex) and
change the converter from pdflatex to xetex