Re: [NTG-context] problem with \sym?

2019-02-04 Thread Wolfgang Schuster



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
___


Re: [NTG-context] problem with \sym?

2019-02-04 Thread Wolfgang Schuster

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
___


Re: [NTG-context] problem with \sym?

2019-02-03 Thread Wolfgang Schuster

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




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


[NTG-context] problem with \sym?

2019-02-03 Thread Alan Bowen
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...



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