Re: [NTG-context] Surprising changes in vers. 2012.01.11

2012-01-12 Thread Mari Voipio
On Wed, Jan 11, 2012 at 14:22, Steffen Wolfrum cont...@st.estfiles.de wrote:
 testing the current beta gave me several errors and Undefined control 
 sequence,

Yep. This is my newest find (and this code worked last week...):


:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
! Illegal unit of measure (pt inserted).

system   tex  error on line 212 in file fico.tex: Illegal
unit of measure (pt inserted) ...

202 % paragraph formatted right for the specification itself
203 \definetabulate[specstable][|il|p|]
204 \setuptabulate[bodyfont=8pt]
205
206
207
208 % -- COVERS, generic settings -
209
210
211 \definelayer[etukansi]
212   [x=0mm,y=0mm,width=\paperwidth,height=\paperheight]
213
214 \definelayer[takakansi]
215 [x=0mm,y=0mm,width=\paperwidth,height=\paperheight]
216
217 \useexternalfigure[kplogo][kplogo][width=4cm]
218 \useexternalfigure[fico_cover][fico_cover_graphic]%[width=4cm]
219
220
221
222

to be read again
   h
l.212 [x=0mm,y=0mm,width=\paperwidth,h
  eight=\paperheight]
?



Regards,

Mari
___
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] Surprising changes in vers. 2012.01.11

2012-01-12 Thread luigi scarso
On Thu, Jan 12, 2012 at 9:58 AM, Mari Voipio mari.voi...@iki.fi wrote:

 On Wed, Jan 11, 2012 at 14:22, Steffen Wolfrum cont...@st.estfiles.de
 wrote:
  testing the current beta gave me several errors and Undefined control
 sequence,

 Yep. This is my newest find (and this code worked last week...):



 :/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
 ! Illegal unit of measure (pt inserted).

 system   tex  error on line 212 in file fico.tex: Illegal
 unit of measure (pt inserted) ...

 202 % paragraph formatted right for the specification itself
 203 \definetabulate[specstable][|il|p|]
 204 \setuptabulate[bodyfont=8pt]
 205
 206
 207
 208 % -- COVERS, generic settings -
 209
 210
 211 \definelayer[etukansi]
 212   [x=0mm,y=0mm,width=\paperwidth,height=\paperheight]
 213
 214 \definelayer[takakansi]
 215 [x=0mm,y=0mm,width=\paperwidth,height=\paperheight]
 216
 217 \useexternalfigure[kplogo][kplogo][width=4cm]
 218 \useexternalfigure[fico_cover][fico_cover_graphic]%[width=4cm]
 219
 220
 221
 222

 to be read again
   h
 l.212 [x=0mm,y=0mm,width=\paperwidth,h
  eight=\paperheight]
 ?



 Regards,

 Mari

this is ok with
ConTeXt  ver: 2012.01.11 14:58 MKIV  fmt: 2012.1.12  int: english/english

\definelayer[etukansi]
  [x=0mm,
   y=0mm,
   width=\paperwidth,
   height=\paperheight]

\starttext
\input knuth\par
\stoptext

Do you have a smaller complete example ?




-- 
luigi
___
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] Surprising changes in vers. 2012.01.11

2012-01-12 Thread Steffen Wolfrum

Am 11.01.2012 um 17:46 schrieb Steffen Wolfrum:
 
 Am 11.01.2012 um 13:22 schrieb Steffen Wolfrum:
 
 Hi,
 
 testing the current beta gave me several errors and Undefined control 
 sequence, 
 ...



And the numbers of the footnote (= the note's marker) are set smaller with 
current beta (when using the same settings as in December)!

How can they be addressed (and set a bit bigger again)?


[Just to be clear: I don't mean the footnote's text, nor the number in front of 
it. I only mean the number/marker in the text where \footnote{...} is placed]


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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Steffen Wolfrum

Am 11.01.2012 um 13:22 schrieb Steffen Wolfrum:

 Hi,
 
 testing the current beta gave me several errors and Undefined control 
 sequence, 
 
 for example \showframe 
 (must not be used before \starttext anymore?}
 
 but what about
 \definetolerancemethod[...][...]{...}
 
 
 Is this repleaced or deleted?


and what about

\definewhitespacemethod[...]{...}

?


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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Steffen Wolfrum

Am 11.01.2012 um 13:40 schrieb Steffen Wolfrum:

 
 Am 11.01.2012 um 13:22 schrieb Steffen Wolfrum:
 
 Hi,
 
 testing the current beta gave me several errors and Undefined control 
 sequence, 
 
 for example \showframe 
 (must not be used before \starttext anymore?}
 
 but what about
 \definetolerancemethod[...][...]{...}
 
 
 Is this repleaced or deleted?
 
 
 and what about
 
 \definewhitespacemethod[...]{...}


Using

 \usemodule[ancientgreek][font=Gentium,scale=1]

now gives ...


resolversmodules  loaded: 'ancientgreek'
(/Users/steffen/context/tex/texmf-local/tex/context/third/greek/t-ancientgreek.mkiv
loading  module ancientgreek
(/Users/steffen/context/tex/texmf-local/tex/context/third/greek/type-agr.tex)
! Missing control sequence inserted.

system   tex  error on line 92 in file 2012_teste.tex: Missing 
control sequence inserted ...


inserted text 
\inaccessible 
to be read again 
   {
l.92 \define{
 \sampi}{\greeksampi}
? 



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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Hans Hagen

On 11-1-2012 13:22, Steffen Wolfrum wrote:

Hi,

testing the current beta gave me several errors and Undefined control 
sequence,

for example \showframe
(must not be used before \starttext anymore?}

but what about
\definetolerancemethod[...][...]{...}


Is this repleaced or deleted?


Yes, these 'definers' were never party of the official interface and 
they are now all \install*method commands that take the same number of 
arguments but without []. I might (re)introduce \define variants at some 
point (probably with key/values then). This is just to make low level 
configuration more consistent. After all, some of these definers expect 
knowledge of internals.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread luigi scarso
On Wed, Jan 11, 2012 at 1:22 PM, Steffen Wolfrum cont...@st.estfiles.dewrote:

 Hi,

 testing the current beta gave me several errors and Undefined control
 sequence,

 for example \showframe
 (must not be used before \starttext anymore?}


It's a matter of font still not defined at that point: just pickup a body
font
\setupbodyfont[lmroman]
\showframe
\starttext
\input knuth\par
\stoptext

-- 
luigi
___
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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Hans Hagen

On 11-1-2012 13:50, Steffen Wolfrum wrote:


to be read again
{
l.92 \define{
  \sampi}{\greeksampi}


hm, i didn't know anyone was using it that way

\define\sampi{\greeksampi}

should work ok. I'll be a bot more tolerant then.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Thomas A. Schmitz

On 1/11/12 2:01 PM, Hans Hagen wrote:

hm, i didn't know anyone was using it that way

\define\sampi{\greeksampi}

should work ok. I'll be a bot more tolerant then.

Hans


Was just about to write; I had found that too about two weeks ago. I 
don't know if it's incorrect syntax, but it had been working for many 
years, before you started rewriting TeX from scratch :-)


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
___


Re: [NTG-context] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Hans Hagen

On 11-1-2012 14:17, Thomas A. Schmitz wrote:

On 1/11/12 2:01 PM, Hans Hagen wrote:

hm, i didn't know anyone was using it that way

\define\sampi{\greeksampi}

should work ok. I'll be a bot more tolerant then.

Hans


Was just about to write; I had found that too about two weeks ago. I
don't know if it's incorrect syntax, but it had been working for many
years, before you started rewriting TeX from scratch :-)


well, it's hard to imagine how users use commands

i fixed it anyway

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Hans Hagen

On 11-1-2012 13:55, luigi scarso wrote:

On Wed, Jan 11, 2012 at 1:22 PM, Steffen Wolfrumcont...@st.estfiles.dewrote:


Hi,

testing the current beta gave me several errors and Undefined control
sequence,

for example \showframe
(must not be used before \starttext anymore?}



It's a matter of font still not defined at that point: just pickup a body
font
\setupbodyfont[lmroman]
\showframe
\starttext
\input knuth\par
\stoptext


I made showframe work before \starttext but in general Luigi's advice 
has to be followed: if you do anything with fonts before \starttext then 
you need to load a bodyfont.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Steffen Wolfrum

Am 11.01.2012 um 13:50 schrieb Steffen Wolfrum:

 
 Am 11.01.2012 um 13:40 schrieb Steffen Wolfrum:
 
 
 Am 11.01.2012 um 13:22 schrieb Steffen Wolfrum:
 
 Hi,
 
 testing the current beta gave me several errors and Undefined control 
 sequence, 
 ...



This example hangs:


\def\nobreakspace{~}

\setupbodyfont[times,10pt]\setupinterlinespace[line=12pt]

\starttext

test~text

\stoptext



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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread luigi scarso
On Wed, Jan 11, 2012 at 3:38 PM, Steffen Wolfrum cont...@st.estfiles.dewrote:


 Am 11.01.2012 um 13:50 schrieb Steffen Wolfrum:

 
  Am 11.01.2012 um 13:40 schrieb Steffen Wolfrum:
 
 
  Am 11.01.2012 um 13:22 schrieb Steffen Wolfrum:
 
  Hi,
 
  testing the current beta gave me several errors and Undefined control
 sequence,
  ...



 This example hangs:


 \def\nobreakspace{~}

 \setupbodyfont[times,10pt]\setupinterlinespace[line=12pt]

 \starttext

 test~text

 \stoptext



 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

 ___

hm, always dangerous to redefine lowercase macros
In this case I suspect an infinite recursive  definition
\unexpanded\def~{\nobreakspace}


-- 
luigi
___
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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread luigi scarso
On Wed, Jan 11, 2012 at 3:45 PM, luigi scarso luigi.sca...@gmail.comwrote:



 On Wed, Jan 11, 2012 at 3:38 PM, Steffen Wolfrum 
 cont...@st.estfiles.dewrote:


 Am 11.01.2012 um 13:50 schrieb Steffen Wolfrum:

 
  Am 11.01.2012 um 13:40 schrieb Steffen Wolfrum:
 
 
  Am 11.01.2012 um 13:22 schrieb Steffen Wolfrum:
 
  Hi,
 
  testing the current beta gave me several errors and Undefined
 control sequence,
  ...



 This example hangs:


 \def\nobreakspace{~}

 \setupbodyfont[times,10pt]\setupinterlinespace[line=12pt]

 \starttext

 test~text

 \stoptext



 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

 ___

 hm, always dangerous to redefine lowercase macros
 In this case I suspect an infinite recursive  definition
 \unexpanded\def~{\nobreakspace}

 sorry , too fast

~ is \nobreakspace
\unexpanded\def~{\nobreakspace}

and you define
\def\nobreakspace{~}

i.e. an infinte loop, I suppose.


-- 
luigi
___
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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Steffen Wolfrum

Am 11.01.2012 um 15:46 schrieb luigi scarso:

 
 
 On Wed, Jan 11, 2012 at 3:45 PM, luigi scarso luigi.sca...@gmail.com wrote:
 
 
 On Wed, Jan 11, 2012 at 3:38 PM, Steffen Wolfrum cont...@st.estfiles.de 
 wrote:
 
 Am 11.01.2012 um 13:50 schrieb Steffen Wolfrum:
 
 
  Am 11.01.2012 um 13:40 schrieb Steffen Wolfrum:
 
 
  Am 11.01.2012 um 13:22 schrieb Steffen Wolfrum:
 
  Hi,
 
  testing the current beta gave me several errors and Undefined control 
  sequence,
  ...
 
 
 
 This example hangs:
 
 
 \def\nobreakspace{~}
 
 \setupbodyfont[times,10pt]\setupinterlinespace[line=12pt]
 
 \starttext
 
 test~text
 
 \stoptext
 
 
 
 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
 ___
 hm, always dangerous to redefine lowercase macros
 In this case I suspect an infinite recursive  definition
 \unexpanded\def~{\nobreakspace}
 
 sorry , too fast
 
 ~ is \nobreakspace
 \unexpanded\def~{\nobreakspace}
 
 and you define 
 \def\nobreakspace{~}
 
 i.e. an infinte loop, I suppose.


hmm ... this line \def\nobreakspace{~} is part of my environment file for 
more than 7 years now!
(can't remember if it was necessary back then ...  ;o)

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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Hans Hagen

On 11-1-2012 15:46, luigi scarso wrote:


~ is \nobreakspace
\unexpanded\def~{\nobreakspace}

and you define
\def\nobreakspace{~}

i.e. an infinte loop, I suppose.


indeed, and it's a bonus that ~ == nobreakspace (although I can imagine 
that we'd get rid of it) but defining other macros in terms of active 
characters is a bad idea


(in fact one can use the unicode nbsp character)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Hans Hagen

On 11-1-2012 16:18, Steffen Wolfrum wrote:


hmm ... this line \def\nobreakspace{~} is part of my environment file for 
more than 7 years now!
(can't remember if it was necessary back then ...  ;o)


we're moving away from active characters and characters with special 
meanings so the reversal makes sense in mkiv


in fact, your definitions should have been some combination of skip and 
penalty as you cannot assume that ~ always has the same meaning (being 
activ emeans that its meaning can change)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread luigi scarso
On Wed, Jan 11, 2012 at 4:18 PM, Steffen Wolfrum cont...@st.estfiles.dewrote:


 hmm ... this line \def\nobreakspace{ is part of my environment file for
 more than 7 years now!
 (can't remember if it was necessary back then ...  ;o)

 Steffen


I have a
\def\nobreakspace{\penalty\plustenthousand\kern\interwordspace}
into  spac-gen.mkii (nov  5  2009 ...)
(and
\def~{\normalpenalty\!!tenthousand\ }
so your redefining is not a problem)

-- 
luigi
___
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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Steffen Wolfrum

Am 11.01.2012 um 15:38 schrieb Steffen Wolfrum:

 
 Am 11.01.2012 um 13:50 schrieb Steffen Wolfrum:
 
 
 Am 11.01.2012 um 13:40 schrieb Steffen Wolfrum:
 
 
 Am 11.01.2012 um 13:22 schrieb Steffen Wolfrum:
 
 Hi,
 
 testing the current beta gave me several errors and Undefined control 
 sequence, 
 ...



This one gives an Undefined control sequence.
It is somewhere in that patch Wolfgang gave me some time ago:


\setupbodyfont[times,10pt]\setupinterlinespace[line=12pt]


\def\dofloatboxnormalbotstackbuilder
 {\setbox\scratchbox\vbox
{\tempfloatwidth\wd\tempfloatbox
 \vskip5.0pt
 \ifparfloat
   \hbox{\hbox   {\box\tempfloatbox  }}%
   \dofloatboxbetweenstack
   \hbox{\locatesidefloat{\box\tempcaptionbox}}%
 \else
   \hbox{\locatefloat{\box\tempfloatbox  }}%
   \dofloatboxbetweenstack
   \hbox{\locatetextfloat{\box\tempcaptionbox}}%
 \fi\vss}
  \getnoflines{\dimexpr\htdp\scratchbox-10\scaledpoint\relax}% get rid of 
inaccuracy
  
\expanded{\doifinset{\v!overlay}{\floatcaptionparameter\c!location}}\bothangfloat
 {\vbox to \noflines\lineheight{\unvbox\scratchbox}}}
%% end.


\starttext

\placefigure[here]{blabla}{\vskip-9pt{\externalfigure[abbX][frame=off]}blabla}%

\stoptext



---
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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Hans Hagen

On 11-1-2012 16:48, Steffen Wolfrum wrote:


\def\dofloatboxnormalbotstackbuilder
  {\setbox\scratchbox\vbox
 {\tempfloatwidth\wd\tempfloatbox
  \vskip5.0pt
  \ifparfloat
\hbox{\hbox   {\box\tempfloatbox  }}%
\dofloatboxbetweenstack
\hbox{\locatesidefloat{\box\tempcaptionbox}}%
  \else
\hbox{\locatefloat{\box\tempfloatbox  }}%
\dofloatboxbetweenstack
\hbox{\locatetextfloat{\box\tempcaptionbox}}%
  \fi\vss}
   \getnoflines{\dimexpr\htdp\scratchbox-10\scaledpoint\relax}% get rid of 
inaccuracy
   
\expanded{\doifinset{\v!overlay}{\floatcaptionparameter\c!location}}\bothangfloat
  {\vbox to \noflines\lineheight{\unvbox\scratchbox}}}
%% end.


if you use that kind of low level hacks you should not harm your 
workflow by updating


all low level macros get renamed into their own namespace and are not 
supposed to be touched (unless of course one keeps also track of low 
level changes)


better is to extend the core code with options


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Wolfgang Schuster

Am 11.01.2012 um 16:36 schrieb luigi scarso:

 
 
 On Wed, Jan 11, 2012 at 4:18 PM, Steffen Wolfrum cont...@st.estfiles.de 
 wrote:
 
 hmm ... this line \def\nobreakspace{ is part of my environment file for 
 more than 7 years now!
 (can't remember if it was necessary back then ...  ;o)
 
 Steffen
 
 I have a
 \def\nobreakspace{\penalty\plustenthousand\kern\interwordspace}
 into  spac-gen.mkii (nov  5  2009 ...)
 (and
 \def~{\normalpenalty\!!tenthousand\ }
 so your redefining is not a problem)

spac-gen.mkii is used for MkII, for MkIV look into space-chr.mkiv.

\unexpanded\def~{\nobreakspace}

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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Alan Braslau
On Wed, Jan 11, 2012 at 04:23:28PM +0100, Hans Hagen wrote:
 
 indeed, and it's a bonus that ~ == nobreakspace (although I can imagine 
 that we'd get rid of it) but defining other macros in terms of active 
 characters is a bad idea
 
 (in fact one can use the unicode nbsp character)
 

I have always liked this TeX active character (~).

As information for users of X11:
setxkbmap -option nbsp:level2
(and the equivalent in xorg.conf or etc/hal/fdi/policy/x11-init.fdi)
gives nbsp as shift+space.

On the subject of unicode characters,
I just discovered the :dig command (diagraphs)
under my favorite editor vim!

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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Alan Braslau
On Wed, Jan 11, 2012 at 05:24:51PM +0100, Alan Braslau wrote:
 On Wed, Jan 11, 2012 at 04:23:28PM +0100, Hans Hagen wrote:
  
  indeed, and it's a bonus that ~ == nobreakspace (although I can imagine 
  that we'd get rid of it) but defining other macros in terms of active 
  characters is a bad idea
  
  (in fact one can use the unicode nbsp character)
  
 
 I have always liked this TeX active character (~).
 
 As information for users of X11:
 setxkbmap -option nbsp:level2
 (and the equivalent in xorg.conf or etc/hal/fdi/policy/x11-init.fdi)
 gives nbsp as shift+space.
 
 On the subject of unicode characters,
 I just discovered the :dig command (diagraphs)
 under my favorite editor vim!

Follow-up:

:se list lcs=nbsp:~

makes me feel right at home with my traditional TeX usage...

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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Hans Hagen

On 11-1-2012 17:33, Alan Braslau wrote:

On Wed, Jan 11, 2012 at 05:24:51PM +0100, Alan Braslau wrote:

On Wed, Jan 11, 2012 at 04:23:28PM +0100, Hans Hagen wrote:


indeed, and it's a bonus that ~ == nobreakspace (although I can imagine
that we'd get rid of it) but defining other macros in terms of active
characters is a bad idea

(in fact one can use the unicode nbsp character)



I have always liked this TeX active character (~).

As information for users of X11:
setxkbmap -option nbsp:level2
(and the equivalent in xorg.conf or etc/hal/fdi/policy/x11-init.fdi)
gives nbsp as shift+space.

On the subject of unicode characters,
I just discovered the :dig command (diagraphs)
under my favorite editor vim!


Follow-up:

:se list lcs=nbsp:~

makes me feel right at home with my traditional TeX usage...


my favourite editor shows a nice orange blob when it sees a non 
breakable space


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Khaled Hosny
On Wed, Jan 11, 2012 at 05:42:38PM +0100, Hans Hagen wrote:
 Follow-up:
 
 :se list lcs=nbsp:~
 
 makes me feel right at home with my traditional TeX usage...
 
 my favourite editor shows a nice orange blob when it sees a non
 breakable space

In vim, one can add this to his ~/.vimrc:

highlight NobreakSpace ctermbg=yellow
match NobreakSpace / /

(the space in / / is nbsp)

Regards,
 Khaled
___
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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Wolfgang Schuster

Am 11.01.2012 um 17:46 schrieb Steffen Wolfrum:

 ... and what's wrong with this (only reproducible in project structure, see 
 attached)?
 
 chap_x.tex only has these 3 minimal lines:
 
 \setupalign[line,block,hanging]
 
 \setupexternalfigures[directory={./Figuren,../Figuren}]
 
 \placefigure[force]{test}{\externalfigure[abb5][frame=off]}


Unrelated to project structure.

\setupalign[line]%\setfalse\raggedonelinerstate

\starttext
\externalfigure[cow]
\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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Steffen Wolfrum

Am 11.01.2012 um 20:31 schrieb Wolfgang Schuster:

 \setupalign[line]%\setfalse\raggedonelinerstate
 
 \starttext
 \externalfigure[cow]
 \stoptext


That's new... \setfalse\raggedonelinerstate wasn't needed with 2011.11.29, at 
least.
Why is it necessary now?

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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Wolfgang Schuster

Am 11.01.2012 um 20:44 schrieb Steffen Wolfrum:

 
 Am 11.01.2012 um 20:31 schrieb Wolfgang Schuster:
 
 \setupalign[line]%\setfalse\raggedonelinerstate
 
 \starttext
 \externalfigure[cow]
 \stoptext
 
 
 That's new... \setfalse\raggedonelinerstate wasn't needed with 2011.11.29, 
 at least.
 Why is it necessary now?

You don’t need it and you shouldn’t put it in your document. The problem is
the setting \setupalign[line] which breaks \externalfigure but when the 
conditional
\raggedonelinestate is false (can be also achieved when you set a value for
the align key in \externalfigure) it works.

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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Hans Hagen

On 11-1-2012 20:31, Wolfgang Schuster wrote:


Am 11.01.2012 um 17:46 schrieb Steffen Wolfrum:


... and what's wrong with this (only reproducible in project structure, see 
attached)?

chap_x.tex only has these 3 minimal lines:

\setupalign[line,block,hanging]

\setupexternalfigures[directory={./Figuren,../Figuren}]

\placefigure[force]{test}{\externalfigure[abb5][frame=off]}



Unrelated to project structure.

\setupalign[line]%\setfalse\raggedonelinerstate

\starttext
\externalfigure[cow]
\stoptext


indeed, that reset had to be added to the 'none' case

(but I had no time to make a new beta yet)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Hans Hagen

On 11-1-2012 20:51, Wolfgang Schuster wrote:


Am 11.01.2012 um 20:44 schrieb Steffen Wolfrum:



Am 11.01.2012 um 20:31 schrieb Wolfgang Schuster:


\setupalign[line]%\setfalse\raggedonelinerstate

\starttext
\externalfigure[cow]
\stoptext



That's new... \setfalse\raggedonelinerstate wasn't needed with 2011.11.29, at 
least.
Why is it necessary now?


You don’t need it and you shouldn’t put it in your document. The problem is
the setting \setupalign[line] which breaks \externalfigure but when the 
conditional
\raggedonelinestate is false (can be also achieved when you set a value for
the align key in \externalfigure) it works.


and the alignstate variable might become private anyway, so setting it 
in your style is not robust


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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
___