我使用 TexMaker 撰写论文。我的论文末尾有一个参考书目,在正文中,我也想显示脚注,但如果我使用 \footcite,脚注中只会显示一位作者的姓氏,但我需要两位作者的全名。我该如何解决这个问题?
并且引用中的网站链接太长,如何在文本结束前换行?因为网站链接超出了我定义的文本宽度的宽度。
谢谢
我的脚本:
\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage[a4paper, text={16.5cm, 25.2cm}, centering]{geometry}
\usepackage[sfdefault]{ClearSans}
\usepackage[utf8]{inputenc}
\setlength{\parskip}{1.2ex}
\setlength{\parindent}{0em}
\usepackage{filecontents}
\usepackage[backend=bibtex,
style=authortitle-comp,
natbib=true,
]{biblatex}
\begin{filecontents}{\jobname.bib}
@Electronic{unintentional,
Title = {Accidents or Unintentional Injuries},
Author = {Altiok,Tayfur; Melamed, Benjamin},
Note = {[Accessed on August 10, 2016]. Available on: \textcolor{blue}{http://www.cdc.gov/nchs/fastats/accidental-injury.htm}}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
here is just a test \cite{unintentional} .
\printbibliography
\end{document}
答案1
您应该按照以下说明的格式提供作者姓名我应该如何在 bib 文件中输入作者姓名?。也就是说,用 分隔所有作者and
。此外,您应该使用url
andurldate
字段而不是note
。
@online{unintentional,
title = {Accidents or Unintentional Injuries},
author = {Altiok, Tayfur and Melamed, Benjamin},
url = {http://www.cdc.gov/nchs/fastats/accidental-injury.htm},
urldate = {2016-08-10},
}
然后你想要的就是改变labelname
引用中使用的格式,以及sortname
参考书目中使用的格式,
\DeclareNameAlias{sortname}{family-given}
\DeclareNameAlias{labelname}{family-given}
然后你可以用
\renewcommand*{\multinamedelim}{\addsemicolon\space}
\renewcommand*{\finalnamedelim}{\multinamedelim}
然后
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber,style=authortitle-comp]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@online{unintentional,
title = {Accidents or Unintentional Injuries},
author = {Altiok, Tayfur and Melamed, Benjamin},
url = {http://www.cdc.gov/nchs/fastats/accidental-injury.htm},
urldate = {2016-08-10},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\DeclareNameAlias{sortname}{family-given}
\DeclareNameAlias{labelname}{family-given}
\renewcommand*{\multinamedelim}{\addsemicolon\space}
\renewcommand*{\finalnamedelim}{\multinamedelim}
\begin{document}
\cite{unintentional}
\printbibliography
\end{document}
给出