Peter Hovmand wrote:

> I've installed cygwin/XFree86, Miktex, and Lyx on my Windows XP system. I
> can start Lyx from a desktop icon without any problem, open files, save
> them etc. What I can't do is preview or export the files. I go to View and
> there are no menu options for DVI, HTML, etc. The first option under View
> is for Update, and the submenu only gives me an option of ASCII and LaTeX.
> Peter

That probably means that lyx has been unable to find the external programs 
that do this conversion/viewing.

You have a script 'configure' in /usr/local/share/lyx (or equivalent) that 
is run by LyX when you press Edit->Reconfigure. It generates files
lyxrc.defaults, packages.lst, textclass.lst. I've appended my own 
lyxrc.defaults. Yours should look similar. In particular you should find 
lines like
\converter latex dvi "latex $$i" "latex"
meaning the program 'latex' is used to convert from latex format to dvi 
format. If you don't have such a line, then the configure script has been 
unable to find your 'latex' or 'latex2e' executable. Is it in you PATH 
environment variable?

$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/angus/bin
$ which latex
/usr/bin/latex

Can you run 'configure' from a console. The accompanying messages may be 
illuminating.


Good luck,
Angus


$ cat lyxrc.defaults
# 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 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 dvi "latex $$i" "latex"
\converter latex pdf2 "pdflatex $$i" "latex"
\converter latex html "latex2html -no_subdir -split 0 -show_section_numbers 
$$i" "originaldir,needaux"
\converter literate latex "none" ""
\converter dvi pdf3 "none" ""
\converter dvi ps "dvips -o $$o $$i" ""
\converter ps pdf "ps2pdf -dCompatibilityLevel=1.3 $$i" ""
\converter ps fax "kdeprintfax $$i" ""
\converter linuxdoc lyx "sgml2lyx $$i" ""
\converter linuxdoc latex "sgml2latex $$i" ""
\converter linuxdoc dvi "sgml2latex -o dvi $$i" ""
\converter linuxdoc html "sgml2html $$i" ""
\converter docbook dvi "db2dvi $$i" ""
\converter docbook html "db2html $$i" ""
\converter lyxpreview ppm "lyxpreview2bitmap.sh" ""

\converter latex lyx "none" ""
\converter literate lyx "none" ""
\converter html latex "none" ""
\converter word latex "none" ""

\viewer dvi "xdvi"
\viewer html "mozilla file://$$p$$i"
\viewer pdf "acroread"
\viewer ps "none -swap"
\viewer eps "none"


\ps_command "gs"
\ascii_roff_command "groff -t -Tlatin1 $$FName"
\chktex_command "none"
\spell_command "ispell"
\print_spool_command "lp"
\print_spool_printerprefix "-d "
\font_encoding "T1"
\converter tiff eps "tiff2ps $$i > $$o" ""
\converter tgif eps "tgif -print -eps $$i" ""
\converter tgif pdf "tgif -print -pdf $$i" ""
\converter tgif png "tgif -print -png $$i" ""
\converter tgif ppm "tgif -print -stdout -xpm $$i | xpmtoppm > $$o" ""
\converter eps pdf "epstopdf --outfile=$$o $$i" ""


Reply via email to