Re: how to stop TeX and LaTeX from being typeset with the special logo?

2009-04-20 Thread Jürgen Spitzmüller
John McCabe-Dansted wrote:
 You can press Ctrl-L to enter ERT mode and type TeX into the ERT
 inset. This will send TeX straight to LaTeX without LyX doing any
 funny processing.

Alternatively, insert to the preamble

\def\LyX{LyX}
\def\LaTeX{LaTeX}

Jürgen


CO_2

2009-04-20 Thread Wolfgang Engelmann
How would I write CO_2 in such a way that it is not emphasized

in LaTeX:
 the catalytic subunit of the key enzyme of the light dependent 
$CO_{2}$-fixation

I am sure there is a way in LyX to do that but I can't find it (checked 
Embedded Objects)

Wolfgang


Re: CO_2

2009-04-20 Thread Kosta Welke

On Mon, 20 Apr 2009 10:19:53 +0200, Wolfgang Engelmann 
engelm...@uni-tuebingen.de wrote:


How would I write CO_2 in such a way that it is not emphasized


Do you mean you want to write it like a math formula?

Use Insert-Math-Inline Formula or press Ctrl-M, then type CO_2 and see if 
thats what you want :)

Cheers,

Kosta




Re: CO_2

2009-04-20 Thread I Wayan Warmada


--- On Mon, 4/20/09, Wolfgang Engelmann engelm...@uni-tuebingen.de wrote:

 How would I write CO_2 in such a way
 that it is not emphasized
 
 in LaTeX:
 the catalytic subunit of the key enzyme of the light
 dependent 
 $CO_{2}$-fixation
 
 I am sure there is a way in LyX to do that but I can't find
 it (checked Embedded Objects)

Try, Ctrl+M, then type \mathrm{}, shows two box, use the left box to write CO. 
Or in an ERT, just type: $\mathrm{CO}_2$

Wayan



  


Re: CO_2

2009-04-20 Thread Florian Rubach

Wolfgang Engelmann schrieb:

How would I write CO_2 in such a way that it is not emphasized

in LaTeX:
 the catalytic subunit of the key enzyme of the light dependent 
$CO_{2}$-fixation


I am sure there is a way in LyX to do that but I can't find it (checked 
Embedded Objects)


Wolfgang
  
For me as Chemist, it works fine to just type the _2 in math-mode... ( 
CO$_{2}$ )
Another possibility would be to use the roman math-font ( 
$\mathrm{CO_{2}}$ ,there is a button in the math-toolbar).


Hope to help,

Florian


Re: CO_2

2009-04-20 Thread Wolfgang Engelmann

 For me as Chemist, it works fine to just type the _2 in math-mode... (
 CO$_{2}$ )
 Another possibility would be to use the roman math-font (
 $\mathrm{CO_{2}}$ ,there is a button in the math-toolbar).

Thank you and the others
I will use this one
Wolfgang


Re: how to stop TeX and LaTeX from being typeset with the special logo?

2009-04-20 Thread Helge Hafting

Richard Talley wrote:

LyX automagically typesets words like TeX and LaTeX using the special
logo for those words.

How do I turn this behavior off? 


I see you already got some answers for how this is done for the entire 
document. If you want to do this for particular instances of 
LyX/TeX/LaTeX, just Insert-Formatting-Ligature Break somewhere 
inside the word you want to protect.


Or insert anything else that don't produce output, such as an empty TeX 
(ERT) box.


Helge Hafting



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: Using tables

2009-04-20 Thread Doug Laidlaw
Thanks Steve, I will keep that in mind.

Doug.

On Monday 20 April 2009 12:09:17 am Steve Litt wrote:
 Inkscape-PDF?

 On Sunday 19 April 2009 04:44:56 am Doug Laidlaw wrote:
  I don't use them.  I am writing a family history, but I will keep it in
  mind. Inserting the family tree will be quite an issue, but I am some way
  from that, yet.
 
  Doug.
 
  On Sunday 19 April 2009 5:22:21 pm Abdelrazak Younes wrote:
   On 19/04/2009 05:19, Doug Laidlaw wrote:
I am probably out of place here, but there is a project on
freshmeat.net for convering CSV tables to LaTeX.  It may be of use?
   
http://freshmeat.net/projects/csv2latex
  
   Hi,
  
   There is already a very good (and simple) integrated cvs2lyx python
   script distributed with LyX. This was contributed by Hartmut Haase
   AFAIR.
  
   Abdel.




Re: bug in hyperlink and footnote?

2009-04-20 Thread James C. Sutherland


On Apr 19, 2009, at 5:04 AM, Uwe Stöhr wrote:


One important not: you example used an address in this form:
http://www.bla.blub/#1
This is not conform to the URL specification. There must be at least  
a character after the / and before the #. Or do you have an  
example of a valid URL where this is not the case?


regards Uwe


Reported as bug #5908  (http://www.lyx.org/trac/ticket/5908)

I should have been more precise regarding the URL.  An example URL is:
http://scriptures.lds.org/en/luke/24/6#6
I assume that this is a valid URL.

Re: exporting to ODF or DOC

2009-04-20 Thread Andrew Sullivan
On Sun, Apr 19, 2009 at 08:16:01PM +0200, Marco Beishuizen wrote:
 Hi,
 
 Is there any way of exporting a LyX document to OpenDocument or Word? In
 LyX you can add the export to your menu but that only seems to change
 the file extension, and not converting anything. I also saw that there
 is a script tex4ht. But how do I install this?

This all depends on your LaTeX distribution.  It works ok for me on
Debian Linux, but I can't get it to work on my Mac.  I don't know how
to get it to work under FreeBSD.  There is discussion of this in the
wiki, however.


-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Big Thanks! was: how to stop TeX and LaTeX from being typeset with the special logo?

2009-04-20 Thread Richard Talley
A big thanks to everybody for the quick, useful replies.

There is no doubt that one of the best things about LyX is the LyX community.

-- Rich

On Mon, Apr 20, 2009 at 2:58 AM, Helge Hafting helge.haft...@hist.no wrote:
 Richard Talley wrote:

 LyX automagically typesets words like TeX and LaTeX using the special
 logo for those words.

 How do I turn this behavior off?

 I see you already got some answers for how this is done for the entire
 document. If you want to do this for particular instances of LyX/TeX/LaTeX,
 just Insert-Formatting-Ligature Break somewhere inside the word you want
 to protect.

 Or insert anything else that don't produce output, such as an empty TeX
 (ERT) box.

 Helge Hafting




Re: bug in hyperlink and footnote?

2009-04-20 Thread Uwe Stöhr

James C. Sutherland schrieb:


Reported as bug #5908  (http://www.lyx.org/trac/ticket/5908)


Thanks. It turns out that you found a bug in the LaTeX-package hyperref. I'll inform you when I know 
more.



I should have been more precise regarding the URL.  An example URL is:
http://scriptures.lds.org/en/luke/24/6#6
I assume that this is a valid URL.


Yes it is.

regards Uwe


Re: Wrong placement with EPS graphics in pdflatex

2009-04-20 Thread Thomas Steffen
On Sun, Apr 19, 2009 at 11:42 AM, Uwe Stöhr uwesto...@web.de wrote:
 What do you mean with wrong place? Images are usually within a flaot that
 will float in the output to a suitable position.
 Can you provide a _small_ example file?

Here is an example, I hope it is small enough. It seems to be related
to this specific eps file - for some reason the bounding box does not
start at (0,0), and that does seem to throw off LyX. I am having
difficulties trying to recreate this with a different eps file, but
then again they all start the bounding box at (0,0). I am sure that
did not used to be the case, but maybe it is getting more common.

I get the same result whether I use ps2pdf or epstopdf as the
converter from eps to pdf. I used to use convert, but that also gave
me issues, although slightly different ones.

Regards,
Thomas


fig.eps
Description: PostScript document


figtest.lyx
Description: application/lyx


Re: Wrong placement with EPS graphics in pdflatex

2009-04-20 Thread Uwe Stöhr

Thomas Steffen schrieb:

On Sun, Apr 19, 2009 at 11:42 AM, Uwe Stöhr uwesto...@web.de wrote:

What do you mean with wrong place? Images are usually within a flaot that
will float in the output to a suitable position.
Can you provide a _small_ example file?



Here is an example, I hope it is small enough. It seems to be related
to this specific eps file


Yes, this EPS file is strange. But why do you need to set a bounding box and why an EPS when you 
want a PDF document?
When I convert your EPS to PDF (see attached), it works very well for all output formats, a bounding 
box is not needed. (When you want only a part of the image to appear in the output you can cut the 
PDF image with e.g. Inkscape.)


(Btw. the EPS file format often makes troubles. But in a PDF only PDF, PNG, and JPG images can be 
embedded so that LyX will have to convert EPS to PDF in the background when you use pdflatex. This 
conversion is done by the program ImageMagick that in turn needs Ghostscript. But every involved 
program can cause problem, so better use directly an image format that don't need to be converted.)


regards Uwe


fig.pdf
Description: Adobe PDF document


figtest.lyx
Description: application/lyx


LyX 1.6.2 -- does it provide inverse search via Yap ?

2009-04-20 Thread sykes

hi,

I'm running LyX 1.6.2 on Windows XP.  I would like to perform inverse
searches from Yap back to the actual line in LyX.  Is this possible?  

Also, is there a better viewer than Yap that people could suggest?

Thanks,
Ed Sykes
-- 
View this message in context: 
http://n2.nabble.com/LyX-1.6.2does-it-provide-inverse-search-via-Yap---tp2665687p2665687.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Wrong placement with EPS graphics in pdflatex

2009-04-20 Thread Thomas Steffen
On Mon, Apr 20, 2009 at 6:32 PM, Uwe Stöhr uwesto...@web.de wrote:
 Yes, this EPS file is strange.

Not particularly. It used to be standard to use (0,0) as the corner of
the workspace, and usually the actual diagram has a different bounding
box.

 But why do you need to set a bounding box

Is there any other option? When I include an EPS file, LyX always sets
the bounding box according to the header of the file. I can do without
clipping, but that does not actually solve the problem.

 and
 why an EPS when you want a PDF document?
 (Btw. the EPS file format often makes troubles.

Different reasons - some old software, habits, the availability of the
PostScript printer driver for Windows. To be specific, dia has no PDF
export at all, and inkscape only does it via Cairo, which was
completely broken until very recently. Finally EPS usually crops  to
the actual drawing, and PDF always exports the whole page, which is
just inconvenient.

 This conversion is done by the
 program ImageMagick that in turn needs Ghostscript.

Is it? Because it seems that the default filter uses epstopdf, if it
is present. As I said ps2pdf produces the same problems (which is very
strange). Using convert solves the problem, but you have to add the
rule manually, and I had some issues with this solution (have to
figure which exactly).

So I guess my conclusion is to use convert, and it works for me. Maybe
reconfigure should be changed to use convert by default when
available?

Regards,
Thomas


 But every involved
 program can cause problem, so better use directly an image format that don't
 need to be converted.)

 regards Uwe



Re: Wrong placement with EPS graphics in pdflatex

2009-04-20 Thread Uwe Stöhr

Thomas Steffen schrieb:


But why do you need to set a bounding box


Is there any other option? When I include an EPS file, LyX always sets
the bounding box according to the header of the file.


Yes, but you can unset it. I never needed a bounding box, but OK I use EPS only 
very rarely.


why an EPS when you want a PDF document?
(Btw. the EPS file format often makes troubles.


Different reasons - some old software, habits, the availability of the
PostScript printer driver for Windows.


The Postscript driver is independent of the file you want to print. Besides this I never heard that 
a PDF was not printable.


 To be specific, dia has no PDF

export at all, and inkscape only does it via Cairo, which was
completely broken until very recently.


I use here on Windows the one year old Inkscape 0.46 nearly daily and work there with PDFs without 
any problem.



Finally EPS usually crops  to
the actual drawing, and PDF always exports the whole page, which is
just inconvenient.


This is not the case here. In Inkscape I can set the page size to the size of the drawing. But even 
when you get an A4 page, you can easily crop the resulting PDF (many programs provide a remove 
whitespace option in the crop (or mediabox) settings).



This conversion is done by the
program ImageMagick that in turn needs Ghostscript.


Is it? Because it seems that the default filter uses epstopdf,


Sorry. ImageMagick is used the opposite way and to display any kind of images (except of PNG) within 
LyX.


regards Uwe


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: how to stop TeX and LaTeX from being typeset with the special logo?

2009-04-20 Thread Jürgen Spitzmüller
John McCabe-Dansted wrote:
 You can press Ctrl-L to enter ERT mode and type TeX into the ERT
 inset. This will send TeX straight to LaTeX without LyX doing any
 funny processing.

Alternatively, insert to the preamble

\def\LyX{LyX}
\def\LaTeX{LaTeX}

Jürgen


CO_2

2009-04-20 Thread Wolfgang Engelmann
How would I write CO_2 in such a way that it is not emphasized

in LaTeX:
 the catalytic subunit of the key enzyme of the light dependent 
$CO_{2}$-fixation

I am sure there is a way in LyX to do that but I can't find it (checked 
Embedded Objects)

Wolfgang


Re: CO_2

2009-04-20 Thread Kosta Welke

On Mon, 20 Apr 2009 10:19:53 +0200, Wolfgang Engelmann 
engelm...@uni-tuebingen.de wrote:


How would I write CO_2 in such a way that it is not emphasized


Do you mean you want to write it like a math formula?

Use Insert-Math-Inline Formula or press Ctrl-M, then type CO_2 and see if 
thats what you want :)

Cheers,

Kosta




Re: CO_2

2009-04-20 Thread I Wayan Warmada


--- On Mon, 4/20/09, Wolfgang Engelmann engelm...@uni-tuebingen.de wrote:

 How would I write CO_2 in such a way
 that it is not emphasized
 
 in LaTeX:
 the catalytic subunit of the key enzyme of the light
 dependent 
 $CO_{2}$-fixation
 
 I am sure there is a way in LyX to do that but I can't find
 it (checked Embedded Objects)

Try, Ctrl+M, then type \mathrm{}, shows two box, use the left box to write CO. 
Or in an ERT, just type: $\mathrm{CO}_2$

Wayan



  


Re: CO_2

2009-04-20 Thread Florian Rubach

Wolfgang Engelmann schrieb:

How would I write CO_2 in such a way that it is not emphasized

in LaTeX:
 the catalytic subunit of the key enzyme of the light dependent 
$CO_{2}$-fixation


I am sure there is a way in LyX to do that but I can't find it (checked 
Embedded Objects)


Wolfgang
  
For me as Chemist, it works fine to just type the _2 in math-mode... ( 
CO$_{2}$ )
Another possibility would be to use the roman math-font ( 
$\mathrm{CO_{2}}$ ,there is a button in the math-toolbar).


Hope to help,

Florian


Re: CO_2

2009-04-20 Thread Wolfgang Engelmann

 For me as Chemist, it works fine to just type the _2 in math-mode... (
 CO$_{2}$ )
 Another possibility would be to use the roman math-font (
 $\mathrm{CO_{2}}$ ,there is a button in the math-toolbar).

Thank you and the others
I will use this one
Wolfgang


Re: how to stop TeX and LaTeX from being typeset with the special logo?

2009-04-20 Thread Helge Hafting

Richard Talley wrote:

LyX automagically typesets words like TeX and LaTeX using the special
logo for those words.

How do I turn this behavior off? 


I see you already got some answers for how this is done for the entire 
document. If you want to do this for particular instances of 
LyX/TeX/LaTeX, just Insert-Formatting-Ligature Break somewhere 
inside the word you want to protect.


Or insert anything else that don't produce output, such as an empty TeX 
(ERT) box.


Helge Hafting



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: Using tables

2009-04-20 Thread Doug Laidlaw
Thanks Steve, I will keep that in mind.

Doug.

On Monday 20 April 2009 12:09:17 am Steve Litt wrote:
 Inkscape-PDF?

 On Sunday 19 April 2009 04:44:56 am Doug Laidlaw wrote:
  I don't use them.  I am writing a family history, but I will keep it in
  mind. Inserting the family tree will be quite an issue, but I am some way
  from that, yet.
 
  Doug.
 
  On Sunday 19 April 2009 5:22:21 pm Abdelrazak Younes wrote:
   On 19/04/2009 05:19, Doug Laidlaw wrote:
I am probably out of place here, but there is a project on
freshmeat.net for convering CSV tables to LaTeX.  It may be of use?
   
http://freshmeat.net/projects/csv2latex
  
   Hi,
  
   There is already a very good (and simple) integrated cvs2lyx python
   script distributed with LyX. This was contributed by Hartmut Haase
   AFAIR.
  
   Abdel.




Re: bug in hyperlink and footnote?

2009-04-20 Thread James C. Sutherland


On Apr 19, 2009, at 5:04 AM, Uwe Stöhr wrote:


One important not: you example used an address in this form:
http://www.bla.blub/#1
This is not conform to the URL specification. There must be at least  
a character after the / and before the #. Or do you have an  
example of a valid URL where this is not the case?


regards Uwe


Reported as bug #5908  (http://www.lyx.org/trac/ticket/5908)

I should have been more precise regarding the URL.  An example URL is:
http://scriptures.lds.org/en/luke/24/6#6
I assume that this is a valid URL.

Re: exporting to ODF or DOC

2009-04-20 Thread Andrew Sullivan
On Sun, Apr 19, 2009 at 08:16:01PM +0200, Marco Beishuizen wrote:
 Hi,
 
 Is there any way of exporting a LyX document to OpenDocument or Word? In
 LyX you can add the export to your menu but that only seems to change
 the file extension, and not converting anything. I also saw that there
 is a script tex4ht. But how do I install this?

This all depends on your LaTeX distribution.  It works ok for me on
Debian Linux, but I can't get it to work on my Mac.  I don't know how
to get it to work under FreeBSD.  There is discussion of this in the
wiki, however.


-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Big Thanks! was: how to stop TeX and LaTeX from being typeset with the special logo?

2009-04-20 Thread Richard Talley
A big thanks to everybody for the quick, useful replies.

There is no doubt that one of the best things about LyX is the LyX community.

-- Rich

On Mon, Apr 20, 2009 at 2:58 AM, Helge Hafting helge.haft...@hist.no wrote:
 Richard Talley wrote:

 LyX automagically typesets words like TeX and LaTeX using the special
 logo for those words.

 How do I turn this behavior off?

 I see you already got some answers for how this is done for the entire
 document. If you want to do this for particular instances of LyX/TeX/LaTeX,
 just Insert-Formatting-Ligature Break somewhere inside the word you want
 to protect.

 Or insert anything else that don't produce output, such as an empty TeX
 (ERT) box.

 Helge Hafting




Re: bug in hyperlink and footnote?

2009-04-20 Thread Uwe Stöhr

James C. Sutherland schrieb:


Reported as bug #5908  (http://www.lyx.org/trac/ticket/5908)


Thanks. It turns out that you found a bug in the LaTeX-package hyperref. I'll inform you when I know 
more.



I should have been more precise regarding the URL.  An example URL is:
http://scriptures.lds.org/en/luke/24/6#6
I assume that this is a valid URL.


Yes it is.

regards Uwe


Re: Wrong placement with EPS graphics in pdflatex

2009-04-20 Thread Thomas Steffen
On Sun, Apr 19, 2009 at 11:42 AM, Uwe Stöhr uwesto...@web.de wrote:
 What do you mean with wrong place? Images are usually within a flaot that
 will float in the output to a suitable position.
 Can you provide a _small_ example file?

Here is an example, I hope it is small enough. It seems to be related
to this specific eps file - for some reason the bounding box does not
start at (0,0), and that does seem to throw off LyX. I am having
difficulties trying to recreate this with a different eps file, but
then again they all start the bounding box at (0,0). I am sure that
did not used to be the case, but maybe it is getting more common.

I get the same result whether I use ps2pdf or epstopdf as the
converter from eps to pdf. I used to use convert, but that also gave
me issues, although slightly different ones.

Regards,
Thomas


fig.eps
Description: PostScript document


figtest.lyx
Description: application/lyx


Re: Wrong placement with EPS graphics in pdflatex

2009-04-20 Thread Uwe Stöhr

Thomas Steffen schrieb:

On Sun, Apr 19, 2009 at 11:42 AM, Uwe Stöhr uwesto...@web.de wrote:

What do you mean with wrong place? Images are usually within a flaot that
will float in the output to a suitable position.
Can you provide a _small_ example file?



Here is an example, I hope it is small enough. It seems to be related
to this specific eps file


Yes, this EPS file is strange. But why do you need to set a bounding box and why an EPS when you 
want a PDF document?
When I convert your EPS to PDF (see attached), it works very well for all output formats, a bounding 
box is not needed. (When you want only a part of the image to appear in the output you can cut the 
PDF image with e.g. Inkscape.)


