Robert Badzey wrote:
>
> Hi:
>
> So I've been using LyX for awhile now. Great program - wrote my
> dissertation on it in about half the time it would have taken for LatTeX.
>
> So I noticed the new build (1.3.6) for Windows, and figured I'd give it a
> shot. I don't know what the problem is, but it's been giving me fits
> ever since, with a progressive degrading of performance that's a bit
> startling.
>
> First, I couldn't import LaTex files correctly. Always got an error
> message. Tried installing tex2lyx -- no dice. I just got a generic
> error message, and so was never able to track it down beyond that.
>
> Then, just yesterday, LyX apparently lost the ability to generate
> previews
> - no DVI, nothing. The pull-down menu options which existed before
> simply
> vanished. Only output to PDF. Having removed and re-installed, now I
> can't even run it. I get an error message which tells me that it "wasn't
> able to find any layout description" and the program fails to run.
>
> So in the space of three days I've gone from a functional program to one
> which simply won't run at all.
>
> Any ideas/suggestions? This is very worrying and not at all explicable.
Try running it as
lyx -dbg init
from the command line. Here, on a linux machine I get:
$ qlyx13x -dbg init
Setting debug level to init
Debugging `init' (Program initialisation)
Checking whether LyX is run in place... yes
<package>
binary_dir /home/angus/bin/
system_support /home/angus/lyx/13x/lib/
build_support /home/angus/lyx/13x/build-qt/lib/
user_support /home/angus/.lyx/
locale_dir
document_dir /home/angus
temp_dir /tmp
home_dir /home/angus
</package>
Your output will, of course, be different but informative.
LyX works quite hard to determine its system support directory
1. Specify it using the -sysdir command line parameter.
lyx -sysdir 'C:/Program Files/LyX/Resources/lyx'
2. It checks the value of the "LYX_DIR_13x" environment variable.
3. It checks relative to the location of the LyX binary, looking
for a file "chkconfig.ltx" in a directory
OnlyPath(abs_binary)/../Resources/LyX
So, if your LyX binary is found at
C:/Program Files/LyX/bin/lyx.exe
it'll look for chlconfig.ltx at
C:/Program Files/LyX/bin/../Resources/LyX/chkconfig.ltx
This directory should contain everything that LyX needs to function.
$ ls -F /mnt/windowsC/Program\ Files/LyX/Resources/lyx/
bind/ encodings* languages* reLyX/ ui/
chkconfig.ltx* examples/ layouts/ scripts/
xfonts/
clipart/ external_templates* lyx2lyx/ symbols*
configure* help/ lyxrc.defaults* templates/
CREDITS* images/ lyxrc.example* tex/
doc/ kbd/ packages.lst* textclass.lst*
Important files: lyxrc.defaults should contain a whole heap of stuff about
your system, as probed by the configure shell script (same dir). Of
course, for it to run LyX must be able to find a working sh.exe.
I attach my lyxrc.default, for reference.
Note that the path_prefix entry is set by the installer script at install
time.
LyX's layouts should be in the layouts directory.
Hope some of this helps...
--
Angus
# This file has been automatically generated by LyX' lib/configure
# script. It contains default settings that have been determined by
# examining your system. PLEASE DO NOT MODIFY ANYTHING HERE! If you
# want to customize LyX, make a copy of the file LYXDIR/lyxrc as
# ~/.lyx/lyxrc and edit this file instead. Any setting in lyxrc will
# override the values given here.
\Format text txt ASCII A
\Format textparagraph txt ASCII(paragraphs) ""
\Format docbook sgml DocBook B
\Format bmp bmp BMP ""
\Format dvi dvi DVI D
\Format dvi2 dvi DraftDVI ""
\Format eps eps EPS ""
\Format fax "" Fax ""
\Format fig fig XFig ""
\Format agr agr GRACE ""
\Format html html HTML H
\Format gif gif GIF ""
\Format jpg jpg JPG ""
\Format latex tex LaTeX L
\Format linuxdoc sgml LinuxDoc x
\Format lyx lyx LyX ""
\Format literate nw NoWeb N
\Format pdf pdf PDF P
\Format pdf2 pdf "PDF (pdflatex)" F
\Format pdf3 pdf "PDF (dvipdfm)" m
\Format png png PNG ""
\Format ppm ppm PPM ""
\Format pgm pgm PGM ""
\Format pbm pbm PBM ""
\Format ps ps Postscript t
\Format program "" Program ""
\Format tgif obj TGIF ""
\Format tiff tif TIFF ""
\Format word doc Word W
\Format xbm xbm XBM ""
\Format xpm xpm XPM ""
\Format lyxpreview lyxpreview "LyX Preview" ""
\converter latex dvi2 "latex $$i" "latex"
\converter dvi2 dvi "python $$s/scripts/clean_dvi.py $$i $$o" ""
\converter latex pdf2 "pdflatex $$i" "latex"
\converter latex html "none" "originaldir,needaux"
\converter literate latex "none" ""
\converter dvi pdf3 "dvipdfm $$i" ""
\converter dvi ps "dvips -o $$o $$i" ""
\converter ps pdf "ps2pdf13 $$i" ""
\converter ps fax "none" ""
\converter linuxdoc lyx "none" ""
\converter linuxdoc latex "none" ""
\converter linuxdoc dvi "none" ""
\converter linuxdoc html "none" ""
\converter docbook dvi "none" ""
\converter docbook html "none" ""
\converter lyxpreview ppm "python $$s/scripts/lyxpreview2ppm.py" ""
\converter latex lyx "reLyX -f $$i" ""
\converter literate lyx "none" ""
\converter html latex "none" ""
\converter word latex "none" ""
\viewer dvi "yap"
\viewer html "none"
\viewer pdf "none"
\viewer pdf2 "none"
\viewer pdf3 "none"
\viewer ps "none"
\viewer eps "none"
\ascii_roff_command "none"
\chktex_command "none"
\spell_command "none"
\print_spool_command "lpr"
\print_spool_printerprefix "-P"
\font_encoding "T1"
\tex_allows_spaces true
\converter eps pdf "epstopdf --outfile=$$o $$i" ""
\path_prefix
"J:\MinSYS\bin;C:\Python24;C:\MiKTeX\Main\miktex\bin;C:\PROGRA~1\Perl\bin;c:\program
files\Ghostscript 8.33\gs8.33\bin;C:\Program Files\ImageMagick-6.2.3-Q16"