From: Tomas Hala <thala@pef.mendelu.cz>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Problem with units and problem with libraries
Date: Thu, 5 Sep 2013 17:39:29 +0200 [thread overview]
Message-ID: <20130905153929.GA11938@akela.mendelu.cz> (raw)
In-Reply-To: <533BF821-AB92-45F4-BF20-A811FFE3EE0D@gmail.com>
Hi,
\definebodyfontenvironment works for the concrete fontsize, thanks, Wolfgang.
But - even if I read the short documentation at the ctx-garden - I am still
a bit confused, eg:
\text[4.61pt] works automatically but \text[4.651pt] not, only with the
defining command, similarly behave \text[0.75em] and \text[0.735em].
How the precisity has been defined? Two decimal places?
Scale points (this is only a theoretical topic) probably must be in some
way rounded (how?) because \definebodyfontenvironment with values from
500000sp to 500367sp gives the changed font size but with values 500368
and larger font size has been replaced by the default one.
The command \definebodyfontenvironment[0.5cc] enables \text[0.5cc] as well as
\text[6dd] (similarly 6pt and 0.5pc) which lives for our expectations whereas
\definebodyfontenvironment[1cm] enables \text[1cm] and \text[12mm].
I thougt that is related with 20% scale of larger size but it works only
with 10 and 12, 20 and 24, 30 and 36, etc, not with 10, 12 and 14.4.
%%
From the conceptual point of view, I would like to ask why the behaviour
was changed between TL2011 and TL2012. The older one seems to me more
user friendly. The related question is how user can activate other units
(or all font sizes of a unit, as a whole) by some simple way.
(My favourite units are cc and dd)
Best regards,
Tomas Hala
Wed, Sep 04, 2013 ve 07:13:53PM +0200 Wolfgang Schuster napsal(a):
#
# Am 04.09.2013 um 19:07 schrieb Tomas Hala <thala@pef.mendelu.cz>:
#
# > Hi all,
# >
# > recently I installed TeXlive 2013. In a document, I ran into the problem
# > with font sizes: only points and ems operates properly in contrast
# > to other units giving the basic (12pt) size.
#
# Add \definebodyfontenvironment[<fontsize>] for each size.
#
# Wolfgang
----------------------minimal example------------------------------
\starttext
\def\text[#1]{blah blah --- #1: {\setupbodyfont[#1]blah blah}\par}
\text[0.5pc]
\text[8pt]
\text[0.7335em]
%\definebodyfontenvironment[4pc]
\definebodyfontenvironment[1cm]
%\definebodyfontenvironment[500367sp]
\text[12mm]
\text[1cm]
\text[500000sp]
\text[0.5ex]
\stoptext
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2013-09-05 15:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-04 17:07 Tomas Hala
2013-09-04 17:13 ` Wolfgang Schuster
2013-09-05 15:39 ` Tomas Hala [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=20130905153929.GA11938@akela.mendelu.cz \
--to=thala@pef.mendelu.cz \
--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).