Re: Wave

2009-06-01 Thread Kosta Welke
On Sun, 31 May 2009 22:50:47 +0200
A B gentosa...@gmail.com wrote:

 I just viewed a video demo of google wave, and remembered the
 collaboration discussion when someone talked about using wiki for
 collaborative editing, but google wave sounds to be a much more
 interesting tool for collaboration in this way. So either use wave for
 LyX files or use LyX to edit Waves?

Well it seems that it will be kind of open, so I guess one _could_
write something on the server-side that translates something wave-y to
LaTeX, and from there to PDF/PS/whatever. But it would not be LyX...
(cause I think it would be insane to try to port the whole LyX
interface to Wave).

Cheers,

Kosta


Re: Custom Inset Issues

2009-06-01 Thread Jürgen Spitzmüller
wilsons wrote:
 LaTeX Error:  Missing \begin{document}.
   \newfontfamily{\G}{L
 ucida Grande}
 You're in trouble here. Try typing return to proceed.
 If that doesn't work, type X return to quit.

 As I mentioned above, the exact same LaTeX code does exactly what I  
 want when placed directly in the preamble and used with ERT.

I suspect that the \newfontfamily command is put in preamble before the 
\usepackage{fontspec}. Since this is a command of that package, you need to 
load the fontspec package from the module.

Try

