* problem with \sym?
@ 2019-02-03 14:33 Alan Bowen
2019-02-03 19:16 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Alan Bowen @ 2019-02-03 14:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 981 bytes --]
Processing a table of contents with the latest standalone (ConTeXt ver:
2019.01.28 16:58 MKIV beta fmt: 2019.2.3) fails with the following message:
luatex warning > hpack filter: error:
...eXt/tex/texmf-context/tex/context/base/mkiv/typo-dua.lua:422: attempt to
compare number with nil
tex error > tex error on line 18 in file c_Contents.tex: ?
\strc_itemgroups_make_symbol_box ...mbol \fi \fi }
\let
\strc_itemgroups_extr...
\strc_itemgroups_insert_item ...s_make_symbol_box
\strc_itemgroups_make_dest...
\strc_itemgroups_start_item ...groups_insert_item
\dostoptagged
\ifcondition...
<to be read again>
\dotagsetitem
\sym ..._symbol \startitemgroupitem \dotagsetitem
\s!symbol
l.18 \sym{0.}
Prolegomena to the Study of Hellenistic Astronomy
This worked with the previous standalone.
Alan
[-- Attachment #1.2: Type: text/html, Size: 3488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problem with \sym?
2019-02-03 14:33 problem with \sym? Alan Bowen
@ 2019-02-03 19:16 ` Wolfgang Schuster
[not found] ` <CAFMOkGW9u6=BXdmKEaYjDEznmM=qxAdigQvqPxZirk=xmwrtmQ@mail.gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2019-02-03 19:16 UTC (permalink / raw)
To: mailing list for ConTeXt users, Alan Bowen
Alan Bowen schrieb am 03.02.19 um 15:33:
> Processing a table of contents with the latest standalone (ConTeXt
> ver: 2019.01.28 16:58 MKIV beta fmt: 2019.2.3) fails with the
> following message:
>
> luatex warning > hpack filter: error:
> ...eXt/tex/texmf-context/tex/context/base/mkiv/typo-dua.lua:422:
> attempt to compare number with nil
>
>
> tex error > tex error on line 18 in file c_Contents.tex: ?
>
>
>
> \strc_itemgroups_make_symbol_box ...mbol \fi \fi }
>
> \let
> \strc_itemgroups_extr...
>
> \strc_itemgroups_insert_item ...s_make_symbol_box
>
> \strc_itemgroups_make_dest...
>
> \strc_itemgroups_start_item ...groups_insert_item
>
> \dostoptagged
> \ifcondition...
>
> <to be read again>
>
> \dotagsetitem
>
> \sym ..._symbol \startitemgroupitem \dotagsetitem
>
> \s!symbol
>
> l.18 \sym{0.}
>
> Prolegomena to the Study of Hellenistic Astronomy
>
>
> This worked with the previous standalone.
Can you provide a example because the error message shows
a problem with itemize while you mention the table of contents.
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problem with \sym?
[not found] ` <CAFMOkGW9u6=BXdmKEaYjDEznmM=qxAdigQvqPxZirk=xmwrtmQ@mail.gmail.com>
@ 2019-02-04 16:20 ` Wolfgang Schuster
[not found] ` <CAFMOkGVDO_97hkpcJsDjWqApKN2atJK9rKoau5WnOj94tS2C4w@mail.gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2019-02-04 16:20 UTC (permalink / raw)
To: Alan Bowen; +Cc: mailing users
Alan Bowen schrieb am 04.02.19 um 16:37:
> I should have done this originally. Sorry for that.
>
> My table of contents is component of a book-project; it is essentially
> a custom itemization.
>
> The following:
>
> \defineitemgroup[CList][levels=2]
> \setupCList[1][n, broad, packed, autointro, repeat, continue]
> [itemalign=flushright,
> left={},right={},stopper={.},
> margin=0pc,
> before={\setupinterlinespace[off]
> \setuplines[before={}, after={}]
> \startlines},
> after={\stoplines}]
>
> \setupCList[2][n, broad, packed, joinedup, autointro]
> [itemalign=flushright,
> left={}, right={}, stopper={},
> margin=0pc,
> ]
>
> \def\leaderfill{\leaders\hbox to 1em{\hss. \hss}\hfill}
> \define[1]\pg{{\switchtobodyfont[10pt]\hfill\at[#1]\crlf}}
>
> \startcomponent%\starttext
> \startCList
> \sym{} Illustrations and Tables\pg{Illustrations}
> \sym{} Preface\pg{Preface}
> \sym{} Acknowledgments\pg{Acknowledgments}
> \blank[big, fixed]
> \sym{0.} Prolegomena to the Study of Hellenistic Astronomy
> \emph{Alan C.\ Bowen and Francesca Rochberg}\pg{ACB00}
> \stopCList
> \stopcomponent%\stoptext
>
> Oddly enough, there is no problem if the code is run between
> \starttext and \stoptext.
>
> This used to work with the previous betas.
\startcomponent expects the name of the current file as argument, e.g.
\startcomponent [mycomponent]
or
\startcomponent mycomponent
You can also replace the name of the current file with a asterisk, e.g.
\startcomponent [*]
In your document \startcomponent takes \startCList as argument which
leads to the error message.
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problem with \sym?
[not found] ` <CAFMOkGWfOQ4ruwz3ysD+b-t4bFxy2XXVuNi0MNjmc8Ojb-CyMg@mail.gmail.com>
@ 2019-02-04 18:43 ` Wolfgang Schuster
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2019-02-04 18:43 UTC (permalink / raw)
To: Alan Bowen; +Cc: mailing users
Alan Bowen schrieb am 04.02.19 um 18:50:
> Here is a mwe that gives the same error as the original:
>
> luatex warning > hpack filter: error:
> ...eXt/tex/texmf-context/tex/context/base/mkiv/typo-dua.lua:422: attempt
> to compare number with nil
>
> tex error > tex error on line 22 in file
> /Users/bowen1/Desktop/TestTeX/test-02.tex: ?
>
>
> \setupdirections[bidi=global, method=one]%<——
>
> \defineitemgroup[CList][levels=2]
> \setupCList[1][n, broad, packed, autointro, repeat, continue]
> [itemalign=flushright,
> left={},right={},stopper={.},
> margin=0pc,
> before={\setupinterlinespace[off]
> \setuplines[before={}, after={}]
> \startlines},
> after={\stoplines}]
>
> \setupCList[2][n, broad, packed, joinedup, autointro]
> [itemalign=flushright,
> left={}, right={}, stopper={},
> margin=0pc,
> ]
>
> \startcomponent[*]
> \startCList
> \sym{} Preface
> \sym{0.} Prolegomena %<——line 22
> \stopCList
> \stopcomponent
>
> The example processes as it should when the first line is commented out.
It works with method two or three for \setupdirections.
Below is a shorter minimal example.
\setupdirections[bidi=global,method=one]
\starttext
\setbox\scratchbox\autodirhbox{xyz}
\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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-02-04 18:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-03 14:33 problem with \sym? Alan Bowen
2019-02-03 19:16 ` Wolfgang Schuster
[not found] ` <CAFMOkGW9u6=BXdmKEaYjDEznmM=qxAdigQvqPxZirk=xmwrtmQ@mail.gmail.com>
2019-02-04 16:20 ` Wolfgang Schuster
[not found] ` <CAFMOkGVDO_97hkpcJsDjWqApKN2atJK9rKoau5WnOj94tS2C4w@mail.gmail.com>
[not found] ` <CAFMOkGWfOQ4ruwz3ysD+b-t4bFxy2XXVuNi0MNjmc8Ojb-CyMg@mail.gmail.com>
2019-02-04 18:43 ` Wolfgang Schuster
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).