全然使い方を理解していないが・・・。なお、以下 upLaTeX
を前提としていて pdfLaTeX
の場合はまた異なるのだろうと思う。
.bib ファイルを
% [1] @article{friedman2001, author = {Jerome H Friedman}, title = {Greedy function approximation: a gradient boosting machine}, journal = {Annals of statistics}, volume = {pages 1189--1232}, year = {2001} } % [2] @article{li2012, author = {Ping Li}, title = {Robust logitboost and adaptive base class (abc) logitboost}, journal = {arXiv preprint arXiv:1203.3491}, year = {2012} }
のような感じにしておいて、.tex 側で
% \PassOptionsToPackage{numbers, compress}{natbib} % 'compress' converts \cite{aa,bb,cc} to [10-12] instead of [10,11,12] \PassOptionsToPackage{numbers}{natbib} \usepackage{natbib} \title{...} ... 文献 \cite{friedman2001} および \cite{li2012} を参照。 ... \begin{small} \bibliographystyle{unsrt} \bibliography{my_references} \end{small}
などとして参照させる。この状態で、Makefile で
$(BBL): $(AUX) bibtex $(AUX:%.aux=%)
などとしておいてコンパイルすると .aux ファイルの情報をもとに bibtex が .bib -> .bbl を作成してくれる。で、.bbl は作り直してもらわなくていいので、
#$(BBL): $(AUX) # bibtex $(AUX:%.aux=%)
でコメントアウトして、
make clean all
すると、できあがった .bbl を取り込んで .pdf ができるように見える。何かこの手順でないと [??]
な .pdf ができるように見えていて、TeX が難しい・・・。よく分からない。