Re: [MiKTeX] pdftex options and Texify options
MiKTeX source code moved to GitHub
Brought to you by:
csc
From: George N. W. I. <gn...@gm...> - 2008-05-07 16:25:38
|
On Tue, May 6, 2008 at 4:17 PM, John Doe <jd...@gm...> wrote: > Hi list, > > It will be silly, but I cannot figure the following tricks. > > Question 1 > pdflatex : I constantly recompile the same file with option pdfoutput=1, and > latex is asking to close the previous file viewed in the Reader. How to > force an overwrite of the .pdf file and force the viewer to open it? switch to a *X OS -- these OS's maintain a reference count for open files, so the file can be "deleted", but any app that is currently using the file will still see the old contents until the file is "reloaded". This leads to new issues: do you monitor the open file to see if it has changed so you can load a new version, or do you require a manual "refresh" action. When you "reload", do you try to give the same view (page, magnification, etc.) as when the previous version was loaded? Do you support having old and new versions both visible at the same time? > Question 2 > I did set texify option --tex-option=--output-directory=outfiles, but > --run-viewer wont open it from that directory? But it is there, and done. > It tries to open a file named mylatexsourcefile.pdf as my input file > mylatexsourcefile.tex. You are passing an option to the tex engine -- you would need to supply corresponding instructions to the viewer, assuming the viewer has such capabilities. On *X it is generally simple to wrap a binary app in a shell script that provides such frills, e.g.: mytexviewer: cd $1 acroread $2 > Question 3 > I have problems setting a bat file for my texify options. On the following > .bat file, Miktex complains that it cannot find the idx file, because the > output file is different or in another directory? > texify --tex-option=--record-package-usages=packages_textblock.txt > --tex-option=--job-name=ThisIsbn_txt --mkidx-option=ThisIsbn_txt.idx > --tex-option=--output-directory=outfiles > --tex-option=--aux-directory=auxfiles --run-viewer mylatexsourcefile.tex Maybe you should change the batch file to either create the output in the source directory and move it to <outfiles> after texify is done, or change to the output directory and use "-I" to pass the input directory to texify, so all outputs are in <outfiles>. Your .bat should probably be converted to .cmd for Win32. > Must I rather give the usual latex makeindex latex succession? > >From the man pages I did not find my answers. you may want to look at the texify (aka MiKTeX compiler driver) source: mcd.cpp. Much attention has been devoted to dealing with the intricacies of TeX compilations (running bibtex, making sure (La)TeX is run enough times, etc.), but not so much to what you are looking for. -- George N. White III <aa...@ch...> Head of St. Margarets Bay, Nova Scotia |