![安格利亚鲁斯金大学 哈佛大学 乳胶参考文献](https://linux22.com/image/475151/%E5%AE%89%E6%A0%BC%E5%88%A9%E4%BA%9A%E9%B2%81%E6%96%AF%E9%87%91%E5%A4%A7%E5%AD%A6%20%E5%93%88%E4%BD%9B%E5%A4%A7%E5%AD%A6%20%E4%B9%B3%E8%83%B6%E5%8F%82%E8%80%83%E6%96%87%E7%8C%AE.png)
我对 Latex 还很陌生。我试图将最新的 Anglia Ruskin 引用样式添加到我的文档中,但半途就卡住了。我设法使大多数事情都正确无误,例如参考样式。我的主要问题是引用样式。我需要的是这样的:
- bla bla bla (vgl. 作者 2021) bla bla bla
我在以下设置中遇到的问题是,在使用 \textcite 时我得到了这个输出
- bla bla bla 作者 (2021)
有人可以帮助我哪里犯了错误或者我如何才能像我想要的那样声明文本吗?
我的设置:
\documentclass[12pt, twocolumn]{article}
\usepackage[left=35mm,right=25mm,top=25mm,bottom=25mm,paper=a4paper]{geometry}
% Layout
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}% Recommended
\usepackage[onehalfspacing]{setspace}
\usepackage{hyperref}
% Math
\usepackage{amsmath}
\usepackage{algorithm}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18, width=8cm}
\usepackage{lipsum}
\usepackage[
backend=biber,
style=ext-authoryear-comp, giveninits, uniquename=init, maxbibnames=999,
urldate=long,
innamebeforetitle, articlein=false,
]{biblatex}
% 1.2
\DeclareDelimFormat*{nameyeardelim}{\addspace}
\DeclareDelimFormat[textcite]{nameyeardelim}{\addspace}
% 2.5
\DeclareDelimFormat{andothersdelim}{\addcomma\space}
% 2.7
\renewcommand*{\compcitedelim}{\multicitedelim}
% 2.8
\makeatletter
\AtEveryCitekey{\global\undef\cbx@lastyear}
\makeatother
% ignore 2.10 for the time being
% 4.1
\DeclareNameAlias{sortname}{family-given}
\DeclareFieldFormat{biblabeldate}{#1}
\DeclareFieldAlias{biblistlabeldate}{biblabeldate}
% 4.3
\DeclareDelimFormat{editortypedelim}{\addspace}
\DeclareDelimFormat{translatortypedelim}{\addspace}
% 4.4
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,patent,thesis,unpublished]
{title}{#1\isdot}
% as for the year of the chapterv vs year of the book in 4.4
% I have never seen such a distinction and in general I imagine
% it would be quite hard to find out the year of a chapter
% in a collection work since only the year of the collection is given
% I imagine that in practice you would almost always end up duplicating
% the year.
% 4.8 & 5.11
\DefineBibliographyStrings{english}{
urlfrom = {available at},
urlseen = {accessed},
bathesis = {BA},
mathesis = {MA},
phdthesis = {PhD},
}
\newcommand*{\mkbiburlangle}[1]{<#1>}
% or {<#1>}
% or {\ensuremath{\langle}#1\ensuremath{\rangle}}
% or {guilsinglleft#1\guilsingleright}
\DeclareFieldFormat{url}{\bibstring{urlfrom}\addcolon\space \mkbiburlangle{\url{#1}}}
\DeclareFieldFormat{urldate}{\mkbibbrackets{\bibcpstring{urlseen}\space#1}}
% 4.9
\renewcommand*{\jourvoldelim}{\addcomma\space}
\renewcommand*{\volnumdelim}{}
\DeclareFieldFormat[article,periodical]{number}{\mkbibparens{#1}}
\renewcommand*{\volnumdatedelim}{\addcomma\space}
\DeclareFieldFormat{issuedate}{#1}
% 4.12 :-(
% note that I used the new preferred resolver https://doi.org/
% instead of http://dx.doi.org/
\DeclareFieldFormat{doi}{\url{https://doi.org/#1}}
\addbibresource{biblio.bib}
\title{Audioresponsive Shader (HLSL)}
\author{Roman Aebi}
\date{}
\begin{document}
\maketitle
\section{Hauptsection}
\begin{enumerate}
\item Eine weitere Auflistung
\item Eine weitere Auflistung
\item Eine weitere Auflistung
\end{enumerate}
\subsection{subsection}
\lipsum[1-5]
\newpage
\section{Noch eine Section}
\lipsum[1-3]
\begin{tikzpicture}
\begin{axis}[xmin=-5,xmax=5,ymin=-5,ymax=5, axis lines=middle, xlabel=$x$, ylabel=$y$, title={2D axis graph}]
\addplot[color=red, dashed, mark=*]{x^2};
\end{axis}
\end{tikzpicture}
\subsubsection{Subsubsection}
\lipsum[1-5]
\newpage
\onecolumn
\lipsum[1]
\section{Die letzte Lection}
\lipsum[1]
\textcite{arzteblatt_virtual-reality_2021}
\begin{tikzpicture}
\begin{axis}[clip=false,
xmin=0,xmax=2.5*pi,
ymin=-1.5,ymax=1.5,
axis lines=middle,
xtick={0,pi/2,pi ,3*pi/2,2*pi},
xticklabels ={$0$, $\frac{\pi}{2}$, $\pi$, $\frac{3}{2}\pi$, $2\pi$},
xticklabel style={anchor=south west},
xmajorgrids=true,
grid style=dashed
]
\addplot[domain=0:2*pi,red]{sin(deg(x))}
node[right,pos=0.9]{$f(x)=\sin x$};
\addplot[domain=0:2*pi,,blue]{cos(deg(x))}
node[right,pos=0.9]{$f(x)=\cos x$};
\end{axis}
\end{tikzpicture}
\lipsum[1]
\begin{tikzpicture}
\begin{axis} [colormap/cool]
\addplot3[surf]{1+x^2-y^2};
\end{axis}
\end{tikzpicture}
\textcite{heckbert_fourier_1995}
\printbibliography
\end{document}```
答案1
在 中的任何作者-年份引文格式中biblatex
,都有两组引文命令来生成作者-年份系统中预期的两种引文标注。 中的所有引文命令都biblatex
具有以下一般形式:
\command[prenote][postnote]{keys}
要获取作者(年份)形式的引用,请使用:
\textcite[prenote][postnote]{keys}
要获取形式为 (作者, 年份) 的引用,请使用:
\parencite[prenote][postnote]{keys}
前注参数打印在引文之前,后注打印在引文之后。默认情况下,后注通常被解释为页码,引文样式会自动添加相关指示符(例如“p.”)。如果您只提供一个可选参数,它将被解释为后注而不是前注。
这是一个完整的示例。由于相关问题是引用命令,因此我没有包含您对样式的修改。
\documentclass{article}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[style=ext-authoryear]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\textcite{glashow} discusses partial symmetries of weak interactions. It has nothing to do with Hemingway or LaTeX \parencite{doody,companion}
\printbibliography
\end{document}