Re: [NTG-context] Tracking?

2009-02-08 Thread Yue Wang
Hi

On Mon, Feb 9, 2009 at 1:24 AM, Wolfgang Schuster
 wrote:
> Wolfgang Schuster schrieb:
>
>> Another solution for pdfTeX is to use \knbccode and \knaccode.
>>
>> \pdfappendkern=1
>>
>> \knbccode\font`a=125 \knaccode\font`a=125
>
>> ...
>
> A shorter version is:
>
> \dostepwiserecurse{65}{122}{1}
>  {\knbccode\font#1=125 \knaccode\font#1=125 }
>
Works, Thanks a lot for this!

Yue Wang
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \doif(not)empty(else)

2009-02-08 Thread Wolfgang Schuster

Peter Münster schrieb:


On Sun, 8 Feb 2009, Alan Stone wrote:


Re: http://wiki.contextgarden.net/System_Macros/Branches_and_Decisions

What kind of emptyness do \doifempty, \doifnotempty, \doifemptyelse test ?


Hello Alan,

Here a small test file:

\def\Empty{}
\def\Macro#1{argument is \doifemptyelse{#1}{empty}{full}}
\starttext
\quotation{Remember to expand it yourself where needed.}

\Macro{}, \Macro{blabla}

Nothing: \doifemptyelse{}{empty}{full}

\type{\Empty}: \doifemptyelse{\Empty}{empty}{full}

\type{all expanded}: \expanded{\doifemptyelse{\Empty}{empty}{full}}

\type{with \expandafter}:
\expandafter\doifemptyelse\expandafter{\Empty}{empty}{full}


You can use ConTeXt's \ExpandAfter:

\ExpandAfter\doifemptyelse{\Empty}{empty}{full}


\stoptext


@Alan: It's better to use \doifsomething / \doifelsenothing because
they work also with macro content.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \doif(not)empty(else)

2009-02-08 Thread Peter Münster
On Sun, 8 Feb 2009, Alan Stone wrote:

> Re: http://wiki.contextgarden.net/System_Macros/Branches_and_Decisions
> 
> What kind of emptyness do \doifempty, \doifnotempty, \doifemptyelse test ?

Hello Alan,

Here a small test file:

\def\Empty{}
\def\Macro#1{argument is \doifemptyelse{#1}{empty}{full}}
\starttext
\quotation{Remember to expand it yourself where needed.}

\Macro{}, \Macro{blabla}

Nothing: \doifemptyelse{}{empty}{full}

\type{\Empty}: \doifemptyelse{\Empty}{empty}{full}

\type{all expanded}: \expanded{\doifemptyelse{\Empty}{empty}{full}}

\type{with \expandafter}:
\expandafter\doifemptyelse\expandafter{\Empty}{empty}{full}
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Tracking?

2009-02-08 Thread Wolfgang Schuster

Wolfgang Schuster schrieb:


Another solution for pdfTeX is to use \knbccode and \knaccode.

\pdfappendkern=1

\knbccode\font`a=125 \knaccode\font`a=125

> ...

A shorter version is:

\dostepwiserecurse{65}{122}{1}
  {\knbccode\font#1=125 \knaccode\font#1=125 }

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \doif(not)empty(else)

2009-02-08 Thread Alan Stone
Hi,

Re: http://wiki.contextgarden.net/System_Macros/Branches_and_Decisions

What kind of emptyness do \doifempty, \doifnotempty, \doifemptyelse test ?

\def\ISay{}
%\def\ISay{Boe!}

\starttext

\doifemptyelse{\ISay}{I say sht}{I say \ISay}
\blank
\doif{\ISay}{}{I say sht}
\blank
\doifnot{\ISay}{}{I say \ISay}

\stoptext

-- 
Best,
Alan

* TeX engine = LuaTeX
* ConTeXt  minimals ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.22  int:
english/english
* Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Tracking?

2009-02-08 Thread Wolfgang Schuster

Wolfgang Schuster schrieb:

Yue Wang schrieb:


You said that I can use something like \stretched{LETTER}.
How can I automatically adjust the spacing? (like add 0.25em space
between each characters).


The correct command \strechednormalcase, not \stretched.

You can set the kerning between chars with \stretchedspaceamount
and the space between words with \stretchedspacefactor.

\def\stretchedspacefactor{4} % default value
\def\stretchedspaceamount{.25em} % default value

\starttext

This is a normal kerned sentence.

\stretchednormalcase{This is a special kerned sentence.}

\stoptext


Another solution for pdfTeX is to use \knbccode and \knaccode.

\starttext

\input knuth

\pdfappendkern=1

\knbccode\font`a=125 \knaccode\font`a=125
\knbccode\font`b=125 \knaccode\font`b=125
\knbccode\font`c=125 \knaccode\font`c=125
\knbccode\font`d=125 \knaccode\font`d=125
\knbccode\font`e=125 \knaccode\font`e=125
\knbccode\font`f=125 \knaccode\font`f=125
\knbccode\font`g=125 \knaccode\font`g=125
\knbccode\font`h=125 \knaccode\font`h=125
\knbccode\font`i=125 \knaccode\font`i=125
\knbccode\font`j=125 \knaccode\font`j=125
\knbccode\font`k=125 \knaccode\font`k=125
\knbccode\font`l=125 \knaccode\font`l=125
\knbccode\font`m=125 \knaccode\font`m=125
\knbccode\font`n=125 \knaccode\font`n=125
\knbccode\font`o=125 \knaccode\font`o=125
\knbccode\font`p=125 \knaccode\font`p=125
\knbccode\font`q=125 \knaccode\font`q=125
\knbccode\font`r=125 \knaccode\font`r=125
\knbccode\font`s=125 \knaccode\font`s=125
\knbccode\font`t=125 \knaccode\font`t=125
\knbccode\font`u=125 \knaccode\font`u=125
\knbccode\font`v=125 \knaccode\font`v=125
\knbccode\font`w=125 \knaccode\font`w=125
\knbccode\font`x=125 \knaccode\font`x=125
\knbccode\font`y=125 \knaccode\font`y=125
\knbccode\font`z=125 \knaccode\font`z=125

\input knuth

\stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Tracking?

2009-02-08 Thread Wolfgang Schuster

Yue Wang schrieb:


You said that I can use something like \stretched{LETTER}.
How can I automatically adjust the spacing? (like add 0.25em space
between each characters).


The correct command \strechednormalcase, not \stretched.

You can set the kerning between chars with \stretchedspaceamount
and the space between words with \stretchedspacefactor.

\def\stretchedspacefactor{4} % default value
\def\stretchedspaceamount{.25em} % default value

\starttext

This is a normal kerned sentence.

\stretchednormalcase{This is a special kerned sentence.}

\stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Tracking?

2009-02-08 Thread Yue Wang
Hi,


> I told this in my other mail.

You said that I can use something like \stretched{LETTER}.
How can I automatically adjust the spacing? (like add 0.25em space
between each characters).

>
>> ConTeXt  ver: 2009.01.18 14:39 MKIV  fmt: 2009.2.8  int: english/english
>
> ConTeXt  ver: 2009.02.04 11:53 MKIV  fmt: 2009.2.5  int: english/english
>
> This is luaTeX, Version snapshot-0.33.1
>
> But I get the same error message when I one of ConTeXt example files,
> e.g. "\setcharacterkerning[extrakerning]\input knuth "
>

Yes, I test the document with "knuth"

Yue Wang
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] list of images with bibliography

2009-02-08 Thread Mojca Miklavec
Hello,

I would like to create a normal list with bibliography (list of
sources used in an article) + a list of figures, approximately like
this:

List of Figures

Figure 1: http://wiki.contextgarden.net/skins/common/images/logo_circ_small.png
Figure 2: Important, the Author: History of Everything. Town.
Publisher. Year. Page 3
Figure 3: (drawn by author)
Figure 4: Important, the Author: History of Everything. Town.
Publisher. Year. Page 42
Figure 5: http://yet.another.url/image.png

I will probably do it by hand (it will take me less time than trying
to figure out the trick to do it), but I'm wondering if bib module
allows something similar to this: keeping track of two bibliographf
lists and then make a similar summary.

Thanks a lot,
Mojca
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Tracking?

2009-02-08 Thread Hans Hagen

Yue Wang wrote:

Hi, Wolfgang:


\starttext

Thus, I came to the conclusion that the designer of a new system
must not only be  the implementer and first large||scale user; the
designer should also write the first  user manual.

\setcharacterkerning[extrakerning]

Thus, I came to the conclusion that the designer of a new system
must not only be  the implementer and first large||scale user; the
designer should also write the first  user manual.

\stoptext



The code doesn't work here. MKII report that set characterkerning is
not defined.
MKIV report this:


works ok here (although i noticed that i had to improve disc node 
treatment which i did; will be in next beta)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Tracking?

2009-02-08 Thread Wolfgang Schuster

Yue Wang schrieb:


\starttext

Thus, I came to the conclusion that the designer of a new system
must not only be  the implementer and first large||scale user; the
designer should also write the first  user manual.

\setcharacterkerning[extrakerning]

Thus, I came to the conclusion that the designer of a new system
must not only be  the implementer and first large||scale user; the
designer should also write the first  user manual.

\stoptext



The code doesn't work here. MKII report that set characterkerning is
not defined.


I told this in my other mail.


ConTeXt  ver: 2009.01.18 14:39 MKIV  fmt: 2009.2.8  int: english/english


ConTeXt  ver: 2009.02.04 11:53 MKIV  fmt: 2009.2.5  int: english/english

This is luaTeX, Version snapshot-0.33.1

But I get the same error message when I one of ConTeXt example files,
e.g. "\setcharacterkerning[extrakerning]\input knuth "

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___