Re: [NTG-context] Example -- Solution Pair

2005-12-20 Thread Sytse Knypstra

Maybe the following works?

\defineenumeration[example][text=Example,coupling=solution]
\defineenumeration[solution][text=Solution,after={\hfill{$\Box$}\blank},coupling=example]

Sytse Knypstra

David Arnold wrote:

All,

Anyone have an environment something along the lines of:

\startexample
blah, blah, ...
\stopexample

\startsolution
blah, blah, ...
\stopsolution

With maybe a little square indicating the end of the solution?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Degrading TABLE column

2005-12-20 Thread Taco Hoekwater


It sounds like an accumulation of (spurious) spaces, but
that is doesn't help. A (minimal-ish) example will be needed.

Taco

Duncan Hothersall wrote:

I'm trying to solve a problem with a TABLE in a large-ish (600 page)
book. The table occurs in an appendix, and the contents of one column
are spilling out into the next column on the right.

The weird thing is that when I process just that bit of the book, the
effect is much smaller, and when I process the whole book (with the
table near the end), the contents move all the way to the other side of
the next column, moving almost a full column's width to the right.

I will try to work up an example, but in the meantime, does this ring a
bell with anyone in terms of something (an offset value, and alignment
parameter?) which degrades over the course of a large run, such that
the effect is minimal in a small document, but visible at the end of a
large one?

Thanks,

Duncan
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] blank chapter last page

2005-12-20 Thread M.guravage
Hi,

ConTeXt's default behavior is to insert a page, when necessary, to force a
new chapter to begin on a right hand page. One consequence when using
running headers is that they appear on these extra pages too. I use the
following code to control a chapter's opening page.

  % Define heads for chapter opening pages
  \definetext[chapterstart][footer][pagenumber]
  \setuphead[chapter][header=empty,footer=chapterstart]

I would like those inserted extra pages to be completely blank. Any
suggestions how  I can disable the running headers for those pages?
Thanks.

Cheers,

Michael A. Guravage


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Context 2005.12.19 released

2005-12-20 Thread Taco Hoekwater



Hello all,

I am pleased to announce that the new ConTeXt release from Hans Hagen
can be downloaded as of now from the Pragma ADE website or one of its
mirrors.

  http://www.pragma-ade.com/context/current/cont-tmf.zip
  http://context.aanhet.net/context/current/cont-tmf.zip
  http://mirror.contextgarden.net/context/current/cont-tmf.zip

The current release has version 2005.12.19. As usual, there is a
page with more detailed release notes available on the Wiki,
see: http://wiki.contextgarden.net/Context_2005.12.19

This version will be uploaded to CTAN shortly

New features since 2005.12.18:

* Support for the latin-9 regime (latin-1 + euro)

Bug fixes:

* loading of pdf font resources is more robust now.
* the 2005.121.8 version broke unicode character support

Happy TeXing,

Taco Hoekwater

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: blank chapter last page

2005-12-20 Thread Patrick Gundlach
Hello Michael,

 ConTeXt's default behavior is to insert a page, when necessary, to force a
 new chapter to begin on a right hand page. One consequence when using
 running headers is that they appear on these extra pages too. I use the
 following code to control a chapter's opening page.

   % Define heads for chapter opening pages
   \definetext[chapterstart][footer][pagenumber]
   \setuphead[chapter][header=empty,footer=chapterstart]

 I would like those inserted extra pages to be completely blank. Any
 suggestions how  I can disable the running headers for those pages?
 Thanks.

Perhaps this helps you?

http://archive.contextgarden.net/message/20030329.110709.b9199ab7.en.html

Patrick
-- 
ConTeXt wiki and more: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] About paragraph columns in table environment

2005-12-20 Thread Radhelorn

Hello all!

I've tried to fit wide table (with paragraphs and vertical lines) into 
page width. Following example don't work as expected:


\SetTableToWidth{\textwidth}
\starttable[|p|p|]
\HL
\VL foo foo foo foo foo foo \VL bar bar bar bar bar bar \VL\AR
\HL
\stoptable

Text in columns formatted as if table was not widened. What did I miss here?

BTW, how to fit text into a small box if I don't care about where word 
breaks?


Thanks.


--
Radhelorn [EMAIL PROTECTED]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Looking for old ConTeXt stuff

2005-12-20 Thread Taco Hoekwater

Hi,

Some of you may know that we are working on a project whose
goal is to have all releases of the ConTeXt distribution in
an on-line source repository.

For that project, we are looking for old versions of the
ConTeXt distribution. Hans Hagen, Patrick Gundlach and me had
quite a few of them among us, but we are still missing a number
of releases (we only have a complete set for 2004 and 2005).

At the end of this message is a list of all the distributions
before the year 2004 that we could find on our harddisks and
on old tex-live and 4TeX disks.

So, I have a question to all of you who have ever upgraded or
downloaded your ConTeXt distribution from the Pragma website.
Could you please have a look if there is still a zip on your
harddisk or backup somewhere?

A bit of search help: really old context-s used the filename
context.zip and contained a directory of MS-Dos files with
uppercase names, newer ones (since 1999) are named cont-tmf.zip
and contain an embedded texmf structure with lowercase names.

I'll wait until after christmas before I start filling the
repository, so there is some time yet. Don't forget: if you can
help out and want to me send files, then e-mail me directly,
do not reply to this message on the list(s)!

Thanks in advance,

Taco


Distributions we have: (For 1999-2003, the filename refers to the
date used by \contextversion in context.tex. For 1997 and 1998,
there was no \contextversion yet, so the modification date of the
newest file in the distribution is used instead)

1997:
total 648
-rw-r--r--  1 context tex 662581 Dec 20 12:18 cont-tmf-19971028.zip

1998:
total 1320
-rw-r--r--  1 context tex 673171 Dec 20 12:27 cont-tmf-19980327.zip
-rw-r--r--  1 context tex 674836 Dec 19 15:23 cont-tmf-19980415.zip

1999:
total 2804
-rw-r--r--  1 context tex 1030228 Dec 20 12:28 cont-tmf-19990217.zip
-rw-r--r--  1 context tex  744357 Dec 20 12:28 cont-tmf-19990331.zip
-rw-r--r--  1 context tex 1089733 Dec 20 14:25 cont-tmf-19991230.zip

2000:
total 2048
-rw-r--r--  1 context tex  873111 Dec 20 13:36 cont-tmf-2518.zip
-rw-r--r--  1 context tex 1220484 Dec 20 14:26 cont-tmf-20001022.zip

2001:
total 6952
-rw-r--r--  1 context tex 1313450 Dec 20 14:26 cont-tmf-20010409.zip
-rw-r--r--  1 context tex 1361637 Dec 20 11:54 cont-tmf-20010423.zip
-rw-r--r--  1 context tex 1367195 Dec 20 14:27 cont-tmf-20010430.zip
-rw-r--r--  1 context tex 1515384 Dec 20 11:55 cont-tmf-20010704.zip
-rw-r--r--  1 context tex 1554823 Dec 20 11:37 cont-tmf-20010711.zip

2002:
total 8548
-rw-r--r--  1 context tex 1713611 Dec 20 11:38 cont-tmf-20020124.zip
-rw-r--r--  1 context tex 1730030 Dec 20 11:38 cont-tmf-20020304.zip
-rw-r--r--  1 context tex 1715671 Dec 20 13:15 cont-tmf-20020417.zip
-rw-r--r--  1 context tex 1741888 Dec 20 13:16 cont-tmf-20020515.zip
-rw-r--r--  1 context tex 1841991 Dec 20 13:18 cont-tmf-20021220.zip

2003:
total 28484
-rw-r--r--  1 context tex 1857813 Dec 20 13:19 cont-tmf-20030110.zip
-rw-r--r--  1 context tex 1882161 Dec 20 13:20 cont-tmf-20030128.zip
-rw-r--r--  1 context tex 1882471 Dec 20 13:21 cont-tmf-20030131.zip
-rw-r--r--  1 context tex 1889112 Dec 20 13:21 cont-tmf-20030211.zip
-rw-r--r--  1 context tex 1896212 Dec 20 13:22 cont-tmf-20030303.zip
-rw-r--r--  1 context tex 1900056 Dec 20 13:23 cont-tmf-20030304.zip
-rw-r--r--  1 context tex 1905791 Dec 20 13:23 cont-tmf-20030309.zip
-rw-r--r--  1 context tex 1913789 Dec 20 13:25 cont-tmf-20030317.zip
-rw-r--r--  1 context tex 1984791 Dec 20 13:25 cont-tmf-20030422.zip
-rw-r--r--  1 context tex 1985317 Dec 20 13:26 cont-tmf-20030429.zip
-rw-r--r--  1 context tex 1998077 Dec 20 13:27 cont-tmf-20030721.zip
-rw-r--r--  1 context tex 2006682 Dec 20 13:27 cont-tmf-20030808.zip
-rw-r--r--  1 context tex 2012646 Dec 20 13:28 cont-tmf-20030821.zip
-rw-r--r--  1 context tex 2015217 Dec 20 11:48 cont-tmf-20030925.zip
-rw-r--r--  1 context tex 2013910 Dec 20 11:49 cont-tmf-20030926.zip
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] underbar and overbar

2005-12-20 Thread Renaud AUBIN





Hi all,

I don't understand differences between \underbar and \overbar

Someone can explain ?





___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Chinese in current ConTeXt

2005-12-20 Thread Tobias Burnus

Hello,

some remarks/errors of the current UTF-8 Chinese support in ConTeXt 
2005.12.19:

(For (a) to (c) see also attached file.)

a) unic-chi.tex: This contains the unicode vectors for which a Chinese 
font will be used; currently it only covers

\dostepwiserecurse{40}{159}{1}{\defineunicodecommand #1 {\uchar}}
but this it misses the U+FFxx characters (fullwidth latin characters, 
e.g. '?' which is as wide as a Chinese character)

= solution: Add
\defineunicodecommand 255 {\uchar}

b) Labels: lang-chi.tex contains:
\setuplabeltext [\s!cn] [\v!figure={\cnencoding\cnencodedfigure}]
\startencoding[uni-c]
\definecommand cnencodedfigure {\uchar{86}{254}}
but if I use (with UTF-8) \placefigure{}{} the figure character is not 
shown; however if I setup this directly, i.e.

\setuplabeltext[cn][figure={\uchar{86}{254}}]
, the character is shown just fine.

c) Doing font switching using \SimKaiTi seems to convert back to GBK, 
can we have Unicode by default (at least when UTF-8 encoding is used)?


Examples for (a) to (c) see attachment (UTF-8 encoded).

* * *

Wish for the native speakers: Please translate
- Graphics/Illustration and Intermezzo(s)

Question to native speakers:
- \c!date={\v!month,\ ,\v!day,{,\ },\v!year},
Is this really the default? Or should this be
year年month月day日?

* * *

Another questions:
a) How to typset from top-to-bottom right-to-left using column(sets)?
b) How to change the numberformat used?

Tobias


zh-test.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chinese in current ConTeXt

2005-12-20 Thread Richard Gabriel




 b) Labels: lang-chi.tex contains: \setuplabeltext [\s!cn] [\v!figure={\cnencoding\cnencodedfigure}] \startencoding[uni-c] \definecommand cnencodedfigure {\uchar{86}{254}} but if I use (with UTF-8) \placefigure{}{} the figure character is not  shown; however if I setup this directly, i.e. \setuplabeltext[cn][figure={\uchar{86}{254}}], the character is shown just fine.Hello Tobias!There's a small mistake in lang-chi.tex.On line 98, the should actually be:\startencoding[c-uni](instead of "uni-c" - see enco-chi.tex)Change it and re-generate the format - it works fine! ;-)-RichardP.S. The rest is for Hans, I can't say... :-(From: Tobias Burnus [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Tue, 20 Dec 2005 16:09:36 +0100Subject: [NTG-context] Chinese in current ConTeXtHello,some remarks/errors of the current UTF-8 Chinese support in ConTeXt 2005.12.19:(For (a) to (c) see also attached file.)a) unic-chi.tex: This contains the unicode vectors for which a Chinese font will be used; currently it only covers\dostepwiserecurse{40}{159}{1}{\defineunicodecommand #1 {\uchar}}but this it misses the U+FFxx characters (fullwidth latin characters, e.g. '?' which is as wide as a Chinese character)= solution: Add\defineunicodecommand 255 {\uchar}b) Labels: lang-chi.tex contains:\setuplabeltext [\s!cn] [\v!figure={\cnencoding\cnencodedfigure}]\startencoding[uni-c]\definecommand cnencodedfigure {\uchar{86}{254}}but if I use (with UTF-8) \placefigure{}{} the figure character is not shown; however if I setup this directly, i.e.\setuplabeltext[cn][figure={\uchar{86}{254}}], the character is shown just fine.c) Doing font switching using \SimKaiTi seems to convert back to GBK, can we have Unicode by default (at least when UTF-8 encoding is used)?Examples for (a) to (c) see attachment (UTF-8 encoded).* * *Wish for the native speakers: Please translate- Graphics/Illustration and Intermezzo(s)Question to native speakers:- \c!date={\v!month,\ ,\v!day,{,\ },\v!year},Is this really the default? Or should this beyear年month月day日?* * *Another questions:a) How to typset from top-to-bottom right-to-left using column(sets)?b) How to change the numberformat used?Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Looking for old ConTeXt stuff

2005-12-20 Thread Idris Samawi Hamid
Oh Taco, if you had only posted this a few days earlier: I just deleted 
all my old collections from a couple of years ago (including 2003)! (But I 
will check another computer as well)


-)

or rather

-(

Best
Idris

On Tue, 20 Dec 2005 15:13:23 +0100, Taco Hoekwater [EMAIL PROTECTED] 
wrote:



So, I have a question to all of you who have ever upgraded or
downloaded your ConTeXt distribution from the Pragma website.
Could you please have a look if there is still a zip on your
harddisk or backup somewhere?


--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chinese in current ConTeXt

2005-12-20 Thread Hans Hagen

Tobias Burnus wrote:


Hello,

some remarks/errors of the current UTF-8 Chinese support in ConTeXt 
2005.12.19:

(For (a) to (c) see also attached file.)

a) unic-chi.tex: This contains the unicode vectors for which a Chinese 
font will be used; currently it only covers

\dostepwiserecurse{40}{159}{1}{\defineunicodecommand #1 {\uchar}}
but this it misses the U+FFxx characters (fullwidth latin characters, 
e.g. '?' which is as wide as a Chinese character)

= solution: Add
\defineunicodecommand 255 {\uchar}

b) Labels: lang-chi.tex contains:
\setuplabeltext [\s!cn] [\v!figure={\cnencoding\cnencodedfigure}]
\startencoding[uni-c]
\definecommand cnencodedfigure {\uchar{86}{254}}
but if I use (with UTF-8) \placefigure{}{} the figure character is not 
shown; however if I setup this directly, i.e.

\setuplabeltext[cn][figure={\uchar{86}{254}}]
, the character is shown just fine.



was this du eto the uni-c c-uni mixup?



c) Doing font switching using \SimKaiTi seems to convert back to GBK, 
can we have Unicode by default (at least when UTF-8 encoding is used)?


we need to come up with a better setup for this, just make me the 
definitions and i'll see how they will fit in ...




Examples for (a) to (c) see attachment (UTF-8 encoded).


Wish for the native speakers: Please translate
- Graphics/Illustration and Intermezzo(s)

Question to native speakers:
- \c!date={\v!month,\ ,\v!day,{,\ },\v!year},
Is this really the default? Or should this be
year年month月day日?

* * *

Another questions:
a) How to typset from top-to-bottom right-to-left using column(sets)?


hm, columnsets ... just make them small enough; should work ok 
(including graphic spans)



b) How to change the numberformat used?


eh ... wang lei should know ... i have to look into it (chinese supports 
multiple number formats)


Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] newbie questions: footer and header?

2005-12-20 Thread Leon
Hi all,

Could anybody provide an example with the usage of footer and header?
Many thanks.

Cheers,
Leon

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] newbie questions: footer and header?

2005-12-20 Thread VnPenguin
On 12/20/05, Leon [EMAIL PROTECTED] wrote:
 Hi all,

 Could anybody provide an example with the usage of footer and header?
 Many thanks.


Good page here: http://getfo.sourceforge.net/context_xml/page3.html

--
http://vnoss.org
Vietnamese Open Source Software Community
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Example -- Solution Pair

2005-12-20 Thread David Arnold

What does the coupling do?

On Dec 20, 2005, at 12:17 AM, Sytse Knypstra wrote:


Maybe the following works?

\defineenumeration[example][text=Example,coupling=solution]
\defineenumeration[solution][text=Solution,after={\hfill{$\Box$} 
\blank},coupling=example]


Sytse Knypstra

David Arnold wrote:

All,
Anyone have an environment something along the lines of:
\startexample
blah, blah, ...
\stopexample
\startsolution
blah, blah, ...
\stopsolution
With maybe a little square indicating the end of the solution?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] betex -etex block parsing bug

2005-12-20 Thread Willi Egger

Hi,

It seems that there is a problem with parsing betex - etex blocks in the 
following situation:
I can not say with which version this has been introduced. (I messed up 
my old TeX, so I have only new ones)

I tested this with the version of 19-12-2005 an 30-11-2005.

\setMPtext{1}{CENTER}

\startuseMPgraphic{TEST}
   picture Text;
   Text := \MPbetex{1};
   draw Text;
\stopuseMPgraphic

the betex-etex block will look like 'tex CENTERetex' of course the etex 
should be separated by a space.

For testing I attach the minimal file.

Willi

% TEST betex etex block: BUG parsing ...
% Context file
% filename test.tex
% Willi Egger
% 20-12-2005

\setupoutput[pdftex]
\usemodule[txt]

\setMPtext{1}{CENTER}  % remove the space before the right brace, erase the 
temporary files

%   then compile and the run will fale!

\startuseMPgraphic{TEST}
picture Text;
Text := \MPbetex{1};
draw Text ;
\stopuseMPgraphic


\starttext
\startTEXpage
\useMPgraphic{TEST}
\stopTEXpage
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Example -- Solution Pair

2005-12-20 Thread Willi Egger

Hi David,

The coupling is used for screendocs, where interaction has to take 
place. You can read this in the cont-enp.pdf ;-)


Willi

David Arnold wrote:


What does the coupling do?

On Dec 20, 2005, at 12:17 AM, Sytse Knypstra wrote:


Maybe the following works?

\defineenumeration[example][text=Example,coupling=solution]
\defineenumeration[solution][text=Solution,after={\hfill{$\Box$} 
\blank},coupling=example]


Sytse Knypstra

David Arnold wrote:


All,
Anyone have an environment something along the lines of:
\startexample
blah, blah, ...
\stopexample
\startsolution
blah, blah, ...
\stopsolution
With maybe a little square indicating the end of the solution?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] MikTeX and font problems (again)

2005-12-20 Thread Mojca Miklavec
Hello,

The following code works both under MikTeX and stand-alone ConTeXt
(however not under live.contextgarden.net), but I don't know how to
enable ec encoding (\ccaron and \Ccaron - č and Č - don't work).

\starttypescript [antykwa-poltawskiego] [ec]
  \definetypeface [antykwa-poltawskiego] [rm] [serif]
[antykwa-poltawskiego] [default] [encoding=ec]
\stoptypescript
\usetypescript[antykwa-poltawskiego][ec]
\setupbodyfont[antykwa-poltawskiego,rm]

The following code

\starttypescript [antykwa-torunska] [texnansi,ec] % already defined in type-exa
  \definetypeface[antykwa][rm][serif][antykwa-torunska]  
[default][encoding=\typescripttwo]
\stoptypescript
\usetypescript[antykwa-torunska][ec]
\setupbodyfont[antykwa,rm]

works under stand-alone ConTeXt, but not under MikTeX (and not under
live.contextgarden.net). It complains about ec-antt.map - cannot open
map file (and about some other files). It actually doesn't exist
since the files are named antt-ec.map.

I'm completely lost regarding font problems and would appreciate any help.

Thanks,
Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] betex -etex block parsing bug

2005-12-20 Thread Hans Hagen

Willi Egger wrote:


Hi,

It seems that there is a problem with parsing betex - etex blocks in 
the following situation:
I can not say with which version this has been introduced. (I messed 
up my old TeX, so I have only new ones)

I tested this with the version of 19-12-2005 an 30-11-2005.

\setMPtext{1}{CENTER}

\startuseMPgraphic{TEST}
   picture Text;
   Text := \MPbetex{1};
   draw Text;
\stopuseMPgraphic

the betex-etex block will look like 'tex CENTERetex' of course the 
etex should be separated by a space.

For testing I attach the minimal file.



this was the old code:

% \def\MPtext   #1{\getvalue{\@@MPT#1}}
% \def\MPstring#1{\getvalue{\@@MPT#1}}
% \def\MPbetex #1{btex \getvalue{\@@MPT#1} etex}

but due to some reported problems with undefined texts, it became

\def\MPtext   #1{\executeifdefined{\@@MPT#1}\empty}
\def\MPstring#1{\executeifdefined{\@@MPT#1}\empty}
\def\MPbetex #1{btex \executeifdefined{\@@MPT#1}\empty etex}

so, let's add a space:

\def\MPbetex #1{btex \executeifdefined{\@@MPT#1}\empty\space etex}

(interesting is that it runs ok here -)

Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chinese in current ConTeXt

2005-12-20 Thread Hans Hagen

Tobias Burnus wrote:


Hi Hans,

Hans Hagen wrote:


b) Labels: lang-chi.tex contains:


was this du eto the uni-c c-uni mixup?


Yes, it now works (thanks, Richard!)


Another questions:
a) How to typset from top-to-bottom right-to-left using column(sets)?


hm, columnsets ... just make them small enough; should work ok 
(including graphic spans)


Hmm, the correct answer to my question is: \startvertical ... 
\stopvertical,

which should be put into the manual.
font-chi.tex says:
%D We can set up vertical typesetting with \type
%D {\setupchinese}.
I tried \setupchinese[direction=vertical], which is seemingly not 
correct and does not do anything visible.


Could you put the mchinese.tex manual the into SVN repository? I'd 
like to send some minor corrections.


i put the manual in svn but didn't test it ... maybe we should rewrite 
the manual using utf (so that we can see it in an editor) and only 
explain gbk and big5 in verbatim code


we need chinese input on this ! ! ! !

Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: interesting font

2005-12-20 Thread Henning Hraban Ramm

Am 2005-12-17 um 18:11 schrieb Patrick Gundlach:

Thomas was quick and the fonts together with context stuff are now
available at http://modules.contextgarden.net/gfsdidot


Great!
As you know there are some font packages at my site:
http://www.fiee.net/texnique/?menu=0-1-4

And I will make much more, but I'm running out of space (Apostrophe  
Lab's Republika font clan has 300 faces, the ZIP is  50 MB).
So I'd like to put that stuff at modules.contextgarden (or  
fonts.contextgarden as you like).


Can I upload myself? Otherwise: Would you fetch it from my site? And  
how to deal with updates?



Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] MikTeX and font problems (again)

2005-12-20 Thread Hans Hagen

Mojca Miklavec wrote:


I'm completely lost regarding font problems and would appreciate any help.
 

this ec-* versus *-ec was one of the last minute changes for tex live 
(lm, iwona, kurier, antykwa) so tere can be a mismatch between context 
and the rest ... welcome to the font mess


(you can copy the ec-* to *-ec and vise versa to solve this; in due time 
it will solve itself)


Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] betex -etex block parsing bug

2005-12-20 Thread Willi Egger

Hi Hans,

thanks for your immediate reply. Indeed it is strange that it runs ok in 
your environment.

But where to put this altered definition?

Cheers
Willi

Hans Hagen wrote:


Willi Egger wrote:


Hi,

It seems that there is a problem with parsing betex - etex blocks in 
the following situation:
I can not say with which version this has been introduced. (I messed 
up my old TeX, so I have only new ones)

I tested this with the version of 19-12-2005 an 30-11-2005.

\setMPtext{1}{CENTER}

\startuseMPgraphic{TEST}
   picture Text;
   Text := \MPbetex{1};
   draw Text;
\stopuseMPgraphic

the betex-etex block will look like 'tex CENTERetex' of course the 
etex should be separated by a space.

For testing I attach the minimal file.




this was the old code:

% \def\MPtext   #1{\getvalue{\@@MPT#1}}
% \def\MPstring#1{\getvalue{\@@MPT#1}}
% \def\MPbetex #1{btex \getvalue{\@@MPT#1} etex}

but due to some reported problems with undefined texts, it became

\def\MPtext   #1{\executeifdefined{\@@MPT#1}\empty}
\def\MPstring#1{\executeifdefined{\@@MPT#1}\empty}
\def\MPbetex #1{btex \executeifdefined{\@@MPT#1}\empty etex}

so, let's add a space:

\def\MPbetex #1{btex \executeifdefined{\@@MPT#1}\empty\space etex}

(interesting is that it runs ok here -)

Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: interesting font

2005-12-20 Thread Hans Hagen

Henning Hraban Ramm wrote:


Am 2005-12-17 um 18:11 schrieb Patrick Gundlach:


Thomas was quick and the fonts together with context stuff are now
available at http://modules.contextgarden.net/gfsdidot



Great!
As you know there are some font packages at my site:
http://www.fiee.net/texnique/?menu=0-1-4

And I will make much more, but I'm running out of space (Apostrophe  
Lab's Republika font clan has 300 faces, the ZIP is  50 MB).
So I'd like to put that stuff at modules.contextgarden (or  
fonts.contextgarden as you like).


Can I upload myself? Otherwise: Would you fetch it from my site? And  
how to deal with updates?


given space ... why not make a project at fabrice's gforce server ... 
maybe as part of the font project (we will collect things there anyway); 
patrick is the technical lead there -)


Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chinese in current ConTeXt

2005-12-20 Thread Tobias Burnus

Hello,

Hans Hagen wrote:

b) How to change the numberformat used?
eh ... wang lei should know ... i have to look into it (chinese 
supports multiple number formats)

I think I found it (it is a bit burried in font-chi.tex):
\startitemize[c] (or cn) gives the normal Chinese number, cc the 
capitalized, ec the normal Chinese number with one-character 
alternatives for 20 and 30 and ac the Arabic style of numbering.


(For those who'd like to have a how to on using Chinese with UTF-8, I 
updated http://wiki.contextgarden.net/Chinese )


Attached you find the traditional characters (as used in Taiwan, 
Hongkong [possibly decreasing], and in China before 1955); one should 
provide some method to switch between those and the simplified ones 
defined; maybe an option for \setupchinese?


Tobias


tra-chi.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] fonts

2005-12-20 Thread Henning Hraban Ramm

Am 2005-12-19 um 09:06 schrieb Joachim Trinkwitz:

What about Apostrophic Labs' very nice Hard Talk (http:// 
www.dafont.com/en/font.php?file=hard_talk) and Maskalin (http:// 
www.dafont.com/en/font.php?file=maskalin), Font Environment's 20  
Faces (http://www.dafont.com/en/font.php?file=20faces) and Tattoo  
No1 + No2 (http://www.dafont.com/en/font.php?file=tattoo_no1_no2),  
or Manfred Klein's Celtish Parts (http://moorstation.org/typoasis/ 
designers/klein05/pic06/celtish_parts.htm) and Roots of  
Matisse (http://moorstation.org/typoasis/designers/klein/ 
Fonteria_CD/pages/roots.htm)?


On both websites there is a wealth of free typefaces, in particular  
Klein's site has an overwhelming abundance, which takes days to  
explore - even nice are his textfonts Faustant (http:// 
moorstation.org/typoasis/designers/klein04/text/faustant.htm) and  
FaustItalic (http://moorstation.org/typoasis/designers/klein04/ 
text/faustitalic.htm), UglyQua (http://moorstation.org/typoasis/ 
designers/klein04/text02/uglyqua.htm) and Old Typefaces (http:// 
moorstation.org/typoasis/designers/klein05/text/old_typefaces.htm).


joachim

PS: OK, I just noticed that Hraban already has done Hard Talk -  
thanks a lot!


Thank you for the links, I'll look into it.
(But I don't think I'll do the masks/faces, I can't imagine any use  
for them. Or do you need them?)
BTW the pirate stuff by Klein is nice, I guess that'll make a  
package, arr matey!


I'm thinking about utilizing border fonts and how to make automatic  
frames for use with \framed (I guess that's still too hard for me,  
but let's see...)


Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] About \defineshortcut

2005-12-20 Thread Radhelorn

Taco Hoekwater wrote:

For example after command:

\defineshortcut [//] [] [style=\em]


I can get slash only by \textslash (which is expected) and it breaks 
things like:


\typefile {some/dir/file}

So how to revert to previous meaning of '/'? It is possible to do it 
only temporarily?


Explicit \start a /b/ c \stop style grouping is normally best, but
a shortcut is just an active character with a closing defimiter,
so this will work for you special case:

  \catcode`\/=\other
  \typefile {some/dir/file}
  \catcode`\/=\active



I've experimented with various macros to undefine/temporarily disable 
shortcuts and found that most convenient variant is to insert this 
catcode changing into \typefile command. Why not to do this for every 
command, that accepts path parameters? This slows process down too much?


But this is just an afterthought.

I think that \defineshortcut commands are most useful inside some 
environment (start/stop pair). So it is possible to have such 
environment that restores back all catcode changes (or other variable 
changes) made inside it (like local variables in some programming 
laguages)? This can have many other uses.


--
Radhelorn [EMAIL PROTECTED]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] fonts

2005-12-20 Thread Hans Hagen

Henning Hraban Ramm wrote:



I'm thinking about utilizing border fonts and how to make automatic  
frames for use with \framed (I guess that's still too hard for me,  
but let's see...)




think backgrounds and leaders:

\def\Border#1#2#3#4#5#6#7#8%
 {\vbox to \overlayheight \bgroup
\offinterlineskip
\setbox0=\hbox to \overlaywidth \bgroup
   #1\cleaders\hbox{#2}\hfill#3%
\egroup
\setbox2=\hbox to \overlaywidth \bgroup
   #5\cleaders\hbox{#6}\hfill#7%
\egroup
\scratchdimen\dimexpr\overlayheight-2\ht0\relax
\setbox4=\vbox to \scratchdimen \bgroup
   \cleaders\hbox{#8}\vfill
\egroup
\setbox6=\vbox to \scratchdimen \bgroup
   \cleaders\hbox{#4}\vfill
\egroup
\box0
\hbox to \overlaywidth{\box4\hfill\box6}%
\box2
  \egroup}

\def\FakeChar#1{\framed[width=.5cm,height=.5cm,offset=overlay]{#1}}

\defineoverlay
 [border]
 [\Border
   {\FakeChar{\tx LT}}
   {\FakeChar{t}}
   {\FakeChar{\tx RT}}
   {\FakeChar{r}}
   {\FakeChar{\tx RB}}
   {\FakeChar{b}}
   {\FakeChar{\tx LB}}
   {\FakeChar{l}}]

\starttext

\framed[width=4cm,height=3cm,background=border]{}

\stoptext

if needed i can add something like Border to supp-fun or so ...

probably some scaling is involved as well

Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] betex -etex block parsing bug

2005-12-20 Thread Hans Hagen

Willi Egger wrote:


Hi Hans,

thanks for your immediate reply. Indeed it is strange that it runs ok 
in your environment.

But where to put this altered definition?


cont-new.tex or so

(it runs ok because this btex/etex stuff is also parsed and cleaned up 
by texexec)


Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] About \defineshortcut

2005-12-20 Thread Hans Hagen

Radhelorn wrote:


Taco Hoekwater wrote:


For example after command:

\defineshortcut [//] [] [style=\em]



I can get slash only by \textslash (which is expected) and it breaks 
things like:


\typefile {some/dir/file}

So how to revert to previous meaning of '/'? It is possible to do it 
only temporarily?



Explicit \start a /b/ c \stop style grouping is normally best, but
a shortcut is just an active character with a closing defimiter,
so this will work for you special case:

  \catcode`\/=\other
  \typefile {some/dir/file}
  \catcode`\/=\active



I've experimented with various macros to undefine/temporarily disable 
shortcuts and found that most convenient variant is to insert this 
catcode changing into \typefile command. Why not to do this for every 
command, that accepts path parameters? This slows process down too much?


But this is just an afterthought.

I think that \defineshortcut commands are most useful inside some 
environment (start/stop pair). So it is possible to have such 
environment that restores back all catcode changes (or other variable 
changes) made inside it (like local variables in some programming 
laguages)? This can have many other uses.



i have no idea why you use shortcuts (i implemented it as a gimmick -)

grouping is doable with:

\starttext

\startsetups whatever
   \defineshortcut [b] [style=bold]
   \defineshortcut [e] [style=slanted]
\stopsetups

\definestartstop[whatever][commands=\setups{whatever}]

\input tufte

oeps b:oeps or e:oeps

\startwhatever
oeps b:oeps or e:oeps
\stopwhatever

oeps b:oeps or e:oeps

\input tufte

\stoptext

Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Context 2005.12.19 released

2005-12-20 Thread Mojca Miklavec
Taco Hoekwater wrote:
 New features since 2005.12.18:

 * Support for the latin-9 regime (latin-1 + euro)

There are some more (automatically generated) regime definitions at
http://pub.mojca.org/tex/enco/contextbase/
(only from the glyph names that I was able to extract from the
existing files, so it's only OK for some of the regimes mentioned
there).

If possible, I would like to ask for core support for windows-1250
(perhaps other users may find some other regimes useful as well).

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chinese in current ConTeXt

2005-12-20 Thread Hans Hagen

Tobias Burnus wrote:


Hello,

Hans Hagen wrote:


b) How to change the numberformat used?


eh ... wang lei should know ... i have to look into it (chinese 
supports multiple number formats)


I think I found it (it is a bit burried in font-chi.tex):
\startitemize[c] (or cn) gives the normal Chinese number, cc the 
capitalized, ec the normal Chinese number with one-character 
alternatives for 20 and 30 and ac the Arabic style of numbering.


(For those who'd like to have a how to on using Chinese with UTF-8, I 
updated http://wiki.contextgarden.net/Chinese )


Attached you find the traditional characters (as used in Taiwan, 
Hongkong [possibly decreasing], and in China before 1955); one should 
provide some method to switch between those and the simplified ones 
defined; maybe an option for \setupchinese?


ok, i have to think about it ... just collect everything that needs a 
fix/extension and i'll look into it at the same time (we also need to 
get japanese running)


Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: interesting font

2005-12-20 Thread Patrick Gundlach
Hello Henning,

 Am 2005-12-17 um 18:11 schrieb Patrick Gundlach:
 Thomas was quick and the fonts together with context stuff are now
 available at http://modules.contextgarden.net/gfsdidot

 Great!
 As you know there are some font packages at my site:
 http://www.fiee.net/texnique/?menu=0-1-4

nice. I have still a few gigabytes diskspace left, so there is no
problem to put the on contextgarden.net. Let's discuss that off list,
but I might be unavailable during christmas. If anybody else has some
font packages, don't hesitate to ask me to put them in the garden.

Patrick
-- 
ConTeXt wiki and more: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] [Fwd: Re: Need a little help on sample file]

2005-12-20 Thread Hans Hagen


---BeginMessage---

David Arnold wrote:


1. I need to number consecutive exercises.

2. I need a way of coding the exercise questions and keeping the  
solution together with the exercise source, but hidden for later use  
in another part of the  document. I'm not sure how to plan for this  
future event.



something to play with

\starttext

\defineblock[question]
\defineblock[answer]
\hideblocks[answer]

\defineenumeration[question]
\defineenumeration[answer][coupling=question]

\chapter{One}

\input tufte

\beginquestion
\startquestion
Whatever needs to be exercised.
\stopquestion
\endquestion

\beginanswer
\startanswer
No answer.
\stopanswer
\endanswer

\chapter{Two}

\input tufte

\beginquestion
\startquestion
Whatever more needs to be exercised.
\stopquestion
\endquestion

\beginanswer
\startanswer
Again no answer.
\stopanswer
\endanswer

\chapter{Exercises}

\useblocks[answer]

% \useblocks[question,answer]

\stoptext

there are quite some ways to tag and filter such blocks (see manual)

beware: \begin... and \end... should start at column 1 of a line (like 
buffers and display verbatim)




3. I need a way of switching between double column to single column.


bla bla

\startcolumns

bla bla

\stopcolumns

bla bla



---End Message---
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chinese in current ConTeXt

2005-12-20 Thread Xiao Jianfeng

Tobias Burnus wrote:


Hello,

some remarks/errors of the current UTF-8 Chinese support in ConTeXt 
2005.12.19:

(For (a) to (c) see also attached file.)

a) unic-chi.tex: This contains the unicode vectors for which a Chinese 
font will be used; currently it only covers

\dostepwiserecurse{40}{159}{1}{\defineunicodecommand #1 {\uchar}}
but this it misses the U+FFxx characters (fullwidth latin characters, 
e.g. '?' which is as wide as a Chinese character)

= solution: Add
\defineunicodecommand 255 {\uchar}

b) Labels: lang-chi.tex contains:
\setuplabeltext [\s!cn] [\v!figure={\cnencoding\cnencodedfigure}]
\startencoding[uni-c]
\definecommand cnencodedfigure {\uchar{86}{254}}
but if I use (with UTF-8) \placefigure{}{} the figure character is not 
shown; however if I setup this directly, i.e.

\setuplabeltext[cn][figure={\uchar{86}{254}}]
, the character is shown just fine.

c) Doing font switching using \SimKaiTi seems to convert back to GBK, 
can we have Unicode by default (at least when UTF-8 encoding is used)?


Examples for (a) to (c) see attachment (UTF-8 encoded).

* * *

Wish for the native speakers: Please translate
- Graphics/Illustration and Intermezzo(s)

Question to native speakers:
- \c!date={\v!month,\ ,\v!day,{,\ },\v!year},
Is this really the default? Or should this be
year年month月day日?

* * *


 It should be year年month月day日.

 In Chinese, large unit is always before small unit.
 Another example, the address in Chinese, China, Shanghai, xxx Road, 
NO.xxx, room xxx,
 city is always befor road people lives. I think it's easy to read and 
easy to find a

 place on the map :P


Another questions:
a) How to typset from top-to-bottom right-to-left using column(sets)?
b) How to change the numberformat used?

Tobias



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
 



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chinese in current ConTeXt

2005-12-20 Thread Xiao Jianfeng

Tobias Burnus wrote:


Hello,

some remarks/errors of the current UTF-8 Chinese support in ConTeXt 
2005.12.19:

(For (a) to (c) see also attached file.)

a) unic-chi.tex: This contains the unicode vectors for which a Chinese 
font will be used; currently it only covers

\dostepwiserecurse{40}{159}{1}{\defineunicodecommand #1 {\uchar}}
but this it misses the U+FFxx characters (fullwidth latin characters, 
e.g. '?' which is as wide as a Chinese character)

= solution: Add
\defineunicodecommand 255 {\uchar}

b) Labels: lang-chi.tex contains:
\setuplabeltext [\s!cn] [\v!figure={\cnencoding\cnencodedfigure}]
\startencoding[uni-c]
\definecommand cnencodedfigure {\uchar{86}{254}}
but if I use (with UTF-8) \placefigure{}{} the figure character is not 
shown; however if I setup this directly, i.e.

\setuplabeltext[cn][figure={\uchar{86}{254}}]
, the character is shown just fine.

c) Doing font switching using \SimKaiTi seems to convert back to GBK, 
can we have Unicode by default (at least when UTF-8 encoding is used)?


Examples for (a) to (c) see attachment (UTF-8 encoded).

* * *

Wish for the native speakers: Please translate
- Graphics/Illustration and Intermezzo(s)

Question to native speakers:
- \c!date={\v!month,\ ,\v!day,{,\ },\v!year},
Is this really the default? Or should this be
year年month月day日?

* * *

Another questions:
a) How to typset from top-to-bottom right-to-left using column(sets)?


 In mchinese.pdf, Hans wrote:

6.4 Vertical typesetting
In Taiwan and HongKong, a large deal of Chinese is typeset vertical. 
ConTEXt support

this mode by implementing on top of the multicolumn
routines.

 Hope this helps.


b) How to change the numberformat used?

Tobias



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
 



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: newbie questions: footer and header?

2005-12-20 Thread leon
Excellent link. Thanks.

VnPenguin [EMAIL PROTECTED] writes:

 | On 12/20/05, Leon [EMAIL PROTECTED] wrote:
 |  Hi all,
 | 
 |  Could anybody provide an example with the usage of footer and header?
 |  Many thanks.
 | 
 | 
 | Good page here: http://getfo.sourceforge.net/context_xml/page3.html
 | 
 | --
 | http://vnoss.org
 | Vietnamese Open Source Software Community
 | ___
 | ntg-context mailing list
 | ntg-context@ntg.nl
 | http://www.ntg.nl/mailman/listinfo/ntg-context

-- 
.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. 
. *   . 
./.\Merry Christmas   . 
.   /..'\ . 
.   /'.'\  -- Leon. 
.  /.''.'\. 
.  /.'.'.\. 
. /'.''.'.\   . 
. ^^^[_]^^^   . 
.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chinese in current ConTeXt

2005-12-20 Thread Tobias Burnus

Hi,

Xiao Jianfeng wrote:

 It should be year年month月day日.
I somehow failed to to get the following working; I'm actually too tired 
(3 a.m) to follow the macro expansion in

-   \c!date={\v!month,\ ,\v!day,{,\ },\v!year},
+   
\c!date={\v!year,{\cnencoding\cnyear},\v!month,{\cnencoding\cnmonth},\v!year,{\cnencoding\cnday}},


In any case the year/month/day characters in unicode/gbk/big5 are:
@@ -110,0 +111,3 @@
+  \definecommand cnyear{\uchar{94}{116}}
+  \definecommand cnmonth   {\uchar{103}{8}}
+  \definecommand cnday {\uchar{101}{229}}
@@ -158,0 +162,3 @@
+  \definecommand cnyear{\uchar{196}{234}}
+  \definecommand cnmonth   {\uchar{212}{194}}
+  \definecommand cnday {\uchar{200}{213}}
@@ -204,0 +211,3 @@
+  \definecommand cnyear{\uchar{166}{126}}
+  \definecommand cnmonth   {\uchar{164}{235}}
+  \definecommand cnday {\uchar{164}{233}}

Tobias

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \reset deprecated?

2005-12-20 Thread David Arnold

All,

I can't get \reset to work as in the manual. Is it deprecated?  
Replaced with something?



%output=pdf

\defineenumeration[question][location=serried,text=Question]
\defineenumeration[answer][location=serried,text=Answer]
\defineblock[question,answer]
\hideblocks[answer]

\starttext

\chapter{First Chapter}

\input tufte

\beginquestion
\startquestion
  What is the square root of 4?
\stopquestion
\endquestion

\beginanswer
\startanswer
  2
\stopanswer
\endanswer

\section{Answers}
\reset[answer]
\selectblocks[answer][criterium=chapter]

\chapter{Second Chapter}

\input tufte

\beginquestion
\startquestion
  What is the square root of 4?
\stopquestion
\endquestion

\beginanswer
\startanswer
  2
\stopanswer
\endanswer

\stoptext

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \useblocks in section

2005-12-20 Thread David Arnold

All,

This doesn't seem to work as expected. Replacing the \useblocks with  
\selectblocks also produces an unexpected result. What am I doing  
wrong? I am trying to have only the answers from the chapter show up.


%output=pdf

\defineenumeration[question][location=serried,text=Question]
\defineenumeration[answer][location=serried,text=Answer]
\defineblock[question,answer]
\hideblocks[answer]

\starttext

\chapter{First Chapter}

\input tufte

\beginquestion
\startquestion
  What is the square root of 4?
\stopquestion
\endquestion

\beginanswer
\startanswer
  2
\stopanswer
\endanswer

\section{Answers}

\useblocks[answer][criterium=chapter]

\chapter{Second Chapter}

\input tufte

\beginquestion
\startquestion
  What is the square root of 9?
\stopquestion
\endquestion

\beginanswer
\startanswer
  3
\stopanswer
\endanswer

\section{Answers}

\useblocks[answer][criterium=chapter]

\stoptext

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Enumerated list numbering across

2005-12-20 Thread David Arnold

All,

How do I get:

1.   2.
3.   4.
5.   6.

Instead of:

1.   4.
2.   5.
3.   6.

With:

\startitemized
  \item ...
\stopitemized
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] ownnumber=yes

2005-12-20 Thread David Arnold

All,

This:

%output=pdf

\definehead[david][section]
\setuphead[david][ownnumber=yes]

\starttext

\chapter{One}
\input tufte

\section{Two}
\input tufte

\david{Three}
\input tufte

\section{Four}
\input tufte

\stoptext


Causes this:

! TeX capacity exceeded, sorry [input stack size=5000].
argument \s!section
  -3
\previoussection #1-\csname \??se #1
 \c!before \endcsname
\countervalue #1-\csname #1
\endcsname
\@@longsectionnumber ...?se \previoussection {#1}}
  \zerocount  
\csname \previ...


\finalsectionnumber ...alue {\@@sectie \c!number }
  \fi \fi
\@@shortsectionnumber ...1\c!ownnumber \endcsname
  \fi
...
l.14 \david{Three}


Any ideas?


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \reset deprecated?

2005-12-20 Thread Taco Hoekwater

David Arnold wrote:

All,

I can't get \reset to work as in the manual. Is it deprecated?  Replaced 
with something?


Broken, I think ;-)

Meanhile, you can use \resetnumber[answer] directly, but I do not
believe you have to (not in this example at least).

Cheers,

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] About \defineshortcut

2005-12-20 Thread Radhelorn

Hans Hagen wrote:

Radhelorn wrote:
I think that \defineshortcut commands are most useful inside some 
environment (start/stop pair). So it is possible to have such 
environment that restores back all catcode changes (or other variable 
changes) made inside it (like local variables in some programming 
laguages)? This can have many other uses.



i have no idea why you use shortcuts (i implemented it as a gimmick -)


Well I was reading sources and stumbled over these commands. I am using 
shortcuts to typeset programming examples in non standard languages and 
pseudo-code.




grouping is doable with:

\starttext

\startsetups whatever
   \defineshortcut [b] [style=bold]
   \defineshortcut [e] [style=slanted]
\stopsetups

\definestartstop[whatever][commands=\setups{whatever}]

\input tufte

oeps b:oeps or e:oeps

\startwhatever
oeps b:oeps or e:oeps
\stopwhatever

oeps b:oeps or e:oeps

\input tufte

\stoptext



Many thanks! I've looked this indeed!

It is a pity that such useful command (setups) remains undocumented. As 
far as I understand inside setups can be any commands and environment 
changes are fully restored after their execution. Right? And \setups 
command can replace any single command (in arguments and such).


If this is OK, then I will try to collect some more examples and post 
them on the WIKI later this week.


--
Radhelorn [EMAIL PROTECTED]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context