使用 Biblatex 打印整个参考书目时将“idem”替换为作者姓名

使用 Biblatex 打印整个参考书目时将“idem”替换为作者姓名

我需要打印一篇论文中的所有参考书目,并且我使用\printbibliography[]Biblatex 来打印。然而,在打印参考书目时,biblatex 会将重复作者的名字替换为同上。然而,论文格式不鼓励我们使用同上,而是使用作者姓名作为完整参考。

以下是我现在正在使用的代码段。

\usepackage[
    style=geschichtsfrkl,   
    backend=biber,
    sorting=nyt]{biblatex}
\ExecuteBibliographyOptions{citeinit=false, mitjahr=false}
\addbibresource{bibtex_files/CompleteBibTex_corr.bib}
\addbibresource{bibtex_files/Bib-Footnotes_corr3.bib}

为了打印参考书目,我使用\citereset如下方法:

\begin{refsection}
\citereset
\nocite{*}
\printbibliography[heading=none,
notkeyword=droit-suisse,
notkeyword=droit-EU,
notkeyword=droit-americain,
notkeyword=international-law,
notkeyword=french-law,
notkeyword=droit-EU-jur,
type=book]
\end{refsection}

以下是该问题的快照: 在此处输入图片描述

我不知道我哪里做错了,因为同上不会被替换。任何帮助都非常好。提前致谢!

请参阅以下附件中的 MWE:

