ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* New TeX-mode bug!
@ 2002-06-27 23:03 Idris S Hamid
  2002-06-28  8:00 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Idris S Hamid @ 2002-06-27 23:03 UTC (permalink / raw)


With the latest beta, the following fails in TeX-mode (and therefore in Gamma 
as well). I've included TeX's error message as well.

Best wishes
Idris
=======================================

\starttext
\setupitemize[1][symbol=m] []
\setupitemize[2][symbol=KA][]
\setupitemize[3][symbol=KR][]

\startitemize
\item The {\em inkwell} corresponds to both {\em input} (e.g. editor,
interface,
and {encoding conventions}; the {\em ink container} per se) as well as {\em
output} (printing on paper and {\em interactive screen display}; the {\em
actual ink} on the page);

\item The {\em pen} corresponds to the typesetting engine. The {\em
sharpness}
of the ``pen'' is a function of the quality of the typesetting engine;

\item {\em Distinguishing the lines}, known today as {\em layout}, is 
governed
by the rules of {\em typography};

\item {\em Setting the letters closely}. Today this involves a {\em 
typeface},
with each character having an accompanying set of {\em metrics} and {\em
kernings} which govern the inter-letter and inter-word relationships;

\stopitemize
\stoptext
==========
! Undefined control sequence.
\HandleGroup ...->\bgroup \long \def \BeforeGroup
                                                  {\bgroup #1\bgroup 
\afterg...

\doifnextcharelse ...rtoken =#1\def \!!stringa {#2
                                                  }\def \!!stringb 
{#3}\futu...

\@@opitemizesymboollocal1 ...{\currentitemsymbol }
                                                  {\countervalue 
{\@@itemcou...

\dolistitem ...ue {\@@localitemsymbol \itemlevel }
                                                  }\headitemfalse 
\subitemfa...

\complexdoitemgroupitem ...norespaces \dolistitem
                                                  \ifpackeditems 
\stelwitrui...
<to be read again>
                   t
l.96 \item t
            est
?
-- 
Dr. Idris S Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80526


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: New TeX-mode bug!
  2002-06-27 23:03 New TeX-mode bug! Idris S Hamid
@ 2002-06-28  8:00 ` Hans Hagen
  2002-06-28 14:45   ` Idris S Hamid
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2002-06-28  8:00 UTC (permalink / raw)
  Cc: ntg-context

At 05:03 PM 6/27/2002 -0600, you wrote:
>With the latest beta, the following fails in TeX-mode (and therefore in Gamma
>as well). I've included TeX's error message as well.
>
>Best wishes
>Idris
>=======================================
>
>\starttext
>\setupitemize[1][symbol=m] []

ah, this has to do with a nasty expansion problem (no problem in etex)

go into core-itm.tex, and add the \forceunexpanded and \resetunexpanded

\forceunexpanded % needed for m conversion (\os)
    \setevalue{\@@currentitemsymbol\itemlevel}%
      {\getvalue{\@@localitemsymbol\itemlevel}}% still problems with \uchar ?
     %{\noexpand\getvalue{\@@localitemsymbol\itemlevel}}% no, spoils subrefs
\resetunexpanded

(and recompile the format)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: New TeX-mode bug!
  2002-06-28 14:45   ` Idris S Hamid
@ 2002-06-28 14:45     ` Hans Hagen
  2002-06-28 16:04       ` Idris S Hamid
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2002-06-28 14:45 UTC (permalink / raw)
  Cc: ntg-context

At 08:45 AM 6/28/2002 -0600, Idris S Hamid wrote:
> > >\starttext
> > >\setupitemize[1][symbol=m] []
> >
> > ah, this has to do with a nasty expansion problem (no problem in etex)
> >
> > go into core-itm.tex, and add the \forceunexpanded and \resetunexpanded
> >
> > \forceunexpanded % needed for m conversion (\os)
> >     \setevalue{\@@currentitemsymbol\itemlevel}%
> >       {\getvalue{\@@localitemsymbol\itemlevel}}% still problems with \uchar

        search for this ! ! ! !

> > ? %{\noexpand\getvalue{\@@localitemsymbol\itemlevel}}% no, spoils subrefs
> > \resetunexpanded
> >
> > (and recompile the format)
>
>Ok, I added the lines, saved, recompiled tex mode and gamma, even mktexlsr,
>but I still get the exact same message. I added the lines at the end of
>core-itm.tex, before \endinput; was that right?

no, just search for the "setevalue" line that is part of the patch

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: New TeX-mode bug!
  2002-06-28  8:00 ` Hans Hagen
@ 2002-06-28 14:45   ` Idris S Hamid
  2002-06-28 14:45     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Idris S Hamid @ 2002-06-28 14:45 UTC (permalink / raw)
  Cc: ntg-context

> >\starttext
> >\setupitemize[1][symbol=m] []
>
> ah, this has to do with a nasty expansion problem (no problem in etex)
>
> go into core-itm.tex, and add the \forceunexpanded and \resetunexpanded
>
> \forceunexpanded % needed for m conversion (\os)
>     \setevalue{\@@currentitemsymbol\itemlevel}%
>       {\getvalue{\@@localitemsymbol\itemlevel}}% still problems with \uchar
> ? %{\noexpand\getvalue{\@@localitemsymbol\itemlevel}}% no, spoils subrefs
> \resetunexpanded
>
> (and recompile the format)

Ok, I added the lines, saved, recompiled tex mode and gamma, even mktexlsr, 
but I still get the exact same message. I added the lines at the end of 
core-itm.tex, before \endinput; was that right?

Best
Idris

-- 
Dr. Idris S Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80526


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: New TeX-mode bug!
  2002-06-28 14:45     ` Hans Hagen
@ 2002-06-28 16:04       ` Idris S Hamid
  0 siblings, 0 replies; 5+ messages in thread
From: Idris S Hamid @ 2002-06-28 16:04 UTC (permalink / raw)
  Cc: ntg-context

> > > go into core-itm.tex, and add the \forceunexpanded and \resetunexpanded
> > >
> > > \forceunexpanded % needed for m conversion (\os)
> > >     \setevalue{\@@currentitemsymbol\itemlevel}%
> > >       {\getvalue{\@@localitemsymbol\itemlevel}}% still problems with
> > > \uchar
>
>         search for this ! ! ! !
>
> > > ? %{\noexpand\getvalue{\@@localitemsymbol\itemlevel}}% no, spoils
> > > subrefs \resetunexpanded

Great, it works now! 

Till the next bug;->
Best wishes
Idris

-- 
Dr. Idris S Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80526


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-06-28 16:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-27 23:03 New TeX-mode bug! Idris S Hamid
2002-06-28  8:00 ` Hans Hagen
2002-06-28 14:45   ` Idris S Hamid
2002-06-28 14:45     ` Hans Hagen
2002-06-28 16:04       ` Idris S Hamid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).