On 07/28/2009 07:56 AM, Sam Liddicott wrote:
* Ken wrote, On 28/07/09 12:28:
Hi all,
I have a simple question which I could not find an answer to online to
which I was hoping an experienced LyX user may know the solution.
When I click on "File> Export> PDF (pdflatex)" the .pdf file gets
generated in the same folder as the .lyx file. Would it be possible to
have the .pdf file generated in a sub-directory of this folder--say, a
folder named "./pdf" or "./export"? (I like saving my figures in a
sub-directory and would similarly like the pdfs to automatically be
saved in a subfolder so that only .lyx files are in the main directory
for the project.
Related to the above, when I click on "View> PDF (pdflatex)" the .pdf
file gets generated in a temporary folder. Would if be possible to
have these generated in a sub-directory of the folder where the .lyx
file resides--say, a folder named "./draft"? Would it be possible to
add a date prefix to the filename too? This would be so that I could
save pdf drafts of the file.
How would I change the settings for these? (NB. I am a LyX 1.6.3 user
on Windows XP).
I guess you look at your Lyx preferences File Handling, Converters.
For "Latex (plain) -> DVI" I guess you could change the converter from
"latex" to "c:\bin\latex-dvi.bat $$i $$o"
and your batch file could be:
@echo off
mkdir draft
latex %1 %2
move %2 draft
Or something along those lines; and do likewise your your other converters
The other possibility would be to define a copier for the relevant
format. But this only works for export. The View> stuff will do its
thing in the temporary directory. That's hardcoded.
Richard