logo

biblatex에서 참고문헌 정렬 순서 임의로 설정하는 방법 📂Writing

biblatex에서 참고문헌 정렬 순서 임의로 설정하는 방법

Code

In the preamble of the document (\begin{document} section), you can add the \DeclareSortingScheme command to arbitrarily set the sorting order of the references. To set the first sorting criterion as ascending by name, the second criterion as descending by year, and the third criterion as by title, write as follows.

\documentclass{article}

\usepackage[backend=biber,sorting=mycustomscheme]{biblatex}  % BibLaTeX 설정
\DeclareSortingTemplate{mycustomscheme}{
  \sort[direction=ascending]{\field{author}}
  \sort[direction=descending]{\field{year}}
  \sort[direction=descending]{\field{title}}
}

\begin{document}

\begin{refsection}[ref.bib]
\nocite{*}
\printbibliography[heading=none]
\end{refsection}

\end{document}

This time, if you sort by descending by year, descending by title, and ascending by name, it will look as follows.

\documentclass{article}

\usepackage[backend=biber,sorting=mycustomscheme]{biblatex}  % BibLaTeX 설정
\DeclareSortingTemplate{mycustomscheme}{
  \sort[direction=descending]{\field{year}}
  \sort[direction=descending]{\field{title}}
  \sort[direction=ascending]{\field{author}}
}

\begin{document}

\begin{refsection}[ref.bib]
\nocite{*}
\printbibliography[heading=none]
\end{refsection}

\end{document}