From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
mastermind_ x <jthryeboah@gmail.com>
Subject: Re: Trouble with using predefined typescript files
Date: Tue, 15 Jun 2021 09:01:43 +0200 [thread overview]
Message-ID: <1cf47a1f-dcbe-e959-75c0-ed16c1d43ca0@xs4all.nl> (raw)
In-Reply-To: <18A97398-A1FB-4334-9A94-8711BFB49E97@gmail.com>
On 6/15/2021 6:56 AM, mastermind_ x wrote:
> Hello everyone,
>
> I am reading the ConTexT manual’s chapter on Typography. I want to achieve a Palatino-like small font which is bolder than the default provided by ConTeXt like in some math textbooks. So I loaded the typescript files ie type-xxx stated in the chapter in turns no matter the type-xxx I load. I always got this in the log:
>
> fonts > typescripts > unknown library 'xtx'
> fonts > typescripts > unknown library 'gyr'
> selectfont > the requested font 'palatino' has no files for the 'tf' alternative, Latin Modern is used instead.
> selectfont > the requested font 'palatino' has no files for the 'tf' alternative, Latin Modern is used instead.
> selectfont > the requested font 'palatino' has no files for the 'tf' alternative, Latin Modern is used instead.
> selectfont > the requested font 'palatino' has no files for the 'tf' alternative, Latin Modern is used instead.
>
>
> \usetypescriptfile[type-xtx]
> \usetypescriptfile[type-gyr]
> \usetypescript[palatino][ec]
> \definefontfamily [mainface] [rm] [palatino]
> \definefontfamily [mainface] [ss] [palatino]
> \definefontfamily [mainface] [mm] [palatino]
> \definefontfamily [mainface] [tt] [palatino]
> \setupbodyfont[mainface,11pt]
>
> \starttext
> Hello world!
> \stoptext
>
> What am I missing? Are these not available right from the box like the book said? These are ‘predefined typescripts’ as the book said after all. Thanks. I use MacOS if that helps
> current version of ConTeXt: 2021.03.05 19:11
looks like you combine some mkii examples (xtx is a mkii xetex file, and
there is no gyr) with mkiv
Here is a simple way:
\definefontfeature[default] [boldened-30]
\definefontfeature[mathextra][boldened-20]
\setupbodyfont[pagella]
\startTEXpage
test test $t e s t$ test
\stopTEXpage
the boldened-10/15/20/25/30 are predefined effects but you can roll out
your own if needed
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2021-06-15 7:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-15 4:56 mastermind_ x
2021-06-15 7:01 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1cf47a1f-dcbe-e959-75c0-ed16c1d43ca0@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=jthryeboah@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).