
對於elsarticle
模板,如何產生AMA參考?我將ama.bst
參考書目樣式添加到論文工作目錄中。使用MikTeX2.9:
論文:
\documentclass[preprint,authoryear,12pt]{elsarticle}
\usepackage{amssymb}
\usepackage[margin=0.7in]{geometry}
\usepackage{textcomp}
\begin{document}
\title{ \textbf{All the Cats}}
\section*{Citing cats author}
All the cats in the world as eloquently explained in reference \cite{Cat19}.
This should have printed as [1]!\\
In References, the citation should appear as: \textbf{Catty CT, Katin KK,
and Kitty MM. An amazing account of cats around the world.}\textit{ J. Cats.
Life} \textbf{2019; 19:290-299.}
\nocite{*}
\bibliographystyle{ama}
\bibliography{catsbib}
\end{document}
貓書目.bib
@article{Cat19,
author = "Catty, CT and Katin, KK and Kitty, MM",
title = "An amazing Account of cats around the world",
year = "2019",
journal = "J {C}ats {L}ife",
volume = "19",
number = "9",
pages = "290--299"
}
當使用 pdfLatex+MakeIndex+Bibtex 編譯時,Latex 會掛起:
! Package natbib Error: Bibliography not compatible with author-year citations.[![enter image description here][1]][1]
所需的輸出如下所示: