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

From Wiki
Jump to navigation Jump to search
m (Added closing '>' on top navbar.)
 
(12 intermediate revisions by 6 users not shown)
Line 1: Line 1:
< [[From LaTeX to ConTeXt]] >
+
 
 +
== In ConTeXt MKIV (current) ==
 +
 
 +
<texcode>
 +
\starttext
 +
\setsmallcaps Normal and \bf bold Small Caps.
 +
 
 +
\style[style=smallcaps] Normal and \bf bold Small Caps.
 +
\stoptext
 +
</texcode>
 +
 
 +
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.
 +
 
 +
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.
 +
 
 +
See also [[Small caps and other styles]].
 +
 
 +
== In ConTeXt MKII (legacy) ==
 +
 
 +
<texcode>
 +
\usemodule[cmscbf]
 +
\starttext
 +
{\sc Normal and \bf bold Small Caps.}
 +
\stoptext
 +
</texcode>
 +
 
 +
You can download the module t-cmscbf.tex from http://pmrb.free.fr/work/OS/ConTeXt/
  
 
== In LaTeX ==
 
== In LaTeX ==
 +
 +
See also [[From LaTeX to ConTeXt]]
 +
 
<texcode>
 
<texcode>
 
\documentclass{article}
 
\documentclass{article}
Line 9: Line 38:
 
\end{document}
 
\end{document}
 
</texcode>
 
</texcode>
 
== In ConTeXt ==
 
 
{{howto}}
 
  
 
[[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}