Problem with newtxtext and textsuperscript












4















I expercience problems with textsuperscript and the package newtxtext. When I use textsuperscript it is not "turned off" afterwards: MWE



documentclass[a4paper,12pt]{scrbook}
usepackage{newtxtext}
begin{document}
21textsuperscript{th} century
end{document}


yields enter image description here



21textsuperscript{th} textnormal{century}


yields enter image description here



It should not be necessary to "turn off" textsuperscript. Correct? Any ideas?



Edit: I am using shareLatex with pdfLatex. Output of File List:



 scrbook.cls    2017/04/13 v3.23 KOMA-Script document class (book)
scrkbase.sty 2017/04/13 v3.23 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
scrbase.sty 2017/04/13 v3.23 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
scrlfile.sty 2017/04/13 v3.23 KOMA-Script package (loading files)
tocbasic.sty 2017/04/13 v3.23 KOMA-Script package (handling toc-files)
scrsize12pt.clo 2017/04/13 v3.23 KOMA-Script font size class option (12pt)
typearea.sty 2017/04/13 v3.23 KOMA-Script package (type area)
newtxtext.sty 2017/05/28 v1.523
fontaxes.sty 2014/03/23 v1.0d Font selection axes
xkeyval.sty 2014/12/03 v2.7a package option processing (HA)
xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
etoolbox.sty 2017/01/02 v2.4 e-TeX tools for LaTeX (JAW)
fontenc.sty
t1enc.def 2017/04/05 v2.0i Standard LaTeX file
textcomp.sty 2017/04/05 v2.0i Standard LaTeX package
ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
t1ntxtlf.fd 2015/01/17 v1.0 font definition file for T1/ntx/tlf
ts1cmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
t1ntxsups.fd 2015/01/17 v1.0


Many Thanks
Benjamin










share|improve this question









New contributor




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
















  • 3





    Welcome to TeX.SX! I cannot reproduce the issue. What TeX distribution are you using? Can you please add listfiles at the top of the example and show here the output you find in the log file after *File list*?

    – egreg
    7 hours ago








  • 1





    ShareLaTeX's TeX distribution is very out-of-date.

    – JouleV
    7 hours ago











  • You are right. My fault. I replaced the file list with newtxtext instead of -math

    – Benjamin
    6 hours ago






  • 1





    (Disclaimer: I'm a support personnel on Overleaf.) Overleaf currently runs TeX Live 2017; sorry! We're aiming to upgrade later this year...

    – LianTze Lim
    1 hour ago











  • Minor unrelated nit: it’s “21st,” not “21th.”

    – Davislor
    33 mins ago


















4















I expercience problems with textsuperscript and the package newtxtext. When I use textsuperscript it is not "turned off" afterwards: MWE



documentclass[a4paper,12pt]{scrbook}
usepackage{newtxtext}
begin{document}
21textsuperscript{th} century
end{document}


yields enter image description here



21textsuperscript{th} textnormal{century}


yields enter image description here



It should not be necessary to "turn off" textsuperscript. Correct? Any ideas?



Edit: I am using shareLatex with pdfLatex. Output of File List:



 scrbook.cls    2017/04/13 v3.23 KOMA-Script document class (book)
scrkbase.sty 2017/04/13 v3.23 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
scrbase.sty 2017/04/13 v3.23 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
scrlfile.sty 2017/04/13 v3.23 KOMA-Script package (loading files)
tocbasic.sty 2017/04/13 v3.23 KOMA-Script package (handling toc-files)
scrsize12pt.clo 2017/04/13 v3.23 KOMA-Script font size class option (12pt)
typearea.sty 2017/04/13 v3.23 KOMA-Script package (type area)
newtxtext.sty 2017/05/28 v1.523
fontaxes.sty 2014/03/23 v1.0d Font selection axes
xkeyval.sty 2014/12/03 v2.7a package option processing (HA)
xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
etoolbox.sty 2017/01/02 v2.4 e-TeX tools for LaTeX (JAW)
fontenc.sty
t1enc.def 2017/04/05 v2.0i Standard LaTeX file
textcomp.sty 2017/04/05 v2.0i Standard LaTeX package
ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
t1ntxtlf.fd 2015/01/17 v1.0 font definition file for T1/ntx/tlf
ts1cmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
t1ntxsups.fd 2015/01/17 v1.0


Many Thanks
Benjamin










share|improve this question









New contributor




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
















  • 3





    Welcome to TeX.SX! I cannot reproduce the issue. What TeX distribution are you using? Can you please add listfiles at the top of the example and show here the output you find in the log file after *File list*?

    – egreg
    7 hours ago








  • 1





    ShareLaTeX's TeX distribution is very out-of-date.

    – JouleV
    7 hours ago











  • You are right. My fault. I replaced the file list with newtxtext instead of -math

    – Benjamin
    6 hours ago






  • 1





    (Disclaimer: I'm a support personnel on Overleaf.) Overleaf currently runs TeX Live 2017; sorry! We're aiming to upgrade later this year...

    – LianTze Lim
    1 hour ago











  • Minor unrelated nit: it’s “21st,” not “21th.”

    – Davislor
    33 mins ago
















4












4








4








I expercience problems with textsuperscript and the package newtxtext. When I use textsuperscript it is not "turned off" afterwards: MWE



documentclass[a4paper,12pt]{scrbook}
usepackage{newtxtext}
begin{document}
21textsuperscript{th} century
end{document}


yields enter image description here



21textsuperscript{th} textnormal{century}


yields enter image description here



It should not be necessary to "turn off" textsuperscript. Correct? Any ideas?



Edit: I am using shareLatex with pdfLatex. Output of File List:



 scrbook.cls    2017/04/13 v3.23 KOMA-Script document class (book)
scrkbase.sty 2017/04/13 v3.23 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
scrbase.sty 2017/04/13 v3.23 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
scrlfile.sty 2017/04/13 v3.23 KOMA-Script package (loading files)
tocbasic.sty 2017/04/13 v3.23 KOMA-Script package (handling toc-files)
scrsize12pt.clo 2017/04/13 v3.23 KOMA-Script font size class option (12pt)
typearea.sty 2017/04/13 v3.23 KOMA-Script package (type area)
newtxtext.sty 2017/05/28 v1.523
fontaxes.sty 2014/03/23 v1.0d Font selection axes
xkeyval.sty 2014/12/03 v2.7a package option processing (HA)
xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
etoolbox.sty 2017/01/02 v2.4 e-TeX tools for LaTeX (JAW)
fontenc.sty
t1enc.def 2017/04/05 v2.0i Standard LaTeX file
textcomp.sty 2017/04/05 v2.0i Standard LaTeX package
ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
t1ntxtlf.fd 2015/01/17 v1.0 font definition file for T1/ntx/tlf
ts1cmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
t1ntxsups.fd 2015/01/17 v1.0


Many Thanks
Benjamin










share|improve this question









New contributor




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












I expercience problems with textsuperscript and the package newtxtext. When I use textsuperscript it is not "turned off" afterwards: MWE



documentclass[a4paper,12pt]{scrbook}
usepackage{newtxtext}
begin{document}
21textsuperscript{th} century
end{document}


yields enter image description here



21textsuperscript{th} textnormal{century}


yields enter image description here



It should not be necessary to "turn off" textsuperscript. Correct? Any ideas?



Edit: I am using shareLatex with pdfLatex. Output of File List:



 scrbook.cls    2017/04/13 v3.23 KOMA-Script document class (book)
scrkbase.sty 2017/04/13 v3.23 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
scrbase.sty 2017/04/13 v3.23 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
scrlfile.sty 2017/04/13 v3.23 KOMA-Script package (loading files)
tocbasic.sty 2017/04/13 v3.23 KOMA-Script package (handling toc-files)
scrsize12pt.clo 2017/04/13 v3.23 KOMA-Script font size class option (12pt)
typearea.sty 2017/04/13 v3.23 KOMA-Script package (type area)
newtxtext.sty 2017/05/28 v1.523
fontaxes.sty 2014/03/23 v1.0d Font selection axes
xkeyval.sty 2014/12/03 v2.7a package option processing (HA)
xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
etoolbox.sty 2017/01/02 v2.4 e-TeX tools for LaTeX (JAW)
fontenc.sty
t1enc.def 2017/04/05 v2.0i Standard LaTeX file
textcomp.sty 2017/04/05 v2.0i Standard LaTeX package
ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
t1ntxtlf.fd 2015/01/17 v1.0 font definition file for T1/ntx/tlf
ts1cmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
t1ntxsups.fd 2015/01/17 v1.0


Many Thanks
Benjamin







formatting sharelatex overleaf times






share|improve this question









New contributor




Benjamin 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




Benjamin 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 6 hours ago







Benjamin













New contributor




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









asked 7 hours ago









BenjaminBenjamin

212




212




New contributor




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





New contributor





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






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








  • 3





    Welcome to TeX.SX! I cannot reproduce the issue. What TeX distribution are you using? Can you please add listfiles at the top of the example and show here the output you find in the log file after *File list*?

    – egreg
    7 hours ago








  • 1





    ShareLaTeX's TeX distribution is very out-of-date.

    – JouleV
    7 hours ago











  • You are right. My fault. I replaced the file list with newtxtext instead of -math

    – Benjamin
    6 hours ago






  • 1





    (Disclaimer: I'm a support personnel on Overleaf.) Overleaf currently runs TeX Live 2017; sorry! We're aiming to upgrade later this year...

    – LianTze Lim
    1 hour ago











  • Minor unrelated nit: it’s “21st,” not “21th.”

    – Davislor
    33 mins ago
















  • 3





    Welcome to TeX.SX! I cannot reproduce the issue. What TeX distribution are you using? Can you please add listfiles at the top of the example and show here the output you find in the log file after *File list*?

    – egreg
    7 hours ago








  • 1





    ShareLaTeX's TeX distribution is very out-of-date.

    – JouleV
    7 hours ago











  • You are right. My fault. I replaced the file list with newtxtext instead of -math

    – Benjamin
    6 hours ago






  • 1





    (Disclaimer: I'm a support personnel on Overleaf.) Overleaf currently runs TeX Live 2017; sorry! We're aiming to upgrade later this year...

    – LianTze Lim
    1 hour ago











  • Minor unrelated nit: it’s “21st,” not “21th.”

    – Davislor
    33 mins ago










3




3





Welcome to TeX.SX! I cannot reproduce the issue. What TeX distribution are you using? Can you please add listfiles at the top of the example and show here the output you find in the log file after *File list*?

– egreg
7 hours ago







Welcome to TeX.SX! I cannot reproduce the issue. What TeX distribution are you using? Can you please add listfiles at the top of the example and show here the output you find in the log file after *File list*?

– egreg
7 hours ago






1




1





ShareLaTeX's TeX distribution is very out-of-date.

– JouleV
7 hours ago





ShareLaTeX's TeX distribution is very out-of-date.

– JouleV
7 hours ago













You are right. My fault. I replaced the file list with newtxtext instead of -math

– Benjamin
6 hours ago





You are right. My fault. I replaced the file list with newtxtext instead of -math

– Benjamin
6 hours ago




1




1





(Disclaimer: I'm a support personnel on Overleaf.) Overleaf currently runs TeX Live 2017; sorry! We're aiming to upgrade later this year...

– LianTze Lim
1 hour ago





(Disclaimer: I'm a support personnel on Overleaf.) Overleaf currently runs TeX Live 2017; sorry! We're aiming to upgrade later this year...

– LianTze Lim
1 hour ago













Minor unrelated nit: it’s “21st,” not “21th.”

– Davislor
33 mins ago







Minor unrelated nit: it’s “21st,” not “21th.”

– Davislor
33 mins ago












2 Answers
2






active

oldest

votes


















1














I can reproduce the problem with Overleaf. ShareLaTeX and Overleaf are currently using a very old TeX distribution.



It seems to me that textsuperscript in this case doesn't have any argument, it works like bfseries, etc. Therefore, the following code can solve the problem:



documentclass[a4paper,12pt]{scrbook}
usepackage{newtxtext}
begin{document}
21{textsuperscript th} century
end{document}


You can also do something like



documentclass[a4paper,12pt]{scrbook}
usepackage{newtxtext}
makeatletter
let@mycommandtextsuperscript
renewcommandtextsuperscript[1]{{@mycommand #1}}
makeatother
begin{document}
21textsuperscript{th} century
end{document}


Result:



enter image description here






share|improve this answer
























  • Thanks! This solution works for me. Good to know that shareLatex uses an old TeX distribution. But the advantages in terms of collaboration and working from different computers with different systems: mac windows is more important to me.

    – Benjamin
    6 hours ago











  • @Benjamin Of course ShareLaTeX is not bad. That is the starting point of LaTeX in my life. However, because it is an online platform, it is very difficult to update TeX Live there, that is the point of my sentence.

    – JouleV
    6 hours ago



















1














You're using newtxtext version 1.523 that has an error about textsuperscript; you can fix it as follows



documentclass[a4paper,12pt]{scrbook}

% fix the error in version 1.523 of newtxtext
letlatextextsuperscripttextsuperscript
AtBeginDocument{lettextsuperscriptlatextextsuperscript}

usepackage{newtxtext}

begin{document}

21textsuperscript{th} century

end{document}


You can see how the code in newtxtext.sty was actually fixed at http://tug.org/svn/texlive/trunk/Master/texmf-dist/tex/latex/newtx/newtxtext.sty?r1=44458&r2=45074&sortby=date



The package removed the wrong usage of textsu, which is the same I do in the suggested patch.






share|improve this answer
























  • Thank you very much. Works just fine.

    – Benjamin
    5 hours ago











  • @Benjamin The best is, of course, typing 21th and avoiding the Victorian age superscript.

    – egreg
    5 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',
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
});


}
});






Benjamin 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%2f483931%2fproblem-with-newtxtext-and-textsuperscript%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









1














I can reproduce the problem with Overleaf. ShareLaTeX and Overleaf are currently using a very old TeX distribution.



It seems to me that textsuperscript in this case doesn't have any argument, it works like bfseries, etc. Therefore, the following code can solve the problem:



documentclass[a4paper,12pt]{scrbook}
usepackage{newtxtext}
begin{document}
21{textsuperscript th} century
end{document}


You can also do something like



documentclass[a4paper,12pt]{scrbook}
usepackage{newtxtext}
makeatletter
let@mycommandtextsuperscript
renewcommandtextsuperscript[1]{{@mycommand #1}}
makeatother
begin{document}
21textsuperscript{th} century
end{document}


Result:



enter image description here






share|improve this answer
























  • Thanks! This solution works for me. Good to know that shareLatex uses an old TeX distribution. But the advantages in terms of collaboration and working from different computers with different systems: mac windows is more important to me.

    – Benjamin
    6 hours ago











  • @Benjamin Of course ShareLaTeX is not bad. That is the starting point of LaTeX in my life. However, because it is an online platform, it is very difficult to update TeX Live there, that is the point of my sentence.

    – JouleV
    6 hours ago
















1














I can reproduce the problem with Overleaf. ShareLaTeX and Overleaf are currently using a very old TeX distribution.



It seems to me that textsuperscript in this case doesn't have any argument, it works like bfseries, etc. Therefore, the following code can solve the problem:



documentclass[a4paper,12pt]{scrbook}
usepackage{newtxtext}
begin{document}
21{textsuperscript th} century
end{document}


You can also do something like



documentclass[a4paper,12pt]{scrbook}
usepackage{newtxtext}
makeatletter
let@mycommandtextsuperscript
renewcommandtextsuperscript[1]{{@mycommand #1}}
makeatother
begin{document}
21textsuperscript{th} century
end{document}


Result:



enter image description here






share|improve this answer
























  • Thanks! This solution works for me. Good to know that shareLatex uses an old TeX distribution. But the advantages in terms of collaboration and working from different computers with different systems: mac windows is more important to me.

    – Benjamin
    6 hours ago











  • @Benjamin Of course ShareLaTeX is not bad. That is the starting point of LaTeX in my life. However, because it is an online platform, it is very difficult to update TeX Live there, that is the point of my sentence.

    – JouleV
    6 hours ago














1












1








1







I can reproduce the problem with Overleaf. ShareLaTeX and Overleaf are currently using a very old TeX distribution.



It seems to me that textsuperscript in this case doesn't have any argument, it works like bfseries, etc. Therefore, the following code can solve the problem:



documentclass[a4paper,12pt]{scrbook}
usepackage{newtxtext}
begin{document}
21{textsuperscript th} century
end{document}


You can also do something like



documentclass[a4paper,12pt]{scrbook}
usepackage{newtxtext}
makeatletter
let@mycommandtextsuperscript
renewcommandtextsuperscript[1]{{@mycommand #1}}
makeatother
begin{document}
21textsuperscript{th} century
end{document}


Result:



enter image description here






share|improve this answer













I can reproduce the problem with Overleaf. ShareLaTeX and Overleaf are currently using a very old TeX distribution.



It seems to me that textsuperscript in this case doesn't have any argument, it works like bfseries, etc. Therefore, the following code can solve the problem:



documentclass[a4paper,12pt]{scrbook}
usepackage{newtxtext}
begin{document}
21{textsuperscript th} century
end{document}


You can also do something like



documentclass[a4paper,12pt]{scrbook}
usepackage{newtxtext}
makeatletter
let@mycommandtextsuperscript
renewcommandtextsuperscript[1]{{@mycommand #1}}
makeatother
begin{document}
21textsuperscript{th} century
end{document}


Result:



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered 6 hours ago









JouleVJouleV

11.9k22561




11.9k22561













  • Thanks! This solution works for me. Good to know that shareLatex uses an old TeX distribution. But the advantages in terms of collaboration and working from different computers with different systems: mac windows is more important to me.

    – Benjamin
    6 hours ago











  • @Benjamin Of course ShareLaTeX is not bad. That is the starting point of LaTeX in my life. However, because it is an online platform, it is very difficult to update TeX Live there, that is the point of my sentence.

    – JouleV
    6 hours ago



















  • Thanks! This solution works for me. Good to know that shareLatex uses an old TeX distribution. But the advantages in terms of collaboration and working from different computers with different systems: mac windows is more important to me.

    – Benjamin
    6 hours ago











  • @Benjamin Of course ShareLaTeX is not bad. That is the starting point of LaTeX in my life. However, because it is an online platform, it is very difficult to update TeX Live there, that is the point of my sentence.

    – JouleV
    6 hours ago

















Thanks! This solution works for me. Good to know that shareLatex uses an old TeX distribution. But the advantages in terms of collaboration and working from different computers with different systems: mac windows is more important to me.

– Benjamin
6 hours ago





Thanks! This solution works for me. Good to know that shareLatex uses an old TeX distribution. But the advantages in terms of collaboration and working from different computers with different systems: mac windows is more important to me.

– Benjamin
6 hours ago













@Benjamin Of course ShareLaTeX is not bad. That is the starting point of LaTeX in my life. However, because it is an online platform, it is very difficult to update TeX Live there, that is the point of my sentence.

– JouleV
6 hours ago





@Benjamin Of course ShareLaTeX is not bad. That is the starting point of LaTeX in my life. However, because it is an online platform, it is very difficult to update TeX Live there, that is the point of my sentence.

– JouleV
6 hours ago











1














You're using newtxtext version 1.523 that has an error about textsuperscript; you can fix it as follows



documentclass[a4paper,12pt]{scrbook}

% fix the error in version 1.523 of newtxtext
letlatextextsuperscripttextsuperscript
AtBeginDocument{lettextsuperscriptlatextextsuperscript}

usepackage{newtxtext}

begin{document}

21textsuperscript{th} century

end{document}


You can see how the code in newtxtext.sty was actually fixed at http://tug.org/svn/texlive/trunk/Master/texmf-dist/tex/latex/newtx/newtxtext.sty?r1=44458&r2=45074&sortby=date



The package removed the wrong usage of textsu, which is the same I do in the suggested patch.






share|improve this answer
























  • Thank you very much. Works just fine.

    – Benjamin
    5 hours ago











  • @Benjamin The best is, of course, typing 21th and avoiding the Victorian age superscript.

    – egreg
    5 hours ago
















1














You're using newtxtext version 1.523 that has an error about textsuperscript; you can fix it as follows



documentclass[a4paper,12pt]{scrbook}

% fix the error in version 1.523 of newtxtext
letlatextextsuperscripttextsuperscript
AtBeginDocument{lettextsuperscriptlatextextsuperscript}

usepackage{newtxtext}

begin{document}

21textsuperscript{th} century

end{document}


You can see how the code in newtxtext.sty was actually fixed at http://tug.org/svn/texlive/trunk/Master/texmf-dist/tex/latex/newtx/newtxtext.sty?r1=44458&r2=45074&sortby=date



The package removed the wrong usage of textsu, which is the same I do in the suggested patch.






share|improve this answer
























  • Thank you very much. Works just fine.

    – Benjamin
    5 hours ago











  • @Benjamin The best is, of course, typing 21th and avoiding the Victorian age superscript.

    – egreg
    5 hours ago














1












1








1







You're using newtxtext version 1.523 that has an error about textsuperscript; you can fix it as follows



documentclass[a4paper,12pt]{scrbook}

% fix the error in version 1.523 of newtxtext
letlatextextsuperscripttextsuperscript
AtBeginDocument{lettextsuperscriptlatextextsuperscript}

usepackage{newtxtext}

begin{document}

21textsuperscript{th} century

end{document}


You can see how the code in newtxtext.sty was actually fixed at http://tug.org/svn/texlive/trunk/Master/texmf-dist/tex/latex/newtx/newtxtext.sty?r1=44458&r2=45074&sortby=date



The package removed the wrong usage of textsu, which is the same I do in the suggested patch.






share|improve this answer













You're using newtxtext version 1.523 that has an error about textsuperscript; you can fix it as follows



documentclass[a4paper,12pt]{scrbook}

% fix the error in version 1.523 of newtxtext
letlatextextsuperscripttextsuperscript
AtBeginDocument{lettextsuperscriptlatextextsuperscript}

usepackage{newtxtext}

begin{document}

21textsuperscript{th} century

end{document}


You can see how the code in newtxtext.sty was actually fixed at http://tug.org/svn/texlive/trunk/Master/texmf-dist/tex/latex/newtx/newtxtext.sty?r1=44458&r2=45074&sortby=date



The package removed the wrong usage of textsu, which is the same I do in the suggested patch.







share|improve this answer












share|improve this answer



share|improve this answer










answered 5 hours ago









egregegreg

732k8919303254




732k8919303254













  • Thank you very much. Works just fine.

    – Benjamin
    5 hours ago











  • @Benjamin The best is, of course, typing 21th and avoiding the Victorian age superscript.

    – egreg
    5 hours ago



















  • Thank you very much. Works just fine.

    – Benjamin
    5 hours ago











  • @Benjamin The best is, of course, typing 21th and avoiding the Victorian age superscript.

    – egreg
    5 hours ago

















Thank you very much. Works just fine.

– Benjamin
5 hours ago





Thank you very much. Works just fine.

– Benjamin
5 hours ago













@Benjamin The best is, of course, typing 21th and avoiding the Victorian age superscript.

– egreg
5 hours ago





@Benjamin The best is, of course, typing 21th and avoiding the Victorian age superscript.

– egreg
5 hours ago










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










draft saved

draft discarded


















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













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












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
















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%2f483931%2fproblem-with-newtxtext-and-textsuperscript%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

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

Calculate evaluation metrics using cross_val_predict sklearn

Insert data from modal to MySQL (multiple modal on website)