0

My tags are:

\documentclass{book}

\usepackage{csquotes} \usepackage[style=numeric,citestyle=numeric,sorting=nyt,sortcites=true,autopunct=true,autolang=hyphen,hyperref=true,abbreviate=false,backref=true,backend=biber]{biblatex} % BibTeX bibliography file \makeatletter \defbibheading{bibempty}{} \setlength{\bibhang}{5\p@}% \setlength{\bibitemsep}{3\p@}% \def\bibfont{\fontsize{8}{9}\selectfont}% \renewcommand{\RNfont}{} \makeatother

\usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @inproceedings{acerbi2017practical, title = {Practical Bayesian optimization for model fitting with Bayesian adaptive direct search}, author = {Acerbi, Luigi and Ma, Wei Ji}, booktitle = {Proceedings of the 31st International Conference on Neural Information Processing Systems}, pages = {1834--1844}, year = {2017}, }

@article{acerbi2014origins, title={On the Origins of Suboptimality in Human Probabilistic Inference}, author={Acerbi, Luigi and Vijayakumar, Sethu and Wolpert, Daniel M.}, journal={PLoS Computational Biology}, volume={10}, number={6}, pages={e1003661}, year={2014}, publisher={Public Library of Science San Francisco, USA} } @book{lucretius2007nature, title={The Nature of Things}, author={Lucretius [Titus Lucretius Carus]}, year={2007}, publisher={Translated by A. E. Stallings. London: Penguin} } }

\end{filecontents*}

\addbibresource{\jobname.bib}

%\DefineBibliographyStrings{english}{% % backrefpage = {test}, % backrefpages= {test}, %} \DeclareFieldFormat[inproceedings, incollection, unpublished]{pages}{#1} % no word 'pages' for articles in the bibliography (print as is)

\begin{document}

\renewcommand*{\intitlepunct}{% \ifentrytype{inproceedings} {\addspace} {\addcolon\space}}

%\renewcommand*{\intitlepunct}{% % \ifentrytype{article} % {\addspace} % {\addspace}}

%%\renewbibmacro{in:}{% %% \setunit{\addcomma\space}% %% \ifentrytype{article} %% {} %% {\printtext{% %% \bibstring{In}\intitlepunct}}} %\renewbibmacro{in:}{% %\ifentrytype{article}{}{\printtext{\intitlepunct}} % \bibstring{in}% % \printunit{\intitlepunct}}

\DeclareFieldFormat[incollection]{title}{\enquote{#1}}

\renewbibmacro*{in:}{% \setunit{\addcomma\space}% \ifentrytype{article} {} {\printtext{% \bibstring{In}\intitlepunct}}}

%\renewcommand*{\intitlepunct}{\addspace}

\cite{acerbi2017practical} and \cite{acerbi2014origins} and \cite{lucretius2007nature}

\clearpage

\printbibliography

\end{document}

Output produced as:

enter image description here

I need to remove the period after (cited on page...). and should place the period before (cited...), e.g., output should be 1834--1844. (cited on page 1)

I tried with backrefpage command, but not able to succeed, please advise

Much thanks to moewe for his excellent support regarding biblatex and biblatex-chicago supports...

moewe
  • 175,683
MadyYuvi
  • 13,693

2 Answers2

1

We can use the approach from How add biblatex backref after period at end of each item in bibliography.

\documentclass{article}

\usepackage{csquotes} \usepackage[ backend=biber, style=numeric, sorting=nyt, sortcites=true, autopunct=true, autolang=hyphen, abbreviate=false, backref=true, ]{biblatex}

\renewcommand*{\bibpagerefpunct}{% \finentrypunct\space}

\renewbibmacro{pageref}{% \iflistundef{pageref} {} {\printtext[parens]{% \ifnumgreater{\value{pageref}}{1} {\bibncpstring{backrefpages}\ppspace} {\bibncpstring{backrefpage}\ppspace}% \printlist[pageref][-\value{listtotal}]{pageref}}% \renewcommand{\finentrypunct}{}}}

\begin{filecontents}{\jobname.bib} @inproceedings{acerbi2017practical, title = {Practical Bayesian optimization for model fitting with Bayesian adaptive direct search}, author = {Acerbi, Luigi and Ma, Wei Ji}, booktitle = {Proceedings of the 31st International Conference on Neural Information Processing Systems}, pages = {1834--1844}, year = {2017}, } @article{acerbi2014origins, title = {On the Origins of Suboptimality in Human Probabilistic Inference}, author = {Acerbi, Luigi and Vijayakumar, Sethu and Wolpert, Daniel M.}, journal = {PLoS Computational Biology}, volume = {10}, number = {6}, pages = {e1003661}, year = {2014}, publisher = {Public Library of Science San Francisco, USA} } @book{lucretius2007nature, title = {The Nature of Things}, author = {Lucretius [Titus Lucretius Carus]}, year = {2007}, publisher = {Translated by A. E. Stallings. London: Penguin} } \end{filecontents} \addbibresource{\jobname.bib}

\begin{document} \cite{acerbi2017practical} and \cite{acerbi2014origins} and \cite{lucretius2007nature}

\printbibliography \end{document}

Luigi Acerbi and Wei Ji Ma. “Practical Bayesian optimization for model fitting with Bayesian adaptive direct search”. In: Proceedings of the 31st International Conference on Neural Information Processing Systems. 2017, pages 1834–1844. (cited on page 1)

moewe
  • 175,683
  • Thanks a lot....Works pretty well, kindly give opinion about my try, please... – MadyYuvi Dec 16 '22 at 16:02
  • 1
    @MadyYuvi The \protect\lowercase in the bibliography strings is not very idiomatic. Using literal . (even in a macro like \fullstop) is usually also not recommended (in a biblatex style context). biblatex has its own punctuation commands like \addperiod. – moewe Dec 16 '22 at 21:22
  • New Year wishes to you and your family too – MadyYuvi Jan 02 '23 at 04:01
  • @MadyYuvi Thank you very much. The same to you and your loved ones. – moewe Jan 02 '23 at 05:40
0

By using the below tags:

\DefineBibliographyStrings{english}{%
  backrefpage = {\protect\lowercase{cited on page}},
  backrefpages= {\protect\lowercase{cited on pages}},
}

\def\fullstop{.} \renewcommand{\bibpagerefpunct}{\fullstop\space} \renewcommand{\finentrypunct}{}

I got the required output and it as:

enter image description here

But, experts (like moewe, egreg, and so many others.) please confirm is the correct method?

MadyYuvi
  • 13,693