Command/setupbodyfontenvironment

From Wiki
< Command
Revision as of 19:18, 9 May 2012 by Otared (talk | contribs)
Jump to navigation Jump to search

\setupbodyfontenvironment

Syntax

\setupbodyfontenvironment[...][...,...=...,...]
[...] see \setupbodyfont
[...,...=...,...] see \setupbodyfont


Description

Example

\setupbodyfontenvironment
    [default][em=italic]

\em defaults to slanted, this makes \em=\it

The command takes also other arguments such as the ones in the following example:

\setupbodyfont[dejavu]

\setupbodyfontenvironment
 [default]
 [smallsized=1.25,
  mediumsized=1.5,
  largesized=2.0]

\definefontsize[smallsized]
\definefontsize[mediumsized]
\definefontsize[largesized]

\starttext

\setuphead[chapter]   [style=\bflargesized]
\setuphead[section]   [style=\bfmediumsized]
\setuphead[subsection][style=\bfsmallsized]

\chapter   {Whatever $x-1$}
\section   {Whatever $x-1$}
\subsection{Whatever $x-1$}

\input ward
\blank
Whatever $x-1$
\blank

{\itmediumsized This is italic medium sized. $\cos(x) = {\rm Re}(\exp({\rm i}x))$}

\blank

{\rmmediumsized This is roman medium sized. \crlf
$\cos(x) = {\rm Re}(\exp({\rm i}x))$}

\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: