As discussed in this answer, one can typically disable small caps with \textup{}
. This appears to be broken with the newtx
package. How can I restore the desired behaviour?
Works with Computer Modern:
\documentclass{standalone}\begin{document}\textsc{abc\textup{abc}}\end{document}
Broken with newtxttext
:
\documentclass{standalone}\usepackage{newtxtext}\begin{document}\textsc{abc\textup{abc}}\end{document}
Desired output (for example, with the older txfonts
package, which works as expected but has other deficiencies that newtx
is supposed to fix.)
Other nested font selection like \textit{\textbf{abd}}
seem to work fine.
Update:
As pointed out by @UlrikeFischer, one can use \textulc{}
to "escape" from the small caps, but then I noticed another issue when using the largesc
option. Nested \textbf{\textsc{abc}}
is italics rather than bold. (Note: this works without the largesc
option):
\documentclass{standalone}\usepackage[largesc]{newtxtext}\begin{document}\textbf{\textsc{abc}}\end{document}
with the following log file:
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2017.2.13) 13 FEB 2017 18:09entering extended mode restricted \write18 enabled. %&-line parsing enabled.**nestedsc(./nestedsc.texLaTeX2e <2017/01/01> patch level 1Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.(/usr/local/texlive/2016/texmf-dist/tex/latex/standalone/standalone.clsDocument Class: standalone 2015/07/15 v1.2 Class to compile TeX sub-files standalone(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifluatex.styPackage: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)Package ifluatex Info: LuaTeX not detected.)(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.styPackage: ifpdf 2016/05/14 v3.1 Provides the ifpdf switch)(/usr/local/texlive/2016/texmf-dist/tex/generic/ifxetex/ifxetex.styPackage: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional)(/usr/local/texlive/2016/texmf-dist/tex/latex/xkeyval/xkeyval.styPackage: xkeyval 2014/12/03 v2.7a package option processing (HA)(/usr/local/texlive/2016/texmf-dist/tex/generic/xkeyval/xkeyval.tex(/usr/local/texlive/2016/texmf-dist/tex/generic/xkeyval/xkvutils.tex\XKV@toks=\toks14\XKV@tempa@toks=\toks15(/usr/local/texlive/2016/texmf-dist/tex/generic/xkeyval/keyval.tex))\XKV@depth=\count79File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)))\sa@internal=\count80\c@sapage=\count81(/usr/local/texlive/2016/texmf-dist/tex/latex/standalone/standalone.cfgFile: standalone.cfg 2015/07/15 v1.2 Default configuration file for 'standalone' class)(/usr/local/texlive/2016/texmf-dist/tex/latex/base/article.clsDocument Class: article 2014/09/29 v1.4h Standard LaTeX document class(/usr/local/texlive/2016/texmf-dist/tex/latex/base/size10.cloFile: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option))\c@part=\count82\c@section=\count83\c@subsection=\count84\c@subsubsection=\count85\c@paragraph=\count86\c@subparagraph=\count87\c@figure=\count88\c@table=\count89\abovecaptionskip=\skip41\belowcaptionskip=\skip42\bibindent=\dimen102)\sa@box=\box26)(/usr/local/texlive/2016/texmf-dist/tex/latex/newtx/newtxtext.styPackage: newtxtext 2017/01/30 v1.517`newtxtext' v1.517, 2017/01/30 Text macros taking advantage of TeX-Gyre Termes fonts (msharpe)(/usr/local/texlive/2016/texmf-dist/tex/latex/fontaxes/fontaxes.styPackage: fontaxes 2014/03/23 v1.0d Font selection axesLaTeX Info: Redefining \upshape on input line 29.LaTeX Info: Redefining \itshape on input line 31.LaTeX Info: Redefining \slshape on input line 33.LaTeX Info: Redefining \scshape on input line 37.)\ntx@fs=\dimen103(/usr/local/texlive/2016/texmf-dist/tex/latex/etoolbox/etoolbox.styPackage: etoolbox 2017/01/02 v2.4 e-TeX tools for LaTeX (JAW)\etb@tempcnta=\count90)(/usr/local/texlive/2016/texmf-dist/tex/latex/base/fontenc.styPackage: fontenc 2017/01/24 v2.0c Standard LaTeX package(/usr/local/texlive/2016/texmf-dist/tex/latex/base/t1enc.defFile: t1enc.def 2017/01/24 v2.0c Standard LaTeX fileLaTeX Font Info: Redeclaring font encoding T1 on input line 48.))(/usr/local/texlive/2016/texmf-dist/tex/latex/base/textcomp.styPackage: textcomp 2017/01/24 v2.0c Standard LaTeX packagePackage textcomp Info: Sub-encoding information:(textcomp) 5 = only ISO-Adobe without \textcurrency(textcomp) 4 = 5 + \texteuro(textcomp) 3 = 4 + \textohm(textcomp) 2 = 3 + \textestimated + \textcurrency(textcomp) 1 = TS1 - \textcircled - \t(textcomp) 0 = TS1 (full)(textcomp) Font families with sub-encoding setting implement(textcomp) only a restricted character set as indicated.(textcomp) Family '?' is the default used for unknown fonts.(textcomp) See the documentation for details.Package textcomp Info: Setting ? sub-encoding to TS1/1 on input line 79.Package textcomp Info: Changing ? sub-encoding to TS1/0 on input line 80.(/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1enc.defFile: ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file)LaTeX Info: Redefining \oldstylenums on input line 334.Package textcomp Info: Setting cmr sub-encoding to TS1/0 on input line 349.Package textcomp Info: Setting cmss sub-encoding to TS1/0 on input line 350.Package textcomp Info: Setting cmtt sub-encoding to TS1/0 on input line 351.Package textcomp Info: Setting cmvtt sub-encoding to TS1/0 on input line 352.Package textcomp Info: Setting cmbr sub-encoding to TS1/0 on input line 353.Package textcomp Info: Setting cmtl sub-encoding to TS1/0 on input line 354.Package textcomp Info: Setting ccr sub-encoding to TS1/0 on input line 355.Package textcomp Info: Setting ptm sub-encoding to TS1/4 on input line 356.Package textcomp Info: Setting pcr sub-encoding to TS1/4 on input line 357.Package textcomp Info: Setting phv sub-encoding to TS1/4 on input line 358.Package textcomp Info: Setting ppl sub-encoding to TS1/3 on input line 359.Package textcomp Info: Setting pag sub-encoding to TS1/4 on input line 360.Package textcomp Info: Setting pbk sub-encoding to TS1/4 on input line 361.Package textcomp Info: Setting pnc sub-encoding to TS1/4 on input line 362.Package textcomp Info: Setting pzc sub-encoding to TS1/4 on input line 363.Package textcomp Info: Setting bch sub-encoding to TS1/4 on input line 364.Package textcomp Info: Setting put sub-encoding to TS1/5 on input line 365.Package textcomp Info: Setting uag sub-encoding to TS1/5 on input line 366.Package textcomp Info: Setting ugq sub-encoding to TS1/5 on input line 367.Package textcomp Info: Setting ul8 sub-encoding to TS1/4 on input line 368.Package textcomp Info: Setting ul9 sub-encoding to TS1/4 on input line 369.Package textcomp Info: Setting augie sub-encoding to TS1/5 on input line 370.Package textcomp Info: Setting dayrom sub-encoding to TS1/3 on input line 371.Package textcomp Info: Setting dayroms sub-encoding to TS1/3 on input line 372.Package textcomp Info: Setting pxr sub-encoding to TS1/0 on input line 373.Package textcomp Info: Setting pxss sub-encoding to TS1/0 on input line 374.Package textcomp Info: Setting pxtt sub-encoding to TS1/0 on input line 375.Package textcomp Info: Setting txr sub-encoding to TS1/0 on input line 376.Package textcomp Info: Setting txss sub-encoding to TS1/0 on input line 377.Package textcomp Info: Setting txtt sub-encoding to TS1/0 on input line 378.Package textcomp Info: Setting lmr sub-encoding to TS1/0 on input line 379.Package textcomp Info: Setting lmdh sub-encoding to TS1/0 on input line 380.Package textcomp Info: Setting lmss sub-encoding to TS1/0 on input line 381.Package textcomp Info: Setting lmssq sub-encoding to TS1/0 on input line 382.Package textcomp Info: Setting lmvtt sub-encoding to TS1/0 on input line 383.Package textcomp Info: Setting lmtt sub-encoding to TS1/0 on input line 384.Package textcomp Info: Setting qhv sub-encoding to TS1/0 on input line 385.Package textcomp Info: Setting qag sub-encoding to TS1/0 on input line 386.Package textcomp Info: Setting qbk sub-encoding to TS1/0 on input line 387.Package textcomp Info: Setting qcr sub-encoding to TS1/0 on input line 388.Package textcomp Info: Setting qcs sub-encoding to TS1/0 on input line 389.Package textcomp Info: Setting qpl sub-encoding to TS1/0 on input line 390.Package textcomp Info: Setting qtm sub-encoding to TS1/0 on input line 391.Package textcomp Info: Setting qzc sub-encoding to TS1/0 on input line 392.Package textcomp Info: Setting qhvc sub-encoding to TS1/0 on input line 393.Package textcomp Info: Setting futs sub-encoding to TS1/4 on input line 394.Package textcomp Info: Setting futx sub-encoding to TS1/4 on input line 395.Package textcomp Info: Setting futj sub-encoding to TS1/4 on input line 396.Package textcomp Info: Setting hlh sub-encoding to TS1/3 on input line 397.Package textcomp Info: Setting hls sub-encoding to TS1/3 on input line 398.Package textcomp Info: Setting hlst sub-encoding to TS1/3 on input line 399.Package textcomp Info: Setting hlct sub-encoding to TS1/5 on input line 400.Package textcomp Info: Setting hlx sub-encoding to TS1/5 on input line 401.Package textcomp Info: Setting hlce sub-encoding to TS1/5 on input line 402.Package textcomp Info: Setting hlcn sub-encoding to TS1/5 on input line 403.Package textcomp Info: Setting hlcw sub-encoding to TS1/5 on input line 404.Package textcomp Info: Setting hlcf sub-encoding to TS1/5 on input line 405.Package textcomp Info: Setting pplx sub-encoding to TS1/3 on input line 406.Package textcomp Info: Setting pplj sub-encoding to TS1/3 on input line 407.Package textcomp Info: Setting ptmx sub-encoding to TS1/4 on input line 408.Package textcomp Info: Setting ptmj sub-encoding to TS1/4 on input line 409.) BabelLaTeX Font Info: Try loading font information for T1+ntxtlf on input line 253.(/usr/local/texlive/2016/texmf-dist/tex/latex/newtx/t1ntxtlf.fdFile: t1ntxtlf.fd 2015/01/17 v1.0 font definition file for T1/ntx/tlf)LaTeX Font Info: Font shape `T1/ntxtlf/m/n' will be(Font) scaled to size 10.0pt on input line 253.)(./nestedsc.aux)\openout1 = `nestedsc.aux'.LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.LaTeX Font Info: ... okay on input line 3.LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.LaTeX Font Info: ... okay on input line 3.LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.LaTeX Font Info: ... okay on input line 3.LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.LaTeX Font Info: ... okay on input line 3.LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.LaTeX Font Info: ... okay on input line 3.LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.LaTeX Font Info: ... okay on input line 3.LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 3.LaTeX Font Info: Try loading font information for TS1+cmr on input line 3. (/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1cmr.fdFile: ts1cmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions)LaTeX Font Info: ... okay on input line 3.\c@mv@tabular=\count91\c@mv@boldtabular=\count92LaTeX Font Info: Font shape `T1/ntxtlf/bx/n' in size <10> not available(Font) Font shape `T1/ntxtlf/b/n' tried instead on input line 4.LaTeX Font Info: Font shape `T1/ntxtlf/b/n' will be(Font) scaled to size 10.0pt on input line 4.LaTeX Font Info: Font shape `T1/ntxtlf/bx/sc' in size <10> not available(Font) Font shape `T1/ntxtlf/b/sc' tried instead on input line 4.LaTeX Font Info: Font shape `T1/ntxtlf/b/sc' will be(Font) scaled to size 10.0pt on input line 4.[1{/usr/local/texlive/2016/texmf-var/fonts/map/pdftex/updmap/pdftex.map}](./nestedsc.aux) ) Here is how much of TeX's memory you used: 1988 strings out of 493013 29369 string characters out of 6133343 74377 words of memory out of 5000000 5556 multiletter control sequences out of 15000+600000 13128 words of font info for 18 fonts, out of 8000000 for 9000 1141 hyphenation exceptions out of 8191 34i,4n,56p,870b,108s stack positions out of 5000i,500n,10000p,200000b,80000s{/usr/local/texlive/2016/texmf-dist/fonts/enc/dvips/newtx/ntx-ec-tlf-sc.enc}</usr/local/texlive/2016/texmf-dist/fonts/type1/public/newtx/ntxtmb.pfb>Output written on nestedsc.pdf (1 page, 31136 bytes).PDF statistics: 13 PDF objects out of 1000 (max. 8388607) 8 compressed objects within 1 object stream 0 named destinations out of 1000 (max. 500000) 1 words of extra memory for PDF output out of 10000 (max. 10000000)