On Wed, Nov 22, 2006 at 10:02:36AM +0100, Jens Nellesen wrote:
> >On Wed, Nov 15, 2006 at 09:21:39AM +0100, Jens Nellesen wrote:
> >>
> >> I included the paths
> >>
> >> C:\cygwin\bin AND C:\cygwin\usr\X11R6\bin
> >>
> >> in the path prefix. Now it says "converting into loadable format" all
> >> the time instead of "error during conversion ..." but nothing happens
> >> and also lyx doesn't use the CPU.
> 
> >Note that you may experience several problems using the native version
> >of LyX in a Cygwin environment. See, for example:
> >http://thread.gmane.org/gmane.editors.lyx.devel/67073/focus=67935
> 
> >In this case, most probably the problem is that you have the cygwin
> >version of ImageMagick and the way convert.exe is called by the native
> >LyX confuses it.
> 
> 
> I am a little bit confused about the fact that the native version does 
> rely on cygwin installed.

It really doesn't.

> I tried the below described inclusion of a fig-file on a virgin PC 
> (without cygwin) with the native bundle version of lyx 1.4.3 with 
> ImageMagick and so on but the same error occurs. On my computer I have 
> also the native version of ImageMagick installed.

Note that in case of fig-files LyX checks for the existence of the
fig2dev command before trying to convert them to other graphics
formats. So, if you don't have fig2dev in your PATH, or you forgot
to reconfigure LyX after changing "PATH prefix", you will see the
"error while converting..." message instead of your image.

> >Your example .fig file with only text was working for me with 1.4.3-3,
> >but after installing 1.4.3-5 I see that it crashes for me, too.
> >So this must be a bug introduced in the 1.4.3-5 native version.
> 
> > ...
> 
> >What I don't understand is why you want the native version of LyX given
> >that you have the cygwin version ;-)
> 
> 
> This is because I detected that formulae are not shown correctly in the 
> cygwin-version. The Greek letters and the operators are not drawn for 
> example but shown in plain text e.g. mu, cdot, intop, ...

This is due to a packaging error causing the postinstall script not
being actually run. You can correct this by hand editing (please, use
a cygwin text editor to avoid problems with line endings) the file
"/etc/fonts/local.conf" and by adding there the directory containing
the math fonts. Basically, you should simply add the line

<dir>/usr/share/lyx/fonts</dir>

just before the line

</fontconfig>

After you edit it, the /etc/fonts/local.conf file should appear like this:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file for local customizations -->
<fontconfig>
<!--
  Enable sub-pixel rendering
        <match target="font">
                <test qual="all" name="rgba">
                        <const>unknown</const>
                </test>
                <edit name="rgba" mode="assign"><const>rgb</const></edit>
        </match>
-->
<dir>/usr/share/lyx/fonts</dir>
</fontconfig>


It may not be exactly like that, but the important bit is the line
specifying the math fonts used by LyX.

After editing and saving the /etc/fonts/local.conf file, you should
issue the following command:

fc-cache /usr/share/lyx/fonts

and you are done. This job should normally be done by the post-install
script but it is not due to a packaging error:
http://www.mail-archive.com/[email protected]/msg73006.html

Bo, I think that you should roll out a -5 version to correct this problem
and also to comply with:
http://www.mail-archive.com/[email protected]/msg17223.html

-- 
Enrico

PS: Please, let's keep the discussion on the lyx-users list as it may
help others solving the same problems.

Reply via email to