[NTG-context] Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
I keep bumping into this error, I have no idea what may be causing it, in a
statistics book with lots of math:

registered function call [250]:
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:749: attempt to
index a nil value (local 'a2')

I have checked everything. I have tried commenting out many things and the
weird part is that it fails in a simple math expression: \math{E_{i}j}.
Even a simple $y$ or \math{a+b} will trigger the error. However, this same
file Im working on has many formulas before that, those work fine. I
changed all the $...$ to \math{...} just in case, but with no success.

Already tried remaking, regenerating, updating the distribution.

Do you have any ideas to work this out? I don't know how to provide a MWE
for this because it's a very big project (statistics book).

I have tried 2 versions, the system-wide one, just upgraded:
mtx-context | ConTeXt Process Management 1.06
mtx-context | current version: 2024.02.22 18:31

And a less recent version, attached to the project:
mtx-context | ConTeXt Process Management 1.05
mtx-context | current version: 2024.02.14 13:38


Any help will be much appreciated.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] Strange error with combination of itemization, footnote and \crlf

2019-11-04 Thread Pablo Rodriguez
On 10/31/19 11:43 AM, cont...@vivaldi.net wrote:
> Hello Hans,
>
> when do you plan to release next beta for ConTeXt with the fixed issue
> spoken bellow?

Hi Lukas,

I compile your minimal sample using any of these:

  LuaTeX 1.11 7215 + ConTeXt MkIV 2019.10.29 15:00
  LuaTeX 2.00 20190729 + ConTeXt MkIV 2019.10.28 18:57

Does none of them work for you?

Just in case it helps,

Pablo


> On 2019-10-22 23:54, Hans Hagen wrote:
>> On 10/22/2019 2:16 PM, cont...@vivaldi.net wrote:
>>> Hello,
>>>
>>> here is a minimal sample which doesn't compile:
>>>
>>> 
>>> \starttext
>>>    \startitemize
>>>      \item
>>>    A\footnote{%
>>>      B
>>>      \startitemize
>>>    \item C
>>>      \stopitemize
>>>    }\crlf
>>>    D
>>>
>>>      \item E %  This sample compiles when this line is commented
>>> (?!)
>>>    \stopitemize
>>> \stoptext
>>> 
>>>
>>> The error message is:
>>>
>>> "
>>> ...
>>> ...eta/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:465:
>>> attempt to index a nil value (local 'd')
>>>
>>>   2   \startitemize
>>>   3 \item
>>>   4   A\footnote{%
>>>   5 B
>>>   6 \startitemize
>>>   7   \item C
>>>   8 \stopitemize
>>>   9   }\crlf
>>> 10   D
>>> 11
>>> 12 >>  \item E %  This sample compiles when this line is
>>> commented
>>> 13   \stopitemize
>>> 14 \stoptext
>>> 15
>>> "
>>>
>>> When the "\item E" is commented, the sample compiles successfully.
>>>
>>> ConTeXt version: "ConTeXt  ver: 2019.10.11 15:47 MKIV beta  fmt:
>>> 2019.10.16  int: english/english".
>>>
>>> Any idea what's going wrong?
>> side effect of recent attempt to deal with nesting ... fixed in next
>> beta
>>
>> -
>>   Hans Hagen | PRAGMA ADE
>>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
>


--
http://www.ousia.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Strange error with combination of itemization, footnote and \crlf

2019-10-31 Thread context

Hello Hans,

when do you plan to release next beta for ConTeXt with the fixed issue 
spoken bellow?


Normally, one can get beta here:

http://www.pragma-ade.nl/download-2.htm

but there is still beta from 2019-10-29.

(I'm still using Lua 5.3 version of ConTeXt.)

Or is it enough to re-run "first-setup.bat" from the ConTeXt 
installation directory, which uses "rsync" (points to 
"rsync://contextgarden.net/minimals/setup/mswin/bin/" and launches 
"mtxrun --script ./bin/mtx-update.lua")?


Best regards,

Lukas


On 2019-10-22 23:54, Hans Hagen wrote:

On 10/22/2019 2:16 PM, cont...@vivaldi.net wrote:

Hello,

here is a minimal sample which doesn't compile:


\starttext
   \startitemize
     \item
   A\footnote{%
     B
     \startitemize
   \item C
     \stopitemize
   }\crlf
   D

     \item E %  This sample compiles when this line is commented 
(?!)

   \stopitemize
\stoptext


The error message is:

"
...
...eta/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:465: 
attempt to index a nil value (local 'd')


  2   \startitemize
  3 \item
  4   A\footnote{%
  5 B
  6 \startitemize
  7   \item C
  8 \stopitemize
  9   }\crlf
10   D
11
12 >>  \item E %  This sample compiles when this line is 
commented

13   \stopitemize
14 \stoptext
15
"

When the "\item E" is commented, the sample compiles successfully.

ConTeXt version: "ConTeXt  ver: 2019.10.11 15:47 MKIV beta  fmt: 
2019.10.16  int: english/english".


Any idea what's going wrong?
side effect of recent attempt to deal with nesting ... fixed in next 
beta


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Strange error with combination of itemization, footnote and \crlf

2019-10-22 Thread Hans Hagen

On 10/22/2019 2:16 PM, cont...@vivaldi.net wrote:

Hello,

here is a minimal sample which doesn't compile:


\starttext
   \startitemize
     \item
   A\footnote{%
     B
     \startitemize
   \item C
     \stopitemize
   }\crlf
   D

     \item E %  This sample compiles when this line is commented (?!)
   \stopitemize
\stoptext


The error message is:

"
...
...eta/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:465: attempt 
to index a nil value (local 'd')


  2   \startitemize
  3 \item
  4   A\footnote{%
  5 B
  6 \startitemize
  7   \item C
  8 \stopitemize
  9   }\crlf
10   D
11
12 >>  \item E %  This sample compiles when this line is commented
13   \stopitemize
14 \stoptext
15
"

When the "\item E" is commented, the sample compiles successfully.

ConTeXt version: "ConTeXt  ver: 2019.10.11 15:47 MKIV beta  fmt: 
2019.10.16  int: english/english".


Any idea what's going wrong?

side effect of recent attempt to deal with nesting ... fixed in next beta

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Strange error with combination of itemization, footnote and \crlf

2019-10-22 Thread context

Hello,

here is a minimal sample which doesn't compile:


\starttext
  \startitemize
\item
  A\footnote{%
B
\startitemize
  \item C
\stopitemize
  }\crlf
  D

\item E %  This sample compiles when this line is commented (?!)
  \stopitemize
\stoptext


The error message is:

"
...
...eta/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:465: attempt 
to index a nil value (local 'd')


 2   \startitemize
 3 \item
 4   A\footnote{%
 5 B
 6 \startitemize
 7   \item C
 8 \stopitemize
 9   }\crlf
10   D
11
12 >>  \item E %  This sample compiles when this line is 
commented

13   \stopitemize
14 \stoptext
15
"

When the "\item E" is commented, the sample compiles successfully.

ConTeXt version: "ConTeXt  ver: 2019.10.11 15:47 MKIV beta  fmt: 
2019.10.16  int: english/english".


Any idea what's going wrong?

Best regards,

Lukas
open source > level 1, order 1, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2019.10.11 15:47 MKIV beta  fmt: 2019.10.16  
int: english/english
system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'

system  > jobfiles > using path: d:\\Lukas\\ConTeXt\\Styles
system  > files > jobname 't', input 
'D:\\Lukas\\Jobs\\Chrastany-D5.DSPPS\\SO_201\\~TZ~\\t.mkiv', result 't'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name 
'D://Lukas/Jobs/Chrastany-D5.DSPPS/SO_201/~TZ~/t.mkiv'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded

lua error   > lua error on line 12 in file 
D://Lukas/Jobs/Chrastany-D5.DSPPS/SO_201/~TZ~/t.mkiv:

...eta/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:465: attempt to 
index a nil value (local 'd')

 2   \startitemize
 3 \item
 4   A\footnote{%
 5 B
 6 \startitemize
 7   \item C
 8 \stopitemize
 9   }\crlf
10   D
11 
12 >>  \item E %  This sample compiles when this line is commented
13   \stopitemize
14 \stoptext
15 

\starttext
  \startitemize
\item
  A\footnote{%
B
\startitemize
  \item C
\stopitemize
  }\crlf
  D

\item E %  This sample compiles when this line is commented
  \stopitemize
\stoptext
\starttext
  \startitemize
\item
  A\footnote{%
B
\startitemize
  \item C
\stopitemize
  }\crlf
  D

%\item E %  This sample compiles when this line is commented
  \stopitemize
\stoptext


t-OK.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Strange error updatng LMTX

2019-07-11 Thread Hans Hagen

On 7/11/2019 4:53 AM, Henri Menke wrote:

\c!compressdistance is defined in strc-lnt.mkvi which is loaded *after*
strc-flt.mkvi (where it is used) in context.mkiv.  This has to be fixed
by Hans.


no, the definitions there are just some leftovers from when that module 
was developed, so these 5 can go there; keywords are defined in 
mult-def.lua


maybe just try to update again (maybe one file was not fetched right)
 (i cannot update lmtx now because alan and i need to test some more or 
less fundamental adaptions in the tex/mp engine first)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Strange error updatng LMTX

2019-07-10 Thread Henri Menke
\c!compressdistance is defined in strc-lnt.mkvi which is loaded *after*
strc-flt.mkvi (where it is used) in context.mkiv.  This has to be fixed
by Hans.

Cheers, Henri

On 11/07/19 2:45 PM, Andres Conrado wrote:
> When updating my LMTX installation today, I got this:
> 
> tex error   > tex error on line 179 in file
> /home/conrado/Apps/lmtx/tex/texmf-context/tex/context/base/mkiv/strc-flt.mkvi:
> ! Undefined control sequence
> 
>  \c!compressdistance
> =\emwidth
> \mult_interfaces_get_parameters_item ...2->\if ,#1
>   ,\expandafter 
> \mult_interf...
> \mult_interfaces_get_parameters_indeed ...tem #1,]
>   ,
> \setup_float ...es_get_parameters {\??float :}[#1]
>   \the \everysetupfloat \fi 
> ...
>  \syst_helpers_double_empty_two_nop
> \par
> l.179
> 
> 
> 169\c!bottomoffset=\zeropoint,
> 170\c!freeregion=\v!yes,
> 171   %\c!local=,
> 172   %\c!bottombefore=, % e.g. \vfill
> 173   %\c!bottomafter=,
> 174   %\c!default=, % default location
> 175\c!sidethreshold=.5\strutdp, % set to "old" to check with old 
> method
> 176\c!numbering=\v!yes,
> 177\c!compress=\v!yes, % when possible pack floats when flushing
> 178\c!compressdistance=\emwidth]
> 179 >>
> 180 \setupfloatframed
> 181   [\c!frame=\v!off,
> 182\c!offset=\v!overlay,
> 183\c!strut=\v!no]
> 184
> 185 \appendtoks
> 186 
> \doifelse{\floatparameter\c!compress}\v!yes\settrue\setfalse\c_page_floats_pack_flushed
> 187 
> \d_page_floats_compress_distance\floatparameter\c!compressdistance\relax
> 188 \to \everysetupfloat
> 189
> 
> 
> The control sequence at the end of the top line
> of your error message was never \def'ed. If you have
> misspelled it (e.g., '\hobx'), type 'I' and the correct
> spelling (e.g., 'I\hbox'). Otherwise just continue,
> and I'll forget about whatever was undefined.
> 
> Seems to affect the floats mechanism.
> 
> Andrés Conrado Montoya
> http://chiquitico.org
> 
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> 

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Strange error updatng LMTX

2019-07-10 Thread Andres Conrado
When updating my LMTX installation today, I got this:

tex error   > tex error on line 179 in file
/home/conrado/Apps/lmtx/tex/texmf-context/tex/context/base/mkiv/strc-flt.mkvi:
! Undefined control sequence

 \c!compressdistance
=\emwidth
\mult_interfaces_get_parameters_item ...2->\if ,#1
  ,\expandafter \mult_interf...
\mult_interfaces_get_parameters_indeed ...tem #1,]
  ,
\setup_float ...es_get_parameters {\??float :}[#1]
  \the \everysetupfloat \fi ...
 \syst_helpers_double_empty_two_nop
\par
l.179


169\c!bottomoffset=\zeropoint,
170\c!freeregion=\v!yes,
171   %\c!local=,
172   %\c!bottombefore=, % e.g. \vfill
173   %\c!bottomafter=,
174   %\c!default=, % default location
175\c!sidethreshold=.5\strutdp, % set to "old" to check with old method
176\c!numbering=\v!yes,
177\c!compress=\v!yes, % when possible pack floats when flushing
178\c!compressdistance=\emwidth]
179 >>
180 \setupfloatframed
181   [\c!frame=\v!off,
182\c!offset=\v!overlay,
183\c!strut=\v!no]
184
185 \appendtoks
186 
\doifelse{\floatparameter\c!compress}\v!yes\settrue\setfalse\c_page_floats_pack_flushed
187 
\d_page_floats_compress_distance\floatparameter\c!compressdistance\relax
188 \to \everysetupfloat
189


The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., '\hobx'), type 'I' and the correct
spelling (e.g., 'I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Seems to affect the floats mechanism.

Andrés Conrado Montoya
http://chiquitico.org
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Strange error with bookmarks

2014-10-14 Thread Hans Hagen

On 10/14/2014 1:41 PM, Michał Goliński wrote:

It does indeed be somehow connected with the specific reader that
I use (okular). Nevertheless, evince gives the same error, and I have found out,
that even jpdfbookmarks_cli has problems as it raises an exception when I try
to dump the bookmarks:

   Exception in thread "main" java.lang.ClassCastException: 
com.lowagie.text.pdf.PdfNumber cannot be cast to com.lowagie.text.pdf.PdfString

Still, in Acrobat Readers it works perfectly.


better in next beta

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

[NTG-context] Strange error with bookmarks

2014-10-14 Thread Michał Goliński
It does indeed be somehow connected with the specific reader that
I use (okular). Nevertheless, evince gives the same error, and I have found out,
that even jpdfbookmarks_cli has problems as it raises an exception when I try
to dump the bookmarks:

  Exception in thread "main" java.lang.ClassCastException: 
com.lowagie.text.pdf.PdfNumber cannot be cast to com.lowagie.text.pdf.PdfString

Still, in Acrobat Readers it works perfectly.

In the meantime I have came up with a ConTeXt solution, so one can compare
the resulting PDF files. Unfortunately I have only a limited understanding
of the details of PDF files.

The file giving the error is:

\pdfcompresslevel=0 \pdfobjcompresslevel=0
\setupinteraction[state=start,focus=standard]
\placebookmarks[part,chapter][part,chapter][number=no]
\starttext
\chapter{0}
\startpart[title={A}]
  \chapter{1}
  \chapter{2}
\stoppart
\startpart[title={B}]
  \chapter{3}
  \chapter{4}
  \chapter{5}
  \chapter{6}
  \chapter{7}
  \chapter{8}
  \chapter{9}
  \chapter{10}
\stoppart
\completecontent[criterium=all]
\stoptext

While the following files gives no problems in the applications that I have
tested (note the last command):

\pdfcompresslevel=0 \pdfobjcompresslevel=0
\setupinteraction[state=start,focus=standard]
\placebookmarks[part,chapter][part,chapter][number=no]
\starttext
\chapter{0}
\startpart[title={A}]
  \chapter{1}
  \chapter{2}
\stoppart
\startpart[title={B}]
  \chapter{3}
  \chapter{4}
  \chapter{5}
  \chapter{6}
  \chapter{7}
  \chapter{8}
  \chapter{9}
  \chapter{10}
\stoppart
\placecontent[criterium=all]
\stoptext


On 8/29/2014 22:07 PM, Hans Hagen wrote:
> On 8/26/2014 1:45 PM, Michał Goliński wrote:
> > While trying to make a longer document with ConTeXt I stumbled into a
> > strange error with the latest beta (I spotted it for the first time some
> > time ago). For the following file:
> >
> > \setupinteraction[state=start,focus=standard]
> > \placebookmarks[part,chapter][part,chapter][number=no]
> > \starttext
> > \chapter{0}
> > \startpart[title={A}]
> >\chapter{1}
> >\chapter{2}
> > \stoppart
> > \startpart[title={B}]
> >\chapter{3}
> >\chapter{4}
> >\chapter{5}
> >\chapter{6}
> >\chapter{7}
> >\chapter{8}
> >\chapter{9}
> >\chapter{10}
> > \stoppart
> > \completecontent[criterium=all]
> > \stoptext
> >
> >
> > ConTeXt would generate a file in which the link for chapter "6" is not
> > working. Neither the link in the table of contents works nor the link in
> > the generated PDF bookmarks. When removing the second line, the link in
> > the table of contents doesn't work, but everyting is ok if one removes
> > the table of contents. What seems even more weird for me, the problem
> > goes away if one removes *any* chapter. It persists for chapter "6" even
> > if chapters are distributed differently between parts without changing
> > their order.
> >
> > Am I doing something wrong? I hope someone might be able to help.
> 
> It works here (with summatrapdf) ... can it be a viewer issue? Do you 
> run the latest context?
> 
> 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] Strange error with bookmarks

