Сортировка цитат

Сортировка цитат

В моей диссертации мне нужно отсортировать ссылки таким образом, чтобы все ссылки были отсортированы в порядке их появления, а 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.bcf, latex document.tex где latex — компилятор по вашему выбору.

Результат: результат

Связанный контент