How to add superscript on summation symbol












2















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}









share|improve this question




















  • 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











  • 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
















2















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}









share|improve this question




















  • 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











  • 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














2












2








2








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}









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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, 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














  • 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











  • 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








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










1 Answer
1






active

oldest

votes


















2














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:



enter image description here



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.






share|improve this answer





















  • 1





    Thank you, koleygr. It worked.

    – Luciana
    Mar 13 at 1:03













  • Weclome.. Happy TeXing!

    – koleygr
    Mar 13 at 1:53











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%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









2














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:



enter image description here



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.






share|improve this answer





















  • 1





    Thank you, koleygr. It worked.

    – Luciana
    Mar 13 at 1:03













  • Weclome.. Happy TeXing!

    – koleygr
    Mar 13 at 1:53
















2














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:



enter image description here



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.






share|improve this answer





















  • 1





    Thank you, koleygr. It worked.

    – Luciana
    Mar 13 at 1:03













  • Weclome.. Happy TeXing!

    – koleygr
    Mar 13 at 1:53














2












2








2







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:



enter image description here



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.






share|improve this answer















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:



enter image description here



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.







share|improve this answer














share|improve this answer



share|improve this answer








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














  • 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


















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%2f478998%2fhow-to-add-superscript-on-summation-symbol%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 send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?