如何根据文本中的引用顺序对参考书目进行排序

如何根据文本中的引用顺序对参考书目进行排序

我正在尝试根据文本中的引用顺序对参考书目进行排序。目前,参考书目顺序可能基于作者姓名。因此,我文本中的第一个引用是2,我文中的第二次引用是 [3],第三次引用是1

我希望引用括号中的数字与文本中的引用顺序相对应。第一个引用必须是1第二次引证2第三个可以是1如果它与第一个是同一来源。

我还注意到我的参考书目没有编号“Hans-Joachim Streitberger 博士,Artur Goldschmidt 教授。BASF Handbuch Lackiertechnik。2014。doi: https://doi.org/10.1515/9783748600398。. 如何在我的参考书目中添加编号 (1. 汉斯博士...)

\documentclass[ 12pt,  ngerman,  onehalfspacing,  nolistspacing, 
parskip,  nohyperref,  consistentlayout,  ]{PSIThesis} 

\addbibresource{literatur_BA.bib}

\usepackage[backend=biber, style=numeric-comp,
bibstyle=numeric]{biblatex}

\begin{document}

\newgeometry{   inner=2cm, % Inner margin   outer=2cm, % Outer margin
    marginparwidth=0cm,     marginparsep=0mm,   bindingoffset=.5cm, % Binding
offset  top=1.5cm, % Top margin     bottom=2.5cm, % Bottom margin,
    includehead,    includefoot     % showframe, % Uncomment to show how the
type block is set on the page }

\addchap{Literaturverzeichnis}

\printbibliography[heading=none]

\end{document}

我现在的书目

第一个引用必须是 1

在这里我要添加我的 .bib 文件:

@Book{Epoxidharze,   author    = {Michael Dornbusch und Ulrich Christ
und Rob Rasing},   year      = {2015},   booktitle = {Epoxidharze},  
doi       = {https://doi.org/10.1515/9783748600138},   file      =
{:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Dornbusch,
Christ et al 2015 - Epoxidharze.pdf:PDF}, }

@Book{Fink2013,   author    = {Johannes Karl Fink},   publisher =
{Elsevier},   year      = {2013},   abstract  = {Reactive Polymers
Fundamentals and Applications, Second Edition (2013) 95-153.
doi:10.1016/B978-1-4557-3149-7.00003-6},   booktitle = {Reactive
Polymers Fundamentals and Applications},   doi       =
{10.1016/b978-1-4557-3149-7.00003-6},   file      =
{:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Fink 2013 -
Epoxy Resins.pdf:PDF},   keywords  = {Monomers, Epoxides, Epoxy
resins, Antiplasticizers, Graphene, Photoinitiators, Epoxy systems,
Polymers, Epoxy-polyester resins, Optical resins},   pages     =
{95--153}, }

@Book{Gibson2017,   author    = {Geoff Gibson},   publisher =
{Elsevier},   year      = {2017},   abstract  = {Brydson's Plastics
Materials 773-797. 10.1016/B978-0-323-35824-8.00027-X},   booktitle =
{Brydson{\textquotesingle}s Plastics Materials},   doi       =
{10.1016/b978-0-323-35824-8.00027-x},   file      =
{:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Gibson 2017
- Epoxy Resins.pdf:PDF},   keywords  = {Acid anhydride, Amine, Bisphenol A, Composite materials, DGEBA, Epoxy, Oxirane},   pages    
= {773--797}, }

@Book{Lackeigenschaften,   author    = {Georg Meichsner und Thomas G.
Mezger und Jörg Schröder},   year      = {2016},   booktitle =
{Lackeigenschaften messen und steuern},   doi       =
{https://doi.org/10.1515/9783748600190},   file      =
{:D\:/Bachelorarbeit/Literatur/Bücher
Verwenden/Lackeigenschaften messen und steuern.pdf:PDF}, }

@Book{Lackformulierung,   author    = {Bodo Müller, Ulrich Poth},  
year      = {2017},   booktitle = {Bodo Müller Ulrich Poth},   doi    
= {https://doi.org/10.1515/9783748600206},   file      = {:D\:/Bachelorarbeit/Literatur/Bücher
Verwenden/Lackformulierung und Lackrezeptur.pdf:PDF}, }

@Book{Lackrohstoffkunde,   author    = {Paolo Nanetti},   year      =
{2017},   booktitle = {Lackrohstoffkunde},   doi       =
{https://doi.org/10.1515/9783748600213},   file      =
{:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Nanetti 2017
- Lackrohstoffkunde.pdf:PDF}, }

@Book{Handbuch,   author    = {Prof. Dr. Artur Goldschmidt, Dr.
Hans-Joachim Streitberger},   year      = {2014},   booktitle = {BASF
Handbuch Lackiertechnik},   doi       =
{https://doi.org/10.1515/9783748600398},   file      =
{:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Artur
Goldschmidt, Hans-Joachim Streitberger - BASF Handbuch Lackiertechnik]
BASF Handbuch.pdf:PDF}, }

@Book{Additivekompakt,   author    = {Bodo Müller},   year      =
{2009},   booktitle = {Additive kompakt},   doi       =
{https://doi.org/10.1515/9783748600114},   file      =
{:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Müller 2009
- Additive kompakt.pdf:PDF}, }

@Book{Koltzenburg,   author = {Sebastian Koltzenburg und Michael
Maskos und Oskar Nuyken},   file   = {:D\:/Bachelorarbeit
/Literatur/Bücher Verwenden/Koltzenburg, Maskos et al 2014 -
Polymere Synthese.pdf:PDF}, }

@Comment{jabref-meta: databaseType:bibtex;}

我找到了“设置参考书目”部分。此部分是否可以删除参考书目中的数字?

\setlength{\bibitemsep}{.3\baselineskip plus .05\baselineskip minus
.05\baselineskip} \newlength{\bibparskip}\setlength{\bibparskip}{0pt}
\let\oldthebibliography\thebibliography
\renewcommand\thebibliography[1]{%   \oldthebibliography{#1}%  
\setlength{\parskip}{\bibitemsep}%  
\setlength{\itemsep}{\bibparskip}% }

% allow much more liberal line breaks in URLs
\setcounter{biburllcpenalty}{7000} \setcounter{biburlucpenalty}{8000}

% adjust space between key and entry, default is 2\labelsep
\setlength{\biblabelsep}{1\labelsep}

% configures indentation of bibentries
\defbibenvironment{bibliography}   {\list
     {\hspace{0.5\labelalphawidth}\bfseries\printtext[labelalphawidth]{%
        \printfield{prefixnumber}%
        \printfield{labelalpha}%
        \printfield{extraalpha}}}
     {\setlength{\labelsep}{\biblabelsep}%
      \setlength{\leftmargin}{0.5\labelalphawidth}%
      \setlength{\itemsep}{1.5\bibitemsep}%
      \setlength{\parsep}{\bibparsep}}%
      \renewcommand*{\makelabel}[1]{##1\hss}}   {\endlist}   {\item}

答案1

(评论太长,因此作为答案发布)

您的书目条目中存在一些重大错误。您确实需要修复它们——除了担心按引文标注的出现顺序对书目条目进行排序或不排序之外。(要修复后一个问题,只需sorting=none在加载biblatex包时添加选项。@CarlaTeX 的回答中已经指出了这一点。)

例如,相当多的字段author使用und而不是and作为关键字来分隔作者。此外,至少有两处字段使用逗号代替关键字and

违规字段包括:

author    = {Michael Dornbusch und Ulrich Christ und Rob Rasing},   
author    = {Georg Meichsner und Thomas G. Mezger und Jörg Schröder},   
author    = {Bodo Müller, Ulrich Poth},
author    = {Sebastian Koltzenburg und Michael  Maskos und Oskar Nuyken}, 

天哪,

author    = {Prof. Dr. Artur Goldschmidt, Dr. Hans-Joachim Streitberger},

作者的学术头衔并不在任何情况下,属于该author领域。句号。无一例外。

这些字段应该是

author    = {Michael Dornbusch and Ulrich Christ and Rob Rasing},   
author    = {Georg Meichsner and Thomas G. Mezger and Jörg Schröder},   
author    = {Bodo Müller and Ulrich Poth},
author    = {Sebastian Koltzenburg and Michael Maskos and Oskar Nuyken}, 
author    = {Artur Goldschmidt and Hans-Joachim Streitberger},

如果你不相信我的话:如果你坚持设置author = {Michael Dornbusch und Ulrich Christ und Rob Rasing},作者字段,它将被排版为

在此处输入图片描述

相反,author = {Michael Dornbusch and Ulrich Christ and Rob Rasing},你会得到

在此处输入图片描述

同样地,author = {Bodo Müller, Ulrich Poth}产生

在此处输入图片描述

author = {Bodo Müller and Ulrich Poth},产生

在此处输入图片描述


还有另一个主要问题:对于类型的条目@book,应在字段中给出书名title不是在该领域booktitle

应用这些修复是不是可选的

在此处输入图片描述

\documentclass{scrbook} %{PSIThesis} 

\begin{filecontents}[overwrite]{literatur_BA.bib}
@Book{Epoxidharze,   
   author    = {Michael Dornbusch and Ulrich Christ and Rob Rasing},   
   year      = {2015},   
   booktitle = {Epoxidharze},  
   doi       = {https://doi.org/10.1515/9783748600138},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Dornbusch, Christ et al 2015 - Epoxidharze.pdf:PDF}, 
}
@Book{Fink2013,   
   author    = {Johannes Karl Fink},   
   publisher = {Elsevier},   
   year      = {2013},   
   abstract  = {Reactive Polymers Fundamentals and Applications, Second Edition (2013) 95-153. doi:10.1016/B978-1-4557-3149-7.00003-6},   
   title     = {Reactive Polymers Fundamentals and Applications},   
   doi       = {10.1016/b978-1-4557-3149-7.00003-6},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Fink 2013 -
Epoxy Resins.pdf:PDF},   
   keywords  = {Monomers, Epoxides, Epoxy
resins, Antiplasticizers, Graphene, Photoinitiators, Epoxy systems,
Polymers, Epoxy-polyester resins, Optical resins},   
   pages     = {95--153}, 
}
@Book{Gibson2017,   
   author    = {Geoff Gibson},   
   publisher = {Elsevier},   
   year      = {2017},   
   abstract  = {Brydson's Plastics Materials 773-797. 10.1016/B978-0-323-35824-8.00027-X},  
   title     = {Brydson's Plastics Materials},   
   doi       = {10.1016/b978-0-323-35824-8.00027-x},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Gibson 2017
- Epoxy Resins.pdf:PDF},   
   keywords  = {Acid anhydride, Amine, Bisphenol A, Composite materials, DGEBA, Epoxy, Oxirane},   
   pages     = {773--797}, 
}
@Book{Lackeigenschaften,   
   author    = {Georg Meichsner and Thomas G. Mezger and Jörg Schröder},   
   year      = {2016},   
   title     = {Lackeigenschaften messen und steuern},   
   doi       = {https://doi.org/10.1515/9783748600190},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher
Verwenden/Lackeigenschaften messen und steuern.pdf:PDF}, 
}
@Book{Lackformulierung,   
   author    = {Bodo Müller and Ulrich Poth},  
   year      = {2017},      
   doi       = {https://doi.org/10.1515/9783748600206},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Lackformulierung und Lackrezeptur.pdf:PDF}, 
}
@Book{Lackrohstoffkunde,   
   author    = {Paolo Nanetti},   
   year      = {2017},   
   title     = {Lackrohstoffkunde},   
   doi       = {https://doi.org/10.1515/9783748600213},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Nanetti 2017
- Lackrohstoffkunde.pdf:PDF}, 
}
@Book{Handbuch,   
   author    = {Artur Goldschmidt and Hans-Joachim Streitberger},   
   year      = {2014},   
   title     = {BASF Handbuch Lackiertechnik},   
   doi       = {https://doi.org/10.1515/9783748600398},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Artur
Goldschmidt, Hans-Joachim Streitberger - BASF Handbuch Lackiertechnik]
BASF Handbuch.pdf:PDF}, 
}
@Book{Additivekompakt,   
   author    = {Bodo Müller},   
   year      = {2009},   
   title     = {Additive kompakt},   
   doi       = {https://doi.org/10.1515/9783748600114},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Müller 2009
- Additive kompakt.pdf:PDF}, 
}
@Book{Koltzenburg,   
   author = {Sebastian Koltzenburg and Michael Maskos and Oskar Nuyken},   
   year = 2014,
   file   = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Koltzenburg, Maskos et al 2014 - Polymere Synthese.pdf:PDF}, 
}
\end{filecontents}

\usepackage[T1]{fontenc}
\usepackage[backend=biber, 
            style=numeric-comp, 
            bibstyle=numeric,
            sorting=none
           ]{biblatex}
\addbibresource{literatur_BA.bib}

\usepackage{xurl}

\usepackage[ngerman]{babel}

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

答案2

我使用了PSIThesis您链接sorting=none中的选项biblatex,得到了以下信息:

\documentclass[ 12pt,  ngerman,  onehalfspacing,  nolistspacing, 
parskip,  nohyperref,  consistentlayout,  ]{PSIThesis} 

\usepackage[backend=biber, style=numeric-comp,sorting=none,
bibstyle=numeric]{biblatex}
\usepackage{csquotes}

\setlength{\bibitemsep}{.3\baselineskip plus .05\baselineskip minus .05\baselineskip} \newlength{\bibparskip}\setlength{\bibparskip}{0pt} \let\oldthebibliography\thebibliography 
\renewcommand\thebibliography[1]{% 
    \oldthebibliography{#1}%
    \setlength{\parskip}{\bibitemsep}%
    \setlength{\itemsep}{\bibparskip}% 
    }

% allow much more liberal line breaks in URLs 
\setcounter{biburllcpenalty}{7000} \setcounter{biburlucpenalty}{8000}

% adjust space between key and entry, default is 2\labelsep 
\setlength{\biblabelsep}{1\labelsep}

% configures indentation of bibentries 
%\defbibenvironment{bibliography} {\list {\hspace{0.5\labelalphawidth}\bfseries\printtext[labelalphawidth]{% 
%\printfield{prefixnumber}% 
%\printfield{labelalpha}% 
%\printfield{extraalpha}}} {\setlength{\labelsep}{\biblabelsep}% 
%\setlength{\leftmargin}{0.5\labelalphawidth}% 
%\setlength{\itemsep}{1.5\bibitemsep}% 
%\setlength{\parsep}{\bibparsep}}% 
%\renewcommand*{\makelabel}[1]{##1\hss}
%} {\endlist} {\item}

\addbibresource{literatur_BA.bib}

\begin{document}

\newgeometry{   inner=2cm, % Inner margin   outer=2cm, % Outer margin
    marginparwidth=0cm,     marginparsep=0mm,   bindingoffset=.5cm, % Binding offset 
    top=1.5cm, % Top margin     
    bottom=2.5cm, % Bottom margin,
    includehead,    includefoot     % showframe, % Uncomment to show how the type block is set on the page 
}

first citation \cite{Epoxidharze}
second citation \cite{Fink2013} 
third citation (first reapeated) \cite{Epoxidharze}
fourth citation \cite{Gibson2017}

\addchap{Literaturverzeichnis}

\printbibliography[heading=none]

\end{document}

引用:

在此处输入图片描述

参考书目:

在此处输入图片描述

我使用的是literatur_BA.bib(我按照 Mico 指出的进行了更正):

@Book{Epoxidharze,   
   author    = {Michael Dornbusch and Ulrich Christ and Rob Rasing},   
   year      = {2015},   
   booktitle = {Epoxidharze},  
   doi       = {https://doi.org/10.1515/9783748600138},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Dornbusch, Christ et al 2015 - Epoxidharze.pdf:PDF}, 
}
@Book{Fink2013,   
   author    = {Johannes Karl Fink},   
   publisher = {Elsevier},   
   year      = {2013},   
   abstract  = {Reactive Polymers Fundamentals and Applications, Second Edition (2013) 95-153. doi:10.1016/B978-1-4557-3149-7.00003-6},   
   title     = {Reactive Polymers Fundamentals and Applications},   
   doi       = {10.1016/b978-1-4557-3149-7.00003-6},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Fink 2013 -
Epoxy Resins.pdf:PDF},   
   keywords  = {Monomers, Epoxides, Epoxy
resins, Antiplasticizers, Graphene, Photoinitiators, Epoxy systems,
Polymers, Epoxy-polyester resins, Optical resins},   
   pages     = {95--153}, 
}
@Book{Gibson2017,   
   author    = {Geoff Gibson},   
   publisher = {Elsevier},   
   year      = {2017},   
   abstract  = {Brydson's Plastics Materials 773-797. 10.1016/B978-0-323-35824-8.00027-X},  
   title     = {Brydson's Plastics Materials},   
   doi       = {10.1016/b978-0-323-35824-8.00027-x},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Gibson 2017
- Epoxy Resins.pdf:PDF},   
   keywords  = {Acid anhydride, Amine, Bisphenol A, Composite materials, DGEBA, Epoxy, Oxirane},   
   pages     = {773--797}, 
}
@Book{Lackeigenschaften,   
   author    = {Georg Meichsner and Thomas G. Mezger and Jörg Schröder},   
   year      = {2016},   
   title     = {Lackeigenschaften messen und steuern},   
   doi       = {https://doi.org/10.1515/9783748600190},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher
Verwenden/Lackeigenschaften messen und steuern.pdf:PDF}, 
}
@Book{Lackformulierung,   
   author    = {Bodo Müller and Ulrich Poth},  
   year      = {2017},      
   doi       = {https://doi.org/10.1515/9783748600206},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Lackformulierung und Lackrezeptur.pdf:PDF}, 
}
@Book{Lackrohstoffkunde,   
   author    = {Paolo Nanetti},   
   year      = {2017},   
   title     = {Lackrohstoffkunde},   
   doi       = {https://doi.org/10.1515/9783748600213},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Nanetti 2017
- Lackrohstoffkunde.pdf:PDF}, 
}
@Book{Handbuch,   
   author    = {Artur Goldschmidt and Hans-Joachim Streitberger},   
   year      = {2014},   
   title     = {BASF Handbuch Lackiertechnik},   
   doi       = {https://doi.org/10.1515/9783748600398},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Artur
Goldschmidt, Hans-Joachim Streitberger - BASF Handbuch Lackiertechnik]
BASF Handbuch.pdf:PDF}, 
}
@Book{Additivekompakt,   
   author    = {Bodo Müller},   
   year      = {2009},   
   title     = {Additive kompakt},   
   doi       = {https://doi.org/10.1515/9783748600114},   
   file      = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Müller 2009
- Additive kompakt.pdf:PDF}, 
}
@Book{Koltzenburg,   
   author = {Sebastian Koltzenburg and Michael Maskos and Oskar Nuyken},   
   year = 2014,
   file   = {:D\:/Bachelorarbeit/Literatur/Bücher Verwenden/Koltzenburg, Maskos et al 2014 - Polymere Synthese.pdf:PDF}, 
}

至于第二个问题,缺少编号的原因是这段代码:

% configures indentation of bibentries
\defbibenvironment{bibliography}   {\list
     {\hspace{0.5\labelalphawidth}\bfseries\printtext[labelalphawidth]{%

    \printfield{prefixnumber}%
    \printfield{labelalpha}%
    \printfield{extraalpha}}}
 {\setlength{\labelsep}{\biblabelsep}%
  \setlength{\leftmargin}{0.5\labelalphawidth}%
  \setlength{\itemsep}{1.5\bibitemsep}%
  \setlength{\parsep}{\bibparsep}}%
  \renewcommand*{\makelabel}[1]{##1\hss}}   {\endlist}   {\item}

由于您复制粘贴了它而不知道它的作用(不是一个好主意)并且您无法说出您需要什么来代替它,所以只需将其删除。

相关内容