根据我的引文和参考书目,我有一个问题:
它是如何打印在文本中的:A[18] 而不是 A^[18],A[18][20][19] 也不会导致 A^[18-20]
和
[18] J. Hua, X. Li, Y.-S. Li, L. Xu, Y.-X. Li,《应用聚合物科学杂志》2007,104,3517-3522。
[19] ZM Hudson, DJ Lunn, MA Winnik, I. Manners,《自然-通讯》2014, 5, 3372。
[20] K. Ishihara, M. Mu, T. Konno, Y. Inoue, K. Fukazawa,《生物材料科学杂志》。《聚合物版》2017 年,28,884–899。
\RequirePackage{fix-cm} %do I need that
\documentclass[pagesize=pdftex, paper=a4, parskip, fontsize=12pt, toc=bibnumbered, captions=tableheading, captions=nooneline, BCOR=5mm, DIV=calc, headsepline]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{scrhack}
\usepackage[ngerman, english]{babel}
\usepackage[backend=biber,style=chem-angew,citestyle=numeric-comp,sortcites= true]{biblatex}
\usepackage{csquotes}
\usepackage[a4paper]{geometry}
\geometry{top=2.5cm}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[percent]{overpic}
\usepackage{wrapfig}
\usepackage{overpic}
\usepackage{caption}
\usepackage{epstopdf}
\usepackage[version=4]{mhchem}
\usepackage{upgreek}
\usepackage{chemmacros}
\usepackage{textgreek}
\chemsetup{greek=textgreek}
\chemsetup{modules=all} \chemsetup[acid-base]{p-style=slanted}
\usepackage{textcomp}
\usepackage{siunitx}
\sisetup{separate-uncertainty-units=repeat,use-xspace=true, sticky-per=true, range-units=single, range-phrase={\,--\,}, list-units=single, per-mode=power-positive-first, multi-part-units=single, product-units=single}
\DeclareSIUnit{\angstrom}{\textup{\AA}}
\usepackage{booktabs}
\usepackage{array}
\renewcommand*{\arraystretch}{1.2}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{threeparttable}
\usepackage{xspace} \usepackage{setspace} \onehalfspacing
\usepackage{scrlayer-scrpage}
\usepackage[printonlyused]{acronym}
\usepackage{chemstyle}
\usepackage{hyperref}
\hypersetup{hidelinks}
\addbibresource{Latex_phD_Literature.bib}
\begin{document}
\begin{titlepage}
\begin{center}
Questions: How to use latex correctly?
\end{center}
\end{titlepage}
\thispagestyle{empty}
\newpage
\clearpage
\pagenumbering{arabic}
I use planty of usepackages and it might be a few to old once. But I lost the track now.
Now to my question:
I try to use citation like that \cite{Hua.2007} and \cite{Hudson.2014} and \cite{Ishihara.2017} as supercite for all references in brackets.
How do I do that? Also if I use multiply references their is no numeric-comp function in the text.
\printbibliography %should be printed as followed with chem=angew
\end{document}
答案1
biblatex
有一个\supercite
命令,但没有括号,所以我们必须稍微重新定义它。
我们也设定为我们\autocite
发行\supercite
。
\documentclass{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman, english]{babel}
\usepackage{csquotes}
\usepackage[
backend=biber,
style=chem-angew,
citestyle=numeric-comp,
sortcites=true,
autocite=superscript,
]{biblatex}
\newcommand*{\mkbibbracketsuperscript}[1]{%
\mkbibsuperscript{%
\mkbibbrackets{#1}}}
\DeclareCiteCommand{\supercite}[\mkbibbracketsuperscript]
{\usebibmacro{cite:init}%
\let\multicitedelim=\supercitedelim
\let\multicitesubentrydelim=\supercitesubentrydelim
\let\multiciterangedelim=\superciterangedelim
\let\multicitesubentryrangedelim=\supercitesubentryrangedelim
\iffieldundef{prenote}
{}
{\BibliographyWarning{Ignoring prenote argument}}%
\iffieldundef{postnote}
{}
{\BibliographyWarning{Ignoring postnote argument}}}
{\usebibmacro{citeindex}%
\usebibmacro{cite:comp}}
{}
{\usebibmacro{cite:dump}}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem\autocite{sigfridsson}
ipsum\autocite{worman}
dolor\autocite{nussbaum}
sit\autocite{sigfridsson,worman,nussbaum}
\printbibliography
\end{document}