
我在這裡搜尋這個問題已經有一段時間了。幾乎所有的帖子都是舊的或不能解決我的問題。以下是我需要加載的乳膠命令:
\documentclass[12pt, a4 paper,twocolumn]{article}
\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage{amsmath,amssymb}
\usepackage{newtxtext,newtxmath}
\usepackage{graphicx}
\usepackage{caption, subcaption}
\usepackage[margin=2cm]{geometry}
\usepackage{booktabs}
\usepackage[english]{babel}
\usepackage{authblk}
\usepackage[colorlinks,allcolors=blue]{hyperref}
\usepackage[authoryear,round]{natbib}
\bibliographystyle{abbrvnat}
\title{this is example}
\date{}
\begin{document}
\twocolumn[
\maketitle
\begin{abstract}
here is abstract.
\noindent
\textbf{Keywords:} classics.
\end{abstract}
]
\section{Conclusion}
Here is the citation \citep{Thomas}.
\bibliography{my bib file}
\end{document}
現在如何使用 APA7 引用樣式?我還想引用作者姓名和年份,例如(Thomas,2019)。任何建議表示讚賞。
答案1
要從目前建立參考書目的設定轉換為實施 APA7 格式指南的設置,您需要
代替
\usepackage[authoryear,round]{natbib} \bibliographystyle{abbrvnat}
和
\usepackage[style=apa]{biblatex} \addbibresource{mybibfile.bib}
其中
mybibfile.bib
是你的 bib 檔案的名稱。代替
\bibliography{mybibfile}
和
\printbibliography
開始使用
\textcite
and\parencite
,biblatex
相當於natbib
和\citet
命令\citep
開始使用
biber
而不是bibtex
建立格式化參考書目
進行這些變更後,請務必執行完整的重新編譯週期 - Latex、biber 和 Latex。
哦,不要使用這個times
包——它已經過時了。事實上,由於您也加載了newtxtext
和newtxmath
包,它們提供了 Times Roman 文字和數學字體,因此加載包沒有明顯的目的times
(即使它沒有過時)。
\documentclass[12pt,a4paper,twocolumn]{article}
% Create a bib file "on the fly":
\begin{filecontents}[overwrite]{mybibfile.bib}
@misc{Thomas,
author = "John Thomas",
title = "Thoughts",
year = 3001,
}
\end{filecontents}
\usepackage[T1]{fontenc}
%%\usepackage{times} % 'times' package is obsolete
\usepackage{amsmath,amssymb}
\usepackage{newtxtext,newtxmath} % Times Roman text and math fonts
\usepackage{graphicx}
\usepackage{%caption, % 'caption' is loaded automatically by 'subcaption'
subcaption}
\usepackage[margin=2cm]{geometry}
\usepackage{booktabs}
\usepackage[english]{babel}
\usepackage{authblk}
\usepackage[colorlinks,allcolors=blue]{hyperref}
%%\usepackage[authoryear,round]{natbib}
%%\bibliographystyle{abbrvnat}
\usepackage[style=apa]{biblatex} % 'backend=biber' is the default
\addbibresource{mybibfile.bib}
\begin{document}
\noindent
``Textual'' citation call-out: \textcite{Thomas}.
\noindent
``Parenthetical'' citation call-out: \parencite{Thomas}.
%%\bibliography{mybibfile}
\printbibliography
\end{document}
答案2
對於你的包裹,我真的不知道。我用於 APA 7 引用的套件是:
\usepackage{csquotes}
\usepackage[style=apa, backend=biber, sortcites, url=true]{biblatex}
\addbibresource{bibliografia.bib} % this is your BibLatex
如果您使用 Latex 編輯器,它應該支援 Biber。
這是該包的文檔:https://ctan.dcc.uchile.cl/macros/latex/contrib/biblatex-contrib/biblatex-apa/biblatex-apa.pdf和一些例子:https://ctan.dcc.uchile.cl/macros/latex/contrib/biblatex-contrib/biblatex-apa/biblatex-apa-test.pdf
至少對我來說,使用這個包,不需要配置即可顯示正常的 APA 引用樣式。