![Problema do livro Tufte com \ref](https://rvso.com/image/328473/Problema%20do%20livro%20Tufte%20com%20%5Cref.png)
A primeira vez que digito isso, recebo ??
o arquivo \ref
. Na segunda vez, está em branco. Estou usando o TeXShop. Decidi fazer um exemplo que serve biblatex
para obter uma lista de referências para cada capítulo e outra lista no final do livro. Isso torna as listas de referências OK, mas não as \ref
marcas. O que está errado?
\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}
Aqui está referências.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}}
Responder1
Os títulos dos capítulos e seções não são numerados na tufte-book
classe do documento. Como \ref
deseja imprimir o número do capítulo/seção e não consegue encontrá-lo, ele reclama no arquivo de log:
Package hyperref Warning: Suppressing empty link on input line 18.
Se você ativar a numeração de capítulos e seções (adicionando \setcounter{secnumdepth}{1}
ao preâmbulo do seu documento), isso deverá resolver o problema.
Observe, entretanto, que os títulos tufte-book
não foram projetados para imprimir bem a numeração por padrão, então você pode precisar mexer um pouco na formatação.
Como alternativa, você pode considerar usar \nameref
em vez de \ref
imprimir o nome do capítulo/seção em vez do número.