引用の並べ替え

引用の並べ替え

私の論文では、すべての参照が出現順に並べられる一方で、URL リンクが最後に並べられるように、参考文献を並べる必要があります。

.bst ファイルを使用するとどうなりますか?


実は、いいえ。たとえば、次のようなよだれかけが必要です。

[1] 記事 [2] 記事 [3] URL

URL がテキスト内の記事の前にある場合でも同様です。

答え1

biblatex/biber のカテゴリを使用すると、これを簡単に実行できます。

\documentclass{scrartcl}

% some bib entries for test purposes:
\begin{filecontents}{bibfile.bib}
@ARTICLE{art1,
  TITLE = {Test 1},
  AUTHOR = {Doe, John},
  JOURNAL = {Journal of unreproducible Results},
  YEAR = {2015},
}

@ARTICLE{art2,
  TITLE = {Test 2},
  AUTHOR = {Doe, Jane},
  JOURNAL = {Journal of unreproducible Results},
  YEAR = {2015},
}

@ONLINE{web1,
  TITLE = {Google},
  URL = {www.google.com},
}

@ONLINE{web2,
  TITLE = {Wikipedia},
  URL = {en.wikipedia.org},
}
\end{filecontents}

% sorting = none means same order as the appearance in the document
% biber is the modern backend for biblatex, replacement for bibtex    
\usepackage[backend=biber, sorting=none]{biblatex}
\addbibresource{bibfile.bib}

% create a new category for web sources
\DeclareBibliographyCategory{web}
% add the web entries to the category
\addtocategory{web}{web1,web2}

\begin{document}

\section{Test}
See \cite{art1}, \cite{web1}, \cite{art2}, and \cite{web2}!

% one bibliography for the non-web soruces
\printbibliography[notcategory=web, title={Print References}]
% and another one for the websources
\printbibliography[category=web, title={Internet References}]

\end{document}

latex document.tex、でコンパイルします。ここでbiber document.bcflatex document.tex latex は選択したコンパイラです。

結果: 結果

関連情報