![\ref による Tufte-book の問題](https://rvso.com/image/328473/%5Cref%20%E3%81%AB%E3%82%88%E3%82%8B%20Tufte-book%20%E3%81%AE%E5%95%8F%E9%A1%8C.png)
これを初めてタイプセットする??
と\ref
、 が表示されます。2 回目は空白です。私は TeXShop を使用しています。 を使用してbiblatex
各章の参考文献リストと本の末尾の別のリストを取得する例を作成しようとしました。参考文献リストは正常に作成されますが、マークは作成されません\ref
。何が間違っているのでしょうか?
\documentclass[nobib]{tufte-book}
\usepackage[
style=authoryear,
autocite=footnote,
backend=biber,
natbib=true
]{biblatex}
\addbibresource{references.bib}
\begin{document}
\begin{refsection}
\chapter{First chapter}\label{ch01}
\section{Foo}\label{ch01:sec01}
Some text \citep{Duffie:96}.
\section{Bee}
Refer to \ref{ch01:sec01} of chapter \ref{ch01}.
\printbibliography[heading=subbibliography]
\end{refsection}
\begin{refsection}
\chapter{Second chapter}
\section{Bar}
Some text\autocite{Eason1999}.
Remember section \ref{ch01:sec01} of chapter \ref{ch01} down here.
\printbibliography[heading=subbibliography]
\end{refsection}
\chapter{Later}
This,\autocite{hashemian} should be a side note but not this \citep{hashemian}.
\printbibliography
\end{document}
ここにreferences.bibがあります:
%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/
%% Created for Sam Cox at 2016-02-17 17:46:29 -0500
%% Saved with string encoding Unicode (UTF-8)
@book{Duffie:96,
Address = {Princeton, NJ 08540},
Author = {Duffie, J. Darrell},
Date-Added = {2016-02-17 22:36:09 +0000},
Date-Modified = {2016-02-17 22:36:09 +0000},
Edition = {2nd},
Publisher = {Princeton University Press},
Title = {Dynamic Asset Pricing Theory},
Year = {1996}}
@article{Eason1999,
Author = {Eason, Stephen W. and Hirst, Brian L. and Vukelic, Milan},
Date-Added = {2016-02-17 22:35:52 +0000},
Date-Modified = {2016-02-17 22:35:52 +0000},
Journal = {Record of the Society of Actuaries},
Number = {3},
Pages = {1--20},
Title = {Security Blanket for Life (and Health)},
Volume = {25},
Year = {1999}}
@book{childs_temperature,
Address = {Great Britain},
Author = {Childs, Peter R N},
Edition = {1},
Isbn = {0 7506 5080 X},
Publisher = {Butterworth - Heinemann},
Title = {Practical Temperature Measurement},
Year = {2001}}
@phdthesis{hashemian,
Author = {Hashemian, Hashem Mehrdad},
School = {{The University of Western Ontario}},
Title = {Measurements of dynamic temperatures and pressures in nuclear power plants},
Type = {PhD {T}hesis},
Year = {2011}}
答え1
ドキュメント クラスでは、章とセクションの見出しに番号が付けられていませんtufte-book
。\ref
章/セクション番号を印刷したいのですが、見つからないため、ログ ファイルに次のようなエラーが出力されます。
Package hyperref Warning: Suppressing empty link on input line 18.
章とセクションの番号付けを有効にすると(\setcounter{secnumdepth}{1}
ドキュメントの序文に追加することによって)、問題は解決するはずです。
ただし、の見出しは、tufte-book
デフォルトでは番号がきれいに印刷されるように設計されていないため、書式を少し調整する必要がある場合があります。
代わりに、 の代わりに を使って、番号の代わりに章/節の名前を印刷する\nameref
ことも検討できます。\ref