[NTG-context] structure Mk II vs IV

Rudolf Bahr quasi at quasi.de
Wed Feb 26 13:56:32 CET 2014



On Tue, Feb 25, 2014 at 11:48:11PM +0100, Wolfgang Schuster wrote:
> 
> Am 25.02.2014 um 23:37 schrieb Andrea Valle <andrea.valle at unito.it>:
> 
> > Ah, so I was a bit mislead by the wiki. Actually I hace this.
> > 
> > 
> > \usemodule[simplefonts][size=8pt]
> > \definefontfamily [myfamily][serif][TeX Gyre Termes]
> > \definefontfamily[myfamily][mono][LM Typewriter]
> > \definefontfamily[myfamily][sans][Avenir]
> > 
> > \setupbodyfont[myfamily]
> > 
> > You mean that I simply don’t need \usemodule[simplefonts][size=8pt]?
> 
> The \definefontfamily command is part of the core and you don’t have to load the simplefonts module.
> 
> PS. The monospace font for Latin Modern has the name “Latin Modern Mono”.
> 
> Wolfgang
>

 
Hello Wolfgang,

according to [1] and Andrea's unanswered question:

> You mean that I simply don’t need \usemodule[simplefonts][size=8pt]?

in which I'm very interested: How is fontswitching to other styles
(5pt,11pt,17.3pt or bold etc.) performed with \definefontfamily?
I.e. \switchtobodyfont[17.3pt] as in following example works, but is it
in the official context line? And a, b, c, x, xx no more?

\switchtobodyfont[17.3pt] and others will give me such messages:
"fonts           > defining > unable to define 'unknown' as 'mainface-17.3pt-rm-tf-0-a-0'"
therefore I think it's perhaps not the right command.

Btw, I'd wish really complete context examples in the manuals. They could spare some
of my "stupid" questions.

Rudolf

% ----------------------------------------------------------------------------------
\definefontfamily [mainface] [serif] [TeX Gyre Pagella DejaVu Serif]
\definefontfamily [mainface] [sans]  [DejaVu Sans]
\definefontfamily [mainface] [mono]  [DejaVu Sans Mono] [feature=none]
\definefontfamily [mainface] [math]  [TeX Gyre Pagella Math]

\setupbodyfont[mainface]

\starttext
\startlines
\rm rm: DejaVu Serif, yes works well.
\tfx tfx: No
\rma rma: No

\rm
{\switchtobodyfont[17.3pt] 17.3pt-rm seems to be ok.}
{\switchtobodyfont[14.4pt] 14.4pt-rm seems to be ok too.}
{\switchtobodyfont[12pt] 12pt-rm ok.}
{\switchtobodyfont[11pt]\rm 11pt-rm ok..}
{\rm\bf rm-bf doesn't work.}
\stoplines
\stoptext
% ----------------------------------------------------------------------------------

Btw my context version: ConTeXt  ver: 2014.02.14 17:07 MKIV beta  fmt: 2014.2.26
[1] http://www.ntg.nl/pipermail/ntg-context/2013/075428.html






More information about the ntg-context mailing list