Recall an hypothesis











up vote
1
down vote

favorite












I actually started to use Latex in order to prepare better works.



After that, there is a problem.
This is my code actually:



Determine Hyp 1 and 2



newtheorem{hypothesis}{Hypothesis}

begin{hypothesis} %Hyp 1
begin{justify}
[ RE>RM land RF>RM lor RE<RM land RF<RM implies ]
end{justify}par
end{hypothesis}

begin{hypothesis} %Hyp 2
begin{justify}
[ RE>RM land RF<RM lor RE<RM land RF>RM implies ]
end{justify}par
end{hypothesis}


Now i need to recall Hyp 1 and 2 and i do not want that continue to label it as 3, 4, and so on



begin{hypothesis} %Hyp1
begin{equation}
x
end{equation}par
end{hypothesis}

begin{hypothesis} %Hyp2
begin{equation}
xtimes (-1)
end{equation}par
end{hypothesis}


Writing this code, as i said, it label them as number 1, 2, 3, and 4 while i need Hyp 1, Hyp 2, Hyp1, and Hyp 2.



How can i achieve that?
Many Regards










share|improve this question
















bumped to the homepage by Community 2 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















    up vote
    1
    down vote

    favorite












    I actually started to use Latex in order to prepare better works.



    After that, there is a problem.
    This is my code actually:



    Determine Hyp 1 and 2



    newtheorem{hypothesis}{Hypothesis}

    begin{hypothesis} %Hyp 1
    begin{justify}
    [ RE>RM land RF>RM lor RE<RM land RF<RM implies ]
    end{justify}par
    end{hypothesis}

    begin{hypothesis} %Hyp 2
    begin{justify}
    [ RE>RM land RF<RM lor RE<RM land RF>RM implies ]
    end{justify}par
    end{hypothesis}


    Now i need to recall Hyp 1 and 2 and i do not want that continue to label it as 3, 4, and so on



    begin{hypothesis} %Hyp1
    begin{equation}
    x
    end{equation}par
    end{hypothesis}

    begin{hypothesis} %Hyp2
    begin{equation}
    xtimes (-1)
    end{equation}par
    end{hypothesis}


    Writing this code, as i said, it label them as number 1, 2, 3, and 4 while i need Hyp 1, Hyp 2, Hyp1, and Hyp 2.



    How can i achieve that?
    Many Regards










    share|improve this question
















    bumped to the homepage by Community 2 hours ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I actually started to use Latex in order to prepare better works.



      After that, there is a problem.
      This is my code actually:



      Determine Hyp 1 and 2



      newtheorem{hypothesis}{Hypothesis}

      begin{hypothesis} %Hyp 1
      begin{justify}
      [ RE>RM land RF>RM lor RE<RM land RF<RM implies ]
      end{justify}par
      end{hypothesis}

      begin{hypothesis} %Hyp 2
      begin{justify}
      [ RE>RM land RF<RM lor RE<RM land RF>RM implies ]
      end{justify}par
      end{hypothesis}


      Now i need to recall Hyp 1 and 2 and i do not want that continue to label it as 3, 4, and so on



      begin{hypothesis} %Hyp1
      begin{equation}
      x
      end{equation}par
      end{hypothesis}

      begin{hypothesis} %Hyp2
      begin{equation}
      xtimes (-1)
      end{equation}par
      end{hypothesis}


      Writing this code, as i said, it label them as number 1, 2, 3, and 4 while i need Hyp 1, Hyp 2, Hyp1, and Hyp 2.



      How can i achieve that?
      Many Regards










      share|improve this question















      I actually started to use Latex in order to prepare better works.



      After that, there is a problem.
      This is my code actually:



      Determine Hyp 1 and 2



      newtheorem{hypothesis}{Hypothesis}

      begin{hypothesis} %Hyp 1
      begin{justify}
      [ RE>RM land RF>RM lor RE<RM land RF<RM implies ]
      end{justify}par
      end{hypothesis}

      begin{hypothesis} %Hyp 2
      begin{justify}
      [ RE>RM land RF<RM lor RE<RM land RF>RM implies ]
      end{justify}par
      end{hypothesis}


      Now i need to recall Hyp 1 and 2 and i do not want that continue to label it as 3, 4, and so on



      begin{hypothesis} %Hyp1
      begin{equation}
      x
      end{equation}par
      end{hypothesis}

      begin{hypothesis} %Hyp2
      begin{equation}
      xtimes (-1)
      end{equation}par
      end{hypothesis}


      Writing this code, as i said, it label them as number 1, 2, 3, and 4 while i need Hyp 1, Hyp 2, Hyp1, and Hyp 2.



      How can i achieve that?
      Many Regards







      numbering packages theorems text ntheorem






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 20 at 10:59

























      asked Jun 20 at 10:35









      Rufyyyyy

      62




      62





      bumped to the homepage by Community 2 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 2 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          The following is pretty ugly, but gets the job done. Essentially, it makes a new command for hypothesis 1 and 2 that displays some set text and an equation that is numbered as normal. It plays around with the counter and manipulates it to be what is desired. I wasn't sure what your "justifications" were, so I replaced it with equations, but it can be adapted pretty easily based on what you have in mind.



          documentclass{article}
          usepackage{amsthm, amsmath}

          newcounter{hypcounter}
          newtheorem{hypothesis}{Hypothesis}
          newcommand{firsthyp}[1]{
          setcounter{hypcounter}{value{hypothesis}} % save what number we're at
          setcounter{hypothesis}{0} % so that the hypothesis is numbered 1
          begin{hypothesis}
          My first hypothesis states some stuff
          begin{equation} #1 end{equation}
          end{hypothesis}
          setcounter{hypothesis}{value{hypcounter}} % rewrite that number back into counter
          }
          newcommand{secondhyp}[1]{
          setcounter{hypcounter}{value{hypothesis}}
          setcounter{hypothesis}{1} % so that the hypothesis is numbered 2
          begin{hypothesis}
          My second hypothesis states some other stuff
          begin{equation} #1 end{equation}
          end{hypothesis}
          setcounter{hypothesis}{value{hypcounter}}
          }


          begin{document}
          setcounter{hypothesis}{2} % so that a hypotheses afterwards will begin at 3
          firsthyp{RE>RM land RF>RM lor RE<RM land RF<RM implies}
          secondhyp{RE>RM land RF<RM lor RE<RM land RF>RM implies}

          begin{hypothesis}
          Another hypothesis will be numbered with the next number, $3$.
          begin{equation}
          text{Equation numbering continue as normal}
          end{equation}
          end{hypothesis}

          firsthyp{x}
          secondhyp{xtimes (-1)}

          end{document}





          share|improve this answer





















          • I think setcounter{hypothesis}{n} (n= previous value) before calling the hypothesis and a setcounter{hypothesis}{x} (x= previous than the last hypothesis) after that would be enough for an accepted answer. Or at least if you want to automate it you could do it in a newenvironment command with possibly an optional argument... Seems too complicated to me
            – koleygr
            Sep 19 at 1:09













          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: 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
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f437181%2frecall-an-hypothesis%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          The following is pretty ugly, but gets the job done. Essentially, it makes a new command for hypothesis 1 and 2 that displays some set text and an equation that is numbered as normal. It plays around with the counter and manipulates it to be what is desired. I wasn't sure what your "justifications" were, so I replaced it with equations, but it can be adapted pretty easily based on what you have in mind.



          documentclass{article}
          usepackage{amsthm, amsmath}

          newcounter{hypcounter}
          newtheorem{hypothesis}{Hypothesis}
          newcommand{firsthyp}[1]{
          setcounter{hypcounter}{value{hypothesis}} % save what number we're at
          setcounter{hypothesis}{0} % so that the hypothesis is numbered 1
          begin{hypothesis}
          My first hypothesis states some stuff
          begin{equation} #1 end{equation}
          end{hypothesis}
          setcounter{hypothesis}{value{hypcounter}} % rewrite that number back into counter
          }
          newcommand{secondhyp}[1]{
          setcounter{hypcounter}{value{hypothesis}}
          setcounter{hypothesis}{1} % so that the hypothesis is numbered 2
          begin{hypothesis}
          My second hypothesis states some other stuff
          begin{equation} #1 end{equation}
          end{hypothesis}
          setcounter{hypothesis}{value{hypcounter}}
          }


          begin{document}
          setcounter{hypothesis}{2} % so that a hypotheses afterwards will begin at 3
          firsthyp{RE>RM land RF>RM lor RE<RM land RF<RM implies}
          secondhyp{RE>RM land RF<RM lor RE<RM land RF>RM implies}

          begin{hypothesis}
          Another hypothesis will be numbered with the next number, $3$.
          begin{equation}
          text{Equation numbering continue as normal}
          end{equation}
          end{hypothesis}

          firsthyp{x}
          secondhyp{xtimes (-1)}

          end{document}





          share|improve this answer





















          • I think setcounter{hypothesis}{n} (n= previous value) before calling the hypothesis and a setcounter{hypothesis}{x} (x= previous than the last hypothesis) after that would be enough for an accepted answer. Or at least if you want to automate it you could do it in a newenvironment command with possibly an optional argument... Seems too complicated to me
            – koleygr
            Sep 19 at 1:09

















          up vote
          0
          down vote













          The following is pretty ugly, but gets the job done. Essentially, it makes a new command for hypothesis 1 and 2 that displays some set text and an equation that is numbered as normal. It plays around with the counter and manipulates it to be what is desired. I wasn't sure what your "justifications" were, so I replaced it with equations, but it can be adapted pretty easily based on what you have in mind.



          documentclass{article}
          usepackage{amsthm, amsmath}

          newcounter{hypcounter}
          newtheorem{hypothesis}{Hypothesis}
          newcommand{firsthyp}[1]{
          setcounter{hypcounter}{value{hypothesis}} % save what number we're at
          setcounter{hypothesis}{0} % so that the hypothesis is numbered 1
          begin{hypothesis}
          My first hypothesis states some stuff
          begin{equation} #1 end{equation}
          end{hypothesis}
          setcounter{hypothesis}{value{hypcounter}} % rewrite that number back into counter
          }
          newcommand{secondhyp}[1]{
          setcounter{hypcounter}{value{hypothesis}}
          setcounter{hypothesis}{1} % so that the hypothesis is numbered 2
          begin{hypothesis}
          My second hypothesis states some other stuff
          begin{equation} #1 end{equation}
          end{hypothesis}
          setcounter{hypothesis}{value{hypcounter}}
          }


          begin{document}
          setcounter{hypothesis}{2} % so that a hypotheses afterwards will begin at 3
          firsthyp{RE>RM land RF>RM lor RE<RM land RF<RM implies}
          secondhyp{RE>RM land RF<RM lor RE<RM land RF>RM implies}

          begin{hypothesis}
          Another hypothesis will be numbered with the next number, $3$.
          begin{equation}
          text{Equation numbering continue as normal}
          end{equation}
          end{hypothesis}

          firsthyp{x}
          secondhyp{xtimes (-1)}

          end{document}





          share|improve this answer





















          • I think setcounter{hypothesis}{n} (n= previous value) before calling the hypothesis and a setcounter{hypothesis}{x} (x= previous than the last hypothesis) after that would be enough for an accepted answer. Or at least if you want to automate it you could do it in a newenvironment command with possibly an optional argument... Seems too complicated to me
            – koleygr
            Sep 19 at 1:09















          up vote
          0
          down vote










          up vote
          0
          down vote









          The following is pretty ugly, but gets the job done. Essentially, it makes a new command for hypothesis 1 and 2 that displays some set text and an equation that is numbered as normal. It plays around with the counter and manipulates it to be what is desired. I wasn't sure what your "justifications" were, so I replaced it with equations, but it can be adapted pretty easily based on what you have in mind.



          documentclass{article}
          usepackage{amsthm, amsmath}

          newcounter{hypcounter}
          newtheorem{hypothesis}{Hypothesis}
          newcommand{firsthyp}[1]{
          setcounter{hypcounter}{value{hypothesis}} % save what number we're at
          setcounter{hypothesis}{0} % so that the hypothesis is numbered 1
          begin{hypothesis}
          My first hypothesis states some stuff
          begin{equation} #1 end{equation}
          end{hypothesis}
          setcounter{hypothesis}{value{hypcounter}} % rewrite that number back into counter
          }
          newcommand{secondhyp}[1]{
          setcounter{hypcounter}{value{hypothesis}}
          setcounter{hypothesis}{1} % so that the hypothesis is numbered 2
          begin{hypothesis}
          My second hypothesis states some other stuff
          begin{equation} #1 end{equation}
          end{hypothesis}
          setcounter{hypothesis}{value{hypcounter}}
          }


          begin{document}
          setcounter{hypothesis}{2} % so that a hypotheses afterwards will begin at 3
          firsthyp{RE>RM land RF>RM lor RE<RM land RF<RM implies}
          secondhyp{RE>RM land RF<RM lor RE<RM land RF>RM implies}

          begin{hypothesis}
          Another hypothesis will be numbered with the next number, $3$.
          begin{equation}
          text{Equation numbering continue as normal}
          end{equation}
          end{hypothesis}

          firsthyp{x}
          secondhyp{xtimes (-1)}

          end{document}





          share|improve this answer












          The following is pretty ugly, but gets the job done. Essentially, it makes a new command for hypothesis 1 and 2 that displays some set text and an equation that is numbered as normal. It plays around with the counter and manipulates it to be what is desired. I wasn't sure what your "justifications" were, so I replaced it with equations, but it can be adapted pretty easily based on what you have in mind.



          documentclass{article}
          usepackage{amsthm, amsmath}

          newcounter{hypcounter}
          newtheorem{hypothesis}{Hypothesis}
          newcommand{firsthyp}[1]{
          setcounter{hypcounter}{value{hypothesis}} % save what number we're at
          setcounter{hypothesis}{0} % so that the hypothesis is numbered 1
          begin{hypothesis}
          My first hypothesis states some stuff
          begin{equation} #1 end{equation}
          end{hypothesis}
          setcounter{hypothesis}{value{hypcounter}} % rewrite that number back into counter
          }
          newcommand{secondhyp}[1]{
          setcounter{hypcounter}{value{hypothesis}}
          setcounter{hypothesis}{1} % so that the hypothesis is numbered 2
          begin{hypothesis}
          My second hypothesis states some other stuff
          begin{equation} #1 end{equation}
          end{hypothesis}
          setcounter{hypothesis}{value{hypcounter}}
          }


          begin{document}
          setcounter{hypothesis}{2} % so that a hypotheses afterwards will begin at 3
          firsthyp{RE>RM land RF>RM lor RE<RM land RF<RM implies}
          secondhyp{RE>RM land RF<RM lor RE<RM land RF>RM implies}

          begin{hypothesis}
          Another hypothesis will be numbered with the next number, $3$.
          begin{equation}
          text{Equation numbering continue as normal}
          end{equation}
          end{hypothesis}

          firsthyp{x}
          secondhyp{xtimes (-1)}

          end{document}






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 20 at 22:34









          CrimsonRain

          71717




          71717












          • I think setcounter{hypothesis}{n} (n= previous value) before calling the hypothesis and a setcounter{hypothesis}{x} (x= previous than the last hypothesis) after that would be enough for an accepted answer. Or at least if you want to automate it you could do it in a newenvironment command with possibly an optional argument... Seems too complicated to me
            – koleygr
            Sep 19 at 1:09




















          • I think setcounter{hypothesis}{n} (n= previous value) before calling the hypothesis and a setcounter{hypothesis}{x} (x= previous than the last hypothesis) after that would be enough for an accepted answer. Or at least if you want to automate it you could do it in a newenvironment command with possibly an optional argument... Seems too complicated to me
            – koleygr
            Sep 19 at 1:09


















          I think setcounter{hypothesis}{n} (n= previous value) before calling the hypothesis and a setcounter{hypothesis}{x} (x= previous than the last hypothesis) after that would be enough for an accepted answer. Or at least if you want to automate it you could do it in a newenvironment command with possibly an optional argument... Seems too complicated to me
          – koleygr
          Sep 19 at 1:09






          I think setcounter{hypothesis}{n} (n= previous value) before calling the hypothesis and a setcounter{hypothesis}{x} (x= previous than the last hypothesis) after that would be enough for an accepted answer. Or at least if you want to automate it you could do it in a newenvironment command with possibly an optional argument... Seems too complicated to me
          – koleygr
          Sep 19 at 1:09




















          draft saved

          draft discarded




















































          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f437181%2frecall-an-hypothesis%23new-answer', 'question_page');
          }
          );

          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







          Popular posts from this blog

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

          Calculate evaluation metrics using cross_val_predict sklearn

          Insert data from modal to MySQL (multiple modal on website)