(Btw. the EPS file format often makes troubles. But in a PDF only PDF, PNG, and JPG images can be 
embedded so that LyX will have to convert EPS to PDF in the background when you use pdflatex. This 
conversion is done by the program ImageMagick that in turn needs Ghostscript. But every involved 
program can cause problem, so better use directly an image format that don't need to be converted.)


regards Uwe


fig.pdf
Description: Adobe PDF document


figtest.lyx
Description: application/lyx


LyX 1.6.2 -- does it provide inverse search via Yap ?

2009-04-20 Thread sykes

hi,

I'm running LyX 1.6.2 on Windows XP.  I would like to perform inverse
searches from Yap back to the actual line in LyX.  Is this possible?  

Also, is there a better viewer than Yap that people could suggest?

Thanks,
Ed Sykes
-- 
View this message in context: 
http://n2.nabble.com/LyX-1.6.2does-it-provide-inverse-search-via-Yap---tp2665687p2665687.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Wrong placement with EPS graphics in pdflatex

2009-04-20 Thread Thomas Steffen
On Mon, Apr 20, 2009 at 6:32 PM, Uwe Stöhr uwesto...@web.de wrote:
 Yes, this EPS file is strange.

Not particularly. It used to be standard to use (0,0) as the corner of
the workspace, and usually the actual diagram has a different bounding
box.

 But why do you need to set a bounding box

Is there any other option? When I include an EPS file, LyX always sets
the bounding box according to the header of the file. I can do without
clipping, but that does not actually solve the problem.

 and
 why an EPS when you want a PDF document?
 (Btw. the EPS file format often makes troubles.

Different reasons - some old software, habits, the availability of the
PostScript printer driver for Windows. To be specific, dia has no PDF
export at all, and inkscape only does it via Cairo, which was
completely broken until very recently. Finally EPS usually crops  to
the actual drawing, and PDF always exports the whole page, which is
just inconvenient.

 This conversion is done by the
 program ImageMagick that in turn needs Ghostscript.

Is it? Because it seems that the default filter uses epstopdf, if it
is present. As I said ps2pdf produces the same problems (which is very
strange). Using convert solves the problem, but you have to add the
rule manually, and I had some issues with this solution (have to
figure which exactly).

So I guess my conclusion is to use convert, and it works for me. Maybe
reconfigure should be changed to use convert by default when
available?

Regards,
Thomas


 But every involved
 program can cause problem, so better use directly an image format that don't
 need to be converted.)

 regards Uwe



Re: Wrong placement with EPS graphics in pdflatex

2009-04-20 Thread Uwe Stöhr

Thomas Steffen schrieb:


But why do you need to set a bounding box


Is there any other option? When I include an EPS file, LyX always sets
the bounding box according to the header of the file.


Yes, but you can unset it. I never needed a bounding box, but OK I use EPS only 
very rarely.


why an EPS when you want a PDF document?
(Btw. the EPS file format often makes troubles.


Different reasons - some old software, habits, the availability of the
PostScript printer driver for Windows.


The Postscript driver is independent of the file you want to print. Besides this I never heard that 
a PDF was not printable.


 To be specific, dia has no PDF

export at all, and inkscape only does it via Cairo, which was
completely broken until very recently.


I use here on Windows the one year old Inkscape 0.46 nearly daily and work there with PDFs without 
any problem.



Finally EPS usually crops  to
the actual drawing, and PDF always exports the whole page, which is
just inconvenient.


This is not the case here. In Inkscape I can set the page size to the size of the drawing. But even 
when you get an A4 page, you can easily crop the resulting PDF (many programs provide a remove 
whitespace option in the crop (or mediabox) settings).



This conversion is done by the
program ImageMagick that in turn needs Ghostscript.


Is it? Because it seems that the default filter uses epstopdf,


Sorry. ImageMagick is used the opposite way and to display any kind of images (except of PNG) within 
LyX.


regards Uwe


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: how to stop TeX and LaTeX from being typeset with the special logo?

2009-04-20 Thread Jürgen Spitzmüller
John McCabe-Dansted wrote:
> You can press Ctrl-L to enter ERT mode and type TeX into the ERT
> inset. This will send "TeX" straight to LaTeX without LyX doing any
> funny processing.

Alternatively, insert to the preamble

\def\LyX{LyX}
\def\LaTeX{LaTeX}

Jürgen


CO_2

2009-04-20 Thread Wolfgang Engelmann
How would I write CO_2 in such a way that it is not emphasized

in LaTeX:
 the catalytic subunit of the key enzyme of the light dependent 
$CO_{2}$-fixation

I am sure there is a way in LyX to do that but I can't find it (checked 
Embedded Objects)

Wolfgang


Re: CO_2

2009-04-20 Thread Kosta Welke

On Mon, 20 Apr 2009 10:19:53 +0200, Wolfgang Engelmann 
 wrote:


How would I write CO_2 in such a way that it is not emphasized


Do you mean you want to write it like a math formula?

Use Insert->Math->Inline Formula or press Ctrl-M, then type CO_2 and see if 
thats what you want :)

Cheers,

Kosta




Re: CO_2

2009-04-20 Thread I Wayan Warmada


--- On Mon, 4/20/09, Wolfgang Engelmann  wrote:

> How would I write CO_2 in such a way
> that it is not emphasized
> 
> in LaTeX:
> the catalytic subunit of the key enzyme of the light
> dependent 
> $CO_{2}$-fixation
> 
> I am sure there is a way in LyX to do that but I can't find
> it (checked Embedded Objects)

Try, Ctrl+M, then type \mathrm{}, shows two box, use the left box to write CO. 
Or in an ERT, just type: $\mathrm{CO}_2$

Wayan



  


Re: CO_2

2009-04-20 Thread Florian Rubach

Wolfgang Engelmann schrieb:

How would I write CO_2 in such a way that it is not emphasized

in LaTeX:
 the catalytic subunit of the key enzyme of the light dependent 
$CO_{2}$-fixation


I am sure there is a way in LyX to do that but I can't find it (checked 
Embedded Objects)


Wolfgang
  
For me as Chemist, it works fine to just type the _2 in math-mode... ( 
CO$_{2}$ )
Another possibility would be to use the roman math-font ( 
$\mathrm{CO_{2}}$ ,there is a button in the math-toolbar).


Hope to help,

Florian


Re: CO_2

2009-04-20 Thread Wolfgang Engelmann
>
> For me as Chemist, it works fine to just type the _2 in math-mode... (
> CO$_{2}$ )
> Another possibility would be to use the roman math-font (
> $\mathrm{CO_{2}}$ ,there is a button in the math-toolbar).

Thank you and the others
I will use this one
Wolfgang


Re: how to stop TeX and LaTeX from being typeset with the special logo?

2009-04-20 Thread Helge Hafting

Richard Talley wrote:

LyX automagically typesets words like TeX and LaTeX using the special
logo for those words.

How do I turn this behavior off? 


I see you already got some answers for how this is done for the entire 
document. If you want to do this for particular instances of 
LyX/TeX/LaTeX, just "Insert->Formatting->Ligature Break" somewhere 
inside the word you want to protect.


Or insert anything else that don't produce output, such as an empty TeX 
(ERT) box.


Helge Hafting



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




Re: Using tables

2009-04-20 Thread Doug Laidlaw
Thanks Steve, I will keep that in mind.

Doug.

On Monday 20 April 2009 12:09:17 am Steve Litt wrote:
> Inkscape->PDF?
>
> On Sunday 19 April 2009 04:44:56 am Doug Laidlaw wrote:
> > I don't use them.  I am writing a family history, but I will keep it in
> > mind. Inserting the family tree will be quite an issue, but I am some way
> > from that, yet.
> >
> > Doug.
> >
> > On Sunday 19 April 2009 5:22:21 pm Abdelrazak Younes wrote:
> > > On 19/04/2009 05:19, Doug Laidlaw wrote:
> > > > I am probably out of place here, but there is a project on
> > > > freshmeat.net for convering CSV tables to LaTeX.  It may be of use?
> > > >
> > > > http://freshmeat.net/projects/csv2latex
> > >
> > > Hi,
> > >
> > > There is already a very good (and simple) integrated cvs2lyx python
> > > script distributed with LyX. This was contributed by Hartmut Haase
> > > AFAIR.
> > >
> > > Abdel.




Re: bug in hyperlink and footnote?

2009-04-20 Thread James C. Sutherland


On Apr 19, 2009, at 5:04 AM, Uwe Stöhr wrote:


One important not: you example used an address in this form:
http://www.bla.blub/#1
This is not conform to the URL specification. There must be at least  
a character after the "/" and before the "#". Or do you have an  
example of a valid URL where this is not the case?


regards Uwe


Reported as bug #5908  (http://www.lyx.org/trac/ticket/5908)

I should have been more precise regarding the URL.  An example URL is:
http://scriptures.lds.org/en/luke/24/6#6
I assume that this is a valid URL.

Re: exporting to ODF or DOC

2009-04-20 Thread Andrew Sullivan
On Sun, Apr 19, 2009 at 08:16:01PM +0200, Marco Beishuizen wrote:
> Hi,
> 
> Is there any way of exporting a LyX document to OpenDocument or Word? In
> LyX you can add the export to your menu but that only seems to change
> the file extension, and not converting anything. I also saw that there
> is a script "tex4ht". But how do I install this?

This all depends on your LaTeX distribution.  It works ok for me on
Debian Linux, but I can't get it to work on my Mac.  I don't know how
to get it to work under FreeBSD.  There is discussion of this in the
wiki, however.


-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Big Thanks! was: how to stop TeX and LaTeX from being typeset with the special logo?

2009-04-20 Thread Richard Talley
A big thanks to everybody for the quick, useful replies.

There is no doubt that one of the best things about LyX is the LyX community.

-- Rich

On Mon, Apr 20, 2009 at 2:58 AM, Helge Hafting  wrote:
> Richard Talley wrote:
>>
>> LyX automagically typesets words like TeX and LaTeX using the special
>> logo for those words.
>>
>> How do I turn this behavior off?
>
> I see you already got some answers for how this is done for the entire
> document. If you want to do this for particular instances of LyX/TeX/LaTeX,
> just "Insert->Formatting->Ligature Break" somewhere inside the word you want
> to protect.
>
> Or insert anything else that don't produce output, such as an empty TeX
> (ERT) box.
>
> Helge Hafting
>
>


Re: bug in hyperlink and footnote?

2009-04-20 Thread Uwe Stöhr

James C. Sutherland schrieb:


Reported as bug #5908  (http://www.lyx.org/trac/ticket/5908)


Thanks. It turns out that you found a bug in the LaTeX-package hyperref. I'll inform you when I know 
more.



I should have been more precise regarding the URL.  An example URL is:
http://scriptures.lds.org/en/luke/24/6#6
I assume that this is a valid URL.


Yes it is.

regards Uwe


Re: Wrong placement with EPS graphics in pdflatex

2009-04-20 Thread Thomas Steffen
On Sun, Apr 19, 2009 at 11:42 AM, Uwe Stöhr  wrote:
> What do you mean with "wrong place"? Images are usually within a flaot that
> will float in the output to a suitable position.
> Can you provide a _small_ example file?

Here is an example, I hope it is small enough. It seems to be related
to this specific eps file - for some reason the bounding box does not
start at (0,0), and that does seem to throw off LyX. I am having
difficulties trying to recreate this with a different eps file, but
then again they all start the bounding box at (0,0). I am sure that
did not used to be the case, but maybe it is getting more common.

I get the same result whether I use ps2pdf or epstopdf as the
converter from eps to pdf. I used to use convert, but that also gave
me issues, although slightly different ones.

Regards,
Thomas


fig.eps
Description: PostScript document


figtest.lyx
Description: application/lyx


Re: Wrong placement with EPS graphics in pdflatex

2009-04-20 Thread Uwe Stöhr

Thomas Steffen schrieb:

On Sun, Apr 19, 2009 at 11:42 AM, Uwe Stöhr  wrote:

What do you mean with "wrong place"? Images are usually within a flaot that
will float in the output to a suitable position.
Can you provide a _small_ example file?



Here is an example, I hope it is small enough. It seems to be related
to this specific eps file


Yes, this EPS file is strange. But why do you need to set a bounding box and why an EPS when you 
want a PDF document?
When I convert your EPS to PDF (see attached), it works very well for all output formats, a bounding 
box is not needed. (When you want only a part of the image to appear in the output you can cut the 
PDF image with e.g. Inkscape.)


(Btw. the EPS file format often makes troubles. But in a PDF only PDF, PNG, and JPG images can be 
embedded so that LyX will have to convert EPS to PDF in the background when you use pdflatex. This 
conversion is done by the program ImageMagick that in turn needs Ghostscript. But every involved 
program can cause problem, so better use directly an image format that don't need to be converted.)


regards Uwe


fig.pdf
Description: Adobe PDF document


figtest.lyx
Description: application/lyx


LyX 1.6.2 -- does it provide inverse search via Yap ?

2009-04-20 Thread sykes

hi,

I'm running LyX 1.6.2 on Windows XP.  I would like to perform inverse
searches from Yap back to the actual line in LyX.  Is this possible?  

Also, is there a better viewer than Yap that people could suggest?

Thanks,
Ed Sykes
-- 
View this message in context: 
http://n2.nabble.com/LyX-1.6.2does-it-provide-inverse-search-via-Yap---tp2665687p2665687.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Wrong placement with EPS graphics in pdflatex

2009-04-20 Thread Thomas Steffen
On Mon, Apr 20, 2009 at 6:32 PM, Uwe Stöhr  wrote:
> Yes, this EPS file is strange.

Not particularly. It used to be standard to use (0,0) as the corner of
the workspace, and usually the actual diagram has a different bounding
box.

> But why do you need to set a bounding box

Is there any other option? When I include an EPS file, LyX always sets
the bounding box according to the header of the file. I can do without
clipping, but that does not actually solve the problem.

> and
> why an EPS when you want a PDF document?
> (Btw. the EPS file format often makes troubles.

Different reasons - some old software, habits, the availability of the
PostScript printer driver for Windows. To be specific, dia has no PDF
export at all, and inkscape only does it via Cairo, which was
completely broken until very recently. Finally EPS usually crops  to
the actual drawing, and PDF always exports the whole page, which is
just inconvenient.

> This conversion is done by the
> program ImageMagick that in turn needs Ghostscript.

Is it? Because it seems that the default filter uses epstopdf, if it
is present. As I said ps2pdf produces the same problems (which is very
strange). Using convert solves the problem, but you have to add the
rule manually, and I had some issues with this solution (have to
figure which exactly).

So I guess my conclusion is to use convert, and it works for me. Maybe
reconfigure should be changed to use convert by default when
available?

Regards,
Thomas


 But every involved
> program can cause problem, so better use directly an image format that don't
> need to be converted.)
>
> regards Uwe
>


Re: Wrong placement with EPS graphics in pdflatex

2009-04-20 Thread Uwe Stöhr

Thomas Steffen schrieb:


But why do you need to set a bounding box


Is there any other option? When I include an EPS file, LyX always sets
the bounding box according to the header of the file.


Yes, but you can unset it. I never needed a bounding box, but OK I use EPS only 
very rarely.


why an EPS when you want a PDF document?
(Btw. the EPS file format often makes troubles.


Different reasons - some old software, habits, the availability of the
PostScript printer driver for Windows.


The Postscript driver is independent of the file you want to print. Besides this I never heard that 
a PDF was not printable.


 To be specific, dia has no PDF

export at all, and inkscape only does it via Cairo, which was
completely broken until very recently.


I use here on Windows the one year old Inkscape 0.46 nearly daily and work there with PDFs without 
any problem.



Finally EPS usually crops  to
the actual drawing, and PDF always exports the whole page, which is
just inconvenient.


This is not the case here. In Inkscape I can set the page size to the size of the drawing. But even 
when you get an A4 page, you can easily crop the resulting PDF (many programs provide a "remove 
whitespace" option in the crop (or mediabox) settings).



This conversion is done by the
program ImageMagick that in turn needs Ghostscript.


Is it? Because it seems that the default filter uses epstopdf,


Sorry. ImageMagick is used the opposite way and to display any kind of images (except of PNG) within 
LyX.


regards Uwe