[NTG-context] non-splitting footnotes

2016-03-07 Thread Brian Ballsun-Stanton
Hi folks,

http://context.fedarch.org/Context/trapChapter16_petra.pdf page 7-8 there's
a very large space due to a footnote.

I've tried to induce footnote splitting (I just updated to mtx-context
| current version: 2016.03.04 10:39) but it doesn't seem to work.

All the discussion on this list is... 8 years old. What is a correct way of
solving the long footnote not splitting over pages problem (besides
shooting the author?)

Cheers,
-Brian
___
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] Bug in startitemize

2016-03-07 Thread Otared Kavian
Hi Hans,

It seems that with the new beta (ConTeXt  ver: 2016.03.04 10:39 MKIV beta  fmt: 
2016.3.7), there is a bug with random itemization.
I cannot tell exactly when this feature has been broken.
The problem is that for instance in the following example, sometimes the item C 
is repeated three times, sometimes A is repeated twice, etc.

\starttext

\startitemize[n,random]
\startitem A \stopitem
\startitem B \stopitem
\startitem C \stopitem
\stopitemize

\stoptext

Best regards: 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] Bug in startitemize

2016-03-07 Thread Wolfgang Schuster

Otared Kavian 
7. März 2016 um 20:28
Hi Hans,

It seems that with the new beta (ConTeXt ver: 2016.03.04 10:39 MKIV 
beta fmt: 2016.3.7), there is a bug with random itemization.

I cannot tell exactly when this feature has been broken.
The problem is that for instance in the following example, sometimes 
the item C is repeated three times, sometimes A is repeated twice, etc.

strc-itm.mkvi:

\def\strc_itemgroups_collected_flush
  {\ifconditional\c_strc_itemgroups_randomize
 
\getrandomcount\c_strc_itemgroups_collected_current\plusone\c_strc_itemgroups_collected_stored

   \else
 \advance\c_strc_itemgroups_collected_current\plusone
   \fi
   
\ifcsname\??itemgroupstack\number\c_strc_itemgroups_collected_current\endcsname

 \edef\collecteditemgroupitem{\lastnamedcs}%
 \ifconditional\c_strc_itemgroups_horizontal
   \strc_itemgroups_collected_flush_horizontal
 \else
   \collecteditemgroupitem
+  
\letbeundefined{\??itemgroupstack\number\c_strc_itemgroups_collected_current}%

 \fi
 \advance\c_strc_itemgroups_collected_done\plusone
   \fi
   
\ifnum\c_strc_itemgroups_collected_done<\c_strc_itemgroups_collected_stored

 \expandafter\strc_itemgroups_collected_flush
   \fi}

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] How to avoid overriding a control sequence?

2016-03-07 Thread luigi scarso
On Mon, Mar 7, 2016 at 7:40 PM, Nicola  wrote:

> How do I check in ConTeXt whether a control sequence is already
> defined (to avoid redefining it by accident)?
>
>
kind of

\ifdefined\writebanner \else \unexpanded\def\writebanner{\writestring}
\fi
?



-- 
luigi
___
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] How to avoid overriding a control sequence?

2016-03-07 Thread Nicola

On 2016-03-07 18:47:20 +, luigi scarso said:


On Mon, Mar 7, 2016 at 7:40 PM, Nicola  wrote:
How do I check in ConTeXt whether a control sequence is already
defined (to avoid redefining it by accident)?


kind of 

\ifdefined\writebanner \else \unexpanded\def\writebanner{\writestring}     \fi
?


That works, thanks!

Nicola


___
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] How to avoid overriding a control sequence?

2016-03-07 Thread Nicola

How do I check in ConTeXt whether a control sequence is already
defined (to avoid redefining it by accident)?

Marginally related to the above, I have tried to use \show, only to
discover, to my surprise, that it gives an error. For example:

\show\NL
\end

Does ConTeXt override some of TeX primitives?

Nicola


