我正在尝试使用 LyX 获取引文,但我发现我获取的是列出的全部引文。因此,我获取的是应该显示 [1] 的引文等Example(John Tosh…)
。我的文档序言如下:
\usepackage{nag}
\usepackage[style=british]{csquotes}
\usepackage{fancyhdr}
\usepackage{microtype}
\usepackage[T1]{fontenc}
\usepackage{pslatex}
\usepackage[style=oscola,
natbib=true]{biblatex}
\bibliography{/Users/jamie/Documents/Law and History}
有办法解决这个问题吗?
梅威瑟:
\documentclass[british]{article}
\usepackage{mathpazo}
\usepackage[OT1]{fontenc}
\usepackage[latin9]{inputenc}
\makeatletter
\@ifundefined{date}{}{\date{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage[natbib=true,
style=numeric,
style=oscola]{biblatex}
\bibliography{/Users/jamie/Documents/Law and History}
\usepackage{babel}
\begin{document}
THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG\citet{Tosh:2010aa} dfdasfads
\citep{Tosh:2010aa}
\printbibliography
\end{document}
我得到了那份文件:THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG\footciteref Tosh dfdasfads (ibid)' instead of
敏捷的棕色狐狸跳过了懒狗。[1]
答案1
这是一个部分可行的解决方案。我不确定这是否适合您,因为这在很大程度上取决于文档中的其他内容。这会重新格式化脚注标记,使其符合引用样式的要求。
我使用了软件包提供的示例文件中的示例 bib 条目和您最初发布的一些代码。我还注意到了其他几件我认为您可以轻松改进的选项。
\documentclass[british]{article}
\usepackage{babel}
\usepackage[T1]{fontenc}% much better than OT1
\usepackage{mathpazo}
\usepackage[utf8]{inputenc}% much better to switch to utf8 if you can
\usepackage[style=british]{csquotes}
\usepackage[style=oscola,natbib=true]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@legislation{gorchymyn,
title = {Gorchymyn Mesur Teithio gan Ddysgwyr (Cymru) (Cychwyn Rhif 2)\nopunct},
number = {SI 2009\slash 2819},
pagination = {regulation},
keywords = {cy},
userb = {Cy 245},
entrysubtype = {secondary},
language = {welsh},
}% entry from oscola documentation
\end{filecontents}
\bibliography{\jobname}
\let\citet\footcite% horrible kludge
\makeatletter
\def\@makefnmark{\hbox{\normalfont[\@thefnmark]}}% this redefines the way footnote markers are formatted. It will affect *all* footnotes - not just citations.
\makeatother
\begin{document}
THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG\citet{gorchymyn} dfdasfads
\printbibliography
\end{document}
\citet
如果没有临时解决方案(见上文),似乎无法工作,但\citep
确实可以。