Difference between revisions of "Small caps across styles (bold, italics, etc.)"

From Wiki
Jump to navigation Jump to search
m (Ishamid moved page Bold small caps to Small caps across styles (bold, italics, etc.): The new title is more general: smallcaps may be found in styles other than bold.)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
< [[From LaTeX to ConTeXt]] >
 
  
== In LaTeX ==
+
== In ConTeXt MKIV (current) ==
<texcode>
 
\documentclass{article}
 
\usepackage[T1]{fontenc}
 
\begin{document}
 
\textbf{\textsc{bold small caps}}
 
\end{document}
 
</texcode>
 
 
 
== In ConTeXt MKIV ==
 
  
 
<texcode>
 
<texcode>
Line 20: Line 10:
 
</texcode>
 
</texcode>
  
Note that the legacy command <texcode>\sc</texcode> should be considered deprecated; it should no longer be used.  
+
Note that the legacy command <texcode>\sc</texcode> should be used <em>only</em> for those few typefaces where the small caps belong to a font file distinct from the main font. Latin Modern is an example.  
  
See also <to be added>.
+
For most (if not all) contemporary opentype fonts, the small caps (and the associated feature <code>smcp</code>) are included in the main font file; so <code>\sc</code> should no longer be used - and will not work across all weights - in most instances.  
  
== In ConTeXt MKII ==
+
See also [[Small caps and other styles]].
 +
 
 +
== In ConTeXt MKII (legacy) ==
  
 
<texcode>
 
<texcode>
Line 34: Line 26:
  
 
You can download the module t-cmscbf.tex from http://pmrb.free.fr/work/OS/ConTeXt/
 
You can download the module t-cmscbf.tex from http://pmrb.free.fr/work/OS/ConTeXt/
 +
 +
== In LaTeX ==
 +
 +
See also [[From LaTeX to ConTeXt]]
 +
 +
<texcode>
 +
\documentclass{article}
 +
\usepackage[T1]{fontenc}
 +
\begin{document}
 +
\textbf{\textsc{bold small caps}}
 +
\end{document}
 +
</texcode>
  
 
[[Category:Fonts]]
 
[[Category:Fonts]]
 
[[Category:From LaTeX]]
 
[[Category:From LaTeX]]

Latest revision as of 20:18, 19 August 2023

In ConTeXt MKIV (current)

\starttext
\setsmallcaps Normal and \bf bold Small Caps.

\style[style=smallcaps] Normal and \bf bold Small Caps.
\stoptext

Note that the legacy command

\sc

should be used only for those few typefaces where the small caps belong to a font file distinct from the main font. Latin Modern is an example.

For most (if not all) contemporary opentype fonts, the small caps (and the associated feature smcp) are included in the main font file; so \sc should no longer be used - and will not work across all weights - in most instances.

See also Small caps and other styles.

In ConTeXt MKII (legacy)

\usemodule[cmscbf]
\starttext
{\sc Normal and \bf bold Small Caps.}
\stoptext

You can download the module t-cmscbf.tex from http://pmrb.free.fr/work/OS/ConTeXt/

In LaTeX

See also From LaTeX to ConTeXt

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
\textbf{\textsc{bold small caps}}
\end{document}