Cannot typeset an equation correctly

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I'm trying to typeset the following equation, but I get complaints about 'missing $ inserted'.



beginequation labelPearson
begintabulary 18cmL R @ >$c<$ @ L
&Sim_a,b^PCC& =
& $displaystyle frac
sum_Pin P( r_a,p - overline ra)( r_b,p - overlinerb) %
sqrtsum_Pin P( r_a,p - overlinera)^2
sqrtsum_Pin P( r_b,p - overlinerb)^2$
endtabulary
endequation









share|improve this question









New contributor




G.alshammari is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 2




    (1) Welcome, (2) full minimal example please. How are L, 'R` etc defined? NMormally these are lower case. (3) You have math in call 2, does R take case of this? Now you know why we always ask for a full minimal example that others can copy and test withoput adding anything or having to guess.
    – daleif
    5 hours ago






  • 2




    tabulary is designed for tables with large amounts of text to adjust line breaking, you almost certainly should not be using it here at all, this seems to be a math alignment so align or aligned would be more suitable. the error is because you have math markup _ and ^ in the R column which is a text column.
    – David Carlisle
    4 hours ago






  • 1




    @daleif tabulary columns are LCR (but using `tabulary with math is somewhat strange!)
    – David Carlisle
    4 hours ago














up vote
1
down vote

favorite












I'm trying to typeset the following equation, but I get complaints about 'missing $ inserted'.



beginequation labelPearson
begintabulary 18cmL R @ >$c<$ @ L
&Sim_a,b^PCC& =
& $displaystyle frac
sum_Pin P( r_a,p - overline ra)( r_b,p - overlinerb) %
sqrtsum_Pin P( r_a,p - overlinera)^2
sqrtsum_Pin P( r_b,p - overlinerb)^2$
endtabulary
endequation









share|improve this question









New contributor




G.alshammari is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 2




    (1) Welcome, (2) full minimal example please. How are L, 'R` etc defined? NMormally these are lower case. (3) You have math in call 2, does R take case of this? Now you know why we always ask for a full minimal example that others can copy and test withoput adding anything or having to guess.
    – daleif
    5 hours ago






  • 2




    tabulary is designed for tables with large amounts of text to adjust line breaking, you almost certainly should not be using it here at all, this seems to be a math alignment so align or aligned would be more suitable. the error is because you have math markup _ and ^ in the R column which is a text column.
    – David Carlisle
    4 hours ago






  • 1




    @daleif tabulary columns are LCR (but using `tabulary with math is somewhat strange!)
    – David Carlisle
    4 hours ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I'm trying to typeset the following equation, but I get complaints about 'missing $ inserted'.



beginequation labelPearson
begintabulary 18cmL R @ >$c<$ @ L
&Sim_a,b^PCC& =
& $displaystyle frac
sum_Pin P( r_a,p - overline ra)( r_b,p - overlinerb) %
sqrtsum_Pin P( r_a,p - overlinera)^2
sqrtsum_Pin P( r_b,p - overlinerb)^2$
endtabulary
endequation









share|improve this question









New contributor




G.alshammari is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I'm trying to typeset the following equation, but I get complaints about 'missing $ inserted'.



beginequation labelPearson
begintabulary 18cmL R @ >$c<$ @ L
&Sim_a,b^PCC& =
& $displaystyle frac
sum_Pin P( r_a,p - overline ra)( r_b,p - overlinerb) %
sqrtsum_Pin P( r_a,p - overlinera)^2
sqrtsum_Pin P( r_b,p - overlinerb)^2$
endtabulary
endequation






math-mode tabulary






share|improve this question









New contributor




G.alshammari is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




G.alshammari is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 4 hours ago









Mico

263k30355730




263k30355730






New contributor




G.alshammari is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 5 hours ago









G.alshammari

82




82




New contributor




G.alshammari is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





G.alshammari is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






G.alshammari is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 2




    (1) Welcome, (2) full minimal example please. How are L, 'R` etc defined? NMormally these are lower case. (3) You have math in call 2, does R take case of this? Now you know why we always ask for a full minimal example that others can copy and test withoput adding anything or having to guess.
    – daleif
    5 hours ago






  • 2




    tabulary is designed for tables with large amounts of text to adjust line breaking, you almost certainly should not be using it here at all, this seems to be a math alignment so align or aligned would be more suitable. the error is because you have math markup _ and ^ in the R column which is a text column.
    – David Carlisle
    4 hours ago






  • 1




    @daleif tabulary columns are LCR (but using `tabulary with math is somewhat strange!)
    – David Carlisle
    4 hours ago












  • 2




    (1) Welcome, (2) full minimal example please. How are L, 'R` etc defined? NMormally these are lower case. (3) You have math in call 2, does R take case of this? Now you know why we always ask for a full minimal example that others can copy and test withoput adding anything or having to guess.
    – daleif
    5 hours ago






  • 2




    tabulary is designed for tables with large amounts of text to adjust line breaking, you almost certainly should not be using it here at all, this seems to be a math alignment so align or aligned would be more suitable. the error is because you have math markup _ and ^ in the R column which is a text column.
    – David Carlisle
    4 hours ago






  • 1




    @daleif tabulary columns are LCR (but using `tabulary with math is somewhat strange!)
    – David Carlisle
    4 hours ago







2




2




(1) Welcome, (2) full minimal example please. How are L, 'R` etc defined? NMormally these are lower case. (3) You have math in call 2, does R take case of this? Now you know why we always ask for a full minimal example that others can copy and test withoput adding anything or having to guess.
– daleif
5 hours ago




(1) Welcome, (2) full minimal example please. How are L, 'R` etc defined? NMormally these are lower case. (3) You have math in call 2, does R take case of this? Now you know why we always ask for a full minimal example that others can copy and test withoput adding anything or having to guess.
– daleif
5 hours ago




2




2




tabulary is designed for tables with large amounts of text to adjust line breaking, you almost certainly should not be using it here at all, this seems to be a math alignment so align or aligned would be more suitable. the error is because you have math markup _ and ^ in the R column which is a text column.
– David Carlisle
4 hours ago




tabulary is designed for tables with large amounts of text to adjust line breaking, you almost certainly should not be using it here at all, this seems to be a math alignment so align or aligned would be more suitable. the error is because you have math markup _ and ^ in the R column which is a text column.
– David Carlisle
4 hours ago




1




1




@daleif tabulary columns are LCR (but using `tabulary with math is somewhat strange!)
– David Carlisle
4 hours ago




@daleif tabulary columns are LCR (but using `tabulary with math is somewhat strange!)
– David Carlisle
4 hours ago










1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










I can see no reason for employing a 4-column tabulary environment; an equation environment is all you need.



I would, though, replace all instances of overline with bar. And it should be sum_pin P rather than sum_Pin P, and barr_a and barr_b rather than barra and barrb, right?



If you have several equations which need to be aligned on their respective = symbols, do look into employing the align environment (provided by the amsmath package).



enter image description here



documentclassarticle
begindocument
beginequation labelPearson
mathitSim_a,b^mathrmPCC = frac%
sum_pin P( r_a,p-barr_a)(r_b,p- barr_b) %
sqrtsum_pin P(r_a,p-barr_a)^2
sqrtsum_pin P(r_b,p-barr_b)^2
endequation
enddocument





share|improve this answer


















  • 1




    Thank you it is working
    – G.alshammari
    4 hours ago










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: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






G.alshammari is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f451375%2fcannot-typeset-an-equation-correctly%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote



accepted










I can see no reason for employing a 4-column tabulary environment; an equation environment is all you need.



I would, though, replace all instances of overline with bar. And it should be sum_pin P rather than sum_Pin P, and barr_a and barr_b rather than barra and barrb, right?



If you have several equations which need to be aligned on their respective = symbols, do look into employing the align environment (provided by the amsmath package).



enter image description here



documentclassarticle
begindocument
beginequation labelPearson
mathitSim_a,b^mathrmPCC = frac%
sum_pin P( r_a,p-barr_a)(r_b,p- barr_b) %
sqrtsum_pin P(r_a,p-barr_a)^2
sqrtsum_pin P(r_b,p-barr_b)^2
endequation
enddocument





share|improve this answer


















  • 1




    Thank you it is working
    – G.alshammari
    4 hours ago














up vote
4
down vote



accepted










I can see no reason for employing a 4-column tabulary environment; an equation environment is all you need.



I would, though, replace all instances of overline with bar. And it should be sum_pin P rather than sum_Pin P, and barr_a and barr_b rather than barra and barrb, right?



If you have several equations which need to be aligned on their respective = symbols, do look into employing the align environment (provided by the amsmath package).



enter image description here



documentclassarticle
begindocument
beginequation labelPearson
mathitSim_a,b^mathrmPCC = frac%
sum_pin P( r_a,p-barr_a)(r_b,p- barr_b) %
sqrtsum_pin P(r_a,p-barr_a)^2
sqrtsum_pin P(r_b,p-barr_b)^2
endequation
enddocument





share|improve this answer


















  • 1




    Thank you it is working
    – G.alshammari
    4 hours ago












up vote
4
down vote



accepted







up vote
4
down vote



accepted






I can see no reason for employing a 4-column tabulary environment; an equation environment is all you need.



I would, though, replace all instances of overline with bar. And it should be sum_pin P rather than sum_Pin P, and barr_a and barr_b rather than barra and barrb, right?



If you have several equations which need to be aligned on their respective = symbols, do look into employing the align environment (provided by the amsmath package).



enter image description here



documentclassarticle
begindocument
beginequation labelPearson
mathitSim_a,b^mathrmPCC = frac%
sum_pin P( r_a,p-barr_a)(r_b,p- barr_b) %
sqrtsum_pin P(r_a,p-barr_a)^2
sqrtsum_pin P(r_b,p-barr_b)^2
endequation
enddocument





share|improve this answer














I can see no reason for employing a 4-column tabulary environment; an equation environment is all you need.



I would, though, replace all instances of overline with bar. And it should be sum_pin P rather than sum_Pin P, and barr_a and barr_b rather than barra and barrb, right?



If you have several equations which need to be aligned on their respective = symbols, do look into employing the align environment (provided by the amsmath package).



enter image description here



documentclassarticle
begindocument
beginequation labelPearson
mathitSim_a,b^mathrmPCC = frac%
sum_pin P( r_a,p-barr_a)(r_b,p- barr_b) %
sqrtsum_pin P(r_a,p-barr_a)^2
sqrtsum_pin P(r_b,p-barr_b)^2
endequation
enddocument






share|improve this answer














share|improve this answer



share|improve this answer








edited 4 hours ago

























answered 4 hours ago









Mico

263k30355730




263k30355730







  • 1




    Thank you it is working
    – G.alshammari
    4 hours ago












  • 1




    Thank you it is working
    – G.alshammari
    4 hours ago







1




1




Thank you it is working
– G.alshammari
4 hours ago




Thank you it is working
– G.alshammari
4 hours ago










G.alshammari is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















G.alshammari is a new contributor. Be nice, and check out our Code of Conduct.












G.alshammari is a new contributor. Be nice, and check out our Code of Conduct.











G.alshammari is a new contributor. Be nice, and check out our Code of Conduct.













 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f451375%2fcannot-typeset-an-equation-correctly%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

Installing NextGIS Connect into QGIS 3?

One-line joke