InsetLayout CharStyle:Greek
LyxType   charstyle
LabelString   greek
LatexType command
LatexName grk
Preamble
  \RequirePackage{fontspec}
  \newfontfamily{\G}{Lucida Grande}
  \newcommand{\grk}[1]{\G #1}
 EndPreamble
End

InsetLayout CharStyle:Hebrew
LyxType   charstyle
LabelString   hebrew
LatexType command
LatexName heb
Preamble
 \RequirePackage{fontspec}
 \newfontfamily{\H}{Lucida Grande}
 \newcommand{\heb}[1]{\H #1}
EndPreamble
End


HTH,
Jürgen


pdf font quality improvement after miktex update

2009-06-01 Thread asm23

Hi, I'm using Lyx and Miktex 2.7 in Windows.

I notices that in the Lyx preamble, there are some code like below:

 % set fonts for nicer pdf view
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}

This will give a nice font view in pdfLatex(the font looks heavy black).

If I didn't use these code, the font in the generated pdf was light and 
looks ugly.


Since I update my Miktex to the latest package yesterday, I found this 
difference has gone, both cases will give a nice pdf. So we don't need 
these statement in preamble any more.


Can someone tell me the reason? Why?

Thanks.



Graphics output on PDF

2009-06-01 Thread Pablo
Hello everybody!

I'm working on a thesis, currently running Lyx 1.6 over MikTex 2.7 on a Vista
environment. Just in case I'm using the standard Report layout. When
generating the PDF via pdflatex everything looks pretty except for the graphics.
Eventhough they look pretty good on Lyx, on the pdf they appear completely
oversized and since I am mostly working with raster images (I mean, not
vectorial) they look pretty bad. So, for every figure I add, a process of trial
and error follows in order to get the right scale.. (then of course I have to
determine the right clipping values in order to get the image centered!)...

I have the impression that lyx would work much better with vectorial images
(eps, svg, etc.) but most of my figures are made with Flash.. and sadly its
fuction for exporting vectorial images doesnt work too well..


Anyway, any ideas of whether there is something wrong here? 

Thank you very much in advances!




SVG conversion to pdf produces bitmaps

2009-06-01 Thread Stefano Franchi
Hi all,

I know this issue has been discussed repeatedly, but rereading the old threads 
and the wiki pages did not provide any help.

Problem: I have a small illustration produced with Inkscape and saved as SVG. 
When I insert it into LyX as SVG, it gets converted to a bitmapped image both 
in the LyX preview (which I don't care about) AND in the pdf output (which I 
DO care about).
The SVG image looks all right when loaded into an SVG-aware app (e.g. 
FIrefox).

What I did:

1. I followed the instructions on the wiki and added format and converters for 
SVG and SVG--EPS, SVG--PDF, SVG--PNG

Result: bitmaps both on screen and in Pdf

2. As suggested  in an older  thread, I tried removing the SVG--PNG 
converter.

Result: as above


My setup is: Lyx 1.6.2 on Linux (Kubuntu 9.04) and Inkscape 0.46. I use 
pdflatex to compile to pdf.



Thanks for the help,

S.
__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



Float placement with SWeave

2009-06-01 Thread Graham Smith
Can anyone give me some hints about float placement of figures created 
with SWeave. 

I have tried a float and a wrap float,  but the former seems to put the 
floats one per page, and the latter seems to end up with text running 
through the figure.


Is there a standard way of doing this, or do I just have to keep fiddling.

Of course this migt be more my inexperience wth Lyx rather than SWeave, 
but normally with a figure,  I can alter the size of the figures, to 
find an optimum size for the float, but with SWeave, the float doesn't 
contain the figure, only the code to create the figure in R, so this 
isn't an option.


This is Lyx 1.6.2 on a Mac with tiger.

Many thanks,

Graham


Re: SVG conversion to pdf produces bitmaps

2009-06-01 Thread Guenter Milde
On 2009-06-01, Stefano Franchi wrote:

 Problem: I have a small illustration produced with Inkscape and saved
 as SVG.  When I insert it into LyX as SVG, it gets converted to a
 bitmapped image 

 What I did:

 1. I followed the instructions on the wiki and added format and
converters for SVG and SVG--EPS, SVG--PDF, SVG--PNG

 Result: bitmaps both on screen and in Pdf

 2. As suggested in an older thread, I tried removing the SVG--PNG 
converter.

The SVG-PNG converter is not needed.

 Result: as above

Strange.

Some more trials:

* Convert to Postscript.

* Try the used converter-scripts from a command line and have a look at
  the produced eps and pdf file.
  
* remove the SVG-PDF converter and try PDF and Postscript generation.

* (add SVG-PDF again and) remove the SVG-EPS converter and try PDF and
  Postscript generation.
  
* use a different flavour of PDF (pdf, pdf1, pdf2) as end-format of the
  SVG-PDF converter.

* Maybe also FileExportPS/PDF and have a look at the generated graphics
  file.
  
Günter  



Re: Graphics output on PDF

2009-06-01 Thread Guenter Milde
On 2009-06-01, Pablo wrote:

 So, for every figure I add, a process of trial and error follows in
 order to get the right scale.. 

I'd specify the width in absolute units or as percentage of the
textwidth.

 (then of course I have to determine the right clipping
 values in order to get the image centered!)...

I'd try to clip the margins already when producing the image or with some
image editor. Centering can be done with \centering as ERT (raw LaTeX)
before the image.

Günter



Re: SVG conversion to pdf produces bitmaps

2009-06-01 Thread Paul A. Rubin

Stefano Franchi wrote:


Problem: I have a small illustration produced with Inkscape and saved as SVG. 
When I insert it into LyX as SVG, it gets converted to a bitmapped image both 
in the LyX preview (which I don't care about) AND in the pdf output (which I 
DO care about).
The SVG image looks all right when loaded into an SVG-aware app (e.g. 
FIrefox).


What I did:

1. I followed the instructions on the wiki and added format and converters for 
SVG and SVG--EPS, SVG--PDF, SVG--PNG


You checked the vector graphics option, right?  (Just to be sure.)


Result: bitmaps both on screen and in Pdf

2. As suggested  in an older  thread, I tried removing the SVG--PNG 
converter.


Result: as above


My setup is: Lyx 1.6.2 on Linux (Kubuntu 9.04) and Inkscape 0.46. I use 
pdflatex to compile to pdf.




I ran into this with LyX 1.6.1 on XP (Inkscape 0.46).  The reason for 
the bitmaps is that Inkscape is failing silently during the conversion, 
and so LyX is falling back on the generic conversion utility, which does 
not grasp SVG.  I'm not sure I ever figured out why it happened on XP, 
but adding the Inkscape directory to the system command path (and 
removing it from the LyX path prefix) seemed to fix it.  (I also used 
the Linux converter syntax:  '--export-pdf=$$o' rather than just 'PDF'.)


I just checked on my office machine (Ubuntu 9.04, LyX 1.6.2) and the 
Linux instructions from the wiki seem to work ok.  You might want to run 
'which inkscape' in a terminal just to be sure that LyX (or Python, as 
the case may be) can find Inkscape.  As Guenter suggested, you should 
also try 'inkscape --export-pdf=myfile.pdf myfile.svg' in a terminal to 
make sure the conversion works outside LyX.


/Paul



Re: pdf font quality improvement after miktex update

2009-06-01 Thread Uwe Stöhr

asm23 schrieb:

Since I update my Miktex to the latest package yesterday, I found this 
difference has gone, both cases will give a nice pdf. So we don't need 
these statement in preamble any more.


That's not true. When you use the default fonts, you still get the font Computer Modern. You'll 
see this in the PDF when you zoom to 800 - 1200 % - the font is pixeld. When you go to the PDF 
document properties, you can see that the used font type it Type 3 which is a bitmap font, see 
attached.



Can someone tell me the reason? Why?


Have you used another PDF viewer of upgrades the existing on?

regards Uwe


newfile1.lyx
Description: application/lyx


newfile1.pdf
Description: Adobe PDF document


Re: SVG conversion to pdf produces bitmaps

2009-06-01 Thread Stefano Franchi
On Monday 01 June 2009 04:29:02 pm Paul A. Rubin wrote:
 Stefano Franchi wrote:
  Problem: I have a small illustration produced with Inkscape and saved as
  SVG. When I insert it into LyX as SVG, it gets converted to a bitmapped
  image both in the LyX preview (which I don't care about) AND in the pdf
  output (which I DO care about).
  The SVG image looks all right when loaded into an SVG-aware app (e.g.
  FIrefox).
 
  What I did:
 
  1. I followed the instructions on the wiki and added format and
  converters for SVG and SVG--EPS, SVG--PDF, SVG--PNG

 You checked the vector graphics option, right?  (Just to be sure.)

  Result: bitmaps both on screen and in Pdf
 
  2. As suggested  in an older  thread, I tried removing the SVG--PNG
  converter.
 
  Result: as above
 
 
  My setup is: Lyx 1.6.2 on Linux (Kubuntu 9.04) and Inkscape 0.46. I use
  pdflatex to compile to pdf.

 I ran into this with LyX 1.6.1 on XP (Inkscape 0.46).  The reason for
 the bitmaps is that Inkscape is failing silently during the conversion,
 and so LyX is falling back on the generic conversion utility, which does
 not grasp SVG.  I'm not sure I ever figured out why it happened on XP,
 but adding the Inkscape directory to the system command path (and
 removing it from the LyX path prefix) seemed to fix it.  (I also used
 the Linux converter syntax:  '--export-pdf=$$o' rather than just 'PDF'.)

 I just checked on my office machine (Ubuntu 9.04, LyX 1.6.2) and the
 Linux instructions from the wiki seem to work ok.  You might want to run
 'which inkscape' in a terminal just to be sure that LyX (or Python, as
 the case may be) can find Inkscape.  As Guenter suggested, you should
 also try 'inkscape --export-pdf=myfile.pdf myfile.svg' in a terminal to
 make sure the conversion works outside LyX.

That may be it. Inkscape seems to fail the SVG -- PDF conversion in batch 
mode. It seems to be a known bug of version 0.46 (the latest version, I 
believe). At least the Inkscape bugtracker reports a known bug in version 0.46 
for the opposite conversion path in batch mode (PDF--SVG). I will try to 
upgrade to the latest SVN version to see if the problem is solved. 

It seems, however, that, even when working, the Inkscape Cairo-based routines 
to convert to Pdf leave a lot to be desired, From the Inkscape dev list in 
summer 2008:

It doesn't support Patterns, Clipping, and Masks and 
evince won't display the gradients with transparency correctly but 
Acroread will. 
 

Is anyone encountering these kind of problems?

S.



__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



Re: pdf font quality improvement after miktex update

2009-06-01 Thread asm23

Uwe Stöhr wrote:

asm23 schrieb:

Since I update my Miktex to the latest package yesterday, I found this 
difference has gone, both cases will give a nice pdf. So we don't need 
these statement in preamble any more.


That's not true. When you use the default fonts, you still get the font 
Computer Modern. You'll see this in the PDF when you zoom to 800 - 
1200 % - the font is pixeld. When you go to the PDF document properties, 
you can see that the used font type it Type 3 which is a bitmap font, 
see attached.

Yes, you are right. And I'm sorry I was wrong.

The empty preamble Lyx document will give a Type 3 bitmap font.

If I use  % set fonts for nicer pdf view
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}  code, the generated 
  pdf has Type 1 vector font, which is nicer and high quality.


Thanks for your time and your help!

The attachment was the screenshot of the pdf files after zoom to 1600%.

inline: 2.PNGinline: 1.PNG

Re: Wave

2009-06-01 Thread Kosta Welke
On Sun, 31 May 2009 22:50:47 +0200
A B gentosa...@gmail.com wrote:

 I just viewed a video demo of google wave, and remembered the
 collaboration discussion when someone talked about using wiki for
 collaborative editing, but google wave sounds to be a much more
 interesting tool for collaboration in this way. So either use wave for
 LyX files or use LyX to edit Waves?

Well it seems that it will be kind of open, so I guess one _could_
write something on the server-side that translates something wave-y to
LaTeX, and from there to PDF/PS/whatever. But it would not be LyX...
(cause I think it would be insane to try to port the whole LyX
interface to Wave).

Cheers,

Kosta


Re: Custom Inset Issues

2009-06-01 Thread Jürgen Spitzmüller
wilsons wrote:
 LaTeX Error:  Missing \begin{document}.
   \newfontfamily{\G}{L
 ucida Grande}
 You're in trouble here. Try typing return to proceed.
 If that doesn't work, type X return to quit.

 As I mentioned above, the exact same LaTeX code does exactly what I  
 want when placed directly in the preamble and used with ERT.

I suspect that the \newfontfamily command is put in preamble before the 
\usepackage{fontspec}. Since this is a command of that package, you need to 
load the fontspec package from the module.

Try

InsetLayout CharStyle:Greek
LyxType   charstyle
LabelString   greek
LatexType command
LatexName grk
Preamble
  \RequirePackage{fontspec}
  \newfontfamily{\G}{Lucida Grande}
  \newcommand{\grk}[1]{\G #1}
 EndPreamble
End

InsetLayout CharStyle:Hebrew
LyxType   charstyle
LabelString   hebrew
LatexType command
LatexName heb
Preamble
 \RequirePackage{fontspec}
 \newfontfamily{\H}{Lucida Grande}
 \newcommand{\heb}[1]{\H #1}
EndPreamble
End


HTH,
Jürgen


pdf font quality improvement after miktex update

2009-06-01 Thread asm23

Hi, I'm using Lyx and Miktex 2.7 in Windows.

I notices that in the Lyx preamble, there are some code like below:

 % set fonts for nicer pdf view
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}

This will give a nice font view in pdfLatex(the font looks heavy black).

If I didn't use these code, the font in the generated pdf was light and 
looks ugly.


Since I update my Miktex to the latest package yesterday, I found this 
difference has gone, both cases will give a nice pdf. So we don't need 
these statement in preamble any more.


Can someone tell me the reason? Why?

Thanks.



Graphics output on PDF

2009-06-01 Thread Pablo
Hello everybody!

I'm working on a thesis, currently running Lyx 1.6 over MikTex 2.7 on a Vista
environment. Just in case I'm using the standard Report layout. When
generating the PDF via pdflatex everything looks pretty except for the graphics.
Eventhough they look pretty good on Lyx, on the pdf they appear completely
oversized and since I am mostly working with raster images (I mean, not
vectorial) they look pretty bad. So, for every figure I add, a process of trial
and error follows in order to get the right scale.. (then of course I have to
determine the right clipping values in order to get the image centered!)...

I have the impression that lyx would work much better with vectorial images
(eps, svg, etc.) but most of my figures are made with Flash.. and sadly its
fuction for exporting vectorial images doesnt work too well..


Anyway, any ideas of whether there is something wrong here? 

Thank you very much in advances!




SVG conversion to pdf produces bitmaps

2009-06-01 Thread Stefano Franchi
Hi all,

I know this issue has been discussed repeatedly, but rereading the old threads 
and the wiki pages did not provide any help.

Problem: I have a small illustration produced with Inkscape and saved as SVG. 
When I insert it into LyX as SVG, it gets converted to a bitmapped image both 
in the LyX preview (which I don't care about) AND in the pdf output (which I 
DO care about).
The SVG image looks all right when loaded into an SVG-aware app (e.g. 
FIrefox).

What I did:

1. I followed the instructions on the wiki and added format and converters for 
SVG and SVG--EPS, SVG--PDF, SVG--PNG

Result: bitmaps both on screen and in Pdf

2. As suggested  in an older  thread, I tried removing the SVG--PNG 
converter.

Result: as above


My setup is: Lyx 1.6.2 on Linux (Kubuntu 9.04) and Inkscape 0.46. I use 
pdflatex to compile to pdf.



Thanks for the help,

S.
__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



Float placement with SWeave

2009-06-01 Thread Graham Smith
Can anyone give me some hints about float placement of figures created 
with SWeave. 

I have tried a float and a wrap float,  but the former seems to put the 
floats one per page, and the latter seems to end up with text running 
through the figure.


Is there a standard way of doing this, or do I just have to keep fiddling.

Of course this migt be more my inexperience wth Lyx rather than SWeave, 
but normally with a figure,  I can alter the size of the figures, to 
find an optimum size for the float, but with SWeave, the float doesn't 
contain the figure, only the code to create the figure in R, so this 
isn't an option.


This is Lyx 1.6.2 on a Mac with tiger.

Many thanks,

Graham


Re: SVG conversion to pdf produces bitmaps

2009-06-01 Thread Guenter Milde
On 2009-06-01, Stefano Franchi wrote:

 Problem: I have a small illustration produced with Inkscape and saved
 as SVG.  When I insert it into LyX as SVG, it gets converted to a
 bitmapped image 

 What I did:

 1. I followed the instructions on the wiki and added format and
converters for SVG and SVG--EPS, SVG--PDF, SVG--PNG

 Result: bitmaps both on screen and in Pdf

 2. As suggested in an older thread, I tried removing the SVG--PNG 
converter.

The SVG-PNG converter is not needed.

 Result: as above

Strange.

Some more trials:

* Convert to Postscript.

* Try the used converter-scripts from a command line and have a look at
  the produced eps and pdf file.
  
* remove the SVG-PDF converter and try PDF and Postscript generation.

* (add SVG-PDF again and) remove the SVG-EPS converter and try PDF and
  Postscript generation.
  
* use a different flavour of PDF (pdf, pdf1, pdf2) as end-format of the
  SVG-PDF converter.

* Maybe also FileExportPS/PDF and have a look at the generated graphics
  file.
  
Günter  



Re: Graphics output on PDF

2009-06-01 Thread Guenter Milde
On 2009-06-01, Pablo wrote:

 So, for every figure I add, a process of trial and error follows in
 order to get the right scale.. 

I'd specify the width in absolute units or as percentage of the
textwidth.

 (then of course I have to determine the right clipping
 values in order to get the image centered!)...

I'd try to clip the margins already when producing the image or with some
image editor. Centering can be done with \centering as ERT (raw LaTeX)
before the image.

Günter



Re: SVG conversion to pdf produces bitmaps

2009-06-01 Thread Paul A. Rubin

Stefano Franchi wrote:


Problem: I have a small illustration produced with Inkscape and saved as SVG. 
When I insert it into LyX as SVG, it gets converted to a bitmapped image both 
in the LyX preview (which I don't care about) AND in the pdf output (which I 
DO care about).
The SVG image looks all right when loaded into an SVG-aware app (e.g. 
FIrefox).


What I did:

1. I followed the instructions on the wiki and added format and converters for 
SVG and SVG--EPS, SVG--PDF, SVG--PNG


You checked the vector graphics option, right?  (Just to be sure.)


Result: bitmaps both on screen and in Pdf

2. As suggested  in an older  thread, I tried removing the SVG--PNG 
converter.


Result: as above


My setup is: Lyx 1.6.2 on Linux (Kubuntu 9.04) and Inkscape 0.46. I use 
pdflatex to compile to pdf.




I ran into this with LyX 1.6.1 on XP (Inkscape 0.46).  The reason for 
the bitmaps is that Inkscape is failing silently during the conversion, 
and so LyX is falling back on the generic conversion utility, which does 
not grasp SVG.  I'm not sure I ever figured out why it happened on XP, 
but adding the Inkscape directory to the system command path (and 
removing it from the LyX path prefix) seemed to fix it.  (I also used 
the Linux converter syntax:  '--export-pdf=$$o' rather than just 'PDF'.)


I just checked on my office machine (Ubuntu 9.04, LyX 1.6.2) and the 
Linux instructions from the wiki seem to work ok.  You might want to run 
'which inkscape' in a terminal just to be sure that LyX (or Python, as 
the case may be) can find Inkscape.  As Guenter suggested, you should 
also try 'inkscape --export-pdf=myfile.pdf myfile.svg' in a terminal to 
make sure the conversion works outside LyX.


/Paul



Re: pdf font quality improvement after miktex update

2009-06-01 Thread Uwe Stöhr

asm23 schrieb:

Since I update my Miktex to the latest package yesterday, I found this 
difference has gone, both cases will give a nice pdf. So we don't need 
these statement in preamble any more.


That's not true. When you use the default fonts, you still get the font Computer Modern. You'll 
see this in the PDF when you zoom to 800 - 1200 % - the font is pixeld. When you go to the PDF 
document properties, you can see that the used font type it Type 3 which is a bitmap font, see 
attached.



Can someone tell me the reason? Why?


Have you used another PDF viewer of upgrades the existing on?

regards Uwe


newfile1.lyx
Description: application/lyx


newfile1.pdf
Description: Adobe PDF document


Re: SVG conversion to pdf produces bitmaps

2009-06-01 Thread Stefano Franchi
On Monday 01 June 2009 04:29:02 pm Paul A. Rubin wrote:
 Stefano Franchi wrote:
  Problem: I have a small illustration produced with Inkscape and saved as
  SVG. When I insert it into LyX as SVG, it gets converted to a bitmapped
  image both in the LyX preview (which I don't care about) AND in the pdf
  output (which I DO care about).
  The SVG image looks all right when loaded into an SVG-aware app (e.g.
  FIrefox).
 
  What I did:
 
  1. I followed the instructions on the wiki and added format and
  converters for SVG and SVG--EPS, SVG--PDF, SVG--PNG

 You checked the vector graphics option, right?  (Just to be sure.)

  Result: bitmaps both on screen and in Pdf
 
  2. As suggested  in an older  thread, I tried removing the SVG--PNG
  converter.
 
  Result: as above
 
 
  My setup is: Lyx 1.6.2 on Linux (Kubuntu 9.04) and Inkscape 0.46. I use
  pdflatex to compile to pdf.

 I ran into this with LyX 1.6.1 on XP (Inkscape 0.46).  The reason for
 the bitmaps is that Inkscape is failing silently during the conversion,
 and so LyX is falling back on the generic conversion utility, which does
 not grasp SVG.  I'm not sure I ever figured out why it happened on XP,
 but adding the Inkscape directory to the system command path (and
 removing it from the LyX path prefix) seemed to fix it.  (I also used
 the Linux converter syntax:  '--export-pdf=$$o' rather than just 'PDF'.)

 I just checked on my office machine (Ubuntu 9.04, LyX 1.6.2) and the
 Linux instructions from the wiki seem to work ok.  You might want to run
 'which inkscape' in a terminal just to be sure that LyX (or Python, as
 the case may be) can find Inkscape.  As Guenter suggested, you should
 also try 'inkscape --export-pdf=myfile.pdf myfile.svg' in a terminal to
 make sure the conversion works outside LyX.

That may be it. Inkscape seems to fail the SVG -- PDF conversion in batch 
mode. It seems to be a known bug of version 0.46 (the latest version, I 
believe). At least the Inkscape bugtracker reports a known bug in version 0.46 
for the opposite conversion path in batch mode (PDF--SVG). I will try to 
upgrade to the latest SVN version to see if the problem is solved. 

It seems, however, that, even when working, the Inkscape Cairo-based routines 
to convert to Pdf leave a lot to be desired, From the Inkscape dev list in 
summer 2008:

It doesn't support Patterns, Clipping, and Masks and 
evince won't display the gradients with transparency correctly but 
Acroread will. 
 

Is anyone encountering these kind of problems?

S.



__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



Re: pdf font quality improvement after miktex update

2009-06-01 Thread asm23

Uwe Stöhr wrote:

asm23 schrieb:

Since I update my Miktex to the latest package yesterday, I found this 
difference has gone, both cases will give a nice pdf. So we don't need 
these statement in preamble any more.


That's not true. When you use the default fonts, you still get the font 
Computer Modern. You'll see this in the PDF when you zoom to 800 - 
1200 % - the font is pixeld. When you go to the PDF document properties, 
you can see that the used font type it Type 3 which is a bitmap font, 
see attached.

Yes, you are right. And I'm sorry I was wrong.

The empty preamble Lyx document will give a Type 3 bitmap font.

If I use  % set fonts for nicer pdf view
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}  code, the generated 
  pdf has Type 1 vector font, which is nicer and high quality.


Thanks for your time and your help!

The attachment was the screenshot of the pdf files after zoom to 1600%.

inline: 2.PNGinline: 1.PNG

Re: Wave

2009-06-01 Thread Kosta Welke
On Sun, 31 May 2009 22:50:47 +0200
A B  wrote:

> I just viewed a video demo of google wave, and remembered the
> collaboration discussion when someone talked about using wiki for
> collaborative editing, but google wave sounds to be a much more
> interesting tool for collaboration in this way. So either use wave for
> LyX files or use LyX to edit Waves?

Well it seems that it will be kind of open, so I guess one _could_
write something on the server-side that translates something wave-y to
LaTeX, and from there to PDF/PS/whatever. But it would not be LyX...
(cause I think it would be insane to try to port the whole LyX
interface to Wave).

Cheers,

Kosta


Re: Custom Inset Issues

2009-06-01 Thread Jürgen Spitzmüller
wilsons wrote:
> LaTeX Error:  Missing \begin{document}.
>   \newfontfamily{\G}{L
> ucida Grande}
> You're in trouble here. Try typing  to proceed.
> If that doesn't work, type X  to quit.
>
> As I mentioned above, the exact same LaTeX code does exactly what I  
> want when placed directly in the preamble and used with ERT.

I suspect that the \newfontfamily command is put in preamble before the 
\usepackage{fontspec}. Since this is a command of that package, you need to 
load the fontspec package from the module.

Try

InsetLayout CharStyle:Greek
LyxType   charstyle
LabelString   greek
LatexType command
LatexName grk
Preamble
  \RequirePackage{fontspec}
  \newfontfamily{\G}{Lucida Grande}
  \newcommand{\grk}[1]{\G #1}
 EndPreamble
End

InsetLayout CharStyle:Hebrew
LyxType   charstyle
LabelString   hebrew
LatexType command
LatexName heb
Preamble
 \RequirePackage{fontspec}
 \newfontfamily{\H}{Lucida Grande}
 \newcommand{\heb}[1]{\H #1}
EndPreamble
End


HTH,
Jürgen


pdf font quality improvement after miktex update

2009-06-01 Thread asm23

Hi, I'm using Lyx and Miktex 2.7 in Windows.

I notices that in the Lyx preamble, there are some code like below:

 % set fonts for nicer pdf view
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}

This will give a nice font view in pdfLatex(the font looks heavy black).

If I didn't use these code, the font in the generated pdf was light and 
looks ugly.


Since I update my Miktex to the latest package yesterday, I found this 
difference has gone, both cases will give a nice pdf. So we don't need 
these statement in preamble any more.


Can someone tell me the reason? Why?

Thanks.



Graphics output on PDF

2009-06-01 Thread Pablo
Hello everybody!

I'm working on a thesis, currently running Lyx 1.6 over MikTex 2.7 on a Vista
environment. Just in case I'm using the standard "Report" layout. When
generating the PDF via pdflatex everything looks pretty except for the graphics.
Eventhough they look pretty good on Lyx, on the pdf they appear completely
oversized and since I am mostly working with raster images (I mean, not
vectorial) they look pretty bad. So, for every figure I add, a process of trial
and error follows in order to get the right scale.. (then of course I have to
determine the right clipping values in order to get the image centered!)...

I have the impression that lyx would work much better with vectorial images
(eps, svg, etc.) but most of my figures are made with Flash.. and sadly its
fuction for exporting vectorial images doesnt work too well..


Anyway, any ideas of whether there is something wrong here? 

Thank you very much in advances!




SVG conversion to pdf produces bitmaps

2009-06-01 Thread Stefano Franchi
Hi all,

I know this issue has been discussed repeatedly, but rereading the old threads 
and the wiki pages did not provide any help.

Problem: I have a small illustration produced with Inkscape and saved as SVG. 
When I insert it into LyX as SVG, it gets converted to a bitmapped image both 
in the LyX preview (which I don't care about) AND in the pdf output (which I 
DO care about).
The SVG image looks all right when loaded into an SVG-aware app (e.g. 
FIrefox).

What I did:

1. I followed the instructions on the wiki and added format and converters for 
SVG and SVG-->EPS, SVG-->PDF, SVG-->PNG

Result: bitmaps both on screen and in Pdf

2. As suggested  in an older  thread, I tried removing the SVG-->PNG 
converter.

Result: as above


My setup is: Lyx 1.6.2 on Linux (Kubuntu 9.04) and Inkscape 0.46. I use 
pdflatex to compile to pdf.



Thanks for the help,

S.
__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



Float placement with SWeave

2009-06-01 Thread Graham Smith
Can anyone give me some hints about float placement of figures created 
with SWeave. 

I have tried a float and a wrap float,  but the former seems to put the 
floats one per page, and the latter seems to end up with text running 
through the figure.


Is there a "standard" way of doing this, or do I just have to keep fiddling.

Of course this migt be more my inexperience wth Lyx rather than SWeave, 
but normally with a figure,  I can alter the size of the figures, to 
find an optimum size for the float, but with SWeave, the float doesn't 
contain the figure, only the code to create the figure in R, so this 
isn't an option.


This is Lyx 1.6.2 on a Mac with tiger.

Many thanks,

Graham


Re: SVG conversion to pdf produces bitmaps

2009-06-01 Thread Guenter Milde
On 2009-06-01, Stefano Franchi wrote:

> Problem: I have a small illustration produced with Inkscape and saved
> as SVG.  When I insert it into LyX as SVG, it gets converted to a
> bitmapped image 

> What I did:

> 1. I followed the instructions on the wiki and added format and
>converters for SVG and SVG-->EPS, SVG-->PDF, SVG-->PNG

> Result: bitmaps both on screen and in Pdf

> 2. As suggested in an older thread, I tried removing the SVG-->PNG 
>converter.

The SVG->PNG converter is not needed.

> Result: as above

Strange.

Some more trials:

* Convert to Postscript.

* Try the used converter-scripts from a command line and have a look at
  the produced eps and pdf file.
  
* remove the SVG->PDF converter and try PDF and Postscript generation.

* (add SVG->PDF again and) remove the SVG->EPS converter and try PDF and
  Postscript generation.
  
* use a different "flavour" of PDF (pdf, pdf1, pdf2) as end-format of the
  SVG->PDF converter.

* Maybe also File>Export>PS/PDF and have a look at the generated graphics
  file.
  
Günter  



Re: Graphics output on PDF

2009-06-01 Thread Guenter Milde
On 2009-06-01, Pablo wrote:

> So, for every figure I add, a process of trial and error follows in
> order to get the right scale.. 

I'd specify the width in absolute units or as percentage of the
textwidth.

> (then of course I have to determine the right clipping
> values in order to get the image centered!)...

I'd try to clip the margins already when producing the image or with some
image editor. Centering can be done with \centering as ERT (raw LaTeX)
before the image.

Günter



Re: SVG conversion to pdf produces bitmaps

2009-06-01 Thread Paul A. Rubin

Stefano Franchi wrote:


Problem: I have a small illustration produced with Inkscape and saved as SVG. 
When I insert it into LyX as SVG, it gets converted to a bitmapped image both 
in the LyX preview (which I don't care about) AND in the pdf output (which I 
DO care about).
The SVG image looks all right when loaded into an SVG-aware app (e.g. 
FIrefox).


What I did:

1. I followed the instructions on the wiki and added format and converters for 
SVG and SVG-->EPS, SVG-->PDF, SVG-->PNG


You checked the vector graphics option, right?  (Just to be sure.)


Result: bitmaps both on screen and in Pdf

2. As suggested  in an older  thread, I tried removing the SVG-->PNG 
converter.


Result: as above


My setup is: Lyx 1.6.2 on Linux (Kubuntu 9.04) and Inkscape 0.46. I use 
pdflatex to compile to pdf.




I ran into this with LyX 1.6.1 on XP (Inkscape 0.46).  The reason for 
the bitmaps is that Inkscape is failing silently during the conversion, 
and so LyX is falling back on the generic conversion utility, which does 
not grasp SVG.  I'm not sure I ever figured out why it happened on XP, 
but adding the Inkscape directory to the system command path (and 
removing it from the LyX path prefix) seemed to fix it.  (I also used 
the Linux converter syntax:  '--export-pdf=$$o' rather than just 'PDF'.)


I just checked on my office machine (Ubuntu 9.04, LyX 1.6.2) and the 
Linux instructions from the wiki seem to work ok.  You might want to run 
'which inkscape' in a terminal just to be sure that LyX (or Python, as 
the case may be) can find Inkscape.  As Guenter suggested, you should 
also try 'inkscape --export-pdf=myfile.pdf myfile.svg' in a terminal to 
make sure the conversion works outside LyX.


/Paul



Re: pdf font quality improvement after miktex update

2009-06-01 Thread Uwe Stöhr

asm23 schrieb:

Since I update my Miktex to the latest package yesterday, I found this 
difference has gone, both cases will give a nice pdf. So we don't need 
these statement in preamble any more.


That's not true. When you use the default fonts, you still get the font "Computer Modern". You'll 
see this in the PDF when you zoom to 800 - 1200 % - the font is pixeld. When you go to the PDF 
document properties, you can see that the used font type it "Type 3" which is a bitmap font, see 
attached.



Can someone tell me the reason? Why?


Have you used another PDF viewer of upgrades the existing on?

regards Uwe


newfile1.lyx
Description: application/lyx


newfile1.pdf
Description: Adobe PDF document


Re: SVG conversion to pdf produces bitmaps

2009-06-01 Thread Stefano Franchi
On Monday 01 June 2009 04:29:02 pm Paul A. Rubin wrote:
> Stefano Franchi wrote:
> > Problem: I have a small illustration produced with Inkscape and saved as
> > SVG. When I insert it into LyX as SVG, it gets converted to a bitmapped
> > image both in the LyX preview (which I don't care about) AND in the pdf
> > output (which I DO care about).
> > The SVG image looks all right when loaded into an SVG-aware app (e.g.
> > FIrefox).
> >
> > What I did:
> >
> > 1. I followed the instructions on the wiki and added format and
> > converters for SVG and SVG-->EPS, SVG-->PDF, SVG-->PNG
>
> You checked the vector graphics option, right?  (Just to be sure.)
>
> > Result: bitmaps both on screen and in Pdf
> >
> > 2. As suggested  in an older  thread, I tried removing the SVG-->PNG
> > converter.
> >
> > Result: as above
> >
> >
> > My setup is: Lyx 1.6.2 on Linux (Kubuntu 9.04) and Inkscape 0.46. I use
> > pdflatex to compile to pdf.
>
> I ran into this with LyX 1.6.1 on XP (Inkscape 0.46).  The reason for
> the bitmaps is that Inkscape is failing silently during the conversion,
> and so LyX is falling back on the generic conversion utility, which does
> not grasp SVG.  I'm not sure I ever figured out why it happened on XP,
> but adding the Inkscape directory to the system command path (and
> removing it from the LyX path prefix) seemed to fix it.  (I also used
> the Linux converter syntax:  '--export-pdf=$$o' rather than just 'PDF'.)
>
> I just checked on my office machine (Ubuntu 9.04, LyX 1.6.2) and the
> Linux instructions from the wiki seem to work ok.  You might want to run
> 'which inkscape' in a terminal just to be sure that LyX (or Python, as
> the case may be) can find Inkscape.  As Guenter suggested, you should
> also try 'inkscape --export-pdf=myfile.pdf myfile.svg' in a terminal to
> make sure the conversion works outside LyX.

That may be it. Inkscape seems to fail the SVG --> PDF conversion in batch 
mode. It seems to be a known bug of version 0.46 (the latest version, I 
believe). At least the Inkscape bugtracker reports a known bug in version 0.46 
for the opposite conversion path in batch mode (PDF-->SVG). I will try to 
upgrade to the latest SVN version to see if the problem is solved. 

It seems, however, that, even when working, the Inkscape Cairo-based routines 
to convert to Pdf leave a lot to be desired, From the Inkscape dev list in 
summer 2008:

It doesn't support Patterns, Clipping, and Masks and 
evince won't display the gradients with transparency correctly but 
Acroread will. 
 

Is anyone encountering these kind of problems?

S.



__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



Re: pdf font quality improvement after miktex update

2009-06-01 Thread asm23

Uwe Stöhr wrote:

asm23 schrieb:

Since I update my Miktex to the latest package yesterday, I found this 
difference has gone, both cases will give a nice pdf. So we don't need 
these statement in preamble any more.


That's not true. When you use the default fonts, you still get the font 
"Computer Modern". You'll see this in the PDF when you zoom to 800 - 
1200 % - the font is pixeld. When you go to the PDF document properties, 
you can see that the used font type it "Type 3" which is a bitmap font, 
see attached.

Yes, you are right. And I'm sorry I was wrong.

The empty preamble Lyx document will give a "Type 3" bitmap font.

If I use " % set fonts for nicer pdf view
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{} " code, the generated 
  pdf has "Type 1" vector font, which is nicer and high quality.


Thanks for your time and your help!

The attachment was the screenshot of the pdf files after zoom to 1600%.

<><>