biblatex-juradiss 和德国法律评论

biblatex-juradiss 和德国法律评论

我正在写我的硕士论文,在按我需要的方式格式化引文时遇到了麻烦。我尝试修改本文中给出的解决方案线但没有成功。

biblatexbiblatex-juradissKOMA 的课上使用scrbook

我需要引用如下:

帕兰特/,安。艺术。 10 EGBGB Rn 1

  • Palandt(简写)
  • (预注)
  • Anh. Art. 10 EGBGB(标题)
  • Rn 1(后记)

梅威瑟:

\documentclass{scrbook}

\usepackage{filecontents}

\begin{filecontents}{kommentare.bib}

@COMMENTARY{palandt, gender = {pm}, editor = {Palandt, Otto}, editortype = {founder}, maintitle = {Beck'sche Kurz Kommentar: B{\"u}rgerliches Gesetzbuch}, title = {Anh. zu Art. 10}, shorthand = {Palandt}, volume = {7}, publisher = {C.H. Beck}, edition = {71}, location = {M{\"u}nchen}, Year = {2012}, keywords = {Kommentar}}

\end{filecontents}

\usepackage[backend=biber,sortcites=true,style=biblatex-juradiss,sorting=nyt,safeinputenc]{biblatex}

\bibliography{kommentare}

\renewbibmacro{prenote}{%
  \ifentrytype{commentary}
    {\renewcommand*{\postnotedelim}{\addspace}%
     \renewbibmacro*{cite:title}{%
       \printfield{labeltitle}%
       \setunit*{\textendash}%
       \printfield[emph]{prenote}%
       \setunit{\addspace}%
       \printfield{edition}}}
    {\iffieldundef{prenote}
       {}
       {\printfield{prenote}%
        \setunit{\prenotedelim}}}}
\begin{document}
\cite[Thorn][Rn 1]{palandt}

\printbibliography

\end{document}

就像我说过的,我试图编辑另一个线程中给出的解决方案,但我无法让它发挥作用。

答案1

我似乎找到了一个编辑上述解决方案的解决方案,它可能是一个“肮脏的”解决方案,但它有效。

            \documentclass{scrbook}

            \usepackage{filecontents}

            \begin{filecontents}{kommentare.bib}

            @COMMENTARY{palandt, gender = {pm}, editor = {Palandt, Otto}, editortype = {founder}, maintitle = {Beck'sche Kurz Kommentar: B{\"u}rgerliches Gesetzbuch}, title = {Anh. zu Art. 10}, shorthand = {Palandt}, volume = {7}, publisher = {C.H. Beck}, edition = {71}, location = {M{\"u}nchen}, Year = {2012}, keywords = {Kommentar}}

            \end{filecontents}

            \usepackage[backend=biber,sortcites=true,style=biblatex-juradiss,sorting=nyt,safeinputenc]{biblatex}

            \bibliography{kommentare}

            \DeclareFieldFormat[commentary]{postnote}{Rn\addspace{#1}}

            % Kursive Schrift für Bearbeiter von Kommentaren
            \DeclareFieldFormat[commentary]{prenote}{\mkbibemph{#1}}

            \DeclareFieldFormat{shorthand}{%
              \ifbool{bbx:shorthandacro}%
                {\ifbool{bbx:acronym}%
                  {\mkbibacro{#1}\isdot}%
                  {#1\isdot}}%
                {\iffieldequalstr{entrytype}{commentary} {#1\printfield[edition:super]{edition}}
                  {\mkbibemph{#1}\isdot}%
                }%
            }% 


            \renewbibmacro{prenote}{%
              \ifentrytype{commentary}
                    {\renewcommand*{\postnotedelim}{\addspace}%
                 \renewbibmacro*{cite:title}{%
                   \printfield{shorthand}%
                   \setunit*{\addslash}%
                   \printfield{prenote}%
                   \setunit{\addspace}%
                   \printfield{title}}}
                {\iffieldundef{prenote}
                   {}
                   {\printfield{prenote}%
                    \setunit{\prenotedelim}}}}

            \begin{document}

            \cite[Thorn][1]{palandt}

            \printbibliography

            \end{document}

我希望这可以帮助到别人。

相关内容