Difference between revisions of "First Document"
Jump to navigation
Jump to search
m ("proper" way to use structure) |
|||
(18 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | + | == Modifying the output style == | |
− | + | It is possible to change the style of the output by using appropriate ''setup'' commands in the preamble. For example, to make the section titles bold and to use italic (rather than slanted) font for emphasized words, use | |
− | < | + | <context mode="mkiv" source="yes" text="which gives"> |
+ | \setuphead[section][style=\bfa] | ||
+ | \setupbodyfontenvironment[default][em=italic] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
\starttext | \starttext | ||
\startsection[title={Testing ConTeXt}] | \startsection[title={Testing ConTeXt}] | ||
− | This is my first ConTeXt document. | + | This is my {\em first} ConTeXt document. |
\stopsection | \stopsection | ||
\stoptext | \stoptext | ||
</context> | </context> | ||
− | + | [[Category:Basics]] | |
− | + | [[Category:Sample documents]] | |
− | |||
− |
Latest revision as of 19:18, 14 April 2024
Modifying the output style
It is possible to change the style of the output by using appropriate setup commands in the preamble. For example, to make the section titles bold and to use italic (rather than slanted) font for emphasized words, use
\setuphead[section][style=\bfa] \setupbodyfontenvironment[default][em=italic] \starttext \startsection[title={Testing ConTeXt}] This is my {\em first} ConTeXt document. \stopsection \stoptext
which gives