完全なMWE

完全なMWE

biblatex で参考文献の関連エントリのタイトルのみを印刷したいと思います。次の MWE を使用します。

\documentclass{article}

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

\usepackage{filecontents}
\begin{filecontents}{my.bib}
@Inproceedings{Frege1897a,
  author        = {Frege, Gottlob},
  title         = {Über die Begriffsschrift des Herrn Peano und meine eigene},
  booktitle     = {Berichte über die Verhandlungen der Königlich Sächsischen Gesellschaft der Wissenschaften zu Leipzig: Mathematisch-physische Klasse},
  date          = {1897},
  pages         = {361--378},
  volume        = {48},
  related       = {Frege1984h},
  relatedstring = {English\addspace title},
  shorthand     = {PCN},
}

@Inbook{Frege1984h,
  author   = {Frege, Gottlob},
  title    = {On Mr. Peano's Conceptual Notation and My Own},
  date     = {1984},
  pages    = {234--248},
  crossref = {Frege1984},
}

@Book{Frege1984,
  author     = {Frege, Gottlob},
  title      = {Collected Papers on Mathematics, Logic, and Philosophy},
  date       = {1984},
  location   = {Oxford},
  publisher  = {Blackwell},
  translator = {Black, Max},
  editor     = {McGuinness, Brian},
  shorthand  = {CP},
}
\end{filecontents}

\addbibresource{my.bib}

\begin{document}
\cite{Frege1897a}.
\printbibliography
\end{document}

私は

ここに画像の説明を入力してください

私が望むのは、「... My Own」の後に何もないことです。つまり、「In: Gottlob Frege. Collected Papers on Mathematics, Logic, and Philosophy. Ed. Brian McGuinness. Trans. Max Black. Oxford: Blackwell, 1984, 234-248」を省略することです。

答え1

新しい関連タイプを作成できます。

  • relatedtype={englishtitle}エントリーに追加する
  • 削除して新しいマクロrelatedstringに追加することもできますrelated:englishtitle
  • 次のようなマクロを作成しますrelated:englishtitle

    \newbibmacro*{related:englishtitle}[1]{%
      \entrydata{#1}{%
        \printtext{English title}%
        \setunit{\addspace}%
        \usebibmacro{title}}}
    

完全なMWE

\usepackage[backend=biber,style=authoryear]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{my.bib}
@Inproceedings{Frege1897a,
  author        = {Frege, Gottlob},
  title         = {Über die Begriffsschrift des Herrn Peano und meine eigene},
  booktitle     = {Berichte über die Verhandlungen der Königlich Sächsischen Gesellschaft der Wissenschaften zu Leipzig: Mathematisch-physische Klasse},
  date          = {1897},
  pages         = {361--378},
  volume        = {48},
  related       = {Frege1984h},
  relatedtype   = {englishtitle},
  shorthand     = {PCN},
}
@Inbook{Frege1984h,
  author   = {Frege, Gottlob},
  title    = {On Mr. Peano's Conceptual Notation and My Own},
  date     = {1984},
  pages    = {234--248},
  crossref = {Frege1984},
}
@Book{Frege1984,
  author     = {Frege, Gottlob},
  title      = {Collected Papers on Mathematics, Logic, and Philosophy},
  date       = {1984},
  location   = {Oxford},
  publisher  = {Blackwell},
  translator = {Black, Max},
  editor     = {McGuinness, Brian},
  shorthand  = {CP},
}
\end{filecontents}
\addbibresource{my.bib}
\newbibmacro*{related:englishtitle}[1]{%
  \entrydata{#1}{%
    \printtext{English title}%
    \setunit{\addspace}%
    \usebibmacro{title}}}
\begin{document}
\cite{Frege1897a}.
\printbibliography
\end{document}

ここに画像の説明を入力してください

関連情報