Re: Trouble converting to LaTeX.. error says reLyX -f
On Wed, Oct 27, 2004 at 11:23:59AM -0700, Kevin Martin wrote: ...here is a screen capture of the error message: Could you please stop this nonsense of posting screen shots of _text_ messages? Thank you. Andre'
Re: Trouble converting to LaTeX.. error says reLyX -f
On Wed, Oct 27, 2004 at 11:23:59AM -0700, Kevin Martin wrote: > ...here is a screen capture of the error message: Could you please stop this nonsense of posting screen shots of _text_ messages? Thank you. Andre'
Re: Trouble converting to LaTeX.. error says reLyX -f
Kevin Martin wrote: Hi, I am trying to convert from lyx to LaTeX and back again. I keep getting this error message. I've tried it with multiple files... I also tried reinstalling the program. The same error shows up when importing or exporting... otherwise the program seems to work fine. I looked at the bug list but nothing matched directly as far as I could tell. Thanks very much for your help, reLyX is written in perl. Do you have perl installed? What happens if you run reLyX on your file from the command line? I don't know if you have the unix man page for reLyX installed and readable on your machine, so I have appended it below. HTH, Angus RELYX(1) User Contributed Perl Documentation RELYX(1) NAME reLyX - translate well-behaved LaTeX into LyX SYNOPSIS The simplest way to use reLyX is via the File-Import command in LyX. (This option is available starting with version 1.0.0.) That runs reLyX on the given file and loads the resulting file into LyX. You should try that first, and call it from the command line only if you need to use more complicated options. reLyX [ -c textclass ] [ -df ] [ -o outputdir ] [-n] [ -r renv1[,renv2...]] [ -s sfile1[,sfile2...]] inputfile reLyX -p -c textclass [ -df ] [ -o outputdir ] [ -r renv1[,renv2...]] [ -s sfile1[,sfile2...]] inputfiles reLyX -h OPTIONS -c Class. By default, when reLyX sees a \documentclass{foo} command, it creates a file of textclass foo and reads the LyX layout file for that class (something like /usr/local/share/lyx/layouts/foo.layout OR HOME/.lyx/layouts/foo.layout). Use -c to declare a different textclass (and read a different layout file). -d Debug. By default, reLyX gives sparse output and deletes the temporary files which were created during translation. Using the -d flag will create much more output (both to stdout and stderr) and leave the temporary files around. -f Force. reLyX will not run if the .lyx file it would generate already exists Use the -f option (carefully) to clobber any existing files. -h Help. Print out usage information and quit. -n Noweb. Translate a noweb (aka literate programming) file. This should be (almost?) equivalent to running noweb2lyx foo.tex foo.lyx. This option requires the -c option. -o Output directory. With this option, all temporary files and LyX output files (for the given input file, for any included files, or for any file fragments given with the -p option) will be put into outputdir. Otherwise, for each file dir/foo.tex, the temporary files and the LyX output file will be created in dir. This can be useful if a file includes files from other directories which you want to consolidate in one directory, or if you don?t have write permission on the directory the LaTeX files are in. -p Partial file. The input files are LaTeX fragments, with no preamble matter or \begin{document} commands. This option requires the -c option, since there are no \documentclass commands in the files reLyX is translating. When using this option, you can translate more than one file, as long as all files are the same class. The LyX file created by reLyX can be included in an existing LyX file using the Include LyX File command from LyX?s Insert menu. -r Regular environments (see the section on Syntax Files). If you give more than one environment, separate them with commas (not spaces). You?ll probably need to quote the environment list, especially if it has asterisk environments (foo*) in it. If you use this command often, considering creating a personal syntax file. -s Syntax files. Input (one or more quoted, comma-separated) syntax files to read in addition to the default. (see the section on Syntax Files for details). DESCRIPTION Introduction reLyX will create a LyX file dir/foo.lyx from the LaTeX file dir/foo.tex (unless the -o option is used). Suffixes .tex, .ltx and .latex are supported. If inputfile does not exist and does not have one of these suffixes, reLyX will try to translate inputfile.tex. (This is similar to the behavior of LaTeX.) The purpose of reLyX is to translate well-behaved LaTeX2e into LyX. If your LaTeX file doesn?t compile---or if you do weird things, like redefining standard LaTex commands---it may choke. LaTeX209 will often be translated correctly, but it?s not guaranteed. reLyX has some bugs and lacks a few features. However, its main goals
Re: Trouble converting to LaTeX.. error says reLyX -f
Kevin Martin wrote: > Hi, > I am trying to convert from lyx to LaTeX and back again. I keep > getting this error message. I've tried it with multiple files... I > also tried reinstalling the program. The same error shows up when > importing or exporting... otherwise the program seems to work fine. > I looked at the bug list but nothing matched directly as far as I > could tell. > > Thanks very much for your help, reLyX is written in perl. Do you have perl installed? What happens if you run reLyX on your file from the command line? I don't know if you have the unix man page for reLyX installed and readable on your machine, so I have appended it below. HTH, Angus RELYX(1) User Contributed Perl Documentation RELYX(1) NAME reLyX - translate well-behaved LaTeX into LyX SYNOPSIS The simplest way to use reLyX is via the File->Import command in LyX. (This option is available starting with version 1.0.0.) That runs reLyX on the given file and loads the resulting file into LyX. You should try that first, and call it from the command line only if you need to use more complicated options. reLyX [ -c textclass ] [ -df ] [ -o outputdir ] [-n] [ -r renv1[,renv2...]] [ -s sfile1[,sfile2...]] inputfile reLyX -p -c textclass [ -df ] [ -o outputdir ] [ -r renv1[,renv2...]] [ -s sfile1[,sfile2...]] inputfiles reLyX -h OPTIONS -c Class. By default, when reLyX sees a \documentclass{foo} command, it creates a file of textclass "foo" and reads the LyX layout file for that class (something like /usr/local/share/lyx/layouts/foo.layout OR HOME/.lyx/layouts/foo.layout). Use -c to declare a different textclass (and read a different layout file). -d Debug. By default, reLyX gives sparse output and deletes the temporary files which were created during translation. Using the -d flag will create much more output (both to stdout and stderr) and leave the temporary files around. -f Force. reLyX will not run if the .lyx file it would generate already exists Use the -f option (carefully) to clobber any existing files. -h Help. Print out usage information and quit. -n Noweb. Translate a noweb (aka literate programming) file. This should be (almost?) equivalent to running "noweb2lyx foo.tex foo.lyx". This option requires the -c option. -o Output directory. With this option, all temporary files and LyX output files (for the given input file, for any included files, or for any file fragments given with the -p option) will be put into outputdir. Otherwise, for each file dir/foo.tex, the temporary files and the LyX output file will be created in dir. This can be useful if a file includes files from other directories which you want to consolidate in one directory, or if you don?t have write permission on the directory the LaTeX files are in. -p Partial file. The input files are LaTeX fragments, with no preamble matter or \begin{document} commands. This option requires the -c option, since there are no \documentclass commands in the files reLyX is translating. When using this option, you can translate more than one file, as long as all files are the same class. The LyX file created by reLyX can be included in an existing LyX file using the "Include LyX File" command from LyX?s Insert menu. -r Regular environments (see the section on Syntax Files). If you give more than one environment, separate them with commas (not spaces). You?ll probably need to quote the environment list, especially if it has asterisk environments (foo*) in it. If you use this command often, considering creating a personal syntax file. -s Syntax files. Input (one or more quoted, comma-separated) syntax files to read in addition to the default. (see the section on Syntax Files for details). DESCRIPTION Introduction reLyX will create a LyX file dir/foo.lyx from the LaTeX file dir/foo.tex (unless the -o option is used). Suffixes .tex, .ltx and .latex are supported. If inputfile does not exist and does not have one of these suffixes, reLyX will try to translate inputfile.tex. (This is similar to the behavior of LaTeX.) The purpose of reLyX is to translate well-behaved LaTeX2e into LyX. If your LaTeX file doesn?t compile---or if you do weird things, like redefining standard LaTex commands---it may choke. LaTeX209 will often be translated correctly, but it?s not guaranteed. reLyX has some bugs and lacks a few features. However, its