On 09/09/2011 02:57 PM, Tommaso Cucinotta wrote: > Il 09/09/2011 19:45, Tommaso Cucinotta ha scritto: >> Il 09/09/2011 14:31, Jean-Marc Lasgouttes ha scritto: >>> >>> Perosnally, I'd prefer to avoid this syntax of 'everything until the >>> end of line', and stick with the good old >>> -x "buffer-export latex \"/path/to/file name with space.tex\"" >>> which LyX should be able to handle transparently with a few changes. >> >> How would you like to use that from the mini-command-buffer ? >> Something like this ? > > I also checked the front-end part by Guenter, and I have to say we had > that potential issue > that > > lyx -o path -e latex > > would work, but > > lyx -e latex -o path > > would not. > > So, in the end, I thought the best way to support this, given how the > command-line parser is currently structured, was through a dedicated > separate switch with 2 arguments: > > lyx -E latex /path/dest.tex > > or > > lyx --export-to latex /path/to/dest.tex > > This is implemented in the attached patch. Can I commit to trunk, or > do you have further comments ? > I have a worry here about what happens to associated files. E.g., if you export a master document, where do the exported children go, and with what names? This makes me wonder whether all we should really allow the user to provide is a directory, and then LyX should export everything to that directory, or under it, or whatever makes sense.
Richard