
我在 Tufte 類別的引文方面遇到一些問題。我有幾個與此相關的問題,我將在下面發布,但首先我將提供一個最小的工作範例 test.tex:
\documentclass[nohyper,nobib,nofonts]{tufte-book}
\usepackage[utf8]{inputenc}
\usepackage[american]{babel}
\usepackage[backend=bibtex]{biblatex}
\addbibresource{testBib.bib}
\usepackage{hyphenat}
\usepackage{csquotes}
\begin{document}
\chapter{chapter}
Some text~\autocite{bobylev}.
\section{section}
Lots and lots of more text~\autocite{Zhong}.
\subsection{subsection}
Delicious yummy text~\autocite{xu2004}. OmNomNom~\autocite{Lockerby}.
\printbibliography
\end{document}
和一個簡單的參考書目 testBib.bib:
@article{bobylev,
author = {Bobylev, A. V.},
title = {The Chapman–Enskog and Grad methods for solving the
Boltzmann equations},
journaltitle = {Soviet Physics - Doklady},
number = {27},
year = {1982}
}
@article{Zhong,
author = {X. Zhong, R.W. Maccormack and D.R. Chapman},
title = {Stabilization of the Burnett equations and application to high-altitude hypersonic flows},
journaltitle = {AIAA Journal},
year = {1993}
}
@article{Lockerby,
title = "High-resolution Burnett simulations of micro Couette flow and heat transfer ",
journaltitle = "Journal of Computational Physics ",
year = "2003",
author = "Lockerby, D.A. and Reese J.M."
}
@article{xu2004,
title={Microchannel flow in the slip regime: gas-kinetic BGK--Burnett solutions},
author={Xu, K. and Li, Z.},
journaltitle={Journal of Fluid Mechanics},
year={2004}
}
產生以下結果:
為了獲得編號的章節、章節和小節(tufte-book 類別中不是預設的),我對 tufte-common.def 進行了以下更改,更改
\setcounter{secnumdepth}{-1}
到
\setcounter{secnumdepth}{2}
並且添加了
\setcounter{tocdepth}{2}
所有這些都可以“正常”編譯,但會產生以下錯誤和警告
問題:
- 這些錯誤似乎與我在 tufte-common.def 中所做的更改有關,但是如何實現編號的章節、節和小節呢?
- 為什麼內容不顯示章節和小節,這不是 \setcounter{tocdepth}{2} 所做的嗎?
- 我必須手動刪除 test.bbl 和 test-blx.bib 檔案或向 bibTest.bib 檔案新增條目以更新參考書目,即我在 .bib 檔案中所做的更改將不會顯示,除非我這樣做。這不可能吧?
- 參考書目不是按照引用的順序排序的,反之亦然,我希望文本中的第一個引用顯示為 [1],第二個數字顯示為 [2] 等。 [3],[2],[4]。我知道 biblatex 有排序和不同引用樣式的選項,但我的努力並沒有產生我想要的結果。肯定有一種方法可以實現按升序排列的引用嗎?我也嘗試過使用 baceknd=biber 但這只會產生更多錯誤訊息。
- 有人對警告有任何經驗嗎?解釋以及理想的解決方法。
附加資訊:使用 tufte-book 類別 v3.5.0、MiKTeX 2.9 和 Sublime Text 2.0.2 作為文字編輯器。
我意識到這是一篇相當長的帖子,有很多問題,所以我將非常感謝您回答我的任何或所有問題:)
答案1
儘管存在錯誤,您的範例仍可以正常編譯,並具有以下內容(您可能已經忘記了\tableofcontents
):
\documentclass[nobib]{tufte-book}
\usepackage[backend=bibtex,style=numeric,sorting=none]{biblatex}
\addbibresource{testBib.bib}
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{2}
\title{A simple document}
\author{An author}
\begin{document}
\maketitle
\tableofcontents
\chapter{chapter}
Some text~\cite{bobylev}.
\section{section}
Lots and lots of more text~\cite{Zhong}.
\subsection{subsection}
Delicious yummy text~\cite{xu2004}. OmNomNom~\cite{Lockerby}.
\printbibliography
\end{document}
似乎natbib
Tufte 類別使用的 與 不相容biblatex
,因此錯誤訊息不會消失,儘管它編譯得很好(請參閱這)。
至於你的問題#4,sorting=none
確實有效。