
제목에서 언급했듯이 페이지 번호를 이전 스타일로 만들고 페이지 매김("p." 및 "pp.")을 유지하는 방법이 있습니까?
이것은 내가 지금까지 한 일이다:
내 MWE 코드:
% !TEX program = xelatex
\documentclass{article}
\usepackage{filecontents}
\usepackage{hyperref}
\begin{filecontents}{mybib.bib}
@Article{Cormos2012,
Title = {Integrated assessment of IGCC power generation technology with carbon capture and storage (CCS)},
Author = {Cormos, C.},
Journal = {Energy},
Year = {2012},
Number = {1},
Pages = {434-445},
Volume = {42},
ISBN = {0360-5442},
Publisher = {Elsevier Ltd},
Url = {http://dx.doi.org/10.1016/j.energy.2012.03.025}
}
@Article{Mumford2015,
Title = {Review of solvent based carbon-dioxide capture technologies},
Author = {Mumford, Kathryn a. and Wu, Yue and Smith, Kathryn H. and Stevens, Geoffrey W.},
Journal = {Frontiers of Chemical Science and Engineering},
Year = {2015},
Number = {2},
Pages = {125-141},
Volume = {9},
Doi = {10.1007/s11705-015-1514-6},
ISBN = {2095-0179},
Keywords = {absorption,carbon capture,carbon dioxide,large scale,solvent},
Url = {http://link.springer.com/10.1007/s11705-015-1514-6}
}
\end{filecontents}
\usepackage[%
backend = biber,
style = numeric-comp,
firstinits = true,
isbn = false,
doi = true,
url = false,
maxcitenames = 4,
maxbibnames = 4
]{biblatex}
\DeclareFieldFormat*{pages}{\mkpageprefix[pagination]{\oldstylenums{#1}}}
\addbibresource{mybib.bib}
\begin{document}
Here comes the 1st citation\autocite{Cormos2012} and the 2nd one\autocite{Mumford2015}.
\printbibliography
\end{document}
보시다시피 첫 번째 [1]의 페이지 번호는 전혀 변경되지 않았지만 두 번째 페이지 번호는 성공적으로 변경되었습니다. 둘 다 "p"를 잃습니다. 그리고 "pp." 내가 지키려고 하는 것.
죄송합니다. 저는 초보이고 이미지를 게시하는 데 "평판" 문제가 있습니다.
답변1
페이지 필드가 숫자인지 테스트할 때 \NumCheckSetup
무시할 수 있습니다 . \oldstylenums
(또한보십시오Biblatex 인쇄 안됨 “p.” 페이지 번호가 일부 문자로 끝나는 경우,단일 대시가 포함된 복합 페이지 번호그리고\DeclareNumChars 및 페이지 필드의 명령)
가장 안전한 해결책은 아마도
\newcommand{\myosn}[1]{\ifpages{#1}{\oldstylenums{#1}}{#1}}
\DeclareFieldFormat*{pages}{\mkpageprefix[pagination]{\myosn{#1}}}
\NumCheckSetup{\renewcommand{\myosn}[1]{#1}}
또는 무시할 수만 있습니다.\oldstylenums
\DeclareFieldFormat*{pages}{\mkpageprefix[pagination]{\oldstylenums{#1}}}
\NumCheckSetup{\def\oldstylenums#1{#1}}
또 다른 빠른 해결책은 \oldstylenums
다음을 담당하는 내부 매크로를 추가하는 것입니다.\mkpageprefix
\makeatletter
\protected\long\def\blx@mkpageprefix#1[#2]#3{%
\ifnumeral{#3}
{\bibstring{#1}\ppspace}
{\ifnumerals{#3}
{\bibstring{#1s}\ppspace}
{\def\pno{\bibstring{#1}}%
\def\ppno{\bibstring{#1s}}}}%
\blx@mkpageprefix@i[#2]{\oldstylenums{#3}}}
\makeatother