<< | Page list | >>
Troubleshooting your LyX installation
This page is intended for gathering tips about how you can troubleshoot your LyX installation, as well as Problems/Solutions for common troubles.
Lyx has been closed because of an unexpected situation ...
This problem may come into existence if you use LyX on a windows-pc where your windows/application profile is not stored local but on an UNC path (i.e. \\Username\Applications\LyX). One solution I have found is the following:
The problem can arise even if you do not use a UNC path for the windows profile. In this case steps 5-8 are sufficient and can be carried out using the default Program Files location.
Problems with Fonts in Math Environment
Install the latex-xft-fonts package
X server version:
copy all fonts to $HOME/.fonts/ (untar it) and run fc-cache -fv
(as root or with su):
ttmkfdir -o fonts.scale
(as normal user)
xset fp rehash
Debian (Debian users can install the package latex-xft-fonts from testing)
When using Lyx-1.3.x with Qt3.2 currently (2003-09-08) a patch has to be applied, see this mail .
With Debian unstable, using Qt 3.2.1 (2003-10-29) no patch is needed. dpkg-reconfigure fontconfig and dpkg-reconfigure tetex-extra solved the problem for me.
It did not work for me, however upgrading to lyx 1.3.3 in the experimental section helped. Add experimental to /etc/apt/sources.list and try
Still not working? Try older method (below) or other causes:
Latex TTF fonts not available (QT frontend), old method
If you're using Qt, and you want math mode symbols to show up properly (instead of red ERT text), you have to install Qt-compatible fonts. Read the INSTALL file and follow this procedure :
1. ldd lyx | grep fontconfig 2. If the above shows nothing, you do not need to do anything 3. Install latex-ttf-fonts from the RPM (and you're done) or the tarball into /usr/share/fonts/latex-ttf-fonts 4. Run (as root, thought it may work even if not), fc-cache -fv Check that the /usr/share/fonts/latex-ttf-fonts dir was spotted. 5. Restart LyX. Ta-da !
There's a new latex-xft-fonts package that is freely distributable. This should be available soon (in fact you can get it now).
Still not working? Check other possible causes:
Some versions of QT do not handle font properly. Known issues:
Affected QT versions: all
QT does not find latex-xft fonts if your locale is set to certain values
such as ru_RU.
You have a choise between correct math fonts or your locale setting.
For example, type
Still not working? Check other possible causes:
If you want both anti-aliasing and math fonts, you need lyx 1.3.3.
If you do not want (or can't) upgrade, run qtconfig, go to the font tab, and disable the "Enable Anti-aliased fonts" button (you can also do it using kcontrol).
This error often appears on windows running systems When launching Lyx, you've got the error: "no textclasses found"? The way to resolve this problem isthe following:
1/search in your computer the file called textclass.lst (for windows, in your lyx\resources\lyx directory or in user settings\lyx directory)
3/go to your miktex settings options and check if your are able to download a package. Check the proxy options, your firewall and so on)
4/when you have succeeded to download something, then relaunch lyx and ...wait. It cn be a bit long because lyx is asking to miktex to download some missing packages.
6/This workaround doesn't appear to work anymore on windows for lyx 1.5.1-1. Now I just get an error no textclasses found! and it crashes. Possible solution: delete in the \documents and Settings\application folder the Lyx folder and the miketex folder (own risk!).
Possible solution 2:I installed lyx1.5.2 parallel with lyx1.4.3 & got above error in 1.5.2 while 1.4.3 worked fine. I then copied textclass.lst from C:\Documents and Settings\Name_or_All Users\Application Data\lyx1.4.x to C:\Documents and Settings\Name_or_All Users\Application Data\lyx15 Everything then worked fine in lyx 1.5.2
The following error message from Metafont...
METAFONT failed for some reason makepk: METAFONT failed on "cmex10".
...can be resolved by rebuilding the formats:
localhost:~>lyx -dbg List of supported debug flags: 0 none No debugging message 1 info General information 2 init Program initialisation 4 key Keyboard events handling 8 gui GUI handling 16 parser Lyxlex grammer parser 32 lyxrc Configuration files reading 64 kbmap Custom keyboard definition 128 latex LaTeX generation/execution 256 mathed Math editor 512 font Font handling 1024 tclass Textclass files reading 2048 lyxvc Version control 4096 lyxserver External control interface 8192 roff Keep *roff temporary files 16384 action User commands 32768 lyxlex The LyX Lexxer 65536 depend Dependency information 131072 insets LyX Insets 262144 files Files used by LyX 524288 workarea Workarea events 1048576 insettext Insettext/tabular messages 2097152 graphics Graphics conversion and loading 4194303 any All debugging messages