简体   繁体   English

引用专着的作者和标题

[英]Cite author and title for monographs

for a university paper I have to write an essay.对于大学论文,我必须写一篇论文。 The professor has percise instructions how to cite.教授有精确的指导如何引用。 For monograph books, he wants the author and the title in the footnotes.对于专着书籍,他想要脚注中的作者和标题。

I tried to use biblatex for this, but could not manage to get it to work我尝试为此使用 biblatex,但无法使其正常工作

My minimal reproducible example is:我最小的可重现示例是:

\documentclass{article}
\usepackage[utf8]{inputenc}

\title{test}

\usepackage[style=authoryear,maxcitenames=2,maxbibnames=99, uniquename=false]{biblatex}
\addbibresource{references.bib}
\setcounter{biburlnumpenalty}{100}
\setcounter{biburlucpenalty}{100}
\setcounter{biburllcpenalty}{100}
\DefineBibliographyStrings{ngerman}{ 
   andothers = {{et\,al\adddot}},             
} 
\DeclareNameAlias{sortname}{family-given}
\DeclareFieldFormat
  [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
  {title}{#1\isdot}
\renewbibmacro{in:}{%
  \ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}}

\begin{document}

\maketitle

\section{Introduction}
This is a minimal reproducible example. \footcite{adams1995hitchhiker}

\printbibliography
\end{document}

which outputs: footnote image输出:脚注图像

Now i want to add the title of the book too (in this case The Hitchhiker's Guide to the Galaxy) in the footnote现在我也想在脚注中添加书名(在本例中为银河系漫游指南)

Any idea how to implement this?知道如何实现吗?

It sounds as if the authortitle style would be closer to your requirements:听起来好像authortitle样式会更接近您的要求:

\documentclass{article}
\usepackage[utf8]{inputenc}

\title{test}

\usepackage[style=authortitle,maxcitenames=2,maxbibnames=99, uniquename=false]{biblatex}


\begin{filecontents*}[overwrite]{\jobname.bib}
@book{knuth,
  author       = {Knuth, Donald E.},
  title        = {The {\TeX} book},
  date         = 1984,
  maintitle    = {Computers \& Typesetting},
  volume       = {A},
  publisher    = {Addison-Wesley},
  location     = {Reading, Mass.},
  langid       = {english},
  langidopts   = {variant=american},
  sortyear     = {1984-1},
  sorttitle    = {Computers & Typesetting A},
  indexsorttitle= {The TeXbook},
  indextitle   = {\protect\TeX book, The},
  shorttitle   = {\TeX book}
}
\end{filecontents*}

\addbibresource{\jobname.bib}
\setcounter{biburlnumpenalty}{100}
\setcounter{biburlucpenalty}{100}
\setcounter{biburllcpenalty}{100}
\DefineBibliographyStrings{ngerman}{ 
   andothers = {{et\,al\adddot}},             
} 
\DeclareNameAlias{sortname}{family-given}
\DeclareFieldFormat
  [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
  {title}{#1\isdot}
\renewbibmacro{in:}{%
  \ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}}

\begin{document}

\maketitle

\section{Introduction}
This is a minimal reproducible example. \footcite{knuth}

\printbibliography
\end{document}

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM