Why does hyperref refer to the wrong place when I define a new theorem?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I am writing a pdf textbook (using miktex & TexShop). The outline of the tex file is as below. Problem 2 refers to Problem 1. However, hyperref directs the reader to Thm 1. Is there a way for me to fix it? (The problems at the end of the section should be numbered from 1 and the problem section should not advance the section number.)
documentclassamsart
usepackagehyperref
newtheoremtheoremTheorem[section]
newtheoremproblem[theorem]Problem
begindocument
sectionLogic
begintheoremlabelthm1 Blah endtheorem
eject
section*Problemssetcountertheorem0
beginproblemlabelprob1
Prove $P Rightarrow Q$
endproblem
beginproblem
Prove the inverse implication of Problem refprob1.
endproblem
enddocument
pdftex hyperref texshop
add a comment |Â
up vote
2
down vote
favorite
I am writing a pdf textbook (using miktex & TexShop). The outline of the tex file is as below. Problem 2 refers to Problem 1. However, hyperref directs the reader to Thm 1. Is there a way for me to fix it? (The problems at the end of the section should be numbered from 1 and the problem section should not advance the section number.)
documentclassamsart
usepackagehyperref
newtheoremtheoremTheorem[section]
newtheoremproblem[theorem]Problem
begindocument
sectionLogic
begintheoremlabelthm1 Blah endtheorem
eject
section*Problemssetcountertheorem0
beginproblemlabelprob1
Prove $P Rightarrow Q$
endproblem
beginproblem
Prove the inverse implication of Problem refprob1.
endproblem
enddocument
pdftex hyperref texshop
What's the reason fornewtheoremproblem[theorem]Problem
? Just donewtheoremproblemProblem[section]
.
â egreg
3 hours ago
@egreg: Thanks, that fixed it!
â Adam
3 hours ago
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am writing a pdf textbook (using miktex & TexShop). The outline of the tex file is as below. Problem 2 refers to Problem 1. However, hyperref directs the reader to Thm 1. Is there a way for me to fix it? (The problems at the end of the section should be numbered from 1 and the problem section should not advance the section number.)
documentclassamsart
usepackagehyperref
newtheoremtheoremTheorem[section]
newtheoremproblem[theorem]Problem
begindocument
sectionLogic
begintheoremlabelthm1 Blah endtheorem
eject
section*Problemssetcountertheorem0
beginproblemlabelprob1
Prove $P Rightarrow Q$
endproblem
beginproblem
Prove the inverse implication of Problem refprob1.
endproblem
enddocument
pdftex hyperref texshop
I am writing a pdf textbook (using miktex & TexShop). The outline of the tex file is as below. Problem 2 refers to Problem 1. However, hyperref directs the reader to Thm 1. Is there a way for me to fix it? (The problems at the end of the section should be numbered from 1 and the problem section should not advance the section number.)
documentclassamsart
usepackagehyperref
newtheoremtheoremTheorem[section]
newtheoremproblem[theorem]Problem
begindocument
sectionLogic
begintheoremlabelthm1 Blah endtheorem
eject
section*Problemssetcountertheorem0
beginproblemlabelprob1
Prove $P Rightarrow Q$
endproblem
beginproblem
Prove the inverse implication of Problem refprob1.
endproblem
enddocument
pdftex hyperref texshop
pdftex hyperref texshop
edited 18 mins ago
Al-Motasem Aldaoudeyeh
1,331211
1,331211
asked 3 hours ago
Adam
1504
1504
What's the reason fornewtheoremproblem[theorem]Problem
? Just donewtheoremproblemProblem[section]
.
â egreg
3 hours ago
@egreg: Thanks, that fixed it!
â Adam
3 hours ago
add a comment |Â
What's the reason fornewtheoremproblem[theorem]Problem
? Just donewtheoremproblemProblem[section]
.
â egreg
3 hours ago
@egreg: Thanks, that fixed it!
â Adam
3 hours ago
What's the reason for
newtheoremproblem[theorem]Problem
? Just do newtheoremproblemProblem[section]
.â egreg
3 hours ago
What's the reason for
newtheoremproblem[theorem]Problem
? Just do newtheoremproblemProblem[section]
.â egreg
3 hours ago
@egreg: Thanks, that fixed it!
â Adam
3 hours ago
@egreg: Thanks, that fixed it!
â Adam
3 hours ago
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
If the structure is always
sectionTitle
Text for the section
clearpage
section*Problems
Problems
then you can just define problem
as numbered within sections.
documentclassamsart
usepackagehyperref
newtheoremtheoremTheorem[section]
newtheoremproblemProblem[section]
begindocument
sectionLogic
begintheoremlabelthm1 Blah endtheorem
clearpage
section*Problems
beginproblemlabelprob1
Prove $P Rightarrow Q$
endproblem
beginproblem
Prove the inverse implication of Problem refprob1.
endproblem
enddocument
Don't use eject
, but clearpage
.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
If the structure is always
sectionTitle
Text for the section
clearpage
section*Problems
Problems
then you can just define problem
as numbered within sections.
documentclassamsart
usepackagehyperref
newtheoremtheoremTheorem[section]
newtheoremproblemProblem[section]
begindocument
sectionLogic
begintheoremlabelthm1 Blah endtheorem
clearpage
section*Problems
beginproblemlabelprob1
Prove $P Rightarrow Q$
endproblem
beginproblem
Prove the inverse implication of Problem refprob1.
endproblem
enddocument
Don't use eject
, but clearpage
.
add a comment |Â
up vote
4
down vote
accepted
If the structure is always
sectionTitle
Text for the section
clearpage
section*Problems
Problems
then you can just define problem
as numbered within sections.
documentclassamsart
usepackagehyperref
newtheoremtheoremTheorem[section]
newtheoremproblemProblem[section]
begindocument
sectionLogic
begintheoremlabelthm1 Blah endtheorem
clearpage
section*Problems
beginproblemlabelprob1
Prove $P Rightarrow Q$
endproblem
beginproblem
Prove the inverse implication of Problem refprob1.
endproblem
enddocument
Don't use eject
, but clearpage
.
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
If the structure is always
sectionTitle
Text for the section
clearpage
section*Problems
Problems
then you can just define problem
as numbered within sections.
documentclassamsart
usepackagehyperref
newtheoremtheoremTheorem[section]
newtheoremproblemProblem[section]
begindocument
sectionLogic
begintheoremlabelthm1 Blah endtheorem
clearpage
section*Problems
beginproblemlabelprob1
Prove $P Rightarrow Q$
endproblem
beginproblem
Prove the inverse implication of Problem refprob1.
endproblem
enddocument
Don't use eject
, but clearpage
.
If the structure is always
sectionTitle
Text for the section
clearpage
section*Problems
Problems
then you can just define problem
as numbered within sections.
documentclassamsart
usepackagehyperref
newtheoremtheoremTheorem[section]
newtheoremproblemProblem[section]
begindocument
sectionLogic
begintheoremlabelthm1 Blah endtheorem
clearpage
section*Problems
beginproblemlabelprob1
Prove $P Rightarrow Q$
endproblem
beginproblem
Prove the inverse implication of Problem refprob1.
endproblem
enddocument
Don't use eject
, but clearpage
.
answered 3 hours ago
egreg
685k8418273077
685k8418273077
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f453131%2fwhy-does-hyperref-refer-to-the-wrong-place-when-i-define-a-new-theorem%23new-answer', 'question_page');
);
Post as a guest
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
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
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
What's the reason for
newtheoremproblem[theorem]Problem
? Just donewtheoremproblemProblem[section]
.â egreg
3 hours ago
@egreg: Thanks, that fixed it!
â Adam
3 hours ago