
首先,我要感謝這個團隊在解決我之前的問題時所提供的所有支援。
我正在寫我的論文並使用 APA 風格的參考書目。我需要調整它以滿足下面給出的一個條件。
參考書目需要依序編號。注意:APA 格式遵循大學的所有要求,但它不按順序編號參考文獻。下面給出的是程式碼
\documentclass[12pt]{isuthesis} \usepackage{natbib} \bibliographystyle{apa} \usepackage{tikz} \usetikzlibrary{calc} \newcommand\HRule{\rule{\textwidth}{1pt}} \usepackage[pdftex,hypertexnames=false,linktocpage=true]{hyperref} \hypersetup{colorlinks=true,linkcolor=blue,anchorcolor=blue, citecolor=blue,filecolor=blue,urlcolor=blue,bookmarksnumbered=true,pdfview=FitB} \begin{document} We compare the protocol with known protocols of majority quorum consensus \cite{majority}, the hierarchical quorum consensus \cite{Hierar}. \bibliography{mybib} \end{document}
mybib.bib 檔案如下
@article{Hierar, author = {Kumar, A.}, booktitle = {Computers, IEEE Transactions on}, doi = {10.1109/12.83661}, journal = {Computers, IEEE Transactions on}, number = {9}, pages = {996--1004}, posted-at = {2011-08-14 19:55:36}, priority = {2}, title = {{Hierarchical quorum consensus: a new algorithm for managing replicated data}}, url = {http://dx.doi.org/10.1109/12.83661}, volume = {40}, year = {1991} } @ARTICLE{majority, author = {R. H. Thomas}, title = {A majority consensus approach to concurrency control for multiple copy databases, , , ,}, journal = {ACM Transactions on Database Systems}, year = {June 1979}, volume = {vol. 4}, pages = {pp. 180-209}, owner = {sony}, timestamp = {2011.08.14} }
請幫忙。
答案1
isuthesis
透過 (a) 文檔類 ( )、(b) 參考書目風格 ( apa
) 和 (c) 引文管理包 ( )的組合natbib
,恐怕我無法弄清楚如何為您的查詢提供完整的解決方案:natbib
使用選項numbers
並使用\citet
而不是\cite
為參考書目中的條目提供數字標籤,但它也會產生“Kumar [1]”而不是“Kumar (1991)”形式的引文標註。恐怕我無法弄清楚如何在引文標註中顯示年份標籤,同時在參考書目中顯示數字標籤。
\documentclass[12pt]{isuthesis}
\usepackage{filecontents}
\begin{filecontents}{mybib.bib}
@article{Hierar,
author = {Kumar, A.},
doi = {10.1109/12.83661},
journal = {IEEE Transactions on Computers},
number = {9},
pages = {996--1004},
posted-at = {2011-08-14 19:55:36},
priority = {2},
title = {Hierarchical quorum consensus: A new algorithm
for managing replicated data},
url = {http://dx.doi.org/10.1109/12.83661},
volume = {40},
year = {1991},
}
@ARTICLE{majority,
author = {R. H. Thomas},
title = {A majority consensus approach to concurrency
control for multiple copy databases \dots},
journal = {ACM Transactions on Database Systems},
year = {1979},
volume = {4},
pages = {180-209},
owner = {sony},
timestamp = {2011.08.14},
}
\end{filecontents}
\usepackage[numbers]{natbib}
\bibliographystyle{apa}
\usepackage[hypertexnames=false,linktocpage=true]{hyperref}
\hypersetup{colorlinks=true,allcolors=blue,
bookmarksnumbered=true,pdfview=FitB}
\begin{document}
\citet{majority}
\citet{Hierar}
\bibliography{mybib}
\end{document}
我忍不住發表一些評論。在我看來,主要問題如下:鑑於您似乎想要使用作者年份風格的引文標註,為什麼您(或某些顧問?)是否想通過提供沒有明顯目的的數字標籤來故意弄亂參考書目 - 除了可能通過查看最終條目輕鬆揭示您總共引用了多少篇文章在參考書目中?但誰還會在乎想要輕鬆數數多少部分被引用?
我不會因為在書目條目添加無意義的數位標籤而過於煩惱,而是花一些時間清理和更正書目文件中實際包含的資訊。如果您將原始輸入與上面範例中使用的清理條目進行比較,我想您會發現一些差異。