hyperref error?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












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








share





















  • What's the reason for newtheoremproblem[theorem]Problem? Just do newtheoremproblemProblem[section].
    – egreg
    24 mins ago










  • @egreg: Thanks, that fixed it!
    – Adam
    18 mins ago














up vote
2
down vote

favorite
1












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








share





















  • What's the reason for newtheoremproblem[theorem]Problem? Just do newtheoremproblemProblem[section].
    – egreg
    24 mins ago










  • @egreg: Thanks, that fixed it!
    – Adam
    18 mins ago












up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





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








share













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





share












share










share



share










asked 33 mins ago









Adam

1504




1504











  • What's the reason for newtheoremproblem[theorem]Problem? Just do newtheoremproblemProblem[section].
    – egreg
    24 mins ago










  • @egreg: Thanks, that fixed it!
    – Adam
    18 mins ago
















  • What's the reason for newtheoremproblem[theorem]Problem? Just do newtheoremproblemProblem[section].
    – egreg
    24 mins ago










  • @egreg: Thanks, that fixed it!
    – Adam
    18 mins ago















What's the reason for newtheoremproblem[theorem]Problem? Just do newtheoremproblemProblem[section].
– egreg
24 mins ago




What's the reason for newtheoremproblem[theorem]Problem? Just do newtheoremproblemProblem[section].
– egreg
24 mins ago












@egreg: Thanks, that fixed it!
– Adam
18 mins ago




@egreg: Thanks, that fixed it!
– Adam
18 mins ago










1 Answer
1






active

oldest

votes

















up vote
3
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


enter image description here



Don't use eject, but clearpage.






share|improve this answer




















    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f453131%2fhyperref-error%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    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


    enter image description here



    Don't use eject, but clearpage.






    share|improve this answer
























      up vote
      3
      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


      enter image description here



      Don't use eject, but clearpage.






      share|improve this answer






















        up vote
        3
        down vote



        accepted







        up vote
        3
        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


        enter image description here



        Don't use eject, but clearpage.






        share|improve this answer












        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


        enter image description here



        Don't use eject, but clearpage.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 21 mins ago









        egreg

        685k8418273077




        685k8418273077



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f453131%2fhyperref-error%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            Installing NextGIS Connect into QGIS 3?

            One-line joke