I have followed the instructions of @Paulo Cereda to configure texlipse (LaTeX in eclipse) to use my batch file when running. But in the process, I have lost forward and inverse search even if the configuration does use my script successfully. QUESTION 1: How do I re-enable searching and still keep my configuration? (I am using the inbuilt viewer pdf4eclipse)
The instructions I followed are here (texlipse builder script configuration.). I also tried adding -syntex=1
under Arguments (see picture)
I am using eclipse in windows 7 with MiKTeX 2.9. here is my configuration
Its been suggested that using arara can work. But I have many files that are \included {}
and at some point I loop through them to make a chapter by chapter bibliography as you can see from my script (thesis.bat) the contents of which are also pasted. So I am not sure I know how to implement this.
QUESTION 2: In arara, how would I handle the loop for %%X in (*.aux) do bibtex "%%X"
and this line (x2 is nls, x3=nlo) makeindex.exe %x2% -s nomencl.ist -o %x3%
. See code below
I have tried arara by pasting the following at the top of my main file
% arara: pdflatex: {synctex: yes, action: nonstopmode}
% arara: pdflatex
% arara: bibtex
% arara: pdflatex
% arara: pdflatex
% arara: makeindex
% arara: nomencl
% arara: pdflatex
and adding % arara: bibtex
to the top of each \include{file}
but i get
QUESTION 4: What is wrong then? Also, will arara keep my forward and inverse search if i successfuly fix this?
Contents of my arara batch script: thesis.bat
@echo off
arara F00_thesis
Contents of my batch script: thesis.bat
:: Run
:: [path_to_bat_file] inp.tex inp.nlo inp.nls
@echo off
rem fake-command /u %1 rem /p %2 rem allows script to take inputs if rem is removed at start
cd c:\DATA\Thesis\ThesisReport
set tx=F00_thesis
set x1=%tx%.tex
set x2=%tx%.nlo
set x3=%tx%.nls
set pd=%tx%.pdf
:: Change Drive and to File Directory
%~d1
cd %1
:: Run Cleanup
:: call:cleanup
taskkill /im "acrobat.exe" /f
pdflatex %x1%
pdflatex %x1%
rem bibtex %tx%
for %%X in (*.aux) do bibtex "%%X"
pdflatex %x1%
pdflatex %x1%
makeindex.exe %x2% -s nomencl.ist -o %x3%
pdflatex %x1%
:: start "sumatraPDF" "C:\Program Files (x86)\SumatraPDF\sumatraPDF.exe" %pd% -reuse-instance
:: START "" %pd%
:: START "C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe" %pd% -reuse-instance
:: http://nimal.info/blog/2010/latex-on-windows-with-miktex-and-notepad/
:cleanup
REM del *.log
REM del *.dvi
REM del *.aux
REM del *.bbl
REM del *.blg
REM del *.brf
REM del *.out
goto:eof
The simplest solution for me would be the one that lets me keep my script and still have the sync between .tex and pdf
% arara: makeindex
line , the run is successful (although i really need makeindex to be included). However even with{synctex: yes, action: nonstopmode}
, there is still no forward or inverse search.:)
I need some time to grasp the whole question, I'll come back to it soon.:)