Why does adding a Bar in a differential equation cause all these errors?












1















The line in question:



B &= diffp* { f(x, Bar{mu}) } { Bar{mu} } { x_{eq}, Bar{mu}_{eq} }



The second Bar{mu} (bolded for clarity) seems to throw everything awry. Omitting the Bar (just having '{ mu }') works just fine, everything compiles with no errors and displays as expected. Including the Bar gives me 44 errors, the first few of which would suggest I forgot a '}', but I've checked and triple checked, and I can find no missing or mismatched brackets.



I'm guessing there's some quirk of diffp* that's causing this, but it's what I've used everywhere else in the document, and I'd rather not have to go back and change them all to frac for consistency. So how do I get a bar on the bottom with diffp*, and why is my way incorrect?



EDIT: diffp* comes from the package esdiff.



A full example doc:



documentclass[12pt]{extarticle}
usepackage[utf8]{inputenc}
usepackage{cite}
usepackage{amsmath}
usepackage{esdiff}
usepackage{ amssymb }

begin{document}

begin{align*}
A &= diffp*{f(x,bar{mu})}{x}{x_{eq},Bar{mu}_{eq}}\
B &= diffp* {f(x, Bar{mu})} {Bar{mu}} {x_{eq},Bar{mu}_{eq}}
end{align*}

end{document}









share|improve this question




















  • 2





    What is Bar? Where did you get it from? What package? Did you mean bar?

    – Steven B. Segletes
    Feb 17 at 17:36











  • Definitely meant Bar. I'm pretty sure it's from amsmath, could be amssymb. I should probably also mention that this line is in an align* block with a similar line above it.

    – Nick J
    Feb 17 at 17:44











  • After double checking, bar and Bar seem to do the same thing. Both add a bar no top of the symbol, both throw the same errors in that line.

    – Nick J
    Feb 17 at 17:47











  • Why don't you give us a small, but complete document that displays the issue?

    – Steven B. Segletes
    Feb 17 at 17:51











  • documentclass[12pt]{extarticle} usepackage[utf8]{inputenc} usepackage{cite} usepackage{amsmath} usepackage{esdiff} usepackage{ amssymb } begin{document} begin{align*} A &= diffp*{f(x,bar{mu})}{x}{x_{eq},Bar{mu}_{eq}}\ B &= diffp* {f(x, Bar{mu})} {Bar{mu}} {x_{eq},Bar{mu}_{eq}} end{align*} end{document}

    – Nick J
    Feb 17 at 17:54


















1















The line in question:



B &= diffp* { f(x, Bar{mu}) } { Bar{mu} } { x_{eq}, Bar{mu}_{eq} }



The second Bar{mu} (bolded for clarity) seems to throw everything awry. Omitting the Bar (just having '{ mu }') works just fine, everything compiles with no errors and displays as expected. Including the Bar gives me 44 errors, the first few of which would suggest I forgot a '}', but I've checked and triple checked, and I can find no missing or mismatched brackets.



I'm guessing there's some quirk of diffp* that's causing this, but it's what I've used everywhere else in the document, and I'd rather not have to go back and change them all to frac for consistency. So how do I get a bar on the bottom with diffp*, and why is my way incorrect?



EDIT: diffp* comes from the package esdiff.



A full example doc:



documentclass[12pt]{extarticle}
usepackage[utf8]{inputenc}
usepackage{cite}
usepackage{amsmath}
usepackage{esdiff}
usepackage{ amssymb }

begin{document}

begin{align*}
A &= diffp*{f(x,bar{mu})}{x}{x_{eq},Bar{mu}_{eq}}\
B &= diffp* {f(x, Bar{mu})} {Bar{mu}} {x_{eq},Bar{mu}_{eq}}
end{align*}

end{document}









share|improve this question




















  • 2





    What is Bar? Where did you get it from? What package? Did you mean bar?

    – Steven B. Segletes
    Feb 17 at 17:36











  • Definitely meant Bar. I'm pretty sure it's from amsmath, could be amssymb. I should probably also mention that this line is in an align* block with a similar line above it.

    – Nick J
    Feb 17 at 17:44











  • After double checking, bar and Bar seem to do the same thing. Both add a bar no top of the symbol, both throw the same errors in that line.

    – Nick J
    Feb 17 at 17:47











  • Why don't you give us a small, but complete document that displays the issue?

    – Steven B. Segletes
    Feb 17 at 17:51











  • documentclass[12pt]{extarticle} usepackage[utf8]{inputenc} usepackage{cite} usepackage{amsmath} usepackage{esdiff} usepackage{ amssymb } begin{document} begin{align*} A &= diffp*{f(x,bar{mu})}{x}{x_{eq},Bar{mu}_{eq}}\ B &= diffp* {f(x, Bar{mu})} {Bar{mu}} {x_{eq},Bar{mu}_{eq}} end{align*} end{document}

    – Nick J
    Feb 17 at 17:54
















1












1








1








The line in question:



B &= diffp* { f(x, Bar{mu}) } { Bar{mu} } { x_{eq}, Bar{mu}_{eq} }



The second Bar{mu} (bolded for clarity) seems to throw everything awry. Omitting the Bar (just having '{ mu }') works just fine, everything compiles with no errors and displays as expected. Including the Bar gives me 44 errors, the first few of which would suggest I forgot a '}', but I've checked and triple checked, and I can find no missing or mismatched brackets.



I'm guessing there's some quirk of diffp* that's causing this, but it's what I've used everywhere else in the document, and I'd rather not have to go back and change them all to frac for consistency. So how do I get a bar on the bottom with diffp*, and why is my way incorrect?



EDIT: diffp* comes from the package esdiff.



A full example doc:



documentclass[12pt]{extarticle}
usepackage[utf8]{inputenc}
usepackage{cite}
usepackage{amsmath}
usepackage{esdiff}
usepackage{ amssymb }

begin{document}

begin{align*}
A &= diffp*{f(x,bar{mu})}{x}{x_{eq},Bar{mu}_{eq}}\
B &= diffp* {f(x, Bar{mu})} {Bar{mu}} {x_{eq},Bar{mu}_{eq}}
end{align*}

end{document}









share|improve this question
















The line in question:



B &= diffp* { f(x, Bar{mu}) } { Bar{mu} } { x_{eq}, Bar{mu}_{eq} }



The second Bar{mu} (bolded for clarity) seems to throw everything awry. Omitting the Bar (just having '{ mu }') works just fine, everything compiles with no errors and displays as expected. Including the Bar gives me 44 errors, the first few of which would suggest I forgot a '}', but I've checked and triple checked, and I can find no missing or mismatched brackets.



I'm guessing there's some quirk of diffp* that's causing this, but it's what I've used everywhere else in the document, and I'd rather not have to go back and change them all to frac for consistency. So how do I get a bar on the bottom with diffp*, and why is my way incorrect?



EDIT: diffp* comes from the package esdiff.



A full example doc:



documentclass[12pt]{extarticle}
usepackage[utf8]{inputenc}
usepackage{cite}
usepackage{amsmath}
usepackage{esdiff}
usepackage{ amssymb }

begin{document}

begin{align*}
A &= diffp*{f(x,bar{mu})}{x}{x_{eq},Bar{mu}_{eq}}\
B &= diffp* {f(x, Bar{mu})} {Bar{mu}} {x_{eq},Bar{mu}_{eq}}
end{align*}

end{document}






equations errors compilation-error






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 17 at 17:55







Nick J

















asked Feb 17 at 17:31









Nick JNick J

83




83








  • 2





    What is Bar? Where did you get it from? What package? Did you mean bar?

    – Steven B. Segletes
    Feb 17 at 17:36











  • Definitely meant Bar. I'm pretty sure it's from amsmath, could be amssymb. I should probably also mention that this line is in an align* block with a similar line above it.

    – Nick J
    Feb 17 at 17:44











  • After double checking, bar and Bar seem to do the same thing. Both add a bar no top of the symbol, both throw the same errors in that line.

    – Nick J
    Feb 17 at 17:47











  • Why don't you give us a small, but complete document that displays the issue?

    – Steven B. Segletes
    Feb 17 at 17:51











  • documentclass[12pt]{extarticle} usepackage[utf8]{inputenc} usepackage{cite} usepackage{amsmath} usepackage{esdiff} usepackage{ amssymb } begin{document} begin{align*} A &= diffp*{f(x,bar{mu})}{x}{x_{eq},Bar{mu}_{eq}}\ B &= diffp* {f(x, Bar{mu})} {Bar{mu}} {x_{eq},Bar{mu}_{eq}} end{align*} end{document}

    – Nick J
    Feb 17 at 17:54
















  • 2





    What is Bar? Where did you get it from? What package? Did you mean bar?

    – Steven B. Segletes
    Feb 17 at 17:36











  • Definitely meant Bar. I'm pretty sure it's from amsmath, could be amssymb. I should probably also mention that this line is in an align* block with a similar line above it.

    – Nick J
    Feb 17 at 17:44











  • After double checking, bar and Bar seem to do the same thing. Both add a bar no top of the symbol, both throw the same errors in that line.

    – Nick J
    Feb 17 at 17:47











  • Why don't you give us a small, but complete document that displays the issue?

    – Steven B. Segletes
    Feb 17 at 17:51











  • documentclass[12pt]{extarticle} usepackage[utf8]{inputenc} usepackage{cite} usepackage{amsmath} usepackage{esdiff} usepackage{ amssymb } begin{document} begin{align*} A &= diffp*{f(x,bar{mu})}{x}{x_{eq},Bar{mu}_{eq}}\ B &= diffp* {f(x, Bar{mu})} {Bar{mu}} {x_{eq},Bar{mu}_{eq}} end{align*} end{document}

    – Nick J
    Feb 17 at 17:54










2




2





What is Bar? Where did you get it from? What package? Did you mean bar?

– Steven B. Segletes
Feb 17 at 17:36





What is Bar? Where did you get it from? What package? Did you mean bar?

– Steven B. Segletes
Feb 17 at 17:36













Definitely meant Bar. I'm pretty sure it's from amsmath, could be amssymb. I should probably also mention that this line is in an align* block with a similar line above it.

– Nick J
Feb 17 at 17:44





Definitely meant Bar. I'm pretty sure it's from amsmath, could be amssymb. I should probably also mention that this line is in an align* block with a similar line above it.

– Nick J
Feb 17 at 17:44













After double checking, bar and Bar seem to do the same thing. Both add a bar no top of the symbol, both throw the same errors in that line.

– Nick J
Feb 17 at 17:47





After double checking, bar and Bar seem to do the same thing. Both add a bar no top of the symbol, both throw the same errors in that line.

– Nick J
Feb 17 at 17:47













Why don't you give us a small, but complete document that displays the issue?

– Steven B. Segletes
Feb 17 at 17:51





Why don't you give us a small, but complete document that displays the issue?

– Steven B. Segletes
Feb 17 at 17:51













documentclass[12pt]{extarticle} usepackage[utf8]{inputenc} usepackage{cite} usepackage{amsmath} usepackage{esdiff} usepackage{ amssymb } begin{document} begin{align*} A &= diffp*{f(x,bar{mu})}{x}{x_{eq},Bar{mu}_{eq}}\ B &= diffp* {f(x, Bar{mu})} {Bar{mu}} {x_{eq},Bar{mu}_{eq}} end{align*} end{document}

– Nick J
Feb 17 at 17:54







documentclass[12pt]{extarticle} usepackage[utf8]{inputenc} usepackage{cite} usepackage{amsmath} usepackage{esdiff} usepackage{ amssymb } begin{document} begin{align*} A &= diffp*{f(x,bar{mu})}{x}{x_{eq},Bar{mu}_{eq}}\ B &= diffp* {f(x, Bar{mu})} {Bar{mu}} {x_{eq},Bar{mu}_{eq}} end{align*} end{document}

– Nick J
Feb 17 at 17:54












2 Answers
2






active

oldest

votes


















2














You seem to have missed out the {} of one argument, but some failing in the diffp macro requires it to be doubled.



enter image description here



documentclass[12pt]{extarticle}
usepackage[utf8]{inputenc}
usepackage{cite}
usepackage{amsmath}
usepackage{esdiff}
usepackage{ amssymb }

begin{document}

begin{align*}
A &= diffp*{f(x,bar{mu})}{x}{x_{mathrm{eq}},Bar{mu}_{mathrm{eq}}}\
B &= diffp* {f(x, Bar{mu})} {{Bar{mu}}} {x_{mathrm{eq}},Bar{mu}_{mathrm{eq}}}
end{align*}

end{document}





