Tufte-book problem with ref
The first time I typeset this I get ??
for the ref
. The second time, it is blank. I am using TeXShop. I set out to make an example that uses biblatex
to get a list of references for each chapter and another list at the end of the book. It makes the reference lists OK, but not the ref
marks. What is wrong?
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 textautocite{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}
Here is 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}}
tufte books
add a comment |
The first time I typeset this I get ??
for the ref
. The second time, it is blank. I am using TeXShop. I set out to make an example that uses biblatex
to get a list of references for each chapter and another list at the end of the book. It makes the reference lists OK, but not the ref
marks. What is wrong?
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 textautocite{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}
Here is 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}}
tufte books
add a comment |
The first time I typeset this I get ??
for the ref
. The second time, it is blank. I am using TeXShop. I set out to make an example that uses biblatex
to get a list of references for each chapter and another list at the end of the book. It makes the reference lists OK, but not the ref
marks. What is wrong?
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 textautocite{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}
Here is 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}}
tufte books
The first time I typeset this I get ??
for the ref
. The second time, it is blank. I am using TeXShop. I set out to make an example that uses biblatex
to get a list of references for each chapter and another list at the end of the book. It makes the reference lists OK, but not the ref
marks. What is wrong?
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 textautocite{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}
Here is 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}}
tufte books
tufte books
edited Oct 3 '16 at 16:02
twip
200111
200111
asked Feb 17 '16 at 23:47
Sam CoxSam Cox
212
212
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The chapter and section headings are unnumbered in the tufte-book
document class. Since ref
wants to print the chapter/section number and can't find it, it complains in the log file:
Package hyperref Warning: Suppressing empty link on input line 18.
If you turn on the chapter and section numbering (by adding setcounter{secnumdepth}{1}
to the preamble of your document), it should fix the problem.
Note, however, that the headings in the tufte-book
aren't designed to print the numbering nicely by default, so you may need to fiddle with the formatting a little bit.
As an alternative, you might consider using nameref
instead of ref
to print the name of the chapter/section instead of the number.
Thank you. That solved the problem. I am using setcounter.
– Sam Cox
Feb 19 '16 at 15:47
+1 for thenameref
suggestion. Just what I needed to know.
– twip
Oct 3 '16 at 15:36
add a comment |
Thank you Godbyk, you just made my day! Woohoo.
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f294534%2ftufte-book-problem-with-ref%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The chapter and section headings are unnumbered in the tufte-book
document class. Since ref
wants to print the chapter/section number and can't find it, it complains in the log file:
Package hyperref Warning: Suppressing empty link on input line 18.
If you turn on the chapter and section numbering (by adding setcounter{secnumdepth}{1}
to the preamble of your document), it should fix the problem.
Note, however, that the headings in the tufte-book
aren't designed to print the numbering nicely by default, so you may need to fiddle with the formatting a little bit.
As an alternative, you might consider using nameref
instead of ref
to print the name of the chapter/section instead of the number.
Thank you. That solved the problem. I am using setcounter.
– Sam Cox
Feb 19 '16 at 15:47
+1 for thenameref
suggestion. Just what I needed to know.
– twip
Oct 3 '16 at 15:36
add a comment |
The chapter and section headings are unnumbered in the tufte-book
document class. Since ref
wants to print the chapter/section number and can't find it, it complains in the log file:
Package hyperref Warning: Suppressing empty link on input line 18.
If you turn on the chapter and section numbering (by adding setcounter{secnumdepth}{1}
to the preamble of your document), it should fix the problem.
Note, however, that the headings in the tufte-book
aren't designed to print the numbering nicely by default, so you may need to fiddle with the formatting a little bit.
As an alternative, you might consider using nameref
instead of ref
to print the name of the chapter/section instead of the number.
Thank you. That solved the problem. I am using setcounter.
– Sam Cox
Feb 19 '16 at 15:47
+1 for thenameref
suggestion. Just what I needed to know.
– twip
Oct 3 '16 at 15:36
add a comment |
The chapter and section headings are unnumbered in the tufte-book
document class. Since ref
wants to print the chapter/section number and can't find it, it complains in the log file:
Package hyperref Warning: Suppressing empty link on input line 18.
If you turn on the chapter and section numbering (by adding setcounter{secnumdepth}{1}
to the preamble of your document), it should fix the problem.
Note, however, that the headings in the tufte-book
aren't designed to print the numbering nicely by default, so you may need to fiddle with the formatting a little bit.
As an alternative, you might consider using nameref
instead of ref
to print the name of the chapter/section instead of the number.
The chapter and section headings are unnumbered in the tufte-book
document class. Since ref
wants to print the chapter/section number and can't find it, it complains in the log file:
Package hyperref Warning: Suppressing empty link on input line 18.
If you turn on the chapter and section numbering (by adding setcounter{secnumdepth}{1}
to the preamble of your document), it should fix the problem.
Note, however, that the headings in the tufte-book
aren't designed to print the numbering nicely by default, so you may need to fiddle with the formatting a little bit.
As an alternative, you might consider using nameref
instead of ref
to print the name of the chapter/section instead of the number.
answered Feb 18 '16 at 3:19
godbykgodbyk
6,08212339
6,08212339
Thank you. That solved the problem. I am using setcounter.
– Sam Cox
Feb 19 '16 at 15:47
+1 for thenameref
suggestion. Just what I needed to know.
– twip
Oct 3 '16 at 15:36
add a comment |
Thank you. That solved the problem. I am using setcounter.
– Sam Cox
Feb 19 '16 at 15:47
+1 for thenameref
suggestion. Just what I needed to know.
– twip
Oct 3 '16 at 15:36
Thank you. That solved the problem. I am using setcounter.
– Sam Cox
Feb 19 '16 at 15:47
Thank you. That solved the problem. I am using setcounter.
– Sam Cox
Feb 19 '16 at 15:47
+1 for the
nameref
suggestion. Just what I needed to know.– twip
Oct 3 '16 at 15:36
+1 for the
nameref
suggestion. Just what I needed to know.– twip
Oct 3 '16 at 15:36
add a comment |
Thank you Godbyk, you just made my day! Woohoo.
New contributor
add a comment |
Thank you Godbyk, you just made my day! Woohoo.
New contributor
add a comment |
Thank you Godbyk, you just made my day! Woohoo.
New contributor
Thank you Godbyk, you just made my day! Woohoo.
New contributor
New contributor
answered 25 mins ago
SamCastleSamCastle
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f294534%2ftufte-book-problem-with-ref%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown