Re: [NTG-context] reusing figures ok - problem with hiding blocks in MKIV

2010-01-18 Thread Hans Hagen

On 15-1-2010 16:26, Matthias Weber wrote:

Dear all,

after (finally) installing the minimals,
the zip with the figures TeXs as expected with MKII and MKIV.

Now, in MKIV I notice another issue. I use the \hideblocks mechanism to
hide and reuse answers and get an error message (Undefined control
sequence) in MKIV while everything is fine
in MKII. I am attaching a sample file.



there are two issues:

\defineblock[exercise,solution]

i want to get away from the multiple definitions (for the moment i 
enabled it again in the upcoming beta) but the following should work in 
your case


\defineblock[solution]
\defineblock[exercise]

next, delete the tuc file and use the start/stop commands

\beginsolution
\startsolution
Solution one.
\stopsolution
\endsolution

\solution is ok but looks for a \par as delimiter so using the \start... 
\stop... variant is better


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] numbered itemize

2010-01-18 Thread Peter Münster
On Sun, Jan 17 2010, Wolfgang Schuster wrote:
 
  Bug or feature?  Should we add it to the tracker?
 
 Bug, I think. Can you add them?

Ok, done.

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


Re: [NTG-context] last chapter number

2010-01-18 Thread Hans Hagen

On 17-1-2010 13:36, Wolfgang Schuster wrote:


Am 17.01.2010 um 13:06 schrieb Andreas Harder:


Nonetheless the needed information is already present even more if one uses a 
table of contents …


The table of contents needs two passes too but only Hans can say (or provide
a command like \convertedstructurecounter for section numbers) how you can
access these information.


the beta now has

\starttext

\dorecurse {5} {
\chapter{Test #1}
first: \somestructureheadnumber[chapter][first]\par
current: \somestructureheadnumber[chapter][current]\par
last: \somestructureheadnumber[chapter][last]
\dorecurse {3} {
\section{Test #1}
first: \somestructureheadnumber[section][first]\par
current: \somestructureheadnumber[section][current]\par
last: \somestructureheadnumber[section][last]
}
}

\stoptext

upto the two of you who wikifies this

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] \everyaftershipout isn't called for every pagebreak

2010-01-18 Thread Andreas Schneider
Hans Hagen wrote:
 as it takes less time wrting a helper than explaining how to do it i
 just added it as feature (a few years from probably only wolfgang
 remembers that it's there)
 
 i'll upload a beta to the website that provides ...
 
 \starttext
 
 \dorecurse {100} {
  test \footnote{\doifnoteonsamepageelse[footnote]{ibidem}{aaa}}
 }
 
 \stoptext
 
 keep in mind that such features, depending on multiple passes, might
 result in a few more as it will never get things right the first time
 
 actually, in some cases it might make sense to delete the tuc file
 before a run
 
 Hans

Thank you very much for all that effort! It works very well and as a side-
effect also gives me a nice point to start learning more about the (lua)tex 
internals. Seems like I will have to go to one of the next ConTeXt user 
meetings so I can repay you with the beer(s) I now owe you :-)

Just in case someone else needs it: I used the following code now to reset 
my variable whenever a footnote is placed on a new page. That was necessary 
so a manually set footnote doesn't interfere with my citation-footnotes. 
(Otherwise, if a manually inserted footnote would be the first on a page, 
the next citation footnote would evaluate as being on the same page as the 
last one.)

\appendtoks
  \doifnoteonsamepageelse[footnote]{}{\global\setvalue{mycitelast}{}}
\to\everyinsidenoteinsert


Best Regards (and many thanks again!)
Andreas.

___
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] using `` '' the output is wrong.

2010-01-18 Thread views63
Hi  all,

I'm using `` complex analysis'' the output is wrong.

but using \ quotation (... ...) can output the correct quotation marks

The example:

\starttext

 `` complex analysis''

\quotation{complex analysis}

\stoptext

--
Best Regards
attachment: 1.png___
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] using `` '' the output is wrong.

2010-01-18 Thread Taco Hoekwater

Hi,

views63 wrote:
 Hi  all,
 
 I'm using `` complex analysis'' the output is wrong.

Not really. We (Hans and I) would say that it is now finally right. ;)

 but using \ quotation (... ...) can output the correct quotation marks

This is the right way to do it. Alternatively, you can use unicode
characters to input the correct quotation marks.

Best wishes,
Taco

___
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] using `` '' the output is wrong.

2010-01-18 Thread views63
2010/1/18 Taco Hoekwater t...@elvenkind.com

 Hi,

 views63 wrote:
  Hi  all,
 
  I'm using `` complex analysis'' the output is wrong.

 Not really. We (Hans and I) would say that it is now finally right. ;)

  but using \ quotation (... ...) can output the correct quotation marks

 This is the right way to do it. Alternatively, you can use unicode
 characters to input the correct quotation marks.

 Best wishes,
 Taco

Thank you ,I see.
--
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
___


Re: [NTG-context] using `` '' the output is wrong.

2010-01-18 Thread Alan BRASLAU
On Monday 18 January 2010 13:50:25 Taco Hoekwater wrote:
 Hi,
 
 views63 wrote:
  Hi  all,
 
  I'm using `` complex analysis'' the output is wrong.
 
 Not really. We (Hans and I) would say that it is now finally right. ;)
 
  but using \ quotation (... ...) can output the correct quotation marks
 
 This is the right way to do it. Alternatively, you can use unicode
 characters to input the correct quotation marks.
 
 Best wishes,
 Taco

This is true of many standard TeX ligatures (is this the right word here?)
such as ... (\ldots, \dots also works),  (\og),  (\fg), ` (\glqq),
' (\grqq), ~ (unbreakable space), etc.

This can be a bit disturbing for experienced TeX users.

OK, \quotation{} is cleaner and of course using unicode
characters may be even more readable, sometimes.

I have very mixed feelings, as I know how to type ...
but I never can recall the keyboard gymnastics necessary
to get this in unicode.
(Things are even worse on a Mac, as the standard keyboard
layout is missing lots of important characters.)

Alan
___
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] using `` '' the output is wrong.

2010-01-18 Thread Henning Hraban Ramm
2010/1/18 Alan BRASLAU alan.bras...@cea.fr:
 I have very mixed feelings, as I know how to type ...
 but I never can recall the keyboard gymnastics necessary
 to get this in unicode.
 (Things are even worse on a Mac, as the standard keyboard
 layout is missing lots of important characters.)

At least with German key layouts I get a lot more characters on the
Mac than on Windows.
Otherwise just design your own (or expand your French? one) with
Ukelele: http://scripts.sil.org/Ukelele

Because the standard German key layout gives access to accented vowels
using dead keys, but not to e.g. eastern European accented consonants,
and I don't like to learn Dvorak or Neo, I made my own. But there are
some ready-made ones around, too, e.g.
http://freenet-homepage.de/lutz_mader/keyboards.html

I don't miss the old TeX ligatures.

Greetlings, Hraban
___
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] using `` '' the output is wrong.

2010-01-18 Thread Hans Hagen

On 18-1-2010 14:15, Alan BRASLAU wrote:


This is true of many standard TeX ligatures (is this the right word here?)


actually they are inoput tricks misusing tex's ligature mechanism and 
there are also some weird ones (never used in practice)



such as ... (\ldots, \dots also works),  (\og),  (\fg), ` (\glqq),
' (\grqq), ~ (unbreakable space), etc.


~ is a macro


This can be a bit disturbing for experienced TeX users.

OK, \quotation{} is cleaner and of course using unicode
characters may be even more readable, sometimes.

I have very mixed feelings, as I know how to type ...
but I never can recall the keyboard gymnastics necessary
to get this in unicode.


\somenameforasymbol is always okay

but as taco mentioned ... in mkiv these pseudo ligs are sort of gone

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] numbered itemize

2010-01-18 Thread Hans Hagen

On 18-1-2010 10:32, Peter Münster wrote:

On Sun, Jan 17 2010, Wolfgang Schuster wrote:



Bug or feature?  Should we add it to the tracker?


Bug, I think. Can you add them?


Ok, done.


can you check the beta ...

\starttext

\setupitemize[start=9]

\startitemize[n][itemalign=flushright]
\dorecurse{2}{\item bla}
\stopitemize

\setupitemize[start=9]

\startitemize[n,fit][itemalign=flushright]
\dorecurse{2}{\item bla}
\stopitemize

\setupitemize[start=99]

\startitemize[n,fit][itemalign=flushright]
\dorecurse{2}{\item bla}
\stopitemize

\setupitemize[start=9]

\startitemize[n][itemalign=flushright,width=5cm,distance=2cm]
\dorecurse{2}{\item bla}
\stopitemize

\setupitemize[start=99]

\startitemize[n][itemalign=flushright,width=5cm,distance=2cm]
\dorecurse{2}{\item bla}
\stopitemize

\stoptext



-
  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] Is there the length of article title limited in bibliography with MkIV for Chinese?

2010-01-18 Thread Yanrui Li
Hi all,

If the .bib file includes a article with Chinese title, I found the
article's length should be equal or less than 22 characters. Once the length
is over 22 characters, the compile process will hang.

The following is an example:

%% filename: test.tex, it depends on the AdobeSongStd-Light.otf font.

\starttypescript[serif][zhfont]
\definefontsynonym[Serif][name:adobesongstd]
\definefontsynonym[SerifItalic][name:adobesongstd]
\stoptypescript

\starttypescript[myfonts]
\definetypeface[myfonts][rm][serif][zhfont]
\stoptypescript

\usetypescript[myfonts]
\setupbodyfont[myfonts,rm,11pt]

\setupbibtex[database=ref]

\starttext

测试\cite[测试]。

\placepublications

\stoptext


%% filename: ref.bib

@book{测试,
  title = {〇一二三四五六七八九〇一二三四五六七八九〇一二},
  author= {一二三},
  publisher = {四五六},
  year  = {2000},
}


After compiling the above test.tex, I can get the following test.bbl file:

\setuppublicationlist[samplesize={一00},totalnumber=1]

\startpublication[k=测试,t=book,
a={{一二三}},y=2000,
n=1,s=一00]
\author[]{}[]{}{一二三}
\pubyear{2000}
\title{〇一二三四五六七八九〇一二三四五六七八九〇一二}
\pubname{四五六}
\stoppublication


If I modify the ref.bib file, for example I add one Chinese character in the
title field:

%% filename: ref.bib

@book{测试,
  title = {〇一二三四五六七八九〇一二三四五六七八九〇一二三},
  author= {一二三},
  publisher = {四五六},
  year  = {2000},
}

When I compile the test.tex again, the compiling process stops here:

publications: loading database from test.bbl
(test.bbl
! String contains an invalid utf-8 sequence.
l.8 ...�九〇一二三四五六七八九〇一二
  ��%
?

I'm sure that all texts in my files are encoded with utf-8.

-- 
Best regards,

Li Yanrui
___
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] Is there the length of article title limited in bibliography with MkIV for Chinese?

2010-01-18 Thread Taco Hoekwater


Yanrui Li wrote:
 Hi all,
 
 If the .bib file includes a article with Chinese title, I found the
 article's length should be equal or less than 22 characters. Once the
 length is over 22 characters, the compile process will hang.
 

 %% filename: ref.bib
 
 @book{测试,
   title = {〇一二三四五六七八九〇一二三四五六七八九〇一二},

Bibtex is stupid enough to attempt to break this title over two
lines in its output, and it does so based on *bytes*, not characters.
The result is a linebreak in the middle of an utf sequence, which
is invalid. Please try this:

   title = {{〇一二三四五六七八九〇一二三四五六七八九〇一二}},

and if that doesn't work (but it should), maybe this will:

   title = {〇一二三四五六七八九〇一二%
三四五六七八九〇一二},

Best wishes,
Taco
___
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] Is there the length of article title limited in bibliography with MkIV for Chinese?

2010-01-18 Thread Yanrui Li
2010/1/18 Taco Hoekwater t...@elvenkind.com



 Yanrui Li wrote:
  Hi all,
 
  If the .bib file includes a article with Chinese title, I found the
  article's length should be equal or less than 22 characters. Once the
  length is over 22 characters, the compile process will hang.
 

  %% filename: ref.bib
 
  @book{测试,
title = {〇一二三四五六七八九〇一二三四五六七八九〇一二},

 Bibtex is stupid enough to attempt to break this title over two
 lines in its output, and it does so based on *bytes*, not characters.
 The result is a linebreak in the middle of an utf sequence, which
 is invalid. Please try this:

   title = {{〇一二三四五六七八九〇一二三四五六七八九〇一二}},


It doesn't work.



 and if that doesn't work (but it should), maybe this will:

   title = {〇一二三四五六七八九〇一二%
三四五六七八九〇一二},


It results the output including %. But I find

  title = {〇一二三四五六七八九〇一二
   三四五六七八九〇一二三},

can work :)

Thanks for your reminder.

-- 
Best regards,

Li Yanrui
___
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] Is there the length of article title limited in bibliography with MkIV for Chinese?

2010-01-18 Thread Hans Hagen

On 18-1-2010 15:14, Taco Hoekwater wrote:


Bibtex is stupid enough to attempt to break this title over two
lines in its output, and it does so based on *bytes*, not characters.

 The result is a linebreak in the middle of an utf sequence, which
 is invalid.

well, this might be the reason why we still have version 0.99 in spite 
of many announcements of 1.0 -)


i wonder if someone would notice if we'd remove this line length 
limitation (or maybe this is configureable in the cnf file?)


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] numbered itemize

2010-01-18 Thread Wolfgang Schuster

Am 18.01.10 14:59, schrieb Hans Hagen:

can you check the beta ...

There is a problem with the horizontal spacing.

\showframe

\starttext

\setupitemize[start=9]

\startitemize[n]
\dorecurse{2}{\item bla}
\stopitemize

\setupitemize[start=9]

\startitemize[n][itemalign=flushright]
\dorecurse{2}{\item bla}
\stopitemize

\setupitemize[start=9]

\startitemize[n,fit][itemalign=flushright]
\dorecurse{2}{\item bla}
\stopitemize

\setupitemize[start=9]

\startitemize[n,fit][itemalign=flushright,distance=1cm]
\dorecurse{2}{\item bla}
\stopitemize

\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] Is there the length of article title limited in bibliography with MkIV for Chinese?

2010-01-18 Thread Taco Hoekwater


Hans Hagen wrote:
 On 18-1-2010 15:14, Taco Hoekwater wrote:
 
 Bibtex is stupid enough to attempt to break this title over two
 lines in its output, and it does so based on *bytes*, not characters.
 The result is a linebreak in the middle of an utf sequence, which
 is invalid.
 
 well, this might be the reason why we still have version 0.99 in spite
 of many announcements of 1.0 -)
 
 i wonder if someone would notice if we'd remove this line length
 limitation (or maybe this is configureable in the cnf file?)

Nope, only via recompile.
___
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] last chapter number

2010-01-18 Thread Andreas Harder

Am 18.01.2010 um 13:11 schrieb Hans Hagen:

 the beta now has
 
 \starttext
 
 \dorecurse {5} {
\chapter{Test #1}
first: \somestructureheadnumber[chapter][first]\par
current: \somestructureheadnumber[chapter][current]\par
last: \somestructureheadnumber[chapter][last]
\dorecurse {3} {
\section{Test #1}
first: \somestructureheadnumber[section][first]\par
current: \somestructureheadnumber[section][current]\par
last: \somestructureheadnumber[section][last]
}
 }
 
 \stoptext
 
 upto the two of you who wikifies this

Thanks a lot!

I’ve wikified your example.

Greetings
Andreas

___
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] last chapter number in Metapost

2010-01-18 Thread Andreas Harder

Am 18.01.2010 um 13:11 schrieb Hans Hagen:

 the beta now has
 
 \starttext
 
 \dorecurse {5} {
\chapter{Test #1}
first: \somestructureheadnumber[chapter][first]\par
current: \somestructureheadnumber[chapter][current]\par
last: \somestructureheadnumber[chapter][last]
\dorecurse {3} {
\section{Test #1}
first: \somestructureheadnumber[section][first]\par
current: \somestructureheadnumber[section][current]\par
last: \somestructureheadnumber[section][last]
}
 }
 
 \stoptext

One more question appeared: How to access them in a Metapost environment? I 
tried some methods but none of them seems to work.

% \setupMPvariables
%   [test]
%   [current={\somestructureheadnumber[chapter][current]},
%last={\somestructureheadnumber[chapter][last]}]

\startuseMPgraphic{test} 
  current := \somestructureheadnumber[chapter][current] ;
  last:= \somestructureheadnumber[chapter][last];
  % current := 2 ;
  % last:= 6 ;
  
  skip:= TextHeight * (current-1)/last ;
  StartPage ;
fill fullcircle scaled 3cm shifted (skip,skip) ;
  StopPage ;
\stopuseMPgraphic

\defineoverlay[test][\useMPgraphic{test}]

\setupbackgrounds[page][background=test]

\starttext
\dorecurse{6}{\chapter{Kapitel #1}
  Kapitel \somestructureheadnumber[chapter][current] von
  \somestructureheadnumber[chapter][last] }
\stoptext

Thank you in advance

Andreas

___
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] last chapter number in Metapost

2010-01-18 Thread Hans Hagen

On 18-1-2010 16:47, Andreas Harder wrote:


\startuseMPgraphic{test}
   current := \somestructureheadnumber[chapter][current] ;
   last:= \somestructureheadnumber[chapter][last];
   % current := 2 ;
   % last:= 6 ;

   skip:= TextHeight * (current-1)/last ;
   StartPage ;
 fill fullcircle scaled 3cm shifted (skip,skip) ;
   StopPage ;
\stopuseMPgraphic


not expandable and typeset ... so you i'll add

\somenamedheadnumber{chapter}{current}

-
  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] negative kerning

2010-01-18 Thread Horacio Suarez

hello all:

I need someting like a negative kerning to reduce some paragraphs length.

I was reading the mails but I didn´t find it or was too complex for me.

thankyou in advance.


Horacio Suarez

  
_
Windows Live: Keep your friends up to date with what you do online.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010___
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] negative kerning

2010-01-18 Thread Hans Hagen

On 18-1-2010 18:28, Horacio Suarez wrote:


hello all:

I need someting like a negative kerning to reduce some paragraphs length.

I was reading the mails but I didn´t find it or was too complex for me.


i'm not sure what you mean .. narrower?

\startnarrower[right]
...
\stopnarrower

otherwise you need to locally mess around with tolerance and penalties 
or the width of a space


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] negative kerning

2010-01-18 Thread Wolfgang Schuster

Am 18.01.10 18:28, schrieb Horacio Suarez:

hello all:

I need someting like a negative kerning to reduce some paragraphs length.

I was reading the mails but I didn´t find it or was too complex for me.

MkIV only:

\definecharacterkerning[packed]

\setupcharacterkerning[packed][factor=-.125]

\starttext

\input knuth

\start

\setcharacterkerning[packed]

\input knuth

\stop

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


[NTG-context] itemize

2010-01-18 Thread Hans Hagen

Hi,

I uploaded a beta with some mkiv adaptions of itemize, esp the 
itemalignment


\startitemize[n][width=3cm,itemalign=flushright,distance=1em]
\dorecurse{12}{\item test}
\stopitemize

it also works with fit and distance is now also hounoured; a side effect 
is that broad no longer is driven by distance but by a new parameter 
step (which default to the old value so hopefully there should be no 
compatibility issue)


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] negative kerning

2010-01-18 Thread Andreas Harder

Am 18.01.2010 um 18:40 schrieb Hans Hagen:

 On 18-1-2010 18:28, Horacio Suarez wrote:
 
 hello all:
 
 I need someting like a negative kerning to reduce some paragraphs length.
 
 I was reading the mails but I didn´t find it or was too complex for me.
 
 otherwise you need to locally mess around with tolerance and penalties or the 
 width of a space

What is the best way to „mess around“? Is it preferable (if changing the text 
or layout is no option) to set a bigger inter-word space or a more tolerant 
expansion or both? 

The latter I tried to achieve, but with no luck (attachment).


test-sloppypar2.tex
Description: Binary data


Perhaps someone has further/better suggestions …

Greetings
Andreas___
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] footnotes and naturalTABLES - Bug?

2010-01-18 Thread Bernhard Rosensteiner
Am 17.01.2010 um 22:46 schrieb Hans Hagen:

 On 17-1-2010 19:21, Bernhard Rosensteiner wrote:
 Hello all,
 
 when i place a footnote in a naturalTABLE the output at the bottom is always 
 multiplied by four per footnotemarker.
 In normal tables it works normal (see minimal example in attachment). Is 
 this a bug or make i something wrong?
 
 sort of a bug ... has to do with trialtypesetting runs (a mechanism that i 
 need to overhaul for mkiv)
 
 fixed in 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
 

Thanks for the quick fix!

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
___


Re: [NTG-context] negative kerning

2010-01-18 Thread Thomas A. Schmitz

On Jan 18, 2010, at 6:46 PM, Wolfgang Schuster wrote:

 MkIV only:
 
 \definecharacterkerning[packed]
 
 \setupcharacterkerning[packed][factor=-.125]
 
 \starttext
 
 \input knuth
 
 \start
 
 \setcharacterkerning[packed]
 
 \input knuth
 
 \stop
 
 \stoptext
 
 Wolfgang

Wow!! That is one of the best things I have read in a while - it means we can 
have proper gesperrten Text with proper hyphenation! Really excellent, thanks 
a lot for pointing this out, Wolfgang!

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