___
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] in next beta

2016-03-07 Thread Wolfgang Schuster

Hans Hagen 
4. März 2016 um 12:01
\starttext

\setuplistalternative
  [c]
  [filler=symbol,
   symbol=\hbox to .25em{\periodcentered},
   symcolor=darkred,
   symstyle=\bf]

\startsubject[title=Contents]
\placelist[section][criterium=all,alternative=c]
\stopsubject

\startsection[title=D. Ward]
\input ward
\stopsection
\startsection[title=E.R. Tufte]
\input tufte
\stopsection

\stoptext
Is there a reason why you haven’t used the filler command from 
spac-flr.mkiv?


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] weird behavior of brackets in block quotations

2016-03-07 Thread Wolfgang Schuster

Alan Bowen 
7. März 2016 um 21:52
We use “[...]” in quotations to indicate departures from the written text.

In the latest beta, “[...]” is a problem in block quotations and [] 
does not appear in the output.


\setupdelimitedtext
[blockquote]
[before={\blank[small,fixed]},
after={\blank[small,fixed]}]

\starttext
[t]he quotation goes as follows:
\startblockquote

\startblockquote\relax

[t]he science of astrology was developed in, most probably,
\stopblockquote
\input ward
\stoptext

“[...]” is OK in the body text and “[]” appears in the output.

But, in the block quotation, “[…]” gets the error message:

The \startblockquote command has a optional argument (which is passed to 
\startnarrower)

and you have to stop ConTeXt to use [t] as the argument for the command.

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] How to avoid overriding a control sequence?

2016-03-07 Thread Hans Hagen

On 3/7/2016 7:40 PM, Nicola wrote:

How do I check in ConTeXt whether a control sequence is already
defined (to avoid redefining it by accident)?

Marginally related to the above, I have tried to use \show, only to
discover, to my surprise, that it gives an error. For example:

\show\NL
\end

Does ConTeXt override some of TeX primitives?


yes, like \month ... but in general if you use uppercase or camelcase 
you're quite safe (there are some math symbols with uppercase but if you 
define your own commands you will probably not use those) ... mechanisms 
like tables that use \NC and so define them local


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] How to avoid overriding a control sequence?

2016-03-07 Thread Nicola

On 2016-03-07 20:16:45 +, Hans Hagen said:


On 3/7/2016 7:40 PM, Nicola wrote:

How do I check in ConTeXt whether a control sequence is already
defined (to avoid redefining it by accident)?

Marginally related to the above, I have tried to use \show, only to
discover, to my surprise, that it gives an error. For example:

\show\NL
\end

Does ConTeXt override some of TeX primitives?


yes, like \month ... but in general if you use uppercase or camelcase
you're quite safe (there are some math symbols with uppercase but if you
define your own commands you will probably not use those) ... mechanisms
like tables that use \NC and so define them local


I see. Local commands are a good idea. I usually use camelcase, but
since I wanted to define some two-letter sequences, I thought I'd
better be cautious.

Nicola


___
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] Bug in startitemize

2016-03-07 Thread Otared Kavian
Thanks Wolfgang,

Your patch does indeed solve the problem, after rebuilding with

context --make —all

Best regards: OK

