Open main menu

Changes

There is no typescript called 'latinmodern'. The wiki displays the right output simply because the fallback font is latin modern
A collection of fonts is called a _typescript_ ''typescript'' in ConTeXt. The following typescripts are available for fonts distributed with ConTeXt (the name of the typescript is shown as <code>typescriptname</code>):
* The Latin Modern font family, which is a modern version of standard TeX font [https://en.wikipedia.org/wiki/Computer_Modern Computer Modern]:
\definepapersize[sheet][width=4.1cm,height=0.7cm] \setuppapersize[sheet]
\setuplayout[topspace=0.5mm, backspace=0.5mm,header=0pt, headerdistance=0pt,footer=0pt,footerdistance=0pt,width=4cm,heigth=0.6cm]
\definefontfamily [mainface] [rm] [latinmodernromanmodern] \setupbodyfont[mainface]
\switchtobodyfont[12pt]
\starttext \rm Latin Modern\stoptext
\definepapersize[sheet][width=4.1cm,height=0.7cm] \setuppapersize[sheet]
\setuplayout[topspace=0.5mm, backspace=0.5mm,header=0pt, headerdistance=0pt,footer=0pt,footerdistance=0pt,width=4cm,heigth=0.6cm]
\definefontfamily [mainface] [ss] [latinmodernsansmodern] \setupbodyfont[mainface]
\switchtobodyfont[12pt]
\starttext \ss Latin Modern\stoptext
\definepapersize[sheet][width=4.1cm,height=0.7cm] \setuppapersize[sheet]
\setuplayout[topspace=0.5mm, backspace=0.5mm,header=0pt, headerdistance=0pt,footer=0pt,footerdistance=0pt,width=4cm,heigth=0.6cm]
\definefontfamily [mainface] [tt] [latinmodernmonomodern] \setupbodyfont[mainface]
\switchtobodyfont[12pt]
\starttext \tt Latin Modern\stoptext
height=11cm]
%
\setupbodyfont[latinmodernmodern]
\setupbodyfont[10pt]
\setupinterlinespace[4ex]
\startitemize[none,packed]
\item default: \getbuffer[line]\\
\switchtobodyfont[latinmodernmodern] \item lmserif: \getbuffer[line]\\\switchtobodyfont[latinmodernmodern] \item \ss lmsans: \getbuffer[line]\\\switchtobodyfont[latinmodernmodern] \item \tt lmmono: \getbuffer[line]\\
\switchtobodyfont[adventor] \item adventor: \getbuffer[line]\\
\switchtobodyfont[bonum] \item bonum: \getbuffer[line]\\