2014-08-29 Thread Hans Hagen

On 8/26/2014 1:45 PM, Michał Goliński wrote:

While trying to make a longer document with ConTeXt I stumbled into a
strange error with the latest beta (I spotted it for the first time some
time ago). For the following file:

\setupinteraction[state=start,focus=standard]
\placebookmarks[part,chapter][part,chapter][number=no]
\starttext
\chapter{0}
\startpart[title={A}]
   \chapter{1}
   \chapter{2}
\stoppart
\startpart[title={B}]
   \chapter{3}
   \chapter{4}
   \chapter{5}
   \chapter{6}
   \chapter{7}
   \chapter{8}
   \chapter{9}
   \chapter{10}
\stoppart
\completecontent[criterium=all]
\stoptext


ConTeXt would generate a file in which the link for chapter "6" is not
working. Neither the link in the table of contents works nor the link in
the generated PDF bookmarks. When removing the second line, the link in
the table of contents doesn't work, but everyting is ok if one removes
the table of contents. What seems even more weird for me, the problem
goes away if one removes *any* chapter. It persists for chapter "6" even
if chapters are distributed differently between parts without changing
their order.

Am I doing something wrong? I hope someone might be able to help.


It works here (with summatrapdf) ... can it be a viewer issue? Do you 
run the latest context?


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
___

[NTG-context] Strange error with bookmarks

2014-08-26 Thread Michał Goliński
While trying to make a longer document with ConTeXt I stumbled into a 
strange error with the latest beta (I spotted it for the first time some 
time ago). For the following file:


\setupinteraction[state=start,focus=standard]
\placebookmarks[part,chapter][part,chapter][number=no]
\starttext
\chapter{0}
\startpart[title={A}]
  \chapter{1}
  \chapter{2}
\stoppart
\startpart[title={B}]
  \chapter{3}
  \chapter{4}
  \chapter{5}
  \chapter{6}
  \chapter{7}
  \chapter{8}
  \chapter{9}
  \chapter{10}
\stoppart
\completecontent[criterium=all]
\stoptext


ConTeXt would generate a file in which the link for chapter "6" is not 
working. Neither the link in the table of contents works nor the link in 
the generated PDF bookmarks. When removing the second line, the link in 
the table of contents doesn't work, but everyting is ok if one removes 
the table of contents. What seems even more weird for me, the problem 
goes away if one removes *any* chapter. It persists for chapter "6" even 
if chapters are distributed differently between parts without changing 
their order.


Am I doing something wrong? I hope someone might be able to help.

Best regards

Michał
___
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] Strange error message

2012-03-11 Thread Otared Kavian
Dear Wolfgang,

Thanks for your attention: indeed in my files I have \definedescription, and I 
thank you for pointing to this, despite the fact that the informations I gave 
was by far too partial and little.
But what is puzzling me is that ConTeXt version 2011.11.29 does not complain 
with the way I use \definedescription: probably this means that something has 
changed in the way one should use them in the new versions.
I'll try to isolate the problem and I will report again later.

Have a nice day, best regards: OK

On 11 mars 2012, at 09:55, Wolfgang Schuster wrote:

> 
> Am 10.03.2012 um 22:10 schrieb Otared Kavian:
> 
>> Hi all,
>> 
>> Has anyone encountered the following situation with the betas from last 
>> January until today?
>> I have a document some 100 pages (each page being an \input), which is 
>> correctly typeset with ConTeXt version 2011.11.29 mkiv, but gives me the 
>> following error with the recent mkiv betas: the message is
>> 
>>  
>>  }
>>  ...onstructionparameter \c!level }
>> \setevalue {\??constructio...
>> \define_construction ... \everydefineconstruction 
>> \let \currentconstruction ...
>>  ...r =\v!description ,\c!level =1]
>> \else \defineconstruction ...
>> \define_description ...he \everydefinedescription 
>> \let \currentdescription \...
>>  
>>  \startpacked 
>> …
>> 
>> In order to localize the error I have tried to add little by little my 
>> \input files, and everything works when I have about 20 pages… 
>> I am reporting this issue just for debugging reasons, since for the real 
>> project I still use the 2011.11.29 version.
>> Indeed I should apologize since I am not able to submit a minimal example, 
>> my project itself being somewhat complex (at least from my perspective… not 
>> for a guru!).
>> 
>> Also, I should say that in recent previous betas the error message was 
>> different, but I have not anymore those versions to report what the exact 
>> message was.
> 
> Thats’t to less information to tell what’s the problem but I can say it is 
> generated from \definedescription.
> 
> Do you use \definedescription somewhere in your document in combination with 
> \startpacked, e.g. \definedescription[before=\startpacked] or 
> \defindescription[packed] etc.
> 
> 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
> ___

___
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] Strange error message

2012-03-11 Thread Wolfgang Schuster

Am 10.03.2012 um 22:10 schrieb Otared Kavian:

> Hi all,
> 
> Has anyone encountered the following situation with the betas from last 
> January until today?
> I have a document some 100 pages (each page being an \input), which is 
> correctly typeset with ConTeXt version 2011.11.29 mkiv, but gives me the 
> following error with the recent mkiv betas: the message is
> 
>  
>   }
>  ...onstructionparameter \c!level }
>  \setevalue {\??constructio...
> \define_construction ... \everydefineconstruction 
>  \let \currentconstruction ...
>  ...r =\v!description ,\c!level =1]
>  \else \defineconstruction ...
> \define_description ...he \everydefinedescription 
>  \let \currentdescription \...
>  
>   \startpacked 
> …
> 
> In order to localize the error I have tried to add little by little my \input 
> files, and everything works when I have about 20 pages… 
> I am reporting this issue just for debugging reasons, since for the real 
> project I still use the 2011.11.29 version.
> Indeed I should apologize since I am not able to submit a minimal example, my 
> project itself being somewhat complex (at least from my perspective… not for 
> a guru!).
> 
> Also, I should say that in recent previous betas the error message was 
> different, but I have not anymore those versions to report what the exact 
> message was.

Thats’t to less information to tell what’s the problem but I can say it is 
generated from \definedescription.

Do you use \definedescription somewhere in your document in combination with 
\startpacked, e.g. \definedescription[before=\startpacked] or 
\defindescription[packed] etc.

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] Strange error message

2012-03-10 Thread Otared Kavian
Hi all,

Has anyone encountered the following situation with the betas from last January 
until today?
I have a document some 100 pages (each page being an \input), which is 
correctly typeset with ConTeXt version 2011.11.29 mkiv, but gives me the 
following error with the recent mkiv betas: the message is

 
   }
 ...onstructionparameter \c!level }
  \setevalue {\??constructio...
\define_construction ... \everydefineconstruction 
  \let \currentconstruction ...
 ...r =\v!description ,\c!level =1]
  \else \defineconstruction ...
\define_description ...he \everydefinedescription 
  \let \currentdescription \...
 
   \startpacked 
…

In order to localize the error I have tried to add little by little my \input 
files, and everything works when I have about 20 pages… 
I am reporting this issue just for debugging reasons, since for the real 
project I still use the 2011.11.29 version.
Indeed I should apologize since I am not able to submit a minimal example, my 
project itself being somewhat complex (at least from my perspective… not for a 
guru!).

Also, I should say that in recent previous betas the error message was 
different, but I have not anymore those versions to report what the exact 
message was.

Thanks for any insight: OK
___
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] strange error on ntgmaps style

2011-04-26 Thread Hans Hagen

On 26-4-2011 4:23, Hans van der Meer wrote:

I get a strange error when using the dutch NTG-MAPS style I acquired from Taco, 
quite some time ago taking into account the fast pace of development in ConTeXt 
;-)
The error location in the log seems to be not directly related to the culprit, 
because deleting some lines shifts the given linenumber that number of lines 
down.

If I comment out the maps style and its macros:
\usemodule[map-se]\enablemode[nosubsub]
\startArticle[.]
\startAbstract ... \stopAbstract
\startKeywords ... \stopKeywords
\stopArticle
then typesetting does not give the error.
The error message is:
122 \placefigure[][fig:cdtypes]{Cover types for CD}{%
  ...ttwo ] \par \usemathcollection


no math collections in mkiv

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


[NTG-context] strange error on ntgmaps style

2011-04-26 Thread Hans van der Meer
I get a strange error when using the dutch NTG-MAPS style I acquired from Taco, 
quite some time ago taking into account the fast pace of development in ConTeXt 
;-)
The error location in the log seems to be not directly related to the culprit, 
because deleting some lines shifts the given linenumber that number of lines 
down.

If I comment out the maps style and its macros:
   \usemodule[map-se]\enablemode[nosubsub]
   \startArticle[.]
   \startAbstract ... \stopAbstract
   \startKeywords ... \stopKeywords
   \stopArticle
then typesetting does not give the error.
The error message is:
122 \placefigure[][fig:cdtypes]{Cover types for CD}{%
 ...ttwo ] \par \usemathcollection 
  [eul] \par \stoptypescript 
\dodousetypescript ...e \the \documenttypescripts 
  \firsttypescriptpassfalse ...
\dotripleemptythreespaced #1#2#3->#1[{#2}][{#3}][]  
 
 
   \par 
ConTeXt  ver: 2011.03.28 01:03 MKIV  fmt: 2011.3.28  int: english/english

I must mention the fact that formerly this did work (the article even being 
published in the NTG-MAPS).

Is there a new version of the NTG-MAPS module to try?

Hans van der Meer

___
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] strange error

2010-05-09 Thread Taco Hoekwater

Marius wrote:

Hello,

I am confronted with difficulties to understand why do I get this
strage error then compile the attached document? And how to fix it?

! String contains an invalid utf-8 sequence.
l.1 \setuppublicationlist[samplesize={
  ─A},totalnumber=1]


Bibtex doesn't support utf-8 at all, which is why it breaks
breaks up the Č into two bytes, and then only uses the leading
byte in the samplesize.

A working workaround is tu use {\Ccaron} in the bib file instead
of the literal character.

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
___


[NTG-context] strange error

2010-05-09 Thread Marius
Hello,

I am confronted with difficulties to understand why do I get this
strage error then compile the attached document? And how to fix it?

! String contains an invalid utf-8 sequence.
l.1 \setuppublicationlist[samplesize={
  ─A},totalnumber=1]

Thank you,
Marius


b.bib
Description: Binary data


test3.tex
Description: TeX document
___
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] Strange error in using backgrounds with enumerations

2008-07-13 Thread Aditya Mahajan
On Sun, 13 Jul 2008, Thomas A. Schmitz wrote:

>
> On Jul 13, 2008, at 10:17 PM, Aditya Mahajan wrote:
>
>> I do not know if it is an error in my setup, or some bug in context.
>> I cannot check it on garden, since live is broken at the moment.
>
> Hi Aditya,
>
> do you think you could make your test more minimal? This doesn't
> compile at all, e.g.
>
> ! Undefined control sequence.
>  \definemathset
>
> l.41 \definemathset
>[EXP] [text={E}]
>

You need the mathset module :)
http://modules.contextgarden.net/mathsets

I should have removed that. You can replace \definemathset by

\def\EXP{E}
\def\PR{\Pr}


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


Re: [NTG-context] Strange error in using backgrounds with enumerations

2008-07-13 Thread Aditya Mahajan

On Sun, 13 Jul 2008, Hans Hagen wrote:


Aditya Mahajan wrote:

Hi,

I am getting the following error while using backgrounds with enumeration.
(Context ver: 2008.07.10 09:58 MKIV,  LuaTeX, Version
snapshot-0.28.0-2008070423)

The error depends on the frame occuring at a particular location on the
page, so the example is not so minimal. The error is

! Missing = inserted for \ifdim.

   p
\textbackgroundskip ->-4.5255pt p
 lus -1.13136pt minus -1.13136pt
\dodostoptextbackground ...im \textbackgroundskip
 >\zeropoint \kern
\scratch...
\stoptextbackground ->\dodostoptextbackground
  \carryoverpar \egroup
\@@stopdescription ...scriptionparameter \c!after
  \egroup \def
\currentdescr...
l.352 \stopcorollary

?
! Illegal unit of measure (pt inserted).

   p
 p
l
\textbackgroundskip ->-4.5255pt pl
  us -1.13136pt minus -1.13136pt
\dodostoptextbackground ...im \textbackgroundskip
 >\zeropoint \kern
\scratch...
\stoptextbackground ->\dodostoptextbackground
  \carryoverpar \egroup
\@@stopdescription ...scriptionparameter \c!after
  \egroup \def
\currentdescr...
l.352 \stopcorollary


also in mkii, i'll check it


I do not know if it is an error in my setup, or some bug in context. I
cannot check it on garden, since live is broken at the moment.


btw, you can omit the {} in $Δ_T$


The text is a mixture of old writeup (with mkii) and new writeup. I am 
getting into the habit of not adding {} before utf chars.


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


Re: [NTG-context] Strange error in using backgrounds with enumerations

2008-07-13 Thread Hans Hagen
Aditya Mahajan wrote:
> Hi,
> 
> I am getting the following error while using backgrounds with enumeration.
> (Context ver: 2008.07.10 09:58 MKIV,  LuaTeX, Version 
> snapshot-0.28.0-2008070423)
> 
> The error depends on the frame occuring at a particular location on the 
> page, so the example is not so minimal. The error is
> 
> ! Missing = inserted for \ifdim.
> 
>p
> \textbackgroundskip ->-4.5255pt p
>  lus -1.13136pt minus -1.13136pt
> \dodostoptextbackground ...im \textbackgroundskip
>   >\zeropoint \kern 
> \scratch...
> \stoptextbackground ->\dodostoptextbackground
>   \carryoverpar \egroup
> \@@stopdescription ...scriptionparameter \c!after
>   \egroup \def 
> \currentdescr...
> l.352 \stopcorollary
> 
> ?
> ! Illegal unit of measure (pt inserted).
> 
>p
>  p
> l
> \textbackgroundskip ->-4.5255pt pl
>   us -1.13136pt minus -1.13136pt
> \dodostoptextbackground ...im \textbackgroundskip
>   >\zeropoint \kern 
> \scratch...
> \stoptextbackground ->\dodostoptextbackground
>   \carryoverpar \egroup
> \@@stopdescription ...scriptionparameter \c!after
>   \egroup \def 
> \currentdescr...
> l.352 \stopcorollary

also in mkii, i'll check it

> I do not know if it is an error in my setup, or some bug in context. I 
> cannot check it on garden, since live is broken at the moment.

btw, you can omit the {} in $Δ_T$

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


Re: [NTG-context] Strange error in using backgrounds with enumerations

2008-07-13 Thread Thomas A. Schmitz

On Jul 13, 2008, at 10:17 PM, Aditya Mahajan wrote:

> I do not know if it is an error in my setup, or some bug in context.  
> I cannot check it on garden, since live is broken at the moment.

Hi Aditya,

do you think you could make your test more minimal? This doesn't  
compile at all, e.g.

! Undefined control sequence.
 \definemathset

l.41 \definemathset
[EXP] [text={E}]

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


[NTG-context] Strange error in using backgrounds with enumerations

2008-07-13 Thread Aditya Mahajan

Hi,

I am getting the following error while using backgrounds with enumeration.
(Context ver: 2008.07.10 09:58 MKIV,  LuaTeX, Version 
snapshot-0.28.0-2008070423)


The error depends on the frame occuring at a particular location on the 
page, so the example is not so minimal. The error is


! Missing = inserted for \ifdim.

   p
\textbackgroundskip ->-4.5255pt p
 lus -1.13136pt minus -1.13136pt
\dodostoptextbackground ...im \textbackgroundskip
  >\zeropoint \kern 
\scratch...

\stoptextbackground ->\dodostoptextbackground
  \carryoverpar \egroup
\@@stopdescription ...scriptionparameter \c!after
  \egroup \def 
\currentdescr...

l.352 \stopcorollary

?
! Illegal unit of measure (pt inserted).

   p
 p
l
\textbackgroundskip ->-4.5255pt pl
  us -1.13136pt minus -1.13136pt
\dodostoptextbackground ...im \textbackgroundskip
  >\zeropoint \kern 
\scratch...

\stoptextbackground ->\dodostoptextbackground
  \carryoverpar \egroup
\@@stopdescription ...scriptionparameter \c!after
  \egroup \def 
\currentdescr...

l.352 \stopcorollary


I do not know if it is an error in my setup, or some bug in context. I 
cannot check it on garden, since live is broken at the moment.


Aditya\usemodule  [bib]
\definealternativestyle [emph] [\em] []


\setupblank   [line]
\setupwhitespace  [small]
\setupindenting   [medium,yes]
\setupinterlinespace[auto,medium]

\setuppapersize [letter]
[letter]

\setuplayout[
  width=middle,
 height=middle,
  %location=middle,
topspace=1.0in,
  bottomspace=.5in,
  bottomdistance=0in,
   bottom=.5in,
   backspace=1.5in,
cutspace=1.0in,
  leftmargin=1.0in,
 rightmargin=0.5in,
  leftmargindistance=0.1in,
 rightmargindistance=0.1in,
  header=0.0in,
 footer=0.25in,
   headerdistace=0.0in,
 footerdistance=0.25in,
marking=on,
  grid=no,
]

\setupformulas
  [   indentnext=auto,
 spacebefore=none,
  ]

\usemodule  [mathsets]
\definemathset[EXP] [text={E}]
\definemathset[PR]  [text=\Pr,left=(,right=)]

\unexpanded\def\stackrel#1#2%
{\mathrel{\mathop{#2}\limits^{#1}}}

%D Theorems Setup <<<

\definetextbackground
[theoremframe]
[   mp=background:random,
  location=paragraph,
 rulethickness=1pt,
 width=broad,
leftoffset=1em,
   rightoffset=1em,
	framecolor=black,
before={\testpage[3]\blank[big]},
 after={\blank[big]}
]
\startuseMPgraphic{background:random}
   path p;
   for i = 1 upto nofmultipars :
p = (multipars[i]
 topenlarged 10pt
 bottomenlarged 10pt) randomized 4pt ;
   % fill p withcolor lightgray ;
   draw p withcolor \MPvar{linecolor}
withpen pencircle scaled \MPvar{linewidth};
   endfor;
\stopuseMPgraphic

\setupenumerations
  [title=yes,
   stopper=.,
location=serried,
 width=broad,
style=normal,
   titledistance=1ex,
  distance=0.5em,
  indentnext=yes,
   indenting=yes,
   way=bychapter,
before=\starttheoremframe,
after=\stoptheoremframe,
  ]

\defineenumeration [problem][text=Problem]
\defineenumeration [definition] [text=Definition]
\defineenumeration [theorem][text=Theorem]
\defineenumeration [lemma]  [text=Lemma]
\defineenumeration [corollary]  [text=Corollary]

\defineenumeration
  [proof]
  [   text=Proof,
 headstyle=italic,
titlestyle=italic,
  distance=1ex,
 style=normal,
number=no,
 titleleft=,
titleright=,
   stopper=.,
before=\blank,
 after=\blank,
   closesymbol=\math{\square},
  ]

% >>>


\def\IE{i.e.}
\def\EG{e.g.}


\setupcolors[state=start]

\swapmacros{\phi}{\varphi}

\def\ALPHABET#1{{\cal  #1}}
\def\FSPACE  #1{{\cal  #1}}
\let\FIELD   \fraktur

\def\1#1{\presuper{1}{#1}}
\def\2#1{\presuper{2}{#1}}
\def\3#1{\presuper{3}{#1}}
\def\4#1{\presuper{4}{#1}}
\def\SOME#1{\presuper{i}{#1}}

\let\DEFINED=\colonequals
\let\BYDEFINITION=\equalscolon
\let\ESTIMATE=\hat
\def\COST{{\cal J}}

\def\presuper#1#2%
  {\mathop{}%
   \mathopen{\vphantom{#2}}^{#1}%
   \kern-\scriptspace%
   #2}
\abbreviation {RHS} {right hand side}

\def\DESIGN
  {\dosingleempty\doDESIGN}

\def\doDESIGN[#1]%
  {\doifelsenothing{#1}
{\math{G^1, L^1, G^2, L^2}}
{\math{G^{1,#1},L^{1,#1}, G^{2,#1},L^{2,#1

\def\STAGE#1{\1 #1$, $\2 #1$, $\3 #1$ and $\4 #1}

\starttext

Observe that by definition $\SOME {π}_t$ sat

Re: [NTG-context] Strange error ...

2004-07-25 Thread Hans Hagen Outside
Willi Egger wrote:
Hi,
Thanks for the fast reply.
The pdf-file resulting from compilation of the metapost code can 
perfectly be opend in acrobat 6. Acrobat 5 opens the file after giving
a warning "this file may contain infromation... newer version"

Where to put the \pdfminorversion=5. When put into the ConTeXt 
source-file it creates an undefined controlsequence error.
i put it in spec-tpd 

-
 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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Strange error ...

2004-07-25 Thread Willi Egger
Hi,
Thanks for the fast reply.
The pdf-file resulting from compilation of the metapost code can 
perfectly be opend in acrobat 6. Acrobat 5 opens the file after giving
a warning "this file may contain infromation... newer version"

Where to put the \pdfminorversion=5. When put into the ConTeXt 
source-file it creates an undefined controlsequence error.

Kind regards Willi
Hans Hagen Outside wrote:
Willi Egger wrote:
Hi,
I got a simple drawing madeup in Metapost, which is then compiled into 
a pdf file with context.
Now that I want to include this graphic in a text I stumble over the 
following:

pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2c 7.5.2)
ConTeXt  ver: 2004.6.30  fmt: 2004.7.21
Error: PDF version 1.5 -- xpdf supports version 1.4 (continuing anyway)
Error (0): PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table
subsubject : - De tekst op het Gabarit
Error: pdfetex.exe (file ./gabarit.pdf): xpdf: reading PDF image failed
 ==> Fatal error occurred, the output PDF file is not finished!

try \pdfminorversion=5
is the to be included pdf file ok  ?
-
 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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Strange error ...

2004-07-25 Thread Hans Hagen Outside
Willi Egger wrote:
Hi,
I got a simple drawing madeup in Metapost, which is then compiled into 
a pdf file with context.
Now that I want to include this graphic in a text I stumble over the 
following:

pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2c 7.5.2)
ConTeXt  ver: 2004.6.30  fmt: 2004.7.21
Error: PDF version 1.5 -- xpdf supports version 1.4 (continuing anyway)
Error (0): PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table
subsubject : - De tekst op het Gabarit
Error: pdfetex.exe (file ./gabarit.pdf): xpdf: reading PDF image failed
 ==> Fatal error occurred, the output PDF file is not finished!
try \pdfminorversion=5 

is the to be included pdf file ok  ? 

-
 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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Strange error ...

2004-07-25 Thread Willi Egger
Hi,
I got a simple drawing madeup in Metapost, which is then compiled into a 
pdf file with context.
Now that I want to include this graphic in a text I stumble over the 
following:

pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2c 7.5.2)
ConTeXt  ver: 2004.6.30  fmt: 2004.7.21
Error: PDF version 1.5 -- xpdf supports version 1.4 (continuing anyway)
Error (0): PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table
subsubject : - De tekst op het Gabarit
Error: pdfetex.exe (file ./gabarit.pdf): xpdf: reading PDF image failed
 ==> Fatal error occurred, the output PDF file is not finished!
Does anybody have a clue what happens?
Kind regards Willi
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context