分享Latex
我正在使用 ShareLatex,我非常喜欢那里提供的模板之一,但我不想要相同的引用样式。我想改用哈佛引用样式。我做了一些搜索,发现了如何进行哈佛引用,但它不适用于这个特定的模板。
如果你使用模板,我把原来的代码改成下面这样
\documentclass[reprint]{revtex4-1}
\usepackage{natbib}
\bibliographystyle{agsm}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{amsfonts}
% 's for citation
\newcommand\posscite[1]{\citeauthor{#1}'s (\citeyear{#1})}
\newcommand\citee[1]{\citeauthor{#1} (\citeyear{#1})}
% \usepackage[utf8]{inputenc}
% \usepackage[english]{babel}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=cyan,
filecolor=magenta,
urlcolor=blue,
citecolor = blue,
}
\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
%\usepackage{hyperref}% add hypertext capabilities
%\usepackage[mathlines]{lineno}% Enable numbering of text and display math
%\linenumbers\relax % Commence numbering lines
%\usepackage[showframe,%Uncomment any one of the following lines to test
%%scale=0.7, marginratio={1:1, 2:3}, ignoreall,% default settings
%%text={7in,10in},centering,
%%margin=1.5in,
%%total={6.5in,8.75in}, top=1.2in, left=0.9in, includefoot,
%%height=10in,a5paper,hmargin={3cm,0.8in},
%]{geometry}
\begin{document}
%\preprint{APS/123-QED}
\title{Some Title}% Force line breaks with \\
\thanks{A footnote to the article title}%
\author{some Author}
\affiliation{University of York, Management School}
\author{Some author}
\homepage{http://www.Second.institution.edu/~Charlie.Author}
\affiliation{Heriot-Watt University, School of Mathematical and Computer Sciences}
\author{Another Author}
\affiliation{University of Exeter, Business School}
\date{\today}% It is always \today, today,
% but any date may be explicitly specified
\begin{abstract}
fdfada
\end{abstract}
\pacs{Valid PACS appear here}% PACS, the Physics and Astronomy
% Classification Scheme.
%\keywords{Suggested keywords}%Use showkeys class option if keyword
%display desired
\maketitle
%\tableofcontents
\section{\label{sec:level1}Introduction}
\begin{itemize}
\item Motivation- What is the problem
\item Short literature review (solution proposed in the literature so far) such as subsampling, m out of n bootstrap and wild bootstrap and PB
\item Shortcomings of all existing bootstraps
\item Main idea (paraphrased see Adriana PB)
\end{itemize}
\section{\label{sec:level2}Main Result}
\begin{itemize}
\item Model
\item Hypothesis of interest
\item CI of interest LIKE WB
\item Descriptive steps of the TWB
\item Theorem A (bootstrap validity) proof in appendix
\end{itemize}
\bibliography{mybibliography.bib}
\end{document}
当我写信时,有人能帮我\cite{A}
提供哈佛参考文献格式吗?
答案1
我非常感谢 LianTze Lim 对我的帮助:
你好,
是的,您可以在序言中添加这些内容:
\setcitestyle{authoryear,round} \bibliographystyle{dcu}
\citep
并记住在括号引用中使用(John, 1991),\citet
在正文引用中使用 John (1991)。