How to add superscript on summation symbol
I'd like to add superscript on summation symbol, but I get an error message:
Please, use `mathaccent` for accents in math mode.
I can't use ^ symbol to add superscript.
Here is the code:
begin{equation}
y & = beta_{0}+sumˆ{2}_{j=1}beta_{j}X_{j}+sumsum_{i<j}beta_{ij}X_{i}X{j}+sum_{j=1}beta_{jj}X_{j}textsuperscript{2}
label{equation1}
end{equation}
symbols
add a comment |
I'd like to add superscript on summation symbol, but I get an error message:
Please, use `mathaccent` for accents in math mode.
I can't use ^ symbol to add superscript.
Here is the code:
begin{equation}
y & = beta_{0}+sumˆ{2}_{j=1}beta_{j}X_{j}+sumsum_{i<j}beta_{ij}X_{i}X{j}+sum_{j=1}beta_{jj}X_{j}textsuperscript{2}
label{equation1}
end{equation}
symbols
1
Welcome to TeX.SX! It's not at all clear where the superscript is meant to go. Besides,textsuperscriptis not valid in math mode. And the&is out of place.
– egreg
Mar 12 at 0:03
You might look at thesidesetcommand fromamsmath. If you have a tex installation based on TeX Live, tyou shoyuld be able to look at this documentation locally viatexdoc amsldocat a command prompt.
– barbara beeton
Mar 12 at 0:15
add a comment |
I'd like to add superscript on summation symbol, but I get an error message:
Please, use `mathaccent` for accents in math mode.
I can't use ^ symbol to add superscript.
Here is the code:
begin{equation}
y & = beta_{0}+sumˆ{2}_{j=1}beta_{j}X_{j}+sumsum_{i<j}beta_{ij}X_{i}X{j}+sum_{j=1}beta_{jj}X_{j}textsuperscript{2}
label{equation1}
end{equation}
symbols
I'd like to add superscript on summation symbol, but I get an error message:
Please, use `mathaccent` for accents in math mode.
I can't use ^ symbol to add superscript.
Here is the code:
begin{equation}
y & = beta_{0}+sumˆ{2}_{j=1}beta_{j}X_{j}+sumsum_{i<j}beta_{ij}X_{i}X{j}+sum_{j=1}beta_{jj}X_{j}textsuperscript{2}
label{equation1}
end{equation}
symbols
symbols
edited Mar 12 at 4:22
JouleV
6,90021951
6,90021951
asked Mar 12 at 0:00
LucianaLuciana
232
232
1
Welcome to TeX.SX! It's not at all clear where the superscript is meant to go. Besides,textsuperscriptis not valid in math mode. And the&is out of place.
– egreg
Mar 12 at 0:03
You might look at thesidesetcommand fromamsmath. If you have a tex installation based on TeX Live, tyou shoyuld be able to look at this documentation locally viatexdoc amsldocat a command prompt.
– barbara beeton
Mar 12 at 0:15
add a comment |
1
Welcome to TeX.SX! It's not at all clear where the superscript is meant to go. Besides,textsuperscriptis not valid in math mode. And the&is out of place.
– egreg
Mar 12 at 0:03
You might look at thesidesetcommand fromamsmath. If you have a tex installation based on TeX Live, tyou shoyuld be able to look at this documentation locally viatexdoc amsldocat a command prompt.
– barbara beeton
Mar 12 at 0:15
1
1
Welcome to TeX.SX! It's not at all clear where the superscript is meant to go. Besides,
textsuperscript is not valid in math mode. And the & is out of place.– egreg
Mar 12 at 0:03
Welcome to TeX.SX! It's not at all clear where the superscript is meant to go. Besides,
textsuperscript is not valid in math mode. And the & is out of place.– egreg
Mar 12 at 0:03
You might look at the
sideset command from amsmath. If you have a tex installation based on TeX Live, tyou shoyuld be able to look at this documentation locally via texdoc amsldoc at a command prompt.– barbara beeton
Mar 12 at 0:15
You might look at the
sideset command from amsmath. If you have a tex installation based on TeX Live, tyou shoyuld be able to look at this documentation locally via texdoc amsldoc at a command prompt.– barbara beeton
Mar 12 at 0:15
add a comment |
1 Answer
1
active
oldest
votes
You have a wrong ^ character that is not a ascii character but possibly something with similar appearance and this is what causes the whole problem.
Your code with the correct character is something like:
documentclass{article}
begin{document}
begin{equation}
y = beta_{0}+sum_{j=1}^{2} beta_{j}X_{j}+sumsum_{i<j}beta_{ij}X_{i}X{j}+sum_{j=1}^2beta_{jj}X_{j}^2
label{equation1}
end{equation}
end{document}
And gives:

PS1: Not sure about the last power and the last upper limit of the sum, but you will see it works if you just delete your bad character and replace with the original keyboard's ^.
PS2: For readability never start a sum by its upper limit, but use first its lower limit instead.
1
Thank you, koleygr. It worked.
– Luciana
Mar 13 at 1:03
Weclome.. Happy TeXing!
– koleygr
Mar 13 at 1:53
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%2f478998%2fhow-to-add-superscript-on-summation-symbol%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
You have a wrong ^ character that is not a ascii character but possibly something with similar appearance and this is what causes the whole problem.
Your code with the correct character is something like:
documentclass{article}
begin{document}
begin{equation}
y = beta_{0}+sum_{j=1}^{2} beta_{j}X_{j}+sumsum_{i<j}beta_{ij}X_{i}X{j}+sum_{j=1}^2beta_{jj}X_{j}^2
label{equation1}
end{equation}
end{document}
And gives:

PS1: Not sure about the last power and the last upper limit of the sum, but you will see it works if you just delete your bad character and replace with the original keyboard's ^.
PS2: For readability never start a sum by its upper limit, but use first its lower limit instead.
1
Thank you, koleygr. It worked.
– Luciana
Mar 13 at 1:03
Weclome.. Happy TeXing!
– koleygr
Mar 13 at 1:53
add a comment |
You have a wrong ^ character that is not a ascii character but possibly something with similar appearance and this is what causes the whole problem.
Your code with the correct character is something like:
documentclass{article}
begin{document}
begin{equation}
y = beta_{0}+sum_{j=1}^{2} beta_{j}X_{j}+sumsum_{i<j}beta_{ij}X_{i}X{j}+sum_{j=1}^2beta_{jj}X_{j}^2
label{equation1}
end{equation}
end{document}
And gives:

PS1: Not sure about the last power and the last upper limit of the sum, but you will see it works if you just delete your bad character and replace with the original keyboard's ^.
PS2: For readability never start a sum by its upper limit, but use first its lower limit instead.
1
Thank you, koleygr. It worked.
– Luciana
Mar 13 at 1:03
Weclome.. Happy TeXing!
– koleygr
Mar 13 at 1:53
add a comment |
You have a wrong ^ character that is not a ascii character but possibly something with similar appearance and this is what causes the whole problem.
Your code with the correct character is something like:
documentclass{article}
begin{document}
begin{equation}
y = beta_{0}+sum_{j=1}^{2} beta_{j}X_{j}+sumsum_{i<j}beta_{ij}X_{i}X{j}+sum_{j=1}^2beta_{jj}X_{j}^2
label{equation1}
end{equation}
end{document}
And gives:

PS1: Not sure about the last power and the last upper limit of the sum, but you will see it works if you just delete your bad character and replace with the original keyboard's ^.
PS2: For readability never start a sum by its upper limit, but use first its lower limit instead.
You have a wrong ^ character that is not a ascii character but possibly something with similar appearance and this is what causes the whole problem.
Your code with the correct character is something like:
documentclass{article}
begin{document}
begin{equation}
y = beta_{0}+sum_{j=1}^{2} beta_{j}X_{j}+sumsum_{i<j}beta_{ij}X_{i}X{j}+sum_{j=1}^2beta_{jj}X_{j}^2
label{equation1}
end{equation}
end{document}
And gives:

PS1: Not sure about the last power and the last upper limit of the sum, but you will see it works if you just delete your bad character and replace with the original keyboard's ^.
PS2: For readability never start a sum by its upper limit, but use first its lower limit instead.
edited Mar 12 at 0:30
answered Mar 12 at 0:23
koleygrkoleygr
13k11038
13k11038
1
Thank you, koleygr. It worked.
– Luciana
Mar 13 at 1:03
Weclome.. Happy TeXing!
– koleygr
Mar 13 at 1:53
add a comment |
1
Thank you, koleygr. It worked.
– Luciana
Mar 13 at 1:03
Weclome.. Happy TeXing!
– koleygr
Mar 13 at 1:53
1
1
Thank you, koleygr. It worked.
– Luciana
Mar 13 at 1:03
Thank you, koleygr. It worked.
– Luciana
Mar 13 at 1:03
Weclome.. Happy TeXing!
– koleygr
Mar 13 at 1:53
Weclome.. Happy TeXing!
– koleygr
Mar 13 at 1:53
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%2f478998%2fhow-to-add-superscript-on-summation-symbol%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
1
Welcome to TeX.SX! It's not at all clear where the superscript is meant to go. Besides,
textsuperscriptis not valid in math mode. And the&is out of place.– egreg
Mar 12 at 0:03
You might look at the
sidesetcommand fromamsmath. If you have a tex installation based on TeX Live, tyou shoyuld be able to look at this documentation locally viatexdoc amsldocat a command prompt.– barbara beeton
Mar 12 at 0:15