ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* typescript question
@ 2004-07-04 12:38 dr. Hans van der Meer
  0 siblings, 0 replies; 3+ messages in thread
From: dr. Hans van der Meer @ 2004-07-04 12:38 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]

There is something I don't understand about the typescript business 
(using ConText version june 30, 2004):

By calling \setupbodyfont[lbr] the following script (referred to als 
typescript number-1) in type-buy.tex (lines 161-170) is executed:

\starttypescript [lbr]
	\usetypescript [serif,sans,mono,math,calligraphy,handwriting] [lucida] 
  [name,special,\defaultencoding]
	\usetypescript [serif,sans,mono,math,calligraphy,handwriting] 
[default] [size]
	\usemathcollection[lbr]
	\usetypescript [all] [lucida] [\defaultencoding]
\stoptypescript

Also I have defined somewhere else a typescript (number-2):

\starttypescript [Times]
	...
\stoptypescript

WITHOUT the line "...[all]..." in typescript number-1 all goes well, 
lucida fonts result in the product.

However, WITH the line "...[all]..." in typescript number-1 there is 
found the following match, as can be seen in the log (by setting 
\tracetypescriptstrue):

 >>> fonts : enter [Times] [] []
 >>> fonts : check [all] [lucida] [texnansi]
 >>> fonts : matched

Now that seems strange to me. I might be misunderstanding the 
typescript search mechanism, but why does it turn out that the search 
key [lucida] is ignored? Here it seems that after the [all] the 
following search keys are ignored, reducing the check to [all][][]; but 
why then bother giving these 2nd and 3rd key at all? But even if this 
behaviour is implied by giving the first search key as [all], it leads 
to wrong results. Because now the typescript number-2 is executed too, 
working havoc to the font setup.

Is there someone who can enlighten me on these matters? Thanks in 
advance.
Hans van der Meer

[-- Attachment #2: Type: text/enriched, Size: 1688 bytes --]

<fontfamily><param>Courier</param>There is something I don't
understand about the typescript business (using ConText version june
30, 2004):


By calling \setupbodyfont[lbr] the following script (referred to als
typescript number-1) in type-buy.tex (lines 161-170) is executed:


\starttypescript [lbr]

	\usetypescript [serif,sans,mono,math,calligraphy,handwriting]
[lucida]  [name,special,\defaultencoding]

	\usetypescript [serif,sans,mono,math,calligraphy,handwriting]
[default] [size]

	\usemathcollection[lbr]

	\usetypescript [all] [lucida] [\defaultencoding]

\stoptypescript


Also I have defined somewhere else a typescript (number-2):


\starttypescript [Times]

	...

\stoptypescript


WITHOUT the line "...[all]..." in typescript number-1 all goes well,
lucida fonts result in the product.


However, WITH the line "...[all]..." in typescript number-1 there is
found the following match, as can be seen in the log (by setting
\tracetypescriptstrue):


>>> fonts : enter [Times] [] []

>>> fonts : check [all] [lucida] [texnansi]

>>> fonts : matched


Now that seems strange to me. I might be misunderstanding the
typescript search mechanism, but why does it turn out that the search
key [lucida] is ignored? Here it seems that after the [all] the
following search keys are ignored, reducing the check to [all][][];
but why then bother giving these 2nd and 3rd key at all? But even if
this behaviour is implied by giving the first search key as [all], it
leads to wrong results. Because now the typescript number-2 is
executed too, working havoc to the font setup.


Is there someone who can enlighten me on these matters? Thanks in
advance.

Hans van der Meer

</fontfamily>

^ permalink raw reply	[flat|nested] 3+ messages in thread
* \vspace
@ 2009-11-22 22:52 Wolfgang Schuster
  2009-11-23 10:31 ` \vspace Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2009-11-22 22:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Hans,

can you add a \vspace command which behaves like \hspace but for vertical mode,
there are some cases where \blank is not so well suited (i know the \??vs namespace
is already used by \blank)

\def\definevspace
  {\dotripleempty\dodefinevspace}

\def\dodefinevspace[#1][#2][#3]%
  {\ifthirdargument
     \setvalue{\??vs#1:#2}{#3}%
   \else
     \setvalue{\??vs:#1}{#2}%
   \fi}

\unexpanded\def\vspace
  {\dodoubleempty\dohspace}

\def\dovspace[#1][#2]%
  {\ifsecondargument
     \dodovspace[#1][#2]%
   \else\iffirstargument
     \vspace[][#1]%
   \else
     \vspace[][\s!default]%
   \fi\fi}

\def\dodovspace[#1][#2]%
  {\vskip\vspaceamount{#1}{#2}}

\def\vspaceamount#1#2%
  {\executeifdefined{\??vs#1:#2}{\executeifdefined{\??vs:#2}\zeropoint}}

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

end of thread, other threads:[~2009-11-26 21:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-04 12:38 typescript question dr. Hans van der Meer
2009-11-22 22:52 \vspace Wolfgang Schuster
2009-11-23 10:31 ` \vspace Wolfgang Schuster
2009-11-23 10:52   ` \vspace Hans Hagen
2009-11-23 12:18     ` \vspace Alan BRASLAU
2009-11-26 18:08       ` \vspace Henning Hraban Ramm
2009-11-26 18:42         ` \vspace Hans Hagen
2009-11-26 20:31           ` typescript question Bernhard Rosensteiner
2009-11-26 21:19             ` Hans Hagen

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