Why does adding a Bar in a differential equation cause all these errors?
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
|
show 3 more comments
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
2
What isBar
? Where did you get it from? What package? Did you meanbar
?
– 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
|
show 3 more comments
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
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
equations errors compilation-error
edited Feb 17 at 17:55
Nick J
asked Feb 17 at 17:31
Nick JNick J
83
83
2
What isBar
? Where did you get it from? What package? Did you meanbar
?
– 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
|
show 3 more comments
2
What isBar
? Where did you get it from? What package? Did you meanbar
?
– 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
|
show 3 more comments
2 Answers
2
active
oldest
votes
You seem to have missed out the {}
of one argument, but some failing in the diffp
macro requires it to be doubled.
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}
add a comment |
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}}
add a comment |
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
});
}
});
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
Required, but never shown
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
You seem to have missed out the {}
of one argument, but some failing in the diffp
macro requires it to be doubled.
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}
add a comment |
You seem to have missed out the {}
of one argument, but some failing in the diffp
macro requires it to be doubled.
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}
add a comment |
You seem to have missed out the {}
of one argument, but some failing in the diffp
macro requires it to be doubled.
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}
You seem to have missed out the {}
of one argument, but some failing in the diffp
macro requires it to be doubled.
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}
answered Feb 17 at 18:22
David CarlisleDavid Carlisle
492k4111371885
492k4111371885
add a comment |
add a comment |
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}}
add a comment |
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}}
add a comment |
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}}
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}}
answered Feb 17 at 18:24
MahiPaiMahiPai
564
564
add a comment |
add a comment |
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.
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
Required, but never shown
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
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
Required, but never shown
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
Required, but never shown
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
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
2
What is
Bar
? Where did you get it from? What package? Did you meanbar
?– 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