\documentclass[
    french,
    10 pt,                  % fontsize 
    openright
]{report}              % these-droit class
\usepackage[utf8]{inputenc}
\usepackage[style=geschichtsfrkl,backend=biber,sorting=nyt]{biblatex}
\addbibresource{\jobname.bib}
\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@article{baeriswyl_wirksamkeit_2008,
    Author = {Baeriswyl, Bruno},
    Journal = {Digma - Zeitschrift f{\"u}r Datenrecht und Informationssicherheit},
    Language = {German},
    Note = {OCLC: 716915160},
    Pages = {66--69},
    Shorttitle = {Die {Wirksamkeit} der {Datenschutzbeh{\"o}rden}},
    Title = {Die {Wirksamkeit} der {Datenschutzbeh{\"o}rden}: {Effizienz} und {Effektivit{\"a}t} der {Datenschutzbeh{\"o}rden} sind {Schl{\"u}sselfaktoren} eines wirkungsvollen {Datenschutzes}},
    Volume = {82008},
    Year = {2008}}

@article{baeriswyl_anonymisierung_2008,
    Author = {Baeriswyl, Bruno},
    Journal = {Digma - Zeitschrift f{\"u}r Datenrecht und Informationssicherheit},
    Language = {German},
    Note = {OCLC: 716890817},
    Pages = {14--17},
    Shorttitle = {Anonymisierung von genetischen {Daten}?},
    Title = {Anonymisierung von genetischen {Daten}?: (datenschutz)rechtliche {Aspekte} der {Anonymisierung} bei {Biobanken}},
    Volume = {82008},
    Year = {2008}}

@article{baeriswyl_wirksamkeit_2008,
    Author = {Baeriswyl, Bruno},
    Journal = {Digma - Zeitschrift f{\"u}r Datenrecht und Informationssicherheit},
    Language = {German},
    Note = {OCLC: 716915160},
    Pages = {66--69},
    Shorttitle = {Die {Wirksamkeit} der {Datenschutzbeh{\"o}rden}},
    Title = {Die {Wirksamkeit} der {Datenschutzbeh{\"o}rden}: {Effizienz} und {Effektivit{\"a}t} der {Datenschutzbeh{\"o}rden} sind {Schl{\"u}sselfaktoren} eines wirkungsvollen {Datenschutzes}},
    Volume = {82008},
    Year = {2008}}
\end{filecontents}

\begin{document}

\chapter*{}
\begin{refsection}
\citereset
\nocite{*}
\printbibliography[heading=Bibliographie, title=Bibliographie, type=article]
\end{refsection}

\end{document}

以下是类文件 these_Eva.cls:

\NeedsTeXFormat{LaTeX2e}

% This is an adaptatin of the BFH template by bernl1
% Author: dhs1 

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}}

\ProcessOptions

\LoadClass{memoir}


% Load Standard Packages:
%---------------------------------------------------------------------------
\usepackage{stix}
\usepackage[T1]{fontenc}                                            %codage de sortie adapté au français
%\usepackage[standard-baselineskips]{cmbright}
\usepackage{babel}                                              % language
%\usepackage{inputenc}
%\usepackage{csquotes}                                                  % for use of biblatex
\usepackage{textcomp}                                                   % additional symbols
\usepackage{enumitem}                                                   % for intertext in lists
%\usepackage{fancyhdr}                                                  % simple manipulation of header and footer 
\usepackage{etoolbox}                                                   % color manipulation of header and footer
\usepackage{graphicx}                                                   % integration of images
\usepackage{float}                                                      % floating objects
\usepackage{subcaption}
%\usepackage{caption}                                                   % for captions of figures and tables --> not needed with memoir class
\usepackage{booktabs}                                                   % package for nicer tables
\usepackage{tocvsec2}                                                   % provides means of controlling the sectional numbering
%\usepackage{titlesec}                                      % 
\usepackage{shorttoc}
\usepackage[hyphens]{url}
%[Himanshu] added [hyphens] in the above line.

%---------------------------------------------------------------------------
% Set up page dimension
%---------------------------------------------------------------------------
\setstocksize{225mm}{155mm}
\settrimmedsize{\stockheight}{\stockwidth}{*}
\setlrmarginsandblock{40mm}{20mm}{*}                %\setlrmarginsandblock{⟨spine⟩}{⟨edge⟩}{⟨ratio⟩}
\setulmarginsandblock{23mm}{25mm}{*}            % --> because headers and footers are included   \setulmarginsandblock{⟨upper⟩}{⟨lower⟩}{⟨ratio⟩}
%%% Alternatively: %%%
%\settypeblocksize{*}{115mm}{1.512}         % \settypeblocksize{⟨height⟩}{⟨width⟩}{⟨ratio⟩}
%\setlrmargins{20mm}{*}{*}
%\setulmargins{30mm}{*}{*}

%----------%% is defined accordingly to word-Vorlage from Schultess: -----------------
\setheaderspaces{12.25mm}{*}{1}                 % \setheaderspaces{⟨headdrop⟩}{⟨headsep⟩}{⟨ratio⟩} (above and below the header)
\setheadfoot{13pt}{12.5mm}
\setmarginnotes{6mm}{8mm}{10pt} 
\sideparmargin{outer}   

%\setfootins{⟨length for normal⟩}{⟨length for minipage⟩}
%When footnotes are added to the text block they are added \skip\footins below the text. Since this is a skip it usually needs special syntax to change it. Instead we have provided an interface to set it. 5 The default sizes are \bigskipamount.

%--------------------------------------------------------------------------
% Fonts and text size, headers and footers content
%--------------------------------------------------------------------------

\usepackage{libertine}
\usepackage{libertinust1math}
\usepackage[T1]{fontenc}


\footmarkstyle{#1.\hfill}
\setlength{\footmarkwidth}{1.8em}
\setlength{\footmarksep}{0em}

\rmfamily %Roman family

\pagestyle{ruled}
\aliaspagestyle{chapter}{ruled}             % header and footers d'une page chapitre sont comme dans le pagestyle défini. (Sans ça on aurait le style "plain")


%-------------------------- Headings -----------------------
% part:
% chapter:

      \makechapterstyle{lae}{ 
      \clearpage
       \renewcommand{\chapnamefont}{\sffamily\Huge\bfseries}
     \renewcommand{\chapnumfont}{\sffamily\Huge\bfseries}       % per default same value as chapnamefront
     \renewcommand{\chaptitlefont}{\sffamily\Huge\bfseries}
      \renewcommand{\chapterheadstart}{}
     \renewcommand{\afterchapternum}{:\chapternamenum}        % \midchapskip space between number and title
     \setlength{\beforechapskip}{6.4mm}
    \setlength{\afterchapskip}{2.1mm}       % 2.1mm = 6pt
    }
    \headstyles{bringhurst}
     \chapterstyle{lae}

 % section:

\renewcommand{\thesection}{\Roman{section}}
    \setlength{\beforesecskip}{4.2mm}   
    \setlength{\aftersecskip}{2.1mm}
      %\setSindent{⟨length⟩}        
   \setsecheadstyle{\LARGE\bfseries\raggedright}%

 % sub-section:

  \renewcommand{\thesubsection}{\arabic{subsection}.}
    \setlength{\beforesubsecskip}{3.8mm}    
    \setlength{\aftersubsecskip}{2.1mm}     
   \setsubsecheadstyle{\Large\bfseries\raggedright}%

% sub-sub section: 

  \renewcommand{\thesubsubsection}{\arabic{subsection}.\arabic{subsubsection}.}
    \setlength{\beforesubsubsecskip}{11pt}  
    \setlength{\aftersubsubsecskip}{2.1mm}      
   \setsubsubsecheadstyle{\large\mdseries\slshape\raggedright}%

% paragraph

  \renewcommand{\theparagraph}{(\alph{paragraph})}
    \setlength{\beforeparaskip}{3.9mm}  
    \setlength{\afterparaskip}{2.1 mm}
     \setparaindent{0pt}        
   \setparaheadstyle{\normalsize\bfseries\slshape\raggedright}%

 % sub-paragraph
    \setlength{\beforesubparaskip}{4.2mm}   
    \setlength{\aftersubparaskip}{2.1 mm}       
   \setsubparaheadstyle{\normalsize\bfseries\raggedright}%

% lists:

%-------------------------- Paragraphs -----------------------
\setlength{\parindent}{0pt}             % no indent for new paragraphs
\setlength{\parskip}{3.2mm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%




% Package to facilitate placement of boxes at absolute positions
%---------------------------------------------------------------------------
\usepackage[absolute]{textpos}
\setlength{\TPHorizModule}{1mm}
\setlength{\TPVertModule}{1mm}
%---------------------------------------------------------------------------

% Hyperref Package (Create links in a pdf)
%---------------------------------------------------------------------------
\usepackage[
    pdftex,ngerman,bookmarks,plainpages=false,pdfpagelabels,
    backref = {false},                                                  % No index backreference
    colorlinks = {true},                                                % Color links in a PDF
    hypertexnames = {true},                                             % no failures "same page(i)"
    bookmarksopen = {true},                                             % opens the bar on the left side
    bookmarksopenlevel = {0},                                           % depth of opened bookmarksa
    linkcolor = {black},                                            % Color of Links
    citecolor = {black},                                            % Color of Cite-Links
    urlcolor = {black},                                             % Color of URLs
]{hyperref}

\urlstyle{sf}


\endinput

答案1

与标准样式不同,geschichtsfrkl没有选项可以关闭“idem”/“dashed”行为(参见在参考书目中两次获得全名,即使它们实现了严格使用破折号的样式,一些贡献的样式也具有此选项:biblatex ieee 风格 相同作者)。geschichtsfrkl测试中也没有使用通用宏。这意味着我们必须修改直接打印名称的 bibmacros。

\citereset在这里没有帮助,因为它必须分别应用于所有条目,更重要的是,因为它实际上并没有重置参考书目同上跟踪器,所以不需要它。

\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[style=geschichtsfrkl, backend=biber]{biblatex}

\makeatletter
\renewbibmacro*{author}{%
  \ifnameundef{author}{}%
      {\printnames{author}\isdot}}
\renewbibmacro*{author/editor}{%
   \ifboolexpr{test{\ifnameundef{author}} or bool{cbx:frg}}{%
      \ifnameundef{editor}{%
          \BibliographyWarning{Fehlender Autor *und* Herausgeber!}%
      }{%
        \printnames[author]{editor}\isdot% (Hrsg.)
        \addspace\printtext[parens]{\bibstring{editor}}}%
   }{\usebibmacro{author}}%
}%
\makeatother

\addbibresource{biblatex-examples.bib}

\begin{document}
\cite{knuth:ct:a,knuth:ct:b,knuth:ct:c}
\printbibliography
\end{document}

Knuth, Donald E.:计算机与排版,第 A 卷:TE Xbook,马萨诸塞州雷丁,1984 年。//Knuth, Donald E.:计算机与排版,第 B 卷:TEX:程序,马萨诸塞州雷丁,1986 年。//Knuth, Donald E.:计算机与排版,第 C 卷:METAFONTbook,马萨诸塞州雷丁,1986 年。

相关内容