On Fri, Oct 25, 2002 at 07:54:00AM -0700, Max Bian wrote:
> 
> And the final step:  Make a script (eg. name it mylatex) to wrap around
> "latex" command.
> 
> ===================================
> #!/bin/bash
> /usr/bin/latex $1
> /usr/bin/latex $1
> for file in *.aux;
> do
>  file=`echo $file |sed -e s/\.aux$//`;
>  /usr/bin/bibtex $file;
> done;
> /usr/bin/latex $1
> =================================
> You must go to Edit/Preferences/Conversion/Converters/ and change the
> Latex->DVI converter to "mylatex $$i".

With LyX >= 1.2.0 the above is not necessary (and in fact, this hack is 
inferior to the solution below).
Just add
  \def\@bibunitname{\jobname.\the\@bibunitauxcnt}
to the preamble.

Reply via email to