ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with units and problem with libraries
@ 2013-09-04 17:07 Tomas Hala
  2013-09-04 17:13 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Tomas Hala @ 2013-09-04 17:07 UTC (permalink / raw)
  To: ntg-context

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.

The same behaviour gives ConTeXt in TL2012. Older TL2011 and TL2010 are OK.

Mimimal example:
\starttext  \def\text[#1]{blah blah --- #1:  {\setupbodyfont[#1]blah blah}\par}
% O.K.
  \text[8pt]
  \text[0.5em]
%% K.O.
  \text[4pc]
  \text[1in]
  \text[12mm]
  \text[1cm]
  \text[500000sp]
  \text[0.5ex]
  \text[6dd]
  \text[0.5cc]
\stoptext

Therefore, a few days ago I tried to install the current version
from the garden. Shortly after the beginning of execution, the 
first-setup.sh script broke down with the following error:

texlua: /lib/libc.so.6: version `GLIBC_2.7' not found (required by texlua)
texlua: /lib/libc.so.6: version `GLIBC_2.11' not found (required by texlua)

It was discussed in this list on May, so I tried the following 
but without the password for svn I was not successful.

svn co http://svn.contextgarden.net/suite/build-binaries
./do_all.sh

Thanks in advance for advice, help and/or password.

Best wishes,

Tomas Hala

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem with units and problem with libraries
  2013-09-04 17:07 Problem with units and problem with libraries Tomas Hala
@ 2013-09-04 17:13 ` Wolfgang Schuster
  2013-09-05 15:39   ` Tomas Hala
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2013-09-04 17:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem with units and problem with libraries
  2013-09-04 17:13 ` Wolfgang Schuster
@ 2013-09-05 15:39   ` Tomas Hala
  0 siblings, 0 replies; 3+ messages in thread
From: Tomas Hala @ 2013-09-05 15:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-05 15:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-04 17:07 Problem with units and problem with libraries Tomas Hala
2013-09-04 17:13 ` Wolfgang Schuster
2013-09-05 15:39   ` Tomas Hala

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).