dgerosa / filltex

Automatic queries to ADS and INSPIRE databases to fill LaTex bibliography
https://davidegerosa.com/filltex
MIT License
21 stars 6 forks source link

Inconvenience with several aux-files #12

Open nmiekley opened 5 years ago

nmiekley commented 5 years ago

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 
dgerosa commented 4 years ago

Thanks!