share|improve this answer































    1














    The problem comes from the second equation B &= diffp* {f(x, Bar{mu})} {Bar{mu}} {x_{eq},Bar{mu}_{eq}}. The second argument Bar{mu} should be in parenthesis, ie, {Bar{mu}}. So, second equation should be B &= diffp* {f(x, Bar{mu})} {{Bar{mu}}} {x_{eq},Bar{mu}_{eq}}






    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',
      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
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f475357%2fwhy-does-adding-a-bar-in-a-differential-equation-cause-all-these-errors%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









      2














      You seem to have missed out the {} of one argument, but some failing in the diffp macro requires it to be doubled.



      enter image description here



      documentclass[12pt]{extarticle}
      usepackage[utf8]{inputenc}
      usepackage{cite}
      usepackage{amsmath}
      usepackage{esdiff}
      usepackage{ amssymb }

      begin{document}

      begin{align*}
      A &= diffp*{f(x,bar{mu})}{x}{x_{mathrm{eq}},Bar{mu}_{mathrm{eq}}}\
      B &= diffp* {f(x, Bar{mu})} {{Bar{mu}}} {x_{mathrm{eq}},Bar{mu}_{mathrm{eq}}}
      end{align*}

      end{document}





      share|improve this answer




























        2














        You seem to have missed out the {} of one argument, but some failing in the diffp macro requires it to be doubled.



        enter image description here



        documentclass[12pt]{extarticle}
        usepackage[utf8]{inputenc}
        usepackage{cite}
        usepackage{amsmath}
        usepackage{esdiff}
        usepackage{ amssymb }

        begin{document}

        begin{align*}
        A &= diffp*{f(x,bar{mu})}{x}{x_{mathrm{eq}},Bar{mu}_{mathrm{eq}}}\
        B &= diffp* {f(x, Bar{mu})} {{Bar{mu}}} {x_{mathrm{eq}},Bar{mu}_{mathrm{eq}}}
        end{align*}

        end{document}





        share|improve this answer


























          2












          2








          2







          You seem to have missed out the {} of one argument, but some failing in the diffp macro requires it to be doubled.



          enter image description here



          documentclass[12pt]{extarticle}
          usepackage[utf8]{inputenc}
          usepackage{cite}
          usepackage{amsmath}
          usepackage{esdiff}
          usepackage{ amssymb }

          begin{document}

          begin{align*}
          A &= diffp*{f(x,bar{mu})}{x}{x_{mathrm{eq}},Bar{mu}_{mathrm{eq}}}\
          B &= diffp* {f(x, Bar{mu})} {{Bar{mu}}} {x_{mathrm{eq}},Bar{mu}_{mathrm{eq}}}
          end{align*}

          end{document}





          share|improve this answer













          You seem to have missed out the {} of one argument, but some failing in the diffp macro requires it to be doubled.



          enter image description here



          documentclass[12pt]{extarticle}
          usepackage[utf8]{inputenc}
          usepackage{cite}
          usepackage{amsmath}
          usepackage{esdiff}
          usepackage{ amssymb }

          begin{document}

          begin{align*}
          A &= diffp*{f(x,bar{mu})}{x}{x_{mathrm{eq}},Bar{mu}_{mathrm{eq}}}\
          B &= diffp* {f(x, Bar{mu})} {{Bar{mu}}} {x_{mathrm{eq}},Bar{mu}_{mathrm{eq}}}
          end{align*}

          end{document}






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 17 at 18:22









          David CarlisleDavid Carlisle

          492k4111371885




          492k4111371885























              1














              The problem comes from the second equation B &= diffp* {f(x, Bar{mu})} {Bar{mu}} {x_{eq},Bar{mu}_{eq}}. The second argument Bar{mu} should be in parenthesis, ie, {Bar{mu}}. So, second equation should be B &= diffp* {f(x, Bar{mu})} {{Bar{mu}}} {x_{eq},Bar{mu}_{eq}}






              share|improve this answer




























                1














                The problem comes from the second equation B &= diffp* {f(x, Bar{mu})} {Bar{mu}} {x_{eq},Bar{mu}_{eq}}. The second argument Bar{mu} should be in parenthesis, ie, {Bar{mu}}. So, second equation should be B &= diffp* {f(x, Bar{mu})} {{Bar{mu}}} {x_{eq},Bar{mu}_{eq}}






                share|improve this answer


























                  1












                  1








                  1







                  The problem comes from the second equation B &= diffp* {f(x, Bar{mu})} {Bar{mu}} {x_{eq},Bar{mu}_{eq}}. The second argument Bar{mu} should be in parenthesis, ie, {Bar{mu}}. So, second equation should be B &= diffp* {f(x, Bar{mu})} {{Bar{mu}}} {x_{eq},Bar{mu}_{eq}}






                  share|improve this answer













                  The problem comes from the second equation B &= diffp* {f(x, Bar{mu})} {Bar{mu}} {x_{eq},Bar{mu}_{eq}}. The second argument Bar{mu} should be in parenthesis, ie, {Bar{mu}}. So, second equation should be B &= diffp* {f(x, Bar{mu})} {{Bar{mu}}} {x_{eq},Bar{mu}_{eq}}







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 17 at 18:24









                  MahiPaiMahiPai

                  564




                  564






























                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f475357%2fwhy-does-adding-a-bar-in-a-differential-equation-cause-all-these-errors%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

                      How to change which sound is reproduced for terminal bell?

                      Can I use Tabulator js library in my java Spring + Thymeleaf project?

                      Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents