Re: [NTG-context] TABLE setups

2018-07-27 Thread Henri Menke
On 07/28/2018 07:38 AM, Henning Hraban Ramm wrote:
> Ahoi,
> 
> I need a few different table styles and don’t think it makes sense to setup 
> them every single time.
> 
> Is there a \defineTABLE[mystyle], and then \setupTABLE[mystyle][...] ?
> 
> Or can I go via setups like \bTABLE[setups=mystyle] ?

\startsetups mystyle
  \setupTABLE[frame=off]
  \setupTABLE[row][first][topframe=on,bottomframe=on,style=bold]
  \setupTABLE[row][last] [bottomframe=on]
\stopsetups
\starttext

\bTABLE[setups=mystyle]
  \bTR
\bTD Hello \eTD \bTD Hraban \eTD
  \eTR
  \bTR
\bTD Hello \eTD \bTD Hraban \eTD
  \eTR
  \bTR
\bTD Hello \eTD \bTD Hraban \eTD
  \eTR
  \bTR
\bTD Hello \eTD \bTD Hraban \eTD
  \eTR
\eTABLE

\stoptext

> 
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
> 
> ___
> 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] TABLE setups

2018-07-27 Thread Henning Hraban Ramm
Ahoi,

I need a few different table styles and don’t think it makes sense to setup 
them every single time.

Is there a \defineTABLE[mystyle], and then \setupTABLE[mystyle][...] ?

Or can I go via setups like \bTABLE[setups=mystyle] ?


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] Issue with page break at \blank samepage

2018-07-27 Thread Joseph Canedo
No rush at all, this can wait for sure. Just wanted to report this problem.
Thanks a lot (as Always ),

Joseph

De : Hans Hagen
Envoyé le :vendredi 27 juillet 2018 18:22
À : mailing list for ConTeXt users; Joseph Canedo
Objet :Re: [NTG-context] Issue with page break at \blank samepage

On 7/26/2018 11:01 PM, Joseph Canedo wrote:
> Dear list,
> 
> Somehow the Following MWE processed with recent betas :
> 
> 
> 
> \setuplayout[grid=both] % commenting does not change the result
> 
> \starttext
> 
> \dorecurse{31}{
> 
> A.
> 
> }
> 
> \input knuth
> 
> \blank[line, samepage]Second.
> 
> \stoptext
> 
> 
> 
> Outputs a pdf with 2 pages and « Second » is left alone in 2^nd page.
> 
> This is different from online context with prints last line of knuth par 
> in 2^nd page too.
> 
> I thought that « samepage » specifier in \blank prevented page break at 
> that point ? Is there another option for this now ?
i'm still figuring out the best way to support both the spacing model 
(which has to look ahead) and side floats (where we run into the usual 
stuff done in grouping that need to be known outside and it's that code 
that's needed for some of my collegues work) .. in fact those are the 
most complex mechanisms that at some point (aroudn end this year) i want 
to more or less freeze .. till then betas can differ (which is why 
they're betas)

i have a solution  (but esp the specific tricky side float stuff will 
only work ok in an upcoming luatex as i am not going to figure out some 
temp solution)

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] Issue with page break at \blank samepage

2018-07-27 Thread Hans Hagen

On 7/26/2018 11:01 PM, Joseph Canedo wrote:

Dear list,

Somehow the Following MWE processed with recent betas :



\setuplayout[grid=both] % commenting does not change the result

\starttext

\dorecurse{31}{

A.

}

\input knuth

\blank[line, samepage]Second.

\stoptext



Outputs a pdf with 2 pages and « Second » is left alone in 2^nd page.

This is different from online context with prints last line of knuth par 
in 2^nd page too.


I thought that « samepage » specifier in \blank prevented page break at 
that point ? Is there another option for this now ?
i'm still figuring out the best way to support both the spacing model 
(which has to look ahead) and side floats (where we run into the usual 
stuff done in grouping that need to be known outside and it's that code 
that's needed for some of my collegues work) .. in fact those are the 
most complex mechanisms that at some point (aroudn end this year) i want 
to more or less freeze .. till then betas can differ (which is why 
they're betas)


i have a solution  (but esp the specific tricky side float stuff will 
only work ok in an upcoming luatex as i am not going to figure out some 
temp solution)


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] URLs break bib export

2018-07-27 Thread Hans Hagen

On 7/27/2018 5:17 AM, Rik Kabel wrote:
The new tagged biblography export is very nice, but there is a routine 
(marked UGLY in the source) that causes processing to fail with 
otherwise-valid input. The failure message is



...eXt/tex/texmf-context/tex/context/base/mkiv/back-exp.lua:3889: 
invalid capture index

stack traceback:
     [C]: in function 'gsub'
 
...eXt/tex/texmf-context/tex/context/base/mkiv/back-exp.lua:3889: in 
function <...eXt/tex/texmf-context/tex/context/base/mkiv/back-exp.lua:3747>

     (...tail calls...)

and two URLs which cause this problem are:

    url = {http://www.jerwood-no.org.uk/pdf/Dunning%20Kruger.pdf},
    url = 
{http://oll.libertyfund.org/?option=com_staticxt=show.php\%3Fcollection=46=27}, 

These URLs caused no problem with PDF output  or in the previous 
exports, although they were not printed and exist only in the bibliography.


it's a side effect of gsub interpreting its replacement text so i need 
to adapt that bit


Do I need to protect the special characters in the bib file, or is this 
a problem with the UGLY code?

no, the code is marked ugly because i don't like it being done that way

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] using both footnotes and endnotes in a document

2018-07-27 Thread Robert Zydenbos
This works fine with MkIV, but not with MkII (I tried by altering 
\setupnotation to the MkII command \setupfootnotes, but that doesn't work). I 
need MkII for my project.

Is what I am looking for at all possible in MkII?

> On 27. Jul 2018, at 03:22, Henri Menke  wrote:
> 
> On 27/07/18 12:01, Robert Zydenbos wrote:
>> A puzzle for note specialists: I would like to use both endnotes as well as 
>> footnotes in one and the same document, for different kinds of notes.
>> Ideally, I should be able to write something like:
>> -
>> Here is a footnote,\footnote{The footnotes comes here.} and now comes an 
>> note that should appear at the end of my text.\endnote{And this is the 
>> endnote.}
>> -
>> For this I would need commands for determining the kind of markers for the 
>> notes (I know what to do for footnotes: this looks like \setupfootnotes 
>> [conversion=characters]; but what does one do for endnotes?)
> 
> \setupnotation[footnote][numberconversion=characters]
> \setupnotation[endnote] [numberconversion=set 2]
> \starttext
> 
> \footnote{Hello}
> \footnote{World}
> \footnote{Oeps}
> \footnote{\CONTEXT}
> \endnote{Goodbye}
> \endnote{Earth}
> \endnote{End}
> \endnote{Notes}
> 
> \placenotes[endnote]
> 
> \stoptext


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