Changes

Jump to navigation Jump to search
1,244 bytes added ,  16:55, 28 May 2020
< [[Basic Text FormattingBasics#Basics_of_ConTeXt_text_formatting|Basics of text formatting]] | [[Fonts]] >
(<code>\boldface</code> shown above is also defined to parallel the
<code>\typeface</code> and <code>\swapface</code> switches.)
 
== Capitalizing words ==
 
* Note that {{cmd|WORD}}, {{cmd|Word}} and all following macros aren't ''switches'', but ''commands'' (brackets behind, not around): <tt>{</tt>{{cmd|em}} <tt>switch}</tt>, vs {{cmd|Word}}<tt>{macro}</tt>.
 
== Underline, strike through, and overline ==
 
* Underlined, struck, and overlined text can be achieved with {{cmd|overbar}} , {{cmd|overbars}}, {{cmd|overstrike}}, {{cmd|overstrikes}}, {{cmd|underbar}}, and {{cmd|underbars}}.
 
The canonical way is <code>\overstrike{text}</code>. However, it you're using mycrotypography with <code>\setupalign[hz,hanging]</code> expect the rule to be placed over the character (with the Latin Modern fonts you should not have this problem, experienced with Linux Libertine and mkiv). This is not what is expected. The workaround is to put the overstriked text in a <code>\inframed[frame=off]{}</code>.
 
E.g.
<texcode>
bla bla bla \inframed[frame=off]{\overstrike{striked}} bla bla
</texcode>
 
<context>
bla bla bla \inframed[frame=off]{\overstrike{striked}} bla bla
</context>
 
Disabling mycrotypography also works, but probably not desiderable.
<pre>
\setupalign[nothanging,nohz]
\strikeout{text}
\setupalign[hanging,hz]
</pre>
== Complete font (bodyfont) change ==

Navigation menu