> On 07 Mar 2016, at 20:46, Wolfgang Schuster  
> wrote:
> 
>> Otared Kavian 7. März 2016 um 20:28
>> Hi Hans,
>> 
>> It seems that with the new beta (ConTeXt ver: 2016.03.04 10:39 MKIV beta 
>> fmt: 2016.3.7), there is a bug with random itemization.
>> I cannot tell exactly when this feature has been broken.
>> The problem is that for instance in the following example, sometimes the 
>> item C is repeated three times, sometimes A is repeated twice, etc.
> strc-itm.mkvi:
> 
> \def\strc_itemgroups_collected_flush
>   {\ifconditional\c_strc_itemgroups_randomize
>  
> \getrandomcount\c_strc_itemgroups_collected_current\plusone\c_strc_itemgroups_collected_stored
>\else
>  \advance\c_strc_itemgroups_collected_current\plusone
>\fi
>
> \ifcsname\??itemgroupstack\number\c_strc_itemgroups_collected_current\endcsname
>  \edef\collecteditemgroupitem{\lastnamedcs}%
>  \ifconditional\c_strc_itemgroups_horizontal
>\strc_itemgroups_collected_flush_horizontal
>  \else
>\collecteditemgroupitem
> +  
> \letbeundefined{\??itemgroupstack\number\c_strc_itemgroups_collected_current}%
>  \fi
>  \advance\c_strc_itemgroups_collected_done\plusone
>\fi
>\ifnum\c_strc_itemgroups_collected_done<\c_strc_itemgroups_collected_stored
>  \expandafter\strc_itemgroups_collected_flush
>\fi}
> 
> 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
___

[NTG-context] weird behavior of brackets in block quotations

2016-03-07 Thread Alan Bowen
We use “[...]” in quotations to indicate departures from the written text.

In the latest beta, “[...]” is a problem in block quotations and [] does
not appear in the output.

\setupdelimitedtext
[blockquote]
[before={\blank[small,fixed]},
  after={\blank[small,fixed]}]

\starttext
[t]he quotation goes as follows:
\startblockquote
[t]he science of astrology was developed in, most probably,
\stopblockquote
\input ward
\stoptext

“[...]” is OK in the body text and “[]” appears in the output.

But, in the block quotation, “[…]” gets the error message:


tex error   > tex error on line 14 in file
/Users/bowen1/Desktop/TestTeX/test.tex: ! Missing number, treated as zero


tex error   > tex error on line 9 in file
/Users/bowen1/Desktop/TestTeX/test.tex: ! Missing number, treated as zero




t

\spac_narrower_method_analyze ...c_narrower_mid #1

  \relax \fi

\syst_helpers_repeat_with_command ..._again [#1]#5

  \else
\syst_helpers_repeat...

\17>>1 ..._process_comma_list_with_parameters {#1}


\syst_helpers_do_process_c...

\syst_helpers_do_process_comma_list ...rgument #1,

  ]\relax \global \advance
\...

\spac_narrower_start_apply ...narrower_initialize

  \advance \leftskip
\dimexp...

...

l.9 [t]

 he science of astrology was developed in, most probably,


 1 \setupdelimitedtext

 2 [blockquote]

 3 [before={\blank[small,fixed]},

 4   after={\blank[small,fixed]}]

 5

 6 \starttext

 7 [t]he quotation goes as follows:

 8 \startblockquote

 9 >>  [t]he science of astrology was developed in, most probably,

10 \stopblockquote

11 \input ward

12 \stoptext


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

Re: [NTG-context] weird behavior of brackets in block quotations

2016-03-07 Thread Alan Bowen
Thanks, Wolfgang! That is very helpful.

Alan

On Mon, Mar 7, 2016 at 3:56 PM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

> Alan Bowen 
> 7. März 2016 um 21:52
> We use “[...]” in quotations to indicate departures from the written text.
>
> In the latest beta, “[...]” is a problem in block quotations and [] does
> not appear in the output.
>
> \setupdelimitedtext
> [blockquote]
> [before={\blank[small,fixed]},
>   after={\blank[small,fixed]}]
>
> \starttext
> [t]he quotation goes as follows:
> \startblockquote
>
> \startblockquote\relax
>
> [t]he science of astrology was developed in, most probably,
> \stopblockquote
> \input ward
> \stoptext
>
> “[...]” is OK in the body text and “[]” appears in the output.
>
> But, in the block quotation, “[…]” gets the error message:
>
> The \startblockquote command has a optional argument (which is passed to
> \startnarrower)
> and you have to stop ConTeXt to use [t] as the argument for the command.
>
> 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
___