Today, I switched to biblatex for bibliography management instead of rsc/natbib (For some layout). Now there are a couple of issues I would like to resolve, but I do not know how to.
- Using
style=chem-rsc, I got citations in brackets while I would like square brackets. Settingcitestyle=numeric-compworks for the text but not for the publication list. - Some custom font for backref, but using
backrefpage = {\it\footnotesize Cited on page}do not set the font for the actual quoted page number (See MWE). - I wanted underlined doi, so I used the solution proposed in one of my previous questions (Underlined doi with rsc package), but now the doi goes outsite the frame.
- I am looking for a way to stip the final page of the quoted article, e.g. get
"I. Hung and [...] 204, 256, DOI:... "
, instead of
"I. Hung and [...] 204, 256-265, DOI:... "
Here is the MWE:
\documentclass[twoside,10pt,a4paper]{report}
\usepackage{fontspec}
\usepackage{soul}
\usepackage{filecontents}
\usepackage[top=3cm,bottom=3cm,left=4cm,right=4cm,showframe]{geometry}
\usepackage[linktoc=all,
hidelinks,
bookmarksnumbered,
xetex]{hyperref}
\usepackage[hyperref=true,
url=true,
doi=true,
natbib=true,
backref=true,
backrefstyle=three,
backend=biber,
refsegment=chapter,
citestyle=numeric-comp,
style=chem-rsc,
maxcitenames=5,
date=year,
block=none,
maxbibnames=100]{biblatex}
%%%%%%
\DefineBibliographyStrings{english}{%
backrefpage = {\it\footnotesize Cited on page}, % for single page number
backrefpages = {\it\footnotesize Cited on pages} % for multiple page numbers
}
%%%%%% doi souligné
\newcommand*\doiformat[1]{\ul{#1}}
\DeclareFieldFormat{doi}{%
\mkbibacro{DOI}\addcolon\space
\ifhyperref
{\href{http://dx.doi.org/#1}{\doiformat{#1}}}
{\doiformat{#1}}}
\begin{filecontents}{\jobname.bib}
@Article{hung2010practical,
Title = {On the practical aspects of recording wideline QCPMG NMR spectra},
Author = {Hung, Ivan and Gan, Zhehong},
Journal = {J. Magn. Reson.},
Year = {2010},
Number = {2},
Pages = {256--265},
Volume = {204},
Doi = {10.1016/j.jmr.2010.03.001},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Some text.\cite{hung2010practical}
\printbibliography
\end{document}