DeclareMathOperator adds spaces after the periods contained in its second argument (name text)

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











up vote
4
down vote

favorite












The following MCE points out that DeclareMathOperator, if its second argument (name text) contains periods, adds spaces after those periods:



documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument


enter image description here



Do you know why and how to get rid of these spaces?










share|improve this question





















  • DeclareMathOperatorlimonel.i.m. Note that while the l.i.m. will still line up with your text case, there will be a gap following the last ., because l.i.m. is now an operator, whereas textl.i.m. is a math atom.
    – Steven B. Segletes
    48 mins ago











  • Using . ? Untested, it just makes the dot an ord. Which math operator is that? Never seen one with punctuation in it before
    – daleif
    47 mins ago










  • @daleif . works nicely indeed. Concerning the operator, some authors use it for denoting the convergence in the mean square sense. I agree it is quite strange :)
    – Denis Bitouzé
    40 mins ago














up vote
4
down vote

favorite












The following MCE points out that DeclareMathOperator, if its second argument (name text) contains periods, adds spaces after those periods:



documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument


enter image description here



Do you know why and how to get rid of these spaces?










share|improve this question





















  • DeclareMathOperatorlimonel.i.m. Note that while the l.i.m. will still line up with your text case, there will be a gap following the last ., because l.i.m. is now an operator, whereas textl.i.m. is a math atom.
    – Steven B. Segletes
    48 mins ago











  • Using . ? Untested, it just makes the dot an ord. Which math operator is that? Never seen one with punctuation in it before
    – daleif
    47 mins ago










  • @daleif . works nicely indeed. Concerning the operator, some authors use it for denoting the convergence in the mean square sense. I agree it is quite strange :)
    – Denis Bitouzé
    40 mins ago












up vote
4
down vote

favorite









up vote
4
down vote

favorite











The following MCE points out that DeclareMathOperator, if its second argument (name text) contains periods, adds spaces after those periods:



documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument


enter image description here



Do you know why and how to get rid of these spaces?










share|improve this question













The following MCE points out that DeclareMathOperator, if its second argument (name text) contains periods, adds spaces after those periods:



documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument


enter image description here



Do you know why and how to get rid of these spaces?







spacing amsmath math-operators operator-space






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 54 mins ago









Denis Bitouzé

3,47411245




3,47411245











  • DeclareMathOperatorlimonel.i.m. Note that while the l.i.m. will still line up with your text case, there will be a gap following the last ., because l.i.m. is now an operator, whereas textl.i.m. is a math atom.
    – Steven B. Segletes
    48 mins ago











  • Using . ? Untested, it just makes the dot an ord. Which math operator is that? Never seen one with punctuation in it before
    – daleif
    47 mins ago










  • @daleif . works nicely indeed. Concerning the operator, some authors use it for denoting the convergence in the mean square sense. I agree it is quite strange :)
    – Denis Bitouzé
    40 mins ago
















  • DeclareMathOperatorlimonel.i.m. Note that while the l.i.m. will still line up with your text case, there will be a gap following the last ., because l.i.m. is now an operator, whereas textl.i.m. is a math atom.
    – Steven B. Segletes
    48 mins ago











  • Using . ? Untested, it just makes the dot an ord. Which math operator is that? Never seen one with punctuation in it before
    – daleif
    47 mins ago










  • @daleif . works nicely indeed. Concerning the operator, some authors use it for denoting the convergence in the mean square sense. I agree it is quite strange :)
    – Denis Bitouzé
    40 mins ago















DeclareMathOperatorlimonel.i.m. Note that while the l.i.m. will still line up with your text case, there will be a gap following the last ., because l.i.m. is now an operator, whereas textl.i.m. is a math atom.
– Steven B. Segletes
48 mins ago





DeclareMathOperatorlimonel.i.m. Note that while the l.i.m. will still line up with your text case, there will be a gap following the last ., because l.i.m. is now an operator, whereas textl.i.m. is a math atom.
– Steven B. Segletes
48 mins ago













Using . ? Untested, it just makes the dot an ord. Which math operator is that? Never seen one with punctuation in it before
– daleif
47 mins ago




Using . ? Untested, it just makes the dot an ord. Which math operator is that? Never seen one with punctuation in it before
– daleif
47 mins ago












@daleif . works nicely indeed. Concerning the operator, some authors use it for denoting the convergence in the mean square sense. I agree it is quite strange :)
– Denis Bitouzé
40 mins ago




@daleif . works nicely indeed. Concerning the operator, some authors use it for denoting the convergence in the mean square sense. I agree it is quite strange :)
– Denis Bitouzé
40 mins ago










2 Answers
2






active

oldest

votes

















up vote
3
down vote













DeclareMathOperatorlimonel.i.m. will fix the excess space in row 1, making it like row 2. Note that while the l.i.m. will still line up with your text case, there will be a gap following the last ., because l.i.m. (in the form of limone or limtwo) is now an operator, whereas textl.i.m. is a math atom.



documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument


enter image description here






share|improve this answer






















  • It does the trick, indeed. But why this behaviour without the braces? And agree with your note (I added the text example in order to show the spaces with DeclareMathOperator didn't come from a possible underlying "text" mode).
    – Denis Bitouzé
    37 mins ago







  • 1




    @DenisBitouzé Not sure, but it may be related to this: gdefnewmcodes@mathcode`'39mathcode``*42mathcode``."613A% mathcode``-45mathcode``/47mathcode``:"603Arelax, declared in amstex.sty.
    – Steven B. Segletes
    27 mins ago


















up vote
2
down vote













Compare with



$lmathpunct.imathpunct.m$


Indeed, your limone gives qopname newmcodes@ ol.i.m. and newmcodes assigns mathpunct category to the dot (which will be taken in letters font, not operators...). Another strangeness of newmcodes@.



newmcodes@ ->mathcode `'39mathcode `*42mathcode `."613Aifnum mathcode 
`-=45 else mathchardef std@minus mathcode `-relax fi mathcode `-45ma
thcode `/47mathcode `:"603Arelax


You will have same mathpunct spacing with :. enter image description here



What to do? You can always define your own newmcodes@ to replace above definition.






share|improve this answer




















  • Define my own newmcodes@?! Are you kidding me? :)
    – Denis Bitouzé
    16 mins 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
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f451591%2fdeclaremathoperator-adds-spaces-after-the-periods-contained-in-its-second-argum%23new-answer', 'question_page');

);

Post as a guest






























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote













DeclareMathOperatorlimonel.i.m. will fix the excess space in row 1, making it like row 2. Note that while the l.i.m. will still line up with your text case, there will be a gap following the last ., because l.i.m. (in the form of limone or limtwo) is now an operator, whereas textl.i.m. is a math atom.



documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument


enter image description here






share|improve this answer






















  • It does the trick, indeed. But why this behaviour without the braces? And agree with your note (I added the text example in order to show the spaces with DeclareMathOperator didn't come from a possible underlying "text" mode).
    – Denis Bitouzé
    37 mins ago







  • 1




    @DenisBitouzé Not sure, but it may be related to this: gdefnewmcodes@mathcode`'39mathcode``*42mathcode``."613A% mathcode``-45mathcode``/47mathcode``:"603Arelax, declared in amstex.sty.
    – Steven B. Segletes
    27 mins ago















up vote
3
down vote













DeclareMathOperatorlimonel.i.m. will fix the excess space in row 1, making it like row 2. Note that while the l.i.m. will still line up with your text case, there will be a gap following the last ., because l.i.m. (in the form of limone or limtwo) is now an operator, whereas textl.i.m. is a math atom.



documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument


enter image description here






share|improve this answer






















  • It does the trick, indeed. But why this behaviour without the braces? And agree with your note (I added the text example in order to show the spaces with DeclareMathOperator didn't come from a possible underlying "text" mode).
    – Denis Bitouzé
    37 mins ago







  • 1




    @DenisBitouzé Not sure, but it may be related to this: gdefnewmcodes@mathcode`'39mathcode``*42mathcode``."613A% mathcode``-45mathcode``/47mathcode``:"603Arelax, declared in amstex.sty.
    – Steven B. Segletes
    27 mins ago













up vote
3
down vote










up vote
3
down vote









DeclareMathOperatorlimonel.i.m. will fix the excess space in row 1, making it like row 2. Note that while the l.i.m. will still line up with your text case, there will be a gap following the last ., because l.i.m. (in the form of limone or limtwo) is now an operator, whereas textl.i.m. is a math atom.



documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument


enter image description here






share|improve this answer














DeclareMathOperatorlimonel.i.m. will fix the excess space in row 1, making it like row 2. Note that while the l.i.m. will still line up with your text case, there will be a gap following the last ., because l.i.m. (in the form of limone or limtwo) is now an operator, whereas textl.i.m. is a math atom.



documentclassarticle
usepackageamsmath
%
DeclareMathOperatorlimonel.i.m.
newcommandlimtwomathopmathrml.i.m.
%
begindocument
beginalign*
A_t & =limone A_n,t \
A_t & =limtwo A_n,t \
A_t & =textl.i.m. A_n,t
endalign*
enddocument


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 38 mins ago

























answered 45 mins ago









Steven B. Segletes

147k9186388




147k9186388











  • It does the trick, indeed. But why this behaviour without the braces? And agree with your note (I added the text example in order to show the spaces with DeclareMathOperator didn't come from a possible underlying "text" mode).
    – Denis Bitouzé
    37 mins ago







  • 1




    @DenisBitouzé Not sure, but it may be related to this: gdefnewmcodes@mathcode`'39mathcode``*42mathcode``."613A% mathcode``-45mathcode``/47mathcode``:"603Arelax, declared in amstex.sty.
    – Steven B. Segletes
    27 mins ago

















  • It does the trick, indeed. But why this behaviour without the braces? And agree with your note (I added the text example in order to show the spaces with DeclareMathOperator didn't come from a possible underlying "text" mode).
    – Denis Bitouzé
    37 mins ago







  • 1




    @DenisBitouzé Not sure, but it may be related to this: gdefnewmcodes@mathcode`'39mathcode``*42mathcode``."613A% mathcode``-45mathcode``/47mathcode``:"603Arelax, declared in amstex.sty.
    – Steven B. Segletes
    27 mins ago
















It does the trick, indeed. But why this behaviour without the braces? And agree with your note (I added the text example in order to show the spaces with DeclareMathOperator didn't come from a possible underlying "text" mode).
– Denis Bitouzé
37 mins ago





It does the trick, indeed. But why this behaviour without the braces? And agree with your note (I added the text example in order to show the spaces with DeclareMathOperator didn't come from a possible underlying "text" mode).
– Denis Bitouzé
37 mins ago





1




1




@DenisBitouzé Not sure, but it may be related to this: gdefnewmcodes@mathcode`'39mathcode``*42mathcode``."613A% mathcode``-45mathcode``/47mathcode``:"603Arelax, declared in amstex.sty.
– Steven B. Segletes
27 mins ago





@DenisBitouzé Not sure, but it may be related to this: gdefnewmcodes@mathcode`'39mathcode``*42mathcode``."613A% mathcode``-45mathcode``/47mathcode``:"603Arelax, declared in amstex.sty.
– Steven B. Segletes
27 mins ago











up vote
2
down vote













Compare with



$lmathpunct.imathpunct.m$


Indeed, your limone gives qopname newmcodes@ ol.i.m. and newmcodes assigns mathpunct category to the dot (which will be taken in letters font, not operators...). Another strangeness of newmcodes@.



newmcodes@ ->mathcode `'39mathcode `*42mathcode `."613Aifnum mathcode 
`-=45 else mathchardef std@minus mathcode `-relax fi mathcode `-45ma
thcode `/47mathcode `:"603Arelax


You will have same mathpunct spacing with :. enter image description here



What to do? You can always define your own newmcodes@ to replace above definition.






share|improve this answer




















  • Define my own newmcodes@?! Are you kidding me? :)
    – Denis Bitouzé
    16 mins ago














up vote
2
down vote













Compare with



$lmathpunct.imathpunct.m$


Indeed, your limone gives qopname newmcodes@ ol.i.m. and newmcodes assigns mathpunct category to the dot (which will be taken in letters font, not operators...). Another strangeness of newmcodes@.



newmcodes@ ->mathcode `'39mathcode `*42mathcode `."613Aifnum mathcode 
`-=45 else mathchardef std@minus mathcode `-relax fi mathcode `-45ma
thcode `/47mathcode `:"603Arelax


You will have same mathpunct spacing with :. enter image description here



What to do? You can always define your own newmcodes@ to replace above definition.






share|improve this answer




















  • Define my own newmcodes@?! Are you kidding me? :)
    – Denis Bitouzé
    16 mins ago












up vote
2
down vote










up vote
2
down vote









Compare with



$lmathpunct.imathpunct.m$


Indeed, your limone gives qopname newmcodes@ ol.i.m. and newmcodes assigns mathpunct category to the dot (which will be taken in letters font, not operators...). Another strangeness of newmcodes@.



newmcodes@ ->mathcode `'39mathcode `*42mathcode `."613Aifnum mathcode 
`-=45 else mathchardef std@minus mathcode `-relax fi mathcode `-45ma
thcode `/47mathcode `:"603Arelax


You will have same mathpunct spacing with :. enter image description here



What to do? You can always define your own newmcodes@ to replace above definition.






share|improve this answer












Compare with



$lmathpunct.imathpunct.m$


Indeed, your limone gives qopname newmcodes@ ol.i.m. and newmcodes assigns mathpunct category to the dot (which will be taken in letters font, not operators...). Another strangeness of newmcodes@.



newmcodes@ ->mathcode `'39mathcode `*42mathcode `."613Aifnum mathcode 
`-=45 else mathchardef std@minus mathcode `-relax fi mathcode `-45ma
thcode `/47mathcode `:"603Arelax


You will have same mathpunct spacing with :. enter image description here



What to do? You can always define your own newmcodes@ to replace above definition.







share|improve this answer












share|improve this answer



share|improve this answer










answered 27 mins ago









jfbu

42k63135




42k63135











  • Define my own newmcodes@?! Are you kidding me? :)
    – Denis Bitouzé
    16 mins ago
















  • Define my own newmcodes@?! Are you kidding me? :)
    – Denis Bitouzé
    16 mins ago















Define my own newmcodes@?! Are you kidding me? :)
– Denis Bitouzé
16 mins ago




Define my own newmcodes@?! Are you kidding me? :)
– Denis Bitouzé
16 mins ago

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f451591%2fdeclaremathoperator-adds-spaces-after-the-periods-contained-in-its-second-argum%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

Long meetings (6-7 hours a day): Being “babysat” by supervisor

Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

Confectionery