Re: [NTG-context] \wordright and line break

2010-02-24 Thread Hans Hagen

On 21-1-2010 14:53, Andreas Harder wrote:

Hello Hans,

is there a reason (I’m sure there is) that \finalhyphendemerits\zerocount in 
the \wordright-definition is commented out? Without this line I get wrong line 
breaks with hyphenated words followed by \wordright{…}.

\starttext
\setupframedtexts[width=.65\textwidth,offset=none]
\startTEXpage[offset=1ex] \hsize=.65\textwidth
\startframedtext
   test text test text test text test text test text test  testtext
   \wordright{(S.\,3, Z.\,78–97)}
\stopframedtext

\startframedtext
   test text test text test text test text test text test test- text
   \wordright{(S.\,4, Z.\,117–121)}
\stopframedtext
\stopTEXpage
\stoptext


well, the comment says: yes or no, so let's uncomment it

(interesting example)

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


Re: [NTG-context] [dev-context] 2 columns itmize in letter module possible

2010-02-24 Thread Jörg Hecke
Am 23.02.2010 um 12:59 schrieb Wolfgang Schuster:
 
 I am using your letter module, but it seems that I am not able to use a 2 
 column itemize environment?
   
 Fixed.

Brilliant. Thanks. So, I have to update to the latest minimals, or download the 
latest version from contextgarden modules site, right?


Jörg
___
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
___


Re: [NTG-context] Math in MKIV - HOWTO

2010-02-24 Thread Hans Hagen

On 24-2-2010 4:15, Zhichu Chen wrote:

Thanks for the guidance, I finally get my Lucida Math work.

After the \showfont step, I found that I didn't have the tex-ma
vector font, and the last two lines in math-vfu.lua should be changed
to:
 { name = hlcra.tfm, vector = tex-mb },
 { name = hlcrm.tfm, vector = tex-mi },
in my case.


that's not okay either ... i was under the impression that the font was 
repackaged in a way that matches tex default math encoding  but it looks 
like there is some other encoding used ... what a mess ... it looks like 
we need special lucida vectors then



By the way, there's a typo in fonts.enc.math[tex-mi] in
math-vfu.lua, the comment righttharpoonup has an extra t and I
just wish it could be perfect.


ok

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


Re: [NTG-context] Math in MKIV - HOWTO

2010-02-24 Thread Hans Hagen

On 24-2-2010 10:01, Hans Hagen wrote:

On 24-2-2010 4:15, Zhichu Chen wrote:

Thanks for the guidance, I finally get my Lucida Math work.

After the \showfont step, I found that I didn't have the tex-ma
vector font, and the last two lines in math-vfu.lua should be changed
to:
{ name = hlcra.tfm, vector = tex-mb },
{ name = hlcrm.tfm, vector = tex-mi },
in my case.


that's not okay either ... i was under the impression that the font was
repackaged in a way that matches tex default math encoding but it looks
like there is some other encoding used ... what a mess ... it looks like
we need special lucida vectors then


By the way, there's a typo in fonts.enc.math[tex-mi] in
math-vfu.lua, the comment righttharpoonup has an extra t and I
just wish it could be perfect.


i uploaded a beta with mkiv lbr vectors (quick and dirty conversion hackery)

\usemodule[fnt-25]

\starttext
\setupbodyfont[lucida,12pt]
\showmathfontcharacters
\stoptext

up to others to check and complete them

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


Re: [NTG-context] [Fwd: hyphen breaking (URGENT)]

2010-02-24 Thread Hans Hagen

On 24-2-2010 8:50, Steffen Wolfrum wrote:


Am 23.02.2010 um 23:27 schrieb Hans Hagen:


On 23-2-2010 21:18, Steffen Wolfrum wrote:


The need is easily described:

\placelist[chapter, section,...][file=MyFile]


In old MkII times all information for a table of content was read from the 
.tuo file.
For making manual changes in needed a way to define from *which* tuo file the 
placelist command reads its information:
so I could copy the original tuo file, give it another name (MyFile) and define 
...

