Re: [NTG-context] \definedescription[...][hang=fit] broken in latest beta?

2012-02-11 Thread Pablo Rodríguez
On 02/11/2012 06:48 AM, Wolfgang Schuster wrote:
 
 Am 10.02.2012 um 19:28 schrieb Pablo Rodríguez:
 
 Hi there,

 I'm not able to compile this code using the latest beta:

 \definedescription[optionlisting][hang=fit]
 \starttext
 \optionlisting{range} especifica espectro
 \stoptext

 Just in case it helps,
 
 1. You need a empty line or \par at the end of the description (or use 
 \startoptionlisting … \stopoptionlisting)
 
 2. Change this in strc-con.mkvi

Many thanks for your help, Wolfgang.

I'm afraid it doesn't work here (log below). Do I have to rebuild the
MKIV format?

! Incomplete \ifx; all text was ignored after line 3.
system   tex  error on line 0 in file : Incomplete \ifx; all
text was ignored after line 3 ...
empty file
inserted text
\fi
* ./a.tex
\stoptext
?
! Emergency stop.
system   tex  error on line 0 in file : Emergency stop ...
empty file
inserted text
\fi
* ./a.tex
\stoptext
!  == Fatal error occurred, no output PDF file produced!
Compilation failed.
mtx-context | fatal error: return code: 1

Thanks again for your help,


Pablo
-- 
http://www.oudeis.tk
___
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] \definedescription[...][hang=fit] broken in latest beta?

2012-02-11 Thread Wolfgang Schuster

Am 11.02.2012 um 13:27 schrieb Pablo Rodríguez:

 On 02/11/2012 06:48 AM, Wolfgang Schuster wrote:
 
 Am 10.02.2012 um 19:28 schrieb Pablo Rodríguez:
 
 Hi there,
 
 I'm not able to compile this code using the latest beta:
 
 \definedescription[optionlisting][hang=fit]
 \starttext
 \optionlisting{range} especifica espectro
 \stoptext
 
 Just in case it helps,
 
 1. You need a empty line or \par at the end of the description (or use 
 \startoptionlisting … \stopoptionlisting)
 
 2. Change this in strc-con.mkvi
 
 Many thanks for your help, Wolfgang.
 
 I'm afraid it doesn't work here (log below). Do I have to rebuild the
 MKIV format?

Yes because the when you run “context --make …” tex reads all source files
and save them as memory dump with the name cont-xx.fmt on the disk which
which is faster to read than then each file one by one. There are a few files
which aren’t included in the format like typescripts (type-xx.mkiv) where
you can make changes without regenerating the format.

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] \definedescription[...][hang=fit] broken in latest beta?

2012-02-11 Thread Pablo Rodríguez
On 02/11/2012 01:46 PM, Wolfgang Schuster wrote:
 
 Am 11.02.2012 um 13:27 schrieb Pablo Rodríguez:
 
 On 02/11/2012 06:48 AM, Wolfgang Schuster wrote:

 Am 10.02.2012 um 19:28 schrieb Pablo Rodríguez:

 Hi there,

 I'm not able to compile this code using the latest beta:

 \definedescription[optionlisting][hang=fit]
 \starttext
 \optionlisting{range} especifica espectro
 \stoptext

 Just in case it helps,

 1. You need a empty line or \par at the end of the description (or use 
 \startoptionlisting … \stopoptionlisting)

 2. Change this in strc-con.mkvi

 Many thanks for your help, Wolfgang.

 I'm afraid it doesn't work here (log below). Do I have to rebuild the
 MKIV format?
 
 Yes because the when you run “context --make …” tex reads all source files
 and save them as memory dump with the name cont-xx.fmt on the disk which
 which is faster to read than then each file one by one. There are a few files
 which aren’t included in the format like typescripts (type-xx.mkiv) where
 you can make changes without regenerating the format.

Thanks for your help and the explanation, Wolfgang.

I'm afraid that it doesn't work even after regenerating the format
(mtxrun --selfupdate  mtxrun --generate  luatools --generate 
context --make, as suggested by the wiki).

The error message is the following:

! Incomplete \ifx; all text was ignored after line 3.
system   tex  error on line 0 in file : Incomplete \ifx; all
text was ignored after line 3 ...
empty file
inserted text
\fi
* ./a.tex
\stoptext
?
! Emergency stop.
system   tex  error on line 0 in file : Emergency stop ...
empty file
inserted text
\fi
* ./a.tex
\stoptext
!  == Fatal error occurred, no output PDF file produced!
mtx-context | fatal error: return code: 1
Compilation failed.

Thanks for your help,


Pablo
-- 
http://www.oudeis.tk
___
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] \definedescription[...][hang=fit] broken in latest beta?

2012-02-11 Thread Wolfgang Schuster

Am 11.02.2012 um 15:12 schrieb Pablo Rodríguez:

 Thanks for your help and the explanation, Wolfgang.
 
 I'm afraid that it doesn't work even after regenerating the format
 (mtxrun --selfupdate  mtxrun --generate  luatools --generate 
 context --make, as suggested by the wiki).

Here is what I did:

1. I changed in \strc_constructions_set_hang “\fi” to ”\fi\fi\fi“.

2. I typed “context --make en” in the shell.

3. I processed the example without errors.

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] \definedescription[...][hang=fit] broken in latest beta?

2012-02-11 Thread Pablo Rodríguez
On 02/11/2012 03:20 PM, Wolfgang Schuster wrote:
 Here is what I did:
 
 1. I changed in \strc_constructions_set_hang “\fi” to ”\fi\fi\fi“.
 
 2. I typed “context --make en” in the shell.

After running context --make en the error was gone.

Thanks for your help,


Pablo
-- 
http://www.oudeis.tk
___
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] \definedescription[...][hang=fit] broken in latest beta?

2012-02-10 Thread Wolfgang Schuster

Am 10.02.2012 um 19:28 schrieb Pablo Rodríguez:

 Hi there,
 
 I'm not able to compile this code using the latest beta:
 
 \definedescription[optionlisting][hang=fit]
 \starttext
 \optionlisting{range} especifica espectro
 \stoptext
 
 Just in case it helps,

1. You need a empty line or \par at the end of the description (or use 
\startoptionlisting … \stopoptionlisting)

2. Change this in strc-con.mkvi

\def\strc_constructions_set_hang#1%
  {\edef\p_hang{\constructionparameter\c!hang}%
   \ifx\p_hang\empty
   \else\ifx\p_hang\v!fit
 \scratchdimen\htdp\constructionheadbox
 \getnoflines\scratchdimen
 \hangafter-\noflines
   \else\ifx\p_hang\v!broad
 \scratchdimen\dimexpr\htdp\constructionheadbox+.5\strutht\relax
 \getnoflines\scratchdimen
 \hangafter-\noflines
   \else
 \hangafter-\p_hang
-  \fi
+  \fi\fi\fi
   \relax
   \hangindent\ifx#1\v!right-\fi\constructionsheadwidth}

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
___