>>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:
Georg> John Levon wrote: >>> Then tex2lyx needs a new option to specify the output file 'or >>> send its output to filename.lyx when translating filename.tex. Georg> The attached patch implements that in a reLyX compatible way. Georg> Lars, OK to apply? It still goes to standard output if there is only one parameter, right? Do we really want that? What about translating file.tex to file.lyx? (and have - as special name for std output) There are some reLyX options that may be useful too: -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. and maybe (but not sure): -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. It seems that tex2lyx is already able to do -p internally, so it should not be too difficult to implement. Also Georg, the file symbols.default is now in lib/, and only tex2lyx uses it. You are therefore free to do what you want with it. In particular, it seems that reLyXre and reLyXmt could go away. JMarc