Mark,

If you have several files to import, maybe the command line tex2lyx utility can be more convenient.
It lives somewhere inside the Lyx installation folder (on OSX: /Applications/LyX.app/Contents/MacOS/tex2lyx).

Here is the help page I get when I do tex2lyx -h :

Usage: tex2lyx [options] infile.tex [outfile.lyx]
Options:
    -c textclass       Declare the textclass.
    -e encoding        Set the default encoding (latex name).
    -f                 Force overwrite of .lyx files.
    -help              Print this message and quit.
    -n                 translate a noweb (aka literate programming) file.
    -roundtrip         re-export created .lyx file infile.lyx.lyx to infile.lyx.tex.
    -s syntaxfile      read additional syntax file.
    -sysdir SYSDIR     Set system directory to SYSDIR.
                       Default: /Applications/LyX.app/Contents/Resources/
    -userdir USERDIR   Set user directory to USERDIR.
                       Default: /Users/myildi/Library/Application Support/LyX-2.0/
    -version           Summarize version and build info.
Paths:
    The program searches for the files "encodings", "lyxmodules.lst",
    "textclass.lst", "syntax.default", and "unicodesymbols", first in
    "USERDIR", then in "SYSDIR". The subdirectories "USERDIR/layouts"
    and "SYSDIR/layouts" are searched for layout and module files.
Check the tex2lyx man page for more details.


26 février 2013 12:46
OK - I have more information on my problemŠ
If I close down Lyx and start up again I can import the files- AS LONG AS
I DO NOT OPEN A NEW FILE. If I try and open a new file and import into
that it fails again as I have described.However if I just directly import
then it works fine. I now have to close down Lyx each time and open it
again I need to input a file as I can only do this -- i.e. Import once
each time.-- otherwise I get the flash glance of my folder and return to
the newly opened empty file.
Thanks
Mark





26 février 2013 12:14
Hi Mark,

LyX does try to save after importing:
http://www.lyx.org/trac/ticket/8236

But I'm not sure that's the problem. Is it a problem that it tries to
save? Is the folder write-protected? Do you get an error?

In general, it's difficult to import non-simple LaTeX into LyX. There
have been a lot of improvements to LaTeX importing recently. If you
happen to be using Ubuntu, you can try the newest development version:
http://wiki.lyx.org/LyX/LyXOnUbuntu#toc3
(If I had to guess, though, I do not think this would solve your problem).

Best,

Scott

--
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV 
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

Bureau : E-331

Mail: yildi-at-u-bordeaux4.fr
Web: yildizoglu.info


Reply via email to