공개 목록을 사용한 역번호 매기기

공개 목록을 사용한 역번호 매기기

내 출판물의 번호가 매겨진 목록을 게시하기 위해 "publist"라는 BibLaTex 확장 프로그램을 사용하고 있습니다. 항목에 오름차순으로 번호를 매깁니다(아래 그림 참조).

DPF

번호를 역순으로 지정하려면 어떻게 해야 하나요? 따라서 Smith 2020에 할당된 번호 [4]부터 Smith 2017에 할당된 [1]까지입니다.

그러면 현재 내 논문의 총 개수가 즉시 표시됩니다.

패키지 문서에는 그러한 옵션이 설명되어 있지 않습니다. 그런데, 소스코드를 변경하면 쉽게 할 수 있을지 궁금합니다.출판인패키지.

편집 요청에 따라 TeX 파일의 소스 코드를 추가합니다.

\documentclass[11pt]{article}


\usepackage[bibstyle=publist,marginyear=true]{biblatex} 
\omitname[John][]{Smith}
\plauthorname[John][]{Smyth}
\addbibresource{publist.bib} 


\begin{document}
\title{List of publications} 
\author{John Smith}
\date{\today}
\maketitle

\nocite{*} 
\printbibliography[heading=none]
\end{document}  

publist.bib 파일:

@phdthesis{Smith:2017,
    Author = {John Smith},
    Publisher = {TheGruiter},
    School = {Hogwarts school of magic},
    Title = {Investigation on interesting topics},
    Year = {2017}}

@book{Smith:2019b,
    Address = {Blondon},
    Author = {John Smith},
    Pages = {23--45},
    Publisher = {TheGruiter},
    Title = {Funny book},
    Year = {2019}}

@article{Smith:2019a,
    Author = {John Smith},
    Journal = {Journal of interesting papers},
    Number = {1},
    Pages = {23--45},
    Title = {More or less interesting paper},
    Volume = {18},
    Year = {2019}}

@article{Smith:2020,
    Author = {John Smith},
    Journal = {Journal of interesting papers},
    Number = {3},
    Pages = {23--45},
    Title = {Very interesting new paper},
    Volume = {19},
    Year = {2020}}

답변1

대부분의 의도와 목적을 위해biblatex: 역번호 매기기(즉, 카운트다운)여기서도 일해야 해.

biblatex의 자체 버전이 있으므로 로 변경 \mkbibdesc하면 됩니다 .\newrobustcmd\renewrobustcmd

필터링과 여러 참고문헌을 과도하게 사용하는 경우 이 코드는 원하는 대로 작동하지 않을 수 있습니다.biblatex: 역번호 매기기(즉, 카운트다운)).

\documentclass[11pt]{article}


\usepackage[bibstyle=publist,marginyear=true]{biblatex} 
\omitname[John][]{Smith}
\plauthorname[John][]{Smyth}

% Count total number of entries in each refsection
\AtDataInput{%
  \csnumgdef{entrycount:\therefsection}{%
    \csuse{entrycount:\therefsection}+1}}

% Print the labelnumber as the total number of entries in the
% current refsection, minus the actual labelnumber, plus one
\DeclareFieldFormat{labelnumber}{\mkbibdesc{#1}}    
\renewrobustcmd*{\mkbibdesc}[1]{%
  \number\numexpr\csuse{entrycount:\therefsection}+1-#1\relax}


\begin{filecontents}{\jobname.bib}
@phdthesis{Smith:2017,
    Author = {John Smith},
    Publisher = {TheGruiter},
    School = {Hogwarts school of magic},
    Title = {Investigation on interesting topics},
    Year = {2017}}

@book{Smith:2019b,
    Address = {Blondon},
    Author = {John Smith},
    Pages = {23--45},
    Publisher = {TheGruiter},
    Title = {Funny book},
    Year = {2019}}

@article{Smith:2019a,
    Author = {John Smith},
    Journal = {Journal of interesting papers},
    Number = {1},
    Pages = {23--45},
    Title = {More or less interesting paper},
    Volume = {18},
    Year = {2019}}

@article{Smith:2020,
    Author = {John Smith},
    Journal = {Journal of interesting papers},
    Number = {3},
    Pages = {23--45},
    Title = {Very interesting new paper},
    Volume = {19},
    Year = {2020}}
\end{filecontents}
\addbibresource{\jobname.bib}


\begin{document}
\title{List of publications} 
\author{John Smith}
\date{\today}
\maketitle

\nocite{*} 
\printbibliography[heading=none]
\end{document}

참고문헌 카운트다운.

이는 출판 목록에서 널리 사용되는 기능인 것으로 보이므로 다음 페이지에서 개발자에게 직접 제안할 수 있습니다.https://github.com/jspitz/biblatex-publist/issues.

관련 정보