filltex
filltex copied to clipboard
Inconvenience with several aux-files
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
Thanks!