filltex icon indicating copy to clipboard operation
filltex copied to clipboard

Inconvenience with several aux-files

Open nmiekley opened this issue 5 years ago • 1 comments

As far as I can see, fillbib only searches for citations in the main-aux file, i.e. not in the aux-files created by include. To avoid having to run it by hand for every aux-file, the following bash script may be helpful. It takes the name of the root-file (without tex) as parameter.

#!/bin/bash
awk '/\@input{.*.aux}/{ print $0}' $1.aux | while read line
do
  line="$(cut -d'{'  -f2 <<< $line)"
  line="$(cut -d'.'  -f1 <<< $line)"
  fillbib $line $1.bib 
done
fillbib $1 

nmiekley avatar Apr 29 '19 09:04 nmiekley

Thanks!

dgerosa avatar Jul 08 '20 17:07 dgerosa