自定义书目表

自定义书目表

我找到了这个文章并极大地促进了我建立自己的自定义书目。到目前为止,它看起来还不错,但对我来说并不完美。我需要做一些改变。我读过这个回答并使用第一个代码示例作为我的参考书目。我的参考书目应如下所示:

它看起来就像那样。

我需要做的改变:

  1. 更改不同 bibtex 项目的顺序

  2. 更改格式(不使用“”,生成我自己的缩写,不使用斜体样式)

  3. 删除每个条目末尾的点

    \documentclass[a4paper,12pt]{report}
    \usepackage[ngerman]{babel}
    \usepackage[utf8]{inputenc}
    
    \usepackage[backend=biber,,citestyle=authoryear,hyperref=true,autocite=inline,sortlocale=de_DE,maxnames=99]{biblatex}
    \addbibresource{\jobname.bib}
    \DeclareDelimFormat[bib,biblist]{nametitledelim}{\addcolon\space}
    \renewcommand{\newunitpunct}{\addcomma\space}
    \DeclareDelimFormat{multinamedelim}{\addsemicolon\space}
    \DeclareDelimAlias{finalnamedelim}{multinamedelim}
    
    \DeclareNameAlias{sortname}{family-given}
    
    \DeclareFieldFormat*{shorttitle}{\mkbibparens{#1}}
    \DeclareFieldFormat{url}{\url{#1}}
    
    \renewbibmacro*{date}{%
      \iffieldundef{year}
        {\printtext{\bibstring{nodate}}}
        {\printdate}}
    
    \makeatletter
    
    \usepackage{biblatex-ext-tabular}
    
    % sortname labels (a robust style should add provision for missing  labelnames)
    \newbibmacro*{sortname}{%
      \ifnameundef{labelname}
        {\printtext{No name given.}
         \PackageWarning{biblatex}{No labelname for entry \thefield{entrykey},\MessageBreak
           we need to think of something else}}
        {\printnames[sortname]{labelname}%
         \iffieldequalstr{labelnamesource}{editor}
           {\setunit{\printdelim{editortypedelim}}%
            \usebibmacro{editor+othersstrg}}
           {\iffieldequalstr{labelnamesource}{translator}
              {\setunit{\printdelim{translatortypedelim}}%
               \usebibmacro{translator+othersstrg}}
              {}}}}
    
    \usepackage{array}
    \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
    \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
    \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
    
    \usepackage{longtable}
    % demo new tabular bibliography format
    % I strongly prefer left-aligned with fixed width (L)
    % over justified (p) here
    % longtable for tables that break over pages
    \defbibtabular{bibtabular}
      {\def\arraystretch{2}%
       \begin{longtable}{@{}L{\dimexpr0.3\textwidth-\tabcolsep\relax}L{\dimexpr0.7\textwidth-\tabcolsep\relax}@{}}}
      {\end{longtable}}
      {\anchorlang{\usebibmacro{sortname}} &
       \driver{\usebibmacro{tabular:omitsortname}} \\}
    
    \renewbibmacro*{begentry}{%
      \printfield{shorttitle}%
      \printunit*{\addspace}}
    % End Custom Bibliography
    
    \usepackage{filecontents}
    
    \begin{filecontents}{\jobname.bib}
    @online{testonline,
        title = {Titel},
        subtitle = {Untertitel},
        shorttitle = {Stichwort},
        author = {{N}achname, {V}orname},
        url = {protokoll://serveradresse/dokumentenpfad/dokument},
        year = {Jahr},
        urldate = {01.01.2021}
        note = "(Kommentar)"
    }
    
    @ARTICLE{testarticle,
        title = {Titel},
        subtitle = {Untertitel},
        shorttitle = {Stichwort},
        author = {{N}achname, {V}orname},
        journal = {Name der Zeitschrift},
        year = {Jahr},
        volume = {Band},
        pages = {erste Seite - letzte Seite},
        number = {Nummer},
        month = {March},
        publisher = {Verlag}
    }
    
    @BOOK{testbook,
        title = {Titel}, 
        subtitle = {Untertitel},
        shorttitle = {Stichwort},
        author = {{N}achname, {V}orname},
        year = {Erscheinungsjahr},
        location = {Erscheinungsort},
        volume = {Band}, 
        edition = {Auflage},
        year = {Jahr},
    }
    \end{filecontents}
    
    \begin{document}
    
    \autocite{testonline} \\
    \textcite{testonline} \\
    \autocite{testarticle} \\
    \textcite{testarticle} \\
    \autocite{testbook} \\
    \textcite{testbook} \\
    
    \printbibtabular
    \end{document}
    

您能给我一些建议吗?

先感谢您

暗号

相关内容