\def\FrozenTUO{MyFile}

 thus each \placelist run would read from that paticular MyFile.tuo

The quoted code above was written by Hans to provide a way to implement a kind 
of \placelist[chapter, section,...][file=MyFile] in MkII.


the file= option will not come back, at least not soon, as we now have a 
completely different way of dealing with tables of contents (and actually all 
multipass data)

(ok, you can adapt copy the tuc file and replace the list table but as much 
more goes into the list it's no fun; also way more information goes into the 
lists and there are references to shared data that basically makes a no-go)

what we have already is a way to add userdata (which works if you use the 
structured \startchapter ... commands) and when placing a list you can use user 
entries; if you only need to replace a specific list entry you can do

\startchapter[title=whatever,list=whocares,bookmark=...]

so you have a different title and listentry and marking and reference and 
bookmark and ..



There is an important side-effect in the way I use it in MkII:
The  idea is to run the table of contents independently from typesetting an 
entire book.

For example:
- you have a big book, each typesetting run takes quite long
- as you also have many headings the table of contents is 17 pages
- now you see an ugly page-brake at bottom of page 10
- but if the entire vertical spacing of this page would be reduced a bit then 
this page-break would look better.

What I'd do now in MkII is such (trial-and-error loop):
0) the table of content is created by a \placelist command in a separate 
contents.tex component
1) for testing purposes I now copy the tuo file and point (via \def\FrozenTUO) 
the placelist run to this file
2) in this test-tuo file I hook in a command for reducing the vertical space 
(baseline/parskip) of my problematic contents page
3) I run the contents.tex file again to see if the result is as desired
4) if it is not, I do step 2) and 3) again
5) finally, if the result is as desired, I write the command (that gave me that 
desired vertical space) via \writebetweenlist directly to the original 
chapter's files.
6) now I point the \placelist run back again to the original tuo file: thus I 
can be save that whenever there will be additions/changes in the book, I can 
generate are table of contents with the updated pagenumbers (but also via 
writebetweenlist with my content's correction).


why not put a stoptext just after the toc then and run with --once?

that way the tuc file will not be overwritten and you have a short run



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


Re: [NTG-context] [dev-context] 2 columns itmize in letter module possible

2010-02-24 Thread Mojca Miklavec
On Wed, Feb 24, 2010 at 09:55, Jörg Hecke wrote:

 Brilliant. Thanks. So, I have to update to the latest minimals, or download 
 the latest version from contextgarden modules site, right?

If you have ever used --extras=t-letter and if the update has happened
on the garden, the update should happen automatically (once within one
day, usually earlier; it seems to be there already as you can see on
http://minimals.contextgarden.net/current/modules/t-letter/).

So when you update minimals, it should be updated automatically.

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


Re: [NTG-context] Math in MKIV - HOWTO

2010-02-24 Thread Zhichu Chen
On Wed, Feb 24, 2010 at 6:24 PM, Hans Hagen pra...@wxs.nl wrote:
 On 24-2-2010 10:01, Hans Hagen wrote:

 i uploaded a beta with mkiv lbr vectors (quick and dirty conversion hackery)

 \usemodule[fnt-25]

 \starttext
    \setupbodyfont[lucida,12pt]
    \showmathfontcharacters
 \stoptext

 up to others to check and complete them

The double stroke A--Z from U+1D538 -- U+02124 in hlcra.tfm(lbma.pfb)
from 0x41--0x5a are missing, even though I added to the lbr-ma vector
:(


 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
 -




-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

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


Re: [NTG-context] Math in MKIV - HOWTO

2010-02-24 Thread Hans Hagen

On 24-2-2010 12:55, Zhichu Chen wrote:

On Wed, Feb 24, 2010 at 6:24 PM, Hans Hagenpra...@wxs.nl  wrote:

On 24-2-2010 10:01, Hans Hagen wrote:

i uploaded a beta with mkiv lbr vectors (quick and dirty conversion hackery)

\usemodule[fnt-25]

\starttext
\setupbodyfont[lucida,12pt]
\showmathfontcharacters
\stoptext

up to others to check and complete them


The double stroke A--Z from U+1D538 -- U+02124 in hlcra.tfm(lbma.pfb)
from 0x41--0x5a are missing, even though I added to the lbr-ma vector
:(


you should coordinate this with mojca

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


[NTG-context] groupedcommand italic and upright (MkIV)

2010-02-24 Thread Steffen Wolfrum
Hi,

in MkII the slash became set upright, in MkIV it stays italic:


\def\Textit{\groupedcommand\it\/}
\def\Textmr{\groupedcommand\mr\/}

\definetextmodediscretionary :
  
{\prewordbreak\discretionary{\kern.05em\Textmr/}{}{\kern.05em\Textmr/}\kern.05em\prewordbreak}%
 ist schon Textmr = aufrecht !

\starttext

test \Textit{non|:|italic} here.

\stoptext



What needs to be changed to get an upright slash in that italic group?

Steffen
___
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
___


Re: [NTG-context] groupedcommand italic and upright (MkIV)

2010-02-24 Thread Wolfgang Schuster

Am 24.02.10 18:02, schrieb Steffen Wolfrum:

Hi,

in MkII the slash became set upright, in MkIV it stays italic:

\def\Textit{\groupedcommand\it\/}
\def\Textmr{\groupedcommand\mr\/}
   

\mr is for math, you want \tf

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
___


Re: [NTG-context] groupedcommand italic and upright (MkIV)

2010-02-24 Thread Steffen Wolfrum

Am 24.02.2010 um 18:10 schrieb Wolfgang Schuster:

 Am 24.02.10 18:02, schrieb Steffen Wolfrum:
 Hi,
 
 in MkII the slash became set upright, in MkIV it stays italic:
 
 \def\Textit{\groupedcommand\it\/}
 \def\Textmr{\groupedcommand\mr\/}
   
 \mr is for math, you want \tf


Ah!


Thank you, Wolfgang.

Steffen
___
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
___


Re: [NTG-context] [Fwd: hyphen breaking (URGENT)]

2010-02-24 Thread Steffen Wolfrum

Am 24.02.2010 um 11:31 schrieb Hans Hagen:

 On 24-2-2010 8:50, Steffen Wolfrum wrote:
 
 Am 23.02.2010 um 23:27 schrieb Hans Hagen:
 
 On 23-2-2010 21:18, Steffen Wolfrum wrote:
 
 The need is easily described:
 
 \placelist[chapter, section,...][file=MyFile]
 
 
 In old MkII times all information for a table of content was read from the 
 .tuo file.
 For making manual changes in needed a way to define from *which* tuo file 
 the placelist command reads its information:
 so I could copy the original tuo file, give it another name (MyFile) and 
 define ...
 
 \def\FrozenTUO{MyFile}
 
  thus each \placelist run would read from that paticular MyFile.tuo
 
 The quoted code above was written by Hans to provide a way to implement a 
 kind of \placelist[chapter, section,...][file=MyFile] in MkII.
 
 the file= option will not come back, at least not soon, as we now have a 
 completely different way of dealing with tables of contents (and actually 
 all multipass data)
 
 (ok, you can adapt copy the tuc file and replace the list table but as much 
 more goes into the list it's no fun; also way more information goes into 
 the lists and there are references to shared data that basically makes a 
 no-go)
 
 what we have already is a way to add userdata (which works if you use the 
 structured \startchapter ... commands) and when placing a list you can use 
 user entries; if you only need to replace a specific list entry you can do
 
 \startchapter[title=whatever,list=whocares,bookmark=...]
 
 so you have a different title and listentry and marking and reference and 
 bookmark and ..
 
 
 There is an important side-effect in the way I use it in MkII:
 The  idea is to run the table of contents independently from typesetting an 
 entire book.
 
 For example:
 - you have a big book, each typesetting run takes quite long
 - as you also have many headings the table of contents is 17 pages
 - now you see an ugly page-brake at bottom of page 10
 - but if the entire vertical spacing of this page would be reduced a bit 
 then this page-break would look better.
 
 What I'd do now in MkII is such (trial-and-error loop):
 0) the table of content is created by a \placelist command in a separate 
 contents.tex component
 1) for testing purposes I now copy the tuo file and point (via 
 \def\FrozenTUO) the placelist run to this file
 2) in this test-tuo file I hook in a command for reducing the vertical space 
 (baseline/parskip) of my problematic contents page
 3) I run the contents.tex file again to see if the result is as desired
 4) if it is not, I do step 2) and 3) again
 5) finally, if the result is as desired, I write the command (that gave me 
 that desired vertical space) via \writebetweenlist directly to the original 
 chapter's files.
 6) now I point the \placelist run back again to the original tuo file: thus 
 I can be save that whenever there will be additions/changes in the book, I 
 can generate are table of contents with the updated pagenumbers (but also 
 via writebetweenlist with my content's correction).
 
 why not put a stoptext just after the toc then and run with --once?
 
 that way the tuc file will not be overwritten and you have a short run



my experience is that run context --once literally work only once ...
thus, a trial-and-error loop (as described above) won't work.

or do you know a trick?!


Steffen
___
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
___


Re: [NTG-context] [Fwd: hyphen breaking (URGENT)]

2010-02-24 Thread Steffen Wolfrum

Am 23.02.2010 um 23:27 schrieb Hans Hagen:

 On 23-2-2010 21:18, Steffen Wolfrum wrote:
 
 The need is easily described:
 
 \placelist[chapter, section,...][file=MyFile]
 
 
 In old MkII times all information for a table of content was read from the 
 .tuo file.
 For making manual changes in needed a way to define from *which* tuo file 
 the placelist command reads its information:
 so I could copy the original tuo file, give it another name (MyFile) and 
 define ...
 
 \def\FrozenTUO{MyFile}
 
  thus each \placelist run would read from that paticular MyFile.tuo
 
 The quoted code above was written by Hans to provide a way to implement a 
 kind of \placelist[chapter, section,...][file=MyFile] in MkII.
 
 the file= option will not come back, at least not soon, as we now have a 
 completely different way of dealing with tables of contents (and actually all 
 multipass data)
 
 (ok, you can adapt copy the tuc file and replace the list table but as much 
 more goes into the list it's no fun; also way more information goes into the 
 lists and there are references to shared data that basically makes a no-go)
 
 what we have already is a way to add userdata (which works if you use the 
 structured \startchapter ... commands) and when placing a list you can use 
 user entries; if you only need to replace a specific list entry you can do


I had a look in my tuc file and saw that a ...

\writebetweenlist[EbeneNull]{\strut\vskip-28pt}

... is now rendered as ...

{
  metadata=4,
  references={
   internal=5,
   realpage=5,
   section=0,
  },
  userdata={
   command=\\strut \\vskip -28pt,
  },
 }

... and that all my writebetweenlist instructions are now stored in such syntax 
one after the other.
In the MkII past the tuo file itself was not nice readable, but one could 
easily identify the context of a writebetweenlist instruction.

Perhaps I can also add comments to a writebetweenlist now?
Can you some further example on how to use userdata?

Thanks, Steffen
___
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
___


[NTG-context] MkII to MkIV

2010-02-24 Thread Steffen Wolfrum
Hi,


typesetting an old MkII written project with MkIV today gives more then 2000 
unable to resolve warnings, like these ...


!pages  : flushing realpage 12, userpage 16
!backends   : unable to resolve destination attribute 67
!backends   : unable to resolve destination attribute 69
!backends   : unable to resolve destination attribute 70
!backends   : unable to resolve destination attribute 71
!backends   : unable to resolve destination attribute 72
!backends   : unable to resolve destination attribute 74
!pages  : flushing realpage 13, userpage 17
!backends   : unable to resolve destination attribute 75
!backends   : unable to resolve destination attribute 76
!backends   : unable to resolve destination attribute 83
!backends   : unable to resolve destination attribute 80
!backends   : unable to resolve destination attribute 81
!pages  : flushing realpage 14, userpage 18
!backends   : unable to resolve destination attribute 82
!backends   : unable to resolve destination attribute 85
!backends   : unable to resolve destination attribute 86
!backends   : unable to resolve destination attribute 91
!backends   : unable to resolve destination attribute 89
!backends   : unable to resolve destination attribute 90



... what does this mean? As that project did not even have 2000 \footnotes or 
\index or reference marks, what is meant?

Paragraphs???


Steffen
___
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
___


Re: [NTG-context] [Fwd: hyphen breaking (URGENT)]

2010-02-24 Thread Wolfgang Schuster

Am 24.02.10 22:26, schrieb Steffen Wolfrum:


Perhaps I can also add comments to a writebetweenlist now?
Can you some further example on how to use userdata?


A example i wrote for Idris a while (April 2009) ago:

\setuphead[chapter][align=middle,command=\TitleCommand]

\define[2]\TitleCommand
  {\startframedtext[frame=off,width=\hsize,align=middle]
   #2\hairline
   \structureuservalue{author}\hfill\structureuservalue{date}
   \stopframedtext}

\starttext

\startchapter
  [title={How to make Idris happy?},reference={sec:happy}]
  [author={Wolfgang Schuster},date=\currentdate]

It's not as hard you think, just show him a few nice things
and he is happy.

See \in{section}[sec:happy] at \at{page}[sec:happy].

\stopchapter

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


Re: [NTG-context] [Fwd: hyphen breaking (URGENT)]

2010-02-24 Thread Bernhard Rosensteiner
Am 24.02.2010 um 22:38 schrieb Wolfgang Schuster:

 Am 24.02.10 22:26, schrieb Steffen Wolfrum:
 
 Perhaps I can also add comments to a writebetweenlist now?
 Can you some further example on how to use userdata?
 
 A example i wrote for Idris a while (April 2009) ago:
 
 \setuphead[chapter][align=middle,command=\TitleCommand]
 
 \define[2]\TitleCommand
  {\startframedtext[frame=off,width=\hsize,align=middle]
   #2\hairline
   \structureuservalue{author}\hfill\structureuservalue{date}
   \stopframedtext}
 
 \starttext
 
 \startchapter
  [title={How to make Idris happy?},reference={sec:happy}]
  [author={Wolfgang Schuster},date=\currentdate]
 
 It's not as hard you think, just show him a few nice things
 and he is happy.
 
 See \in{section}[sec:happy] at \at{page}[sec:happy].
 
 \stopchapter
 
 \stoptext
 
 Wolfgang

Hi,

for curiosity i tried the above code and it gives an error (undefined control 
sequence)
i searched in the source and found that \structureuservariable is valid not 
\structureuservalue

best regards
Bernhard

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


Re: [NTG-context] [Fwd: hyphen breaking (URGENT)]

2010-02-24 Thread Wolfgang Schuster

Am 24.02.10 22:54, schrieb Bernhard Rosensteiner:

for curiosity i tried the above code and it gives an error (undefined control 
sequence)
i searched in the source and found that \structureuservariable is valid not 
\structureuservalue
   

What do you expect, it's a very old example and i wrote just after Hans
added the functionality. Of yourse i should have checked it but testing
each example consumes a lot of time.

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
___


Re: [NTG-context] [Fwd: hyphen breaking (URGENT)]

2010-02-24 Thread Bernhard Rosensteiner
Am 24.02.2010 um 23:11 schrieb Wolfgang Schuster:

 Am 24.02.10 22:54, schrieb Bernhard Rosensteiner:
 for curiosity i tried the above code and it gives an error (undefined 
 control sequence)
 i searched in the source and found that \structureuservariable is valid not 
 \structureuservalue
   
 What do you expect, it's a very old example and i wrote just after Hans
 added the functionality. Of yourse i should have checked it but testing
 each example consumes a lot of time.
 
 Wolfgang

this was the reason for posting it (redundant error searching). Anyway, nice 
functionality - thanks for posting

best regards

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


[NTG-context] [OT] TEX line breaking algorithm in JavaScript

2010-02-24 Thread Mojca Miklavec
http://www.bramstein.com/projects/typeset/

PS: the author comes from the second nicest country in the world :)
___
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
___


Re: [NTG-context] [OT] TEX line breaking algorithm in JavaScript

2010-02-24 Thread Khaled Hosny
On Wed, Feb 24, 2010 at 11:38:11PM +0100, Mojca Miklavec wrote:
 http://www.bramstein.com/projects/typeset/
 
 PS: the author comes from the second nicest country in the world :)

Combined with jsMath, I think we can now reimplement TeX in JS :D

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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
___


Re: [NTG-context] [OT] TEX line breaking algorithm in JavaScript

2010-02-24 Thread Mojca Miklavec
On Wed, Feb 24, 2010 at 23:59, Martin Schröder wrote:
 2010/2/24 Mojca Miklavec wrote:
 http://www.bramstein.com/projects/typeset/

 Wow! Combine with WOFF und HZ. :-)

+ http://code.google.com/p/hyphenator/ (to whom we may donate our
pattern database :)

And then you already have the complete TeX implementation.


Maybe you can convince the author to come to DANTE meeting :) BachoTeX
would be better of course, but since he's Dutch, convincing him to
come to Dortmund might be easier to start with.

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


Re: [NTG-context] [OT] TEX line breaking algorithm in JavaScript

2010-02-24 Thread Martin Schröder
2010/2/25 Mojca Miklavec mojca.miklavec.li...@gmail.com:
 Maybe you can convince the author to come to DANTE meeting :) BachoTeX
 would be better of course, but since he's Dutch, convincing him to
 come to Dortmund might be easier to start with.

Bram lives in Kopenhagen, so BachoTeX would indeed be better for him.

Best
Martin
___
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
___


[NTG-context] Margin terminology -- badly documented, undocumented, or misdocumented

2010-02-24 Thread James Fisher
Hi all.


I am trying to understand the terminology for the \definelayout and
\setuplayout commands.
Unfortunately the documentation at
http://wiki.contextgarden.net/Layoutdoesn't correspond to the actual
output I get.
Nor does the 'documentation' at http://getfo.org/context_xml/page3.html ,
which the first page recommends.
More, the two pages seem pretty contradictory.

Consider my situation: I'm trying to set up an A4 page with the following
margins (I use the term margin to mean the space from the edge of the
physical paper to the edge of the body text area):

top: 2.97cm
bottom: 2.97cm
left: 2.1cm
right: 2.1cm

For the moment, I don't care at all about header and footer space, nor notes
in the margins; I'm just trying to get the above margins.
However, with all conceivable combinations of commands at both of those
pages, I've been unable to set anything like this up.

Based on the getfo.org page, I should be able to set up these left and right
margins with:

backspace=2.1cm,
cutspace=2.1cm

But, looking at the result, and also with using \showlayout (which for some
reason, AFAICS, generates four identical pages at the beginning of the
document), this quite obviously doesn't do what getfo.org claims.

I have also tried setting everything to 0cm with the exception of any random
one of the measurements that go into making a margin, which I would set to
2.1cm.  No avail here, either.

Can someone give me the configuration I would need for the above required
margins?  Even better, can someone give me the definitive definitions of all
the terms used in http://wiki.contextgarden.net/Layout, algebraically rather
than as ambiguous tables of Remarks?  This would help a bunch.


Many thanks,


James Fisher
___
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
___