Hi,
I frequently need to do a complete compilation, i.e. latex, bibtex, latex, latex to update the references in the document - Using existing bundles, latex+view, bibdesk, latex+view, latex+view I need to click away upcoming error messages and Texniscope several times throughout such a procedure. Has anyone a more elegant solution ? I have to admit that my scripting abilities are not sufficient to make my own bundle that could do that.
Christof
On 27/1/2006, at 15:50, Christof Janssen wrote:
I frequently need to do a complete compilation, i.e. latex, bibtex, latex, latex to update the references in the document - Using existing bundles, latex+view, bibdesk, latex+view, latex+view I need to click away upcoming error messages and Texniscope several times throughout such a procedure. Has anyone a more elegant solution ?
From LaTeX -> Help (environment variables):
TM_LATEX_COMPILER
There are two main values for this command pdflatex or latexmk.pl. pdflatex runs the normal pdflatex command against the current file, or TM_LATEX_MASTER sending the output of one pass to the html output window. latexmk.pl is essentially like ant (or make) for latex. It will run pdflatex, bibtex, and/or makeindex as many times as needed to get a clean pdf file free from missing references, bibliography entries or index entries.
Hi, Does this help: i) Go to Window > Show Bundle Editor and choose Latex on the left pane. ii) Highlight "Run Bibtex" and click on the middle button which stands on the lower left hand corner of the window. This looks like double plus sign "++" which will create a copy of the bundle "Run Bibtex". iii) Click on "Run Bibtex copy" bundle which you have created above and write the following code in the right hand pane: #---------------------------------- "# Latex-Bibtex-Latex-Latex-dvipdf-show file # Variables V=${TM_LATEX_VIEWER:=preview} M=${TM_LATEX_MASTER:=$TM_FILEPATH} DIR=`dirname "$M"` FILE=`basename -s.tex "$M"` DVI="${FILE%.tex}.dvi" PDF="${FILE%.tex}.pdf" CWD="`pwd`/"
# Switch to the right directory. cd "$TM_PROJECT_DIRECTORY" cd "$DIR"
latex "$FILE" bibtex "$FILE"|pre latex "$FILE" latex "$FILE" dvipdf "$DVI"
# View... open -a "$V" "$PDF" #----------------------------------
iv) Rename the bundle and run it on your file. See what happens. Success, Guray.
Hi,
thanks for looking into it. Your script is running "almost" perfect. Unfortunately, I get a pdf error when I include the pdfsync package. If I don't, the run is latex bibtex latex latex without errors/ problems. Otherwise I get the following error (from the log file):
pdfTeX error (\pdfsavepos): used while \pdfoutput is not set. @PDFSYNC ->\relax \ifPDFSYNCOK \pdfsavepos \immediate \write \PDFPOS {l\spa... l.40 \begin{document} No pages of output. Transcript written on rkarticle.log.
Christof
Am 1. Mrz 2006 um 14:47 schrieb Guray Erkol:
Hi, Does this help: i) Go to Window > Show Bundle Editor and choose Latex on the left pane. ii) Highlight "Run Bibtex" and click on the middle button which stands on the lower left hand corner of the window. This looks like double plus sign "++" which will create a copy of the bundle "Run Bibtex". iii) Click on "Run Bibtex copy" bundle which you have created above and write the following code in the right hand pane: #---------------------------------- "# Latex-Bibtex-Latex-Latex-dvipdf-show file # Variables V=${TM_LATEX_VIEWER:=preview} M=${TM_LATEX_MASTER:=$TM_FILEPATH} DIR=`dirname "$M"` FILE=`basename -s.tex "$M"` DVI="${FILE%.tex}.dvi" PDF="${FILE%.tex}.pdf" CWD="`pwd`/"
# Switch to the right directory. cd "$TM_PROJECT_DIRECTORY" cd "$DIR"
latex "$FILE" bibtex "$FILE"|pre latex "$FILE" latex "$FILE" dvipdf "$DVI"
# View... open -a "$V" "$PDF" #----------------------------------
iv) Rename the bundle and run it on your file. See what happens. Success, Guray.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate