Undefined control sequence in R markdown











up vote
1
down vote

favorite












I have got stuck on this code which I could not be
able to find that in my content anymore after checking for
more than two times.



Is there any packages I should have updated?
As I am using TexShop and Text Live Utility.
Thank you very much!
I need to compile it and submit the assignment on time. :(
Any help would be appreciated!!



    /Applications/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS STAT_731_Exam_3_JenLi_Chen.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output STAT_731_Exam_3_JenLi_Chen.tex --template /Library/Frameworks/R.framework/Versions/3.5/Resources/library/rmarkdown/rmd/latex/default-1.17.0.2.tex --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable 'geometry:margin=1in' --variable 'compact-title:yes' 
! Undefined control sequence.
l.138 ...a)e^{-x/theta},) (xge0,) (thetagt
0)









share|improve this question


























    up vote
    1
    down vote

    favorite












    I have got stuck on this code which I could not be
    able to find that in my content anymore after checking for
    more than two times.



    Is there any packages I should have updated?
    As I am using TexShop and Text Live Utility.
    Thank you very much!
    I need to compile it and submit the assignment on time. :(
    Any help would be appreciated!!



        /Applications/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS STAT_731_Exam_3_JenLi_Chen.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output STAT_731_Exam_3_JenLi_Chen.tex --template /Library/Frameworks/R.framework/Versions/3.5/Resources/library/rmarkdown/rmd/latex/default-1.17.0.2.tex --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable 'geometry:margin=1in' --variable 'compact-title:yes' 
    ! Undefined control sequence.
    l.138 ...a)e^{-x/theta},) (xge0,) (thetagt
    0)









    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have got stuck on this code which I could not be
      able to find that in my content anymore after checking for
      more than two times.



      Is there any packages I should have updated?
      As I am using TexShop and Text Live Utility.
      Thank you very much!
      I need to compile it and submit the assignment on time. :(
      Any help would be appreciated!!



          /Applications/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS STAT_731_Exam_3_JenLi_Chen.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output STAT_731_Exam_3_JenLi_Chen.tex --template /Library/Frameworks/R.framework/Versions/3.5/Resources/library/rmarkdown/rmd/latex/default-1.17.0.2.tex --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable 'geometry:margin=1in' --variable 'compact-title:yes' 
      ! Undefined control sequence.
      l.138 ...a)e^{-x/theta},) (xge0,) (thetagt
      0)









      share|improve this question













      I have got stuck on this code which I could not be
      able to find that in my content anymore after checking for
      more than two times.



      Is there any packages I should have updated?
      As I am using TexShop and Text Live Utility.
      Thank you very much!
      I need to compile it and submit the assignment on time. :(
      Any help would be appreciated!!



          /Applications/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS STAT_731_Exam_3_JenLi_Chen.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output STAT_731_Exam_3_JenLi_Chen.tex --template /Library/Frameworks/R.framework/Versions/3.5/Resources/library/rmarkdown/rmd/latex/default-1.17.0.2.tex --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable 'geometry:margin=1in' --variable 'compact-title:yes' 
      ! Undefined control sequence.
      l.138 ...a)e^{-x/theta},) (xge0,) (thetagt
      0)






      r markdown






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 4 at 0:53









      Chen

      102




      102






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          Macros like ge is defined by default to be equivalent to geq or . However, gt is not. Assuming it should be equivalent to >, you can just add



          ---
          # ...
          header-includes:
          - newcommand{gt}{>}
          - newcommand{lt}{<}
          # ...
          ---


          nath defines them as well



          edeflt{mathcharthemathcode`<relax}
          edefgt{mathcharthemathcode`>relax}


          so you can



          ---
          # ...
          header-includes:
          -usepackage{nath}
          # ...
          ---


          as part of your YAML header.






          share|improve this answer





















          • Thank you very much!!
            – Chen
            Dec 5 at 22:55











          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%2f463072%2fundefined-control-sequence-in-r-markdown%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
          3
          down vote



          accepted










          Macros like ge is defined by default to be equivalent to geq or . However, gt is not. Assuming it should be equivalent to >, you can just add



          ---
          # ...
          header-includes:
          - newcommand{gt}{>}
          - newcommand{lt}{<}
          # ...
          ---


          nath defines them as well



          edeflt{mathcharthemathcode`<relax}
          edefgt{mathcharthemathcode`>relax}


          so you can



          ---
          # ...
          header-includes:
          -usepackage{nath}
          # ...
          ---


          as part of your YAML header.






          share|improve this answer





















          • Thank you very much!!
            – Chen
            Dec 5 at 22:55















          up vote
          3
          down vote



          accepted










          Macros like ge is defined by default to be equivalent to geq or . However, gt is not. Assuming it should be equivalent to >, you can just add



          ---
          # ...
          header-includes:
          - newcommand{gt}{>}
          - newcommand{lt}{<}
          # ...
          ---


          nath defines them as well



          edeflt{mathcharthemathcode`<relax}
          edefgt{mathcharthemathcode`>relax}


          so you can



          ---
          # ...
          header-includes:
          -usepackage{nath}
          # ...
          ---


          as part of your YAML header.






          share|improve this answer





















          • Thank you very much!!
            – Chen
            Dec 5 at 22:55













          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          Macros like ge is defined by default to be equivalent to geq or . However, gt is not. Assuming it should be equivalent to >, you can just add



          ---
          # ...
          header-includes:
          - newcommand{gt}{>}
          - newcommand{lt}{<}
          # ...
          ---


          nath defines them as well



          edeflt{mathcharthemathcode`<relax}
          edefgt{mathcharthemathcode`>relax}


          so you can



          ---
          # ...
          header-includes:
          -usepackage{nath}
          # ...
          ---


          as part of your YAML header.






          share|improve this answer












          Macros like ge is defined by default to be equivalent to geq or . However, gt is not. Assuming it should be equivalent to >, you can just add



          ---
          # ...
          header-includes:
          - newcommand{gt}{>}
          - newcommand{lt}{<}
          # ...
          ---


          nath defines them as well



          edeflt{mathcharthemathcode`<relax}
          edefgt{mathcharthemathcode`>relax}


          so you can



          ---
          # ...
          header-includes:
          -usepackage{nath}
          # ...
          ---


          as part of your YAML header.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 4 at 2:23









          Werner

          434k619531639




          434k619531639












          • Thank you very much!!
            – Chen
            Dec 5 at 22:55


















          • Thank you very much!!
            – Chen
            Dec 5 at 22:55
















          Thank you very much!!
          – Chen
          Dec 5 at 22:55




          Thank you very much!!
          – Chen
          Dec 5 at 22:55


















          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%2f463072%2fundefined-control-sequence-in-r-markdown%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

          Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

          ComboBox Display Member on multiple fields

          Is it possible to collect Nectar points via Trainline?