[NTG-context] Table of contents of unnumbered titles

2023-09-09 Thread Jim
Hi,

I am creating a document which is divided with the unnumbered levels
(\title, \subject, ...).

I would like a table of contents showing the names and page numbers,
something like

Blah blah blah2
Blah blah 4
...

However, notwithstanding what I see in
https://wiki.contextgarden.net/index.php?title=Titles=toggle_view_desktop#Unnumbered_titles_in_table_of_contents
I can't get this to happen with unnumbered divisions.

The above wiki reference says "the following might do that trick" but I
think "might" is the keyword, since even the wiki doesn't show the "No
number" entry in the \completecontent.

I find it hard to imagine that I am the only Context user who wants to do
this.  Can anyone point me in the direction of a working example?

And am I misinterpreting the wiki, or is the wiki page broken?

Thanks.

   Jim
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Table head/body via lua

2023-08-18 Thread Alexey Kryukov
Hi,

I am trying to generate a table representation for some xml source.
As the data structure doesn't directly correspond to the desired table
structure, some manipulations via lua are required. So far everything
works OK except table sectioning commands, like \bTABLEhead,
\eTABLEhead, bTABLEbody or \eTABLEbody: it seems impossible to
incapsulate them into lua functions. For example, the following is not
compiled:

\starttext
\bTABLE
\ctxlua{context.bTABLEbody()}
\bTR
\bTD Cell 1\eTD
\bTD Cell 2\eTD
\eTR
\ctxlua{context.eTABLEbody()}
\eTABLE
\stoptext

Can anybody suggest a workaround (except changing the source XML of
course)?

-- 
Regards,
Alexey Kryukov 

Moscow State University
Faculty of History
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Table of contents not appearing.

2023-04-21 Thread Fabrice Couvreur via ntg-context
An extra parenthesis in a section title seems to be the problem but I'm not
sure. I compiled the file line by line and it works now.
Thanks
Fabrice

Le ven. 21 avr. 2023 à 14:37, Hans Hagen via ntg-context 
a écrit :

> On 4/21/2023 5:05 PM, Fabrice Couvreur via ntg-context wrote:
> > It's chapter_5 that's the problem, but how do you know what's causing
> > the table of contents not to appear ?
> depends on the error : the toc comes from the tuc file so if that one is
> not made ...
>
> -
>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 /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Table of contents not appearing.

2023-04-21 Thread Hans Hagen via ntg-context

On 4/21/2023 5:05 PM, Fabrice Couvreur via ntg-context wrote:
It's chapter_5 that's the problem, but how do you know what's causing 
the table of contents not to appear ?
depends on the error : the toc comes from the tuc file so if that one is 
not made ...


-
  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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Table of contents not appearing.

2023-04-21 Thread Fabrice Couvreur via ntg-context
It's chapter_5 that's the problem, but how do you know what's causing the
table of contents not to appear ?

Le ven. 21 avr. 2023 à 14:42, Fabrice Couvreur 
a écrit :

> Hi Hans,
> Alright, I'll compile by integrating one component at a time to figure out
> which one is causing the problem.
> Thanks.
> Fabrice
>
> Le jeu. 20 avr. 2023 à 15:52, Hans Hagen via ntg-context <
> ntg-context@ntg.nl> a écrit :
>
>> On 4/20/2023 6:59 PM, Fabrice Couvreur via ntg-context wrote:
>> > Hi,
>> > I don't see why the table of contents does not appear. On the other
>> > hand, the 12 chapters are present.
>>
>> \startproduct[terminale-manual]
>>
>>  \startfrontmatter
>>  \starttitle[title=Table des matières]
>>  \placelist
>> [chapter,section,subsection,subsubsection]
>> [criterium=all,
>> interaction=all,
>>  alternative=c]
>>  \stoptitle
>>  \stopfrontmatter
>>
>>  \startbodymatter
>>  \chapter{xxx}
>>  \stopbodymatter
>>
>> \stopproduct
>>
>> shows a table of contents so it must be something in your components
>>
>> > Fabrice
>> >
>> >
>> > \startproduct[terminale-manual]
>> >
>> >\project[terminale-environment]
>> >\startfrontmatter
>> >
>> >  \setuppagenumbering
>> > [location=]
>> >
>> >  \definefont
>> >[ChapterTextStyle]
>> >[SansBold*default sa 2.2]
>> >
>> >  \setuphead
>> >[title]
>> >[style=ChapterTextStyle,
>> > align=flushright]
>> >
>> >  \setuplist
>> > [chapter]
>> > [style=bold,
>> >  alternative=b,
>> >  width=1em]
>> >
>> >  \setuplist
>> > [section]
>> > [margin=1em,
>> >  width=1.75em]
>> >
>> >  \setuplist
>> > [subsection]
>> > [margin=2.75em,
>> >  width=2.25em,
>> > distance=\spaceamount]
>> >
>> >
>> >  \starttitle[title=Table des matières]
>> >
>> >   \placelist
>> > [chapter,section,subsection,subsubsection]
>> > [criterium=all,
>> > interaction=all,
>> >  alternative=c]
>> >
>> >\stoptitle
>> >
>> >  \stopfrontmatter
>> >
>> >  \startbodymatter
>> >\component[chapitre_1]
>> >\component[chapitre_2]
>> >\component[chapitre_3]
>> >\component[chapitre_4]
>> >\component[chapitre_5]
>> >\component[chapitre_6]
>> >\component[chapitre_7]
>> >\component[chapitre_8]
>> >\component[chapitre_9]
>> >\component[chapitre_10]
>> >\component[chapitre_11]
>> >\component[chapitre_12]
>> >  \stopbodymatter
>> >
>> > \stopproduct
>> >
>> >
>> >
>> ___
>> > If your question is of interest to others as well, please add an entry
>> to the Wiki!
>> >
>> > maillist : ntg-context@ntg.nl /
>> https://www.ntg.nl/mailman/listinfo/ntg-context
>> > webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
>> > archive  : https://bitbucket.org/phg/context-mirror/commits/
>> > wiki : https://contextgarden.net
>> >
>> ___
>>
>> --
>>
>> -
>>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 /
>> https://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : https://contextgarden.net
>>
>> ___
>>
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Table of contents not appearing.

2023-04-21 Thread Fabrice Couvreur via ntg-context
Hi Hans,
Alright, I'll compile by integrating one component at a time to figure out
which one is causing the problem.
Thanks.
Fabrice

Le jeu. 20 avr. 2023 à 15:52, Hans Hagen via ntg-context 
a écrit :

> On 4/20/2023 6:59 PM, Fabrice Couvreur via ntg-context wrote:
> > Hi,
> > I don't see why the table of contents does not appear. On the other
> > hand, the 12 chapters are present.
>
> \startproduct[terminale-manual]
>
>  \startfrontmatter
>  \starttitle[title=Table des matières]
>  \placelist
> [chapter,section,subsection,subsubsection]
> [criterium=all,
> interaction=all,
>  alternative=c]
>  \stoptitle
>  \stopfrontmatter
>
>  \startbodymatter
>  \chapter{xxx}
>  \stopbodymatter
>
> \stopproduct
>
> shows a table of contents so it must be something in your components
>
> > Fabrice
> >
> >
> > \startproduct[terminale-manual]
> >
> >\project[terminale-environment]
> >\startfrontmatter
> >
> >  \setuppagenumbering
> > [location=]
> >
> >  \definefont
> >[ChapterTextStyle]
> >[SansBold*default sa 2.2]
> >
> >  \setuphead
> >[title]
> >[style=ChapterTextStyle,
> > align=flushright]
> >
> >  \setuplist
> > [chapter]
> > [style=bold,
> >  alternative=b,
> >  width=1em]
> >
> >  \setuplist
> > [section]
> > [margin=1em,
> >  width=1.75em]
> >
> >  \setuplist
> > [subsection]
> > [margin=2.75em,
> >  width=2.25em,
> > distance=\spaceamount]
> >
> >
> >  \starttitle[title=Table des matières]
> >
> >   \placelist
> > [chapter,section,subsection,subsubsection]
> > [criterium=all,
> > interaction=all,
> >  alternative=c]
> >
> >\stoptitle
> >
> >  \stopfrontmatter
> >
> >  \startbodymatter
> >\component[chapitre_1]
> >\component[chapitre_2]
> >\component[chapitre_3]
> >\component[chapitre_4]
> >\component[chapitre_5]
> >\component[chapitre_6]
> >\component[chapitre_7]
> >\component[chapitre_8]
> >\component[chapitre_9]
> >\component[chapitre_10]
> >\component[chapitre_11]
> >\component[chapitre_12]
> >  \stopbodymatter
> >
> > \stopproduct
> >
> >
> >
> ___
> > If your question is of interest to others as well, please add an entry
> to the Wiki!
> >
> > maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : https://contextgarden.net
> >
> ___
>
> --
>
> -
>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 /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Table of contents not appearing.

2023-04-20 Thread Hans Hagen via ntg-context

On 4/20/2023 6:59 PM, Fabrice Couvreur via ntg-context wrote:

Hi,
I don't see why the table of contents does not appear. On the other 
hand, the 12 chapters are present.


\startproduct[terminale-manual]

\startfrontmatter
\starttitle[title=Table des matières]
\placelist
   [chapter,section,subsection,subsubsection]
   [criterium=all,
   interaction=all,
alternative=c]
\stoptitle
\stopfrontmatter

\startbodymatter
\chapter{xxx}
\stopbodymatter

\stopproduct

shows a table of contents so it must be something in your components


Fabrice


\startproduct[terminale-manual]

   \project[terminale-environment]
   \startfrontmatter

     \setuppagenumbering
        [location=]

     \definefont
       [ChapterTextStyle]
       [SansBold*default sa 2.2]

     \setuphead
       [title]
       [style=ChapterTextStyle,
        align=flushright]

     \setuplist
        [chapter]
        [style=bold,
         alternative=b,
         width=1em]

     \setuplist
        [section]
        [margin=1em,
         width=1.75em]

     \setuplist
        [subsection]
        [margin=2.75em,
         width=2.25em,
        distance=\spaceamount]


     \starttitle[title=Table des matières]

          \placelist
            [chapter,section,subsection,subsubsection]
            [criterium=all,
            interaction=all,
             alternative=c]

       \stoptitle

     \stopfrontmatter

     \startbodymatter
       \component[chapitre_1]
       \component[chapitre_2]
       \component[chapitre_3]
       \component[chapitre_4]
       \component[chapitre_5]
       \component[chapitre_6]
       \component[chapitre_7]
       \component[chapitre_8]
       \component[chapitre_9]
       \component[chapitre_10]
       \component[chapitre_11]
       \component[chapitre_12]
     \stopbodymatter

\stopproduct


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


--

-
  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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Table of contents not appearing.

2023-04-20 Thread Fabrice Couvreur via ntg-context
Hi,
I don't see why the table of contents does not appear. On the other hand,
the 12 chapters are present.
Thanks
Fabrice


\startproduct[terminale-manual]

  \project[terminale-environment]
  \startfrontmatter

\setuppagenumbering
   [location=]

\definefont
  [ChapterTextStyle]
  [SansBold*default sa 2.2]

\setuphead
  [title]
  [style=ChapterTextStyle,
   align=flushright]

\setuplist
   [chapter]
   [style=bold,
alternative=b,
width=1em]

\setuplist
   [section]
   [margin=1em,
width=1.75em]

\setuplist
   [subsection]
   [margin=2.75em,
width=2.25em,
   distance=\spaceamount]


\starttitle[title=Table des matières]

 \placelist
   [chapter,section,subsection,subsubsection]
   [criterium=all,
   interaction=all,
alternative=c]

  \stoptitle

\stopfrontmatter

\startbodymatter
  \component[chapitre_1]
  \component[chapitre_2]
  \component[chapitre_3]
  \component[chapitre_4]
  \component[chapitre_5]
  \component[chapitre_6]
  \component[chapitre_7]
  \component[chapitre_8]
  \component[chapitre_9]
  \component[chapitre_10]
  \component[chapitre_11]
  \component[chapitre_12]
\stopbodymatter

\stopproduct
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Table of contents in the middle of a document

2023-04-17 Thread Alan Braslau via ntg-context
Try:

\completecontent [criterium=all]

Alan


On Tue, 18 Apr 2023 01:06:02 +0200
Kalouguine Andre via ntg-context  wrote:

> Hi, 
> 
> I was trying to have my "Acknowledgements" section/chapter before the
> table of contents but be contained within it. 
> 
> Is it normal that the table of contents is empty if there is a chapter
> that begins before it? 
> 
> ``` 
> 
> \starttext
> \chapter{Acknowledgements}
> Thank you
> 
> \completecontent
> 
> \chapter{Intro}
> 
> \chapter{Problem}
> 
> \chapter{Solution}
> \stoptext 
> 
> ``` 
> 
> I'm mostly looking for an explanation rather than a direct solution,
> I'd like to understand why it's empty. It works when using sections
> instead of chapters. 
> 
> Best regards,
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Table of contents in the middle of a document

2023-04-17 Thread Kalouguine Andre via ntg-context
Hi, 

I was trying to have my "Acknowledgements" section/chapter before the
table of contents but be contained within it. 

Is it normal that the table of contents is empty if there is a chapter
that begins before it? 

``` 

\starttext
\chapter{Acknowledgements}
Thank you

\completecontent

\chapter{Intro}

\chapter{Problem}

\chapter{Solution}
\stoptext 

``` 

I'm mostly looking for an explanation rather than a direct solution, I'd
like to understand why it's empty. It works when using sections instead
of chapters. 

Best regards,

-- 
Kalouguine Andre___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Table

2023-03-13 Thread Ursula Hermann via ntg-context
Dear Mikael!

Many thanks, that works great!

Uschi

Von: ntg-context  Im Auftrag von Mikael Sundqvist 
via ntg-context
Gesendet: Montag, 13. März 2023 14:16
An: mailing list for ConTeXt users 
Cc: Mikael Sundqvist 
Betreff: Re: [NTG-context] Table

Hi Uschi,

On Mon, Mar 13, 2023 at 1:03 PM Ursula Hermann via ntg-context 
mailto:ntg-context@ntg.nl>> wrote:
I’d like to do a Table lik this one
[enter image description here]
I have no example. How can I do that?

Many thanks
Uschi

There are probably better ways, but this seems to give something like what you 
look for:

\starttext

\setupTABLE[c][align=middle]
\setupTABLE[c][odd][width=2em]
\setupTABLE[c][even][width=1mm]
\setupTABLE[r][2][height=1mm]
\setupTABLE[c][1][leftframe=off]
\setupTABLE[c][5][rightframe=off]

\bTABLE
  \bTR
\bTD 1 \eTD \bTD \eTD \bTD 2 \eTD \bTD \eTD \bTD 3 \eTD
  \eTR
  \bTR
\bTD   \eTD \bTD \eTD \bTD   \eTD \bTD \eTD \bTD   \eTD
  \eTR
  \bTR
\bTD 4 \eTD \bTD \eTD \bTD 5 \eTD \bTD \eTD \bTD 6 \eTD
  \eTR
  \bTR
\bTD 7 \eTD \bTD \eTD \bTD 8 \eTD \bTD \eTD \bTD 9 \eTD
  \eTR
\eTABLE

\stoptext

/Mikael
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Table

2023-03-13 Thread Mikael Sundqvist via ntg-context
Hi Uschi,

On Mon, Mar 13, 2023 at 1:03 PM Ursula Hermann via ntg-context <
ntg-context@ntg.nl> wrote:

> I’d like to do a Table lik this one
>
> [image: enter image description here]
>
> I have no example. How can I do that?
>
>
>
> Many thanks
>
> Uschi
>

There are probably better ways, but this seems to give something like what
you look for:

\starttext

\setupTABLE[c][align=middle]
\setupTABLE[c][odd][width=2em]
\setupTABLE[c][even][width=1mm]
\setupTABLE[r][2][height=1mm]
\setupTABLE[c][1][leftframe=off]
\setupTABLE[c][5][rightframe=off]

\bTABLE
\bTR
\bTD 1 \eTD \bTD \eTD \bTD 2 \eTD \bTD \eTD \bTD 3 \eTD
\eTR
\bTR
\bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD
\eTR
\bTR
\bTD 4 \eTD \bTD \eTD \bTD 5 \eTD \bTD \eTD \bTD 6 \eTD
\eTR
\bTR
\bTD 7 \eTD \bTD \eTD \bTD 8 \eTD \bTD \eTD \bTD 9 \eTD
\eTR
\eTABLE

\stoptext

/Mikael
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Table

2023-03-13 Thread Ursula Hermann via ntg-context
I'd like to do a Table lik this one
[enter image description here]
I have no example. How can I do that?

Many thanks
Uschi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Table of Contents empty for unknown reason

2022-06-13 Thread Aditya Mahajan via ntg-context
On Sun, 12 Jun 2022, Joel via ntg-context wrote:

> I need to display a table of contents, but only displaying chapters.
> 
> Here is my minimum working example:

You need to add "criterium=all" to both placelist and completecontent. See 
below:

> \starttext
>     \startfrontmatter
>         \startchapter[title={Contents}]
>             \placelist[chapter][criterium=all]
>         \stopchapter
>         \completecontent[criterium=all]
>     \stopfrontmatter
>     \startbodymatter
>     \startchapter[title={Title 1}]
>     \input knuth
>     \stopchapter
>     \stopbodymatter
> 
> \stoptext

Aditya___
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 of Contents empty for unknown reason

2022-06-12 Thread Joel via ntg-context
I need to display a table of contents, but only displaying chapters.

Here is my minimum working example:
\starttext
    \startfrontmatter
        \startchapter[title={Contents}]
            \placelist[chapter]
        \stopchapter
        \completecontent
    \stopfrontmatter
    \startbodymatter
    \startchapter[title={Title 1}]
    \input knuth
    \stopchapter
    \stopbodymatter

\stoptext

For reasons I don't understand, both  \placelist[chapter] and \completecontent 
display the title, but are otherwise empty of contents. I believe the code was 
working before an update. I used ConTeXt live though and confirmed this code 
even doesn't work there.
Why isn't it rendering the table of contents?
--Joel

___
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] Table breaks incorrectly between pages

2022-05-15 Thread śrīrāma via ntg-context
On 5/15/22 6:18 PM Bruce Horrocks wrote:
> Too slow!!
> 
> I'd already added https://wiki.contextgarden.net/
TABLE#Tables_in_page_headers.

Hmm. I searched the wiki for '\bTABLEnested' and this did not show up there. I 
just now checked the edit history now and you seemed to have added it just 
four minutes after I made the first edit to add it! Then, I wrote a more 
detailed example. Looks like we added it around the same time.

Sorry if I created any confusion. 

  Sreeram


___
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] Table breaks incorrectly between pages

2022-05-15 Thread Bruce Horrocks via ntg-context
Too slow!!

I'd already added https://wiki.contextgarden.net/TABLE#Tables_in_page_headers.

> On 15 May 2022, at 12:00, śrīrāma via ntg-context  wrote:
> 
> On 5/15/22 2:20 PM Wolfgang Schuster via ntg-context wrote:
>> Use the TABLEnested environment in your document header which was added
>> to avoid problems like in your example.
>> 
>> \startsetups headertext
>> \bTABLEnested[setups=headertable,option=stretch]
>> ...
>> \eTABLEnested
>> \stopsetups
> 
> Splendid (as always)! Definitely a better solution for Stefan's document.
> 
> I added a section in the wiki making a note of this:
>  https://wiki.contextgarden.net/TABLE#Headers_with_TABLEs
> 
> Thanks Wolfgang! Until now, I did not even know of the 'nested' type for 
> TABLE.
> 
>  Sreeram
> 

—
Bruce Horrocks
Hampshire, UK

___
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] Table breaks incorrectly between pages

2022-05-15 Thread śrīrāma via ntg-context
On 5/15/22 2:20 PM Wolfgang Schuster via ntg-context wrote:
> Use the TABLEnested environment in your document header which was added
> to avoid problems like in your example.
> 
> \startsetups headertext
> \bTABLEnested[setups=headertable,option=stretch]
> ...
> \eTABLEnested
> \stopsetups

Splendid (as always)! Definitely a better solution for Stefan's document.

I added a section in the wiki making a note of this:
  https://wiki.contextgarden.net/TABLE#Headers_with_TABLEs

Thanks Wolfgang! Until now, I did not even know of the 'nested' type for 
TABLE.

  Sreeram


___
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] Table breaks incorrectly between pages

2022-05-15 Thread Wolfgang Schuster via ntg-context

Stefan Nedeljkovic via ntg-context schrieb am 13.05.2022 um 09:00:
Dear list I need your help with a table that seems to completely 
screw up the page when it spans across multiple pages. I'm attaching 
all the necessary files.


Use the TABLEnested environment in your document header which was added 
to avoid problems like in your example.


\startsetups headertext
\bTABLEnested[setups=headertable,option=stretch]
...
\eTABLEnested
\stopsetups

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] Table breaks incorrectly between pages

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
Wow, thank you very, very much!

On Sun, 15 May 2022, 05:35 śrīrāma,  wrote:

> On 5/13/22 12:30 PM Stefan Nedeljkovic via ntg-context wrote:
> > Dear list I need your help with a table that seems to completely screw up
> > the page when it spans across multiple pages. I'm attaching all the
> > necessary files.
> >
> > Kind regards,
> > Stefan
>
> This seems to be a known issue for quite a while, see here:
>   https://www.mail-archive.com/ntg-context@ntg.nl/msg69827.html
>
> As Wolfgang suggested there, you can use framed instead of TABLE in your
> header. I have modified your example file (see attached). With that you
> get the
> attached PDF.
>
> By the way, your example was missing a \bTABLEhead. Moreover, I believe
> cells
> in TABLE head entries should be enclosed by \bTH \eTH instead of \(b|e)TD.
> I
> have made these changes as well.
>
> [Also, I hope you are aware that you can use style=\tt, style=\bf per row/
> column/cell with \setupTABLE; that will significantly reduce markup in
> your
> file]
>
> Best,
>   Sreeram
___
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] Table breaks incorrectly between pages

2022-05-14 Thread śrīrāma via ntg-context
On 5/13/22 12:30 PM Stefan Nedeljkovic via ntg-context wrote:
> Dear list I need your help with a table that seems to completely screw up
> the page when it spans across multiple pages. I'm attaching all the
> necessary files.
> 
> Kind regards,
> Stefan

This seems to be a known issue for quite a while, see here:
  https://www.mail-archive.com/ntg-context@ntg.nl/msg69827.html

As Wolfgang suggested there, you can use framed instead of TABLE in your 
header. I have modified your example file (see attached). With that you get the 
attached PDF.

By the way, your example was missing a \bTABLEhead. Moreover, I believe cells 
in TABLE head entries should be enclosed by \bTH \eTH instead of \(b|e)TD. I 
have made these changes as well.

[Also, I hope you are aware that you can use style=\tt, style=\bf per row/
column/cell with \setupTABLE; that will significantly reduce markup in your 
file]

Best,
  Sreeram% kate: hl ctx

\input fonts

\usetypescript[ibmplex][uc]
\setupbodyfont[ibmplex,rm,9pt]

\setuppapersize[A4]
\setuplayout[
leftedge=\dimexpr0cm,
rightedge=\dimexpr0cm,
leftedgedistance=\dimexpr0cm,
rightedgedistance=\dimexpr0cm,
leftmargin=\dimexpr0cm,
rightmargin=\dimexpr0cm,
leftmargindistance=\dimexpr0cm,
rightmargindistance=\dimexpr0cm,
width=middle,
cutspace=\dimexpr1.5cm,
backspace=\dimexpr1.5cm,
topspace=\dimexpr1.5cm,
header=\dimexpr4cm,
height=middle,
bottomspace=\dimexpr0cm,
footer=\dimexpr0.5cm]

\setupheadertexts[\directsetup{fheader}]

\definehspace[tnumber][0.5em]

\startsetups [fheader]
\startframed[width=max,frame=off]
\startoverlay
{\leftaligned{\framedtext[location=top,frame=off,width=fit,offset=0ex]{„ДОЛИНА” Д.О.О. Београд\\
  ПЈ за прераду меса\\
  ПИБ: СР 100029284\\
  МБ: 06434517\\
  Текући рачун: 205-157956-65\\
  Email: dolin...@gmail.com}}}
{\rightaligned{\framedtext[location=top,frame=off,width=fit,offset=0ex]{%
  Булевар Краља Александра 334, 11000 Београд\\
  011\hspace[tnumber]3806\hspace[tnumber]007\\
  011\hspace[tnumber]3820\hspace[tnumber]457\\
  011\hspace[tnumber]2419\hspace[tnumber]078\\
  \vskip 2em
  Жике Поповића бб, 12220, Велико Градиште\\
  012\hspace[tnumber]662\hspace[tnumber]016}}}
\stopoverlay
\stopframed
\stopsetups

\startsetups [headertable]
\setupTABLE[frame=off]
\setupTABLE[column][1][align=flushleft]
\setupTABLE[column][2][align=flushright]
\stopsetups

\startsetups headertext
\start
\bTABLE[setups=headertable,option=stretch]
\bTR
\bTD
„ДОЛИНА” Д.О.О. Београд\\
ПЈ за прераду меса\\
ПИБ: СР 100029284\\
МБ: 06434517\\
Текући рачун: 205-157956-65\\
Email: dolin...@gmail.com
\eTD
\bTD
Булевар Краља Александра 334, 11000 Београд\\
011\hspace[tnumber]3806\hspace[tnumber]007\\
011\hspace[tnumber]3820\hspace[tnumber]457\\
011\hspace[tnumber]2419\hspace[tnumber]078\\
\vskip 2em
Жике Поповића бб, 12220, Велико Градиште\\
012\hspace[tnumber]662\hspace[tnumber]016\\
\eTD
\eTR
\eTABLE
\stop
\stopsetups

\setuppagenumbering[location=]
\setupfootertexts[][\midaligned{\userpagenumber/\lastuserpage}]
\starttext
\switchtobodyfont[18pt]
\definehspace[hspacing][0.15em]
О\hspace[hspacing]Т\hspace[hspacing]П\hspace[hspacing]Р\hspace[hspacing]Е\hspace[hspacing]М\hspace[hspacing]Н\hspace[hspacing]И\hspace[hspacing]Ц\hspace[hspacing] А\\
\switchtobodyfont[9pt]
{\bf РАЧУН БРОЈ 3180/09}\\
\vskip 3em
Купац: ХЛАДНИ ИЗВОР\\
Место: РИПАЊ, Авалска бр. 261\\
ПИБ: 103358290\\
МБ: 17556711\\
\vskip 3em
Место издавања рачуна: Велико Градиште\\
Датум издавања рачуна: 04.06.2020. 11:13:03\\
Датум промета: 05.06.2020\\
Датум плаћања: 05.06.2020\\
\vskip 3em\start
\startsetups[maintable]
\setupTABLE[frame=off]
\setupTABLE[row][*][height=7.25mm]
\setupTABLE[column][1][align=flushleft]
\setupTABLE[column][2][align=flushleft]
\setupTABLE[column][3][align=flushleft]
\setupTABLE[column][4][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][5][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][6][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][7][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][8][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][9][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][10][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][11][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][12][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\stopsetups
\switchtobodyfont[6pt]
\startalignment[middle]
\bTABLE[setups=maintable,option=stretch,split=repeat]
\bTABLEhead
\bTR[bottomframe=on, rulethickness=2pt,offset=0.25pt]
\bTH\bf Рб \eTH
\bTH\bf Шифра артикла \eTH
\bTH\bf Назив артикла \eTH
\bTH\bf Јединица мере \eTH
\bTH\bf Количина \eTH
\bTH\bf Цена \eTH
\bTH\bf Износ \eTH
\bTH\bf Попуст \eTH
\bTH\bf Основа за ПДВ \eTH
\bTH\bf Порез \eTH
\bTH\bf Износ пореза \eTH
\bTH\bf Основа за ПДВ + ПДВ 

[NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
Dear list I need your help with a table that seems to completely screw up
the page when it spans across multiple pages. I'm attaching all the
necessary files.

Kind regards,
Stefan
\input fonts

\usetypescript[ibmplex][uc]
\setupbodyfont[ibmplex,rm,9pt]

\setuppapersize[A4]
\setuplayout[
leftedge=\dimexpr0cm,
rightedge=\dimexpr0cm,
leftedgedistance=\dimexpr0cm,
rightedgedistance=\dimexpr0cm,
leftmargin=\dimexpr0cm,
rightmargin=\dimexpr0cm,
leftmargindistance=\dimexpr0cm,
rightmargindistance=\dimexpr0cm,
width=middle,
cutspace=\dimexpr1.5cm,
backspace=\dimexpr1.5cm,
topspace=\dimexpr1.5cm,
header=\dimexpr4cm,
height=middle,
bottomspace=\dimexpr0cm,
footer=\dimexpr0.5cm]


\setupheadertexts[\setups{headertext}]

\definehspace[tnumber][0.5em]

\startsetups [headertable]
\setupTABLE[frame=off]
\setupTABLE[column][1][align=flushleft]
\setupTABLE[column][2][align=flushright]
\stopsetups

\startsetups headertext
\start
\bTABLE[setups=headertable,option=stretch]
\bTR
\bTD
„ДОЛИНА” Д.О.О. Београд\\
ПЈ за прераду меса\\
ПИБ: СР 100029284\\
МБ: 06434517\\
Текући рачун: 205-157956-65\\
Email: dolin...@gmail.com
\eTD
\bTD
Булевар Краља Александра 334, 11000 Београд\\
011\hspace[tnumber]3806\hspace[tnumber]007\\
011\hspace[tnumber]3820\hspace[tnumber]457\\
011\hspace[tnumber]2419\hspace[tnumber]078\\
\vskip 2em
Жике Поповића бб, 12220, Велико Градиште\\
012\hspace[tnumber]662\hspace[tnumber]016\\
\eTD
\eTR
\eTABLE
\stop
\stopsetups

\setuppagenumbering[location=]
\setupfootertexts[][\midaligned{\userpagenumber/\lastuserpage}]
\starttext
\switchtobodyfont[18pt]
\definehspace[hspacing][0.15em]
О\hspace[hspacing]Т\hspace[hspacing]П\hspace[hspacing]Р\hspace[hspacing]Е\hspace[hspacing]М\hspace[hspacing]Н\hspace[hspacing]И\hspace[hspacing]Ц\hspace[hspacing] А\\
\switchtobodyfont[9pt]
{\bf РАЧУН БРОЈ 3180/09}\\
\vskip 3em
Купац: ХЛАДНИ ИЗВОР\\
Место: РИПАЊ, Авалска бр. 261\\
ПИБ: 103358290\\
МБ: 17556711\\
\vskip 3em
Место издавања рачуна: Велико Градиште\\
Датум издавања рачуна: 04.06.2020. 11:13:03\\
Датум промета: 05.06.2020\\
Датум плаћања: 05.06.2020\\
\vskip 3em\start
\startsetups[maintable]
\setupTABLE[frame=off]
\setupTABLE[row][*][height=7.25mm]
\setupTABLE[column][1][align=flushleft]
\setupTABLE[column][2][align=flushleft]
\setupTABLE[column][3][align=flushleft]
\setupTABLE[column][4][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][5][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][6][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][7][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][8][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][9][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][10][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][11][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][12][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\stopsetups
\switchtobodyfont[6pt]
\startalignment[middle]
\bTABLE[setups=maintable,option=stretch,split=yes,header=repeat]
\bTR[bottomframe=on, rulethickness=2pt,offset=0.25pt]
\bTD\bf Рб \eTD
\bTD\bf Шифра артикла \eTD
\bTD\bf Назив артикла \eTD
\bTD\bf Јединица мере \eTD
\bTD\bf Количина \eTD
\bTD\bf Цена \eTD
\bTD\bf Износ \eTD
\bTD\bf Попуст \eTD
\bTD\bf Основа за ПДВ \eTD
\bTD\bf Порез \eTD
\bTD\bf Износ пореза \eTD
\bTD\bf Основа за ПДВ + ПДВ \eTD
\eTR
\eTABLEhead
\bTABLEbody
\bTR[bottomframe=on,rulethickness=.25pt,offset=2pt]
\bTD\tt 1 \eTD
\bTD\tt 011 \eTD
\bTD ПЕЧЕНИЦА \eTD
\bTD kg \eTD
\bTD\tt 4.22 \eTD
\bTD\tt 1,000.00 \eTD
\bTD\tt 4,220.00 \eTD
\bTD\tt 0.15 \eTD
\bTD\tt 3,587.00 \eTD
\bTD\tt 0.2 \eTD
\bTD\tt 717.40 \eTD
\bTD\tt 4,304.40 \eTD
\eTR\bTR[bottomframe=on,rulethickness=.25pt,offset=2pt]
\bTD\tt 2 \eTD
\bTD\tt 013 \eTD
\bTD ВРАТ \eTD
\bTD kg \eTD
\bTD\tt 1.77 \eTD
\bTD\tt 900.00 \eTD
\bTD\tt 1,593.00 \eTD
\bTD\tt 0.15 \eTD
\bTD\tt 1,354.05 \eTD
\bTD\tt 0.2 \eTD
\bTD\tt 270.81 \eTD
\bTD\tt 1,624.86 \eTD
\eTR\bTR[bottomframe=on,rulethickness=.25pt,offset=2pt]
\bTD\tt 3 \eTD
\bTD\tt 016 \eTD
\bTD ШПИЦ РЕБРА \eTD
\bTD kg \eTD
\bTD\tt 10.45 \eTD
\bTD\tt 490.00 \eTD
\bTD\tt 5,120.50 \eTD
\bTD\tt 0.10 \eTD
\bTD\tt 4,608.45 \eTD
\bTD\tt 0.2 \eTD
\bTD\tt 921.69 \eTD
\bTD\tt 5,530.14 \eTD
\eTR\bTR[bottomframe=on,rulethickness=.25pt,offset=2pt]
\bTD\tt 4 \eTD
\bTD\tt 021 \eTD
\bTD ПИКАНТ СЛАНИНА \eTD
\bTD kg \eTD
\bTD\tt 2.57 \eTD
\bTD\tt 767.00 \eTD
\bTD\tt 1,971.19 \eTD
\bTD\tt 0.15 \eTD
\bTD\tt 1,675.51 \eTD
\bTD\tt 0.2 \eTD
\bTD\tt 335.10 \eTD
\bTD\tt 2,010.61 \eTD
\eTR\bTR[bottomframe=on,rulethickness=.25pt,offset=2pt]
\bTD\tt 5 \eTD
\bTD\tt 042 \eTD
\bTD ДОМАЋА КОБАСИЦА \eTD
\bTD kg \eTD
\bTD\tt 5 \eTD
\bTD\tt 350.00 \eTD
\bTD\tt 1,750.00 \eTD
\bTD\tt 0.20 \eTD
\bTD\tt 1,400.00 \eTD
\bTD\tt 0.2 \eTD
\bTD\tt 280.00 \eTD
\bTD\tt 1,680.00 \eTD

Re: [NTG-context] Table of Contents Header?

2021-12-30 Thread kauśika via ntg-context
On Friday, December 31, 2021 7:53:08 AM IST Michael Urban via ntg-context 
wrote:
> Or is there some more foolproof way of getting those headers into the right
> place?

Here is something I quickly wrote up:

First, define some labels for the columns of the ToC —
\definesynonyms[toclabel][toclabel][\TOCLabel]
\setupsynonyms[toclabel][textstyle=\sc]
\toclabel{TOCNumberLabel}{Chapter}
\toclabel{TOCTitleLabel}{Title}
\toclabel{TOCPageLabel}{Page}
Then compute the width of the chapter-number and page-number labels
\setwidthof\TOCLabel{TOCNumberLabel}\to\TOCNumberLabelWidth
\setwidthof\TOCLabel{TOCPageLabel}\to\TOCPageLabelWidth
and define a 'paragraphs' block with 3 columns with a separation of 1em between 
each column
\defineparagraphs
[TOCpar]
[n=3]
\setupparagraphs
[TOCpar]
[each]
[distance=1em]
Set the width of the first column to the width of the label (and center chapter 
number)
\setupparagraphs
[TOCpar]
[1]
[width=\dimexpr\TOCNumberLabelWidth,
 align=middle]
and similarly for the third column (and center the page number)
\setupparagraphs
[TOCpar]
[3]
[width=\dimexpr\TOCPageLabelWidth,
 align=middle]
Finally, wrap it all up in the macro 
\define[3]\TOCEntry{%
\startTOC
#1 \TOCpar #2 \TOCpar #3%
\stopTOC%
}
and indicate the command to use in the setup 
\setuplist
[chapter]
[alternative=interactive,
 command=\TOCEntry,
 after=\endgraf] % required

The ToC along with column labels is placed with 
\TOCLabel{TOCNumberLabel}%
\hfill\TOCLabel{TOCTitleLabel}\hfill%
\TOCLabel{TOCPageLabel}
\placecontent

Of course, you can choose to not set the 'align' keys in \setupparagraphs[TOC] 
if center alignment is not required/desired.

Hope this helps.

Best,
kauśika


___
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 of Contents Header?

2021-12-30 Thread Michael Urban via ntg-context
I am playing around with imitating the design of fiction books from the early 
20th century.   The table of contents for these books often has small headings, 
'CHAPTER' (or 'CHAP.') and 'PAGE' over the respective columns.   How might this 
best be accomplished in ConTeXt?  Just add a carefully formatted line before 
the \placecontent ?  Or is there some more foolproof way of getting those 
headers into the right place?
___
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] Table disappears in floatcombination

2021-03-28 Thread Christoph Reller
On Mon, Jan 4, 2021 at 7:59 PM Christoph Reller 
wrote:

> On Sat, Dec 26, 2020 at 3:01 PM Hans Hagen  wrote:
>
>> On 12/26/2020 2:56 PM, Christoph Reller wrote:
>> >
>> > On Sat, Dec 26, 2020 at 10:54 AM Hans Hagen > > > wrote:
>> >
>> > On 12/25/2020 9:47 PM, Christoph Reller wrote:
>> >  > Hi,
>> >  >
>> >  > Consider the following MWE:
>> >  >
>> >  > \definefloat[combination][figure]
>> >  > \setupcaptions[
>> >  >number=no, %<- comment and table appears
>> >  >align=flushright]
>> >  > \starttext
>> >  > \startplacecombination[title=Combination]
>> >  >\startfloatcombination
>> >  >  \startplacetable%[title=Table] %<- uncomment and table
>> appears
>> >  >\bTABLE \bTR \bTD Cell \eTD \eTR \eTABLE
>> >  >  \stopplacetable
>> >  >\stopfloatcombination
>> >  > \stopplacecombination
>> >  > \stoptext
>> >  >
>> >  > In the latest LMTX version of ConTeXt, the table is not shown.
>> > (In MKIV
>> >  > it is present.) Either commenting line 3 or activating the table
>> > title
>> >  > in line 8 makes the table appear.
>> >
>> > what version of mkiv did you test?
>> >
>> >
>> > Okay, the MKIV version is a little bit dated: 2018.05.19_21.46.
>> > Still: How can I get floats without captions within a
>> > floatcombination environment?
>> I (or Wolfgang) needs to look into it, maybe something got lost.
>>
>
> I hope that you find the time to solve this issue. Disappearing tables are
> not so nice :(
> Your work is much appreciated!
>

Just a reminder that this issue still persists in the latest version of
ConTeXt LMTX. A fix would be highly appreciated.

Cheers, Christoph
___
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] Table of Content

2021-02-12 Thread Hans Hagen

On 2/12/2021 4:52 PM, Pablo Rodriguez wrote:

On 2/12/21 4:40 PM, Hans Hagen wrote:

On 2/12/2021 3:43 PM, Pablo Rodriguez wrote:

[...]
"\page\null\page" does the trick in your case.


\page[left,empty,right] etc


Hans,

I never thought this were possible:

   \starttext
   \page[left,empty,right,
   left,empty,right,
   left,empty,right]
   \stoptext

pretty old feature ... there are more options

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] Table of Content

2021-02-12 Thread Pablo Rodriguez
On 2/12/21 4:40 PM, Hans Hagen wrote:
> On 2/12/2021 3:43 PM, Pablo Rodriguez wrote:
>> [...]
>> "\page\null\page" does the trick in your case.
>
> \page[left,empty,right] etc

Hans,

I never thought this were possible:

  \starttext
  \page[left,empty,right,
  left,empty,right,
  left,empty,right]
  \stoptext

Pablo
--
http://www.ousia.tk
___
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] Table of Content

2021-02-12 Thread Pablo Rodriguez
On 2/11/21 12:11 PM, Ursula Hermann wrote:
> Dear List!
>
>
> I did this example, which works perfect. If i would like to  take a new
> page after the Table of Content, is \page the right way? 

Hi Ursula,

"\page\null\page" does the trick in your case.

"\setuppagenumber[alternative=doublesided]" is a much more consistent
approach, but I don’t know what your requirements might be.

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
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 of Content

2021-02-11 Thread Ursula Hermann
Dear List!


I did this example, which works perfect. If i would like to  take a new page 
after the Table of Content, is \page the right way?

% mode=mkiv
\setuppapersize[A7][A7]
\language[de]
%list the "subject" sections in the ToC but don't modify the "section" counter:
\setuphead[subject]  [incrementnumber=list]

%"width": distance between number and text in the ToC entry, "margin" : indent 
of ToC entry relative to left page margin
\setuplist[section][width=1.5em]
\setuplist[subsection][width=2.5em, margin=1.5em]
\setuplist[subject]
\setuplist[subject, section, subsection]

\setupcombinedlist[content][list={subject,section,subsection}, alternative=c]

\starttext
\placecontent
\setupuserpagenumber[numberconversion=romannumerals]
\setcounter[userpage][5]
\page
\subject{Vorwort}
\page
\setupuserpagenumber[numberconversion=numbers]
\setcounter[userpage][12]
\section{One}
\subsection{Sec A}
\section{Two}
\subject{Bibliography}
\stoptext

Uschi


___
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] Table disappears in floatcombination

2020-12-26 Thread Christoph Reller
On Sat, Dec 26, 2020 at 10:54 AM Hans Hagen  wrote:

> On 12/25/2020 9:47 PM, Christoph Reller wrote:
> > Hi,
> >
> > Consider the following MWE:
> >
> > \definefloat[combination][figure]
> > \setupcaptions[
> >number=no, %<- comment and table appears
> >align=flushright]
> > \starttext
> > \startplacecombination[title=Combination]
> >\startfloatcombination
> >  \startplacetable%[title=Table] %<- uncomment and table appears
> >\bTABLE \bTR \bTD Cell \eTD \eTR \eTABLE
> >  \stopplacetable
> >\stopfloatcombination
> > \stopplacecombination
> > \stoptext
> >
> > In the latest LMTX version of ConTeXt, the table is not shown. (In MKIV
> > it is present.) Either commenting line 3 or activating the table title
> > in line 8 makes the table appear.
>
> what version of mkiv did you test?
>

Okay, the MKIV version is a little bit dated: 2018.05.19_21.46.
Still: How can I get floats without captions within a
floatcombination environment?
Christoph
___
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] Table disappears in floatcombination

2020-12-26 Thread Hans Hagen

On 12/25/2020 9:47 PM, Christoph Reller wrote:

Hi,

Consider the following MWE:

\definefloat[combination][figure]
\setupcaptions[
   number=no, %<- comment and table appears
   align=flushright]
\starttext
\startplacecombination[title=Combination]
   \startfloatcombination
     \startplacetable%[title=Table] %<- uncomment and table appears
       \bTABLE \bTR \bTD Cell \eTD \eTR \eTABLE
     \stopplacetable
   \stopfloatcombination
\stopplacecombination
\stoptext

In the latest LMTX version of ConTeXt, the table is not shown. (In MKIV 
it is present.) Either commenting line 3 or activating the table title 
in line 8 makes the table appear.


what version of mkiv did you test?

Also, once the captions appear, they don't align on the right side. When 
changing the caption alignment to "align=flushleft", they align 
perfectly on the left side.


Am I doing something wrong?

Cheers,

Christoph

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




--

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


[NTG-context] Table disappears in floatcombination

2020-12-25 Thread Christoph Reller
Hi,

Consider the following MWE:

\definefloat[combination][figure]
\setupcaptions[
  number=no, %<- comment and table appears
  align=flushright]
\starttext
\startplacecombination[title=Combination]
  \startfloatcombination
\startplacetable%[title=Table] %<- uncomment and table appears
  \bTABLE \bTR \bTD Cell \eTD \eTR \eTABLE
\stopplacetable
  \stopfloatcombination
\stopplacecombination
\stoptext

In the latest LMTX version of ConTeXt, the table is not shown. (In MKIV it
is present.) Either commenting line 3 or activating the table title in line
8 makes the table appear.

Also, once the captions appear, they don't align on the right side. When
changing the caption alignment to "align=flushleft", they align perfectly
on the left side.

Am I doing something wrong?

Cheers,

Christoph
___
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] Table-bug in lmtx?

2020-03-31 Thread Christian Prim
Hello Hans

many thanks for the fix!

Christian

Am Mo., 30. März 2020 um 22:45 Uhr schrieb Hans Hagen :

> On 3/30/2020 6:23 PM, Christian Prim wrote:
> > Hello list
> >
> > following MWE gives a strange error "(interwoven alignment preambles are
> > not allowed)" when processed with lmtx:
> >
> > \definetabletemplate[fosa][s0|xp(3.5cm)|lw(0.7cm)|xp(5cm)s2|lw(2.5cm)|]
> > \starttext
> > \starttable[fosa]
> > \NC Cell 1 \NC\Use3[p(8cm)]{A longer cell}\NC\AR
> > \MR
> > \NC Cell 1 \NC Cell 2 \NC Cell 3 \NC Cell 4 \NC\AR
> > \stoptable
> > \stoptext
> >
> > No problems in mkiv.
> > I think Use3 is the problem, but I'm not sure...
> I found the issue (in the engine) ... tomorrow I'll upload a new one.
>
> 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
>
> ___
>
___
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] Table-bug in lmtx?

2020-03-30 Thread Hans Hagen

On 3/30/2020 6:23 PM, Christian Prim wrote:

Hello list

following MWE gives a strange error "(interwoven alignment preambles are 
not allowed)" when processed with lmtx:


\definetabletemplate[fosa][s0|xp(3.5cm)|lw(0.7cm)|xp(5cm)s2|lw(2.5cm)|]
\starttext
\starttable[fosa]
\NC Cell 1 \NC\Use3[p(8cm)]{A longer cell}\NC\AR
\MR
\NC Cell 1 \NC Cell 2 \NC Cell 3 \NC Cell 4 \NC\AR
\stoptable
\stoptext

No problems in mkiv.
I think Use3 is the problem, but I'm not sure...

I found the issue (in the engine) ... tomorrow I'll upload a new one.

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] Table-bug in lmtx?

2020-03-30 Thread Wolfgang Schuster

Christian Prim schrieb am 30.03.2020 um 18:23:

Hello list

following MWE gives a strange error "(interwoven alignment preambles are 
not allowed)" when processed with lmtx:


\definetabletemplate[fosa][s0|xp(3.5cm)|lw(0.7cm)|xp(5cm)s2|lw(2.5cm)|]
\starttext
\starttable[fosa]
\NC Cell 1 \NC\Use3[p(8cm)]{A longer cell}\NC\AR
\MR
\NC Cell 1 \NC Cell 2 \NC Cell 3 \NC Cell 4 \NC\AR
\stoptable
\stoptext

No problems in mkiv.
I think Use3 is the problem, but I'm not sure...


No, the problem is when you set a width for a cell.

\starttext

\starttable[|w(3cm)|]
\NC Cell \NC\SR
\stoptable

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


[NTG-context] Table-bug in lmtx?

2020-03-30 Thread Christian Prim
Hello list

following MWE gives a strange error "(interwoven alignment preambles are
not allowed)" when processed with lmtx:

\definetabletemplate[fosa][s0|xp(3.5cm)|lw(0.7cm)|xp(5cm)s2|lw(2.5cm)|]
\starttext
\starttable[fosa]
\NC Cell 1 \NC\Use3[p(8cm)]{A longer cell}\NC\AR
\MR
\NC Cell 1 \NC Cell 2 \NC Cell 3 \NC Cell 4 \NC\AR
\stoptable
\stoptext

No problems in mkiv.
I think Use3 is the problem, but I'm not sure...

Many thanks for your help
Christian
___
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] table cell minimum heights -- help needed

2018-12-16 Thread Wolfgang Schuster

Aditya Mahajan schrieb am 14.12.18 um 15:18:

On Thu, 13 Dec 2018, Taco Hoekwater wrote:


I am attempting to process html tables that are styled using css,
and I have problem with the ‘height’ property. CSS (or rather, the 
html browser) interprets ‘height’ as if it was a “minheight”, and

if the content does not fit, it will just enlarge the height until
it does fit.

Needless to say: I want that same functionality from the ConTeXt
table I am using to generate the PDF and not end up with text 
crossing row boundaries. And I cannot figure out how

to do it, as neither bTABLE’s \bTD nor xtable’s \startxcell
interpret a “minheight" parameter. And whatever I put in “height”
becomes the absolute value of the cell height.
Did I miss something? I cannot imagine that this problem has not
come up before…


AFAIK, there is no option to do this. The closest option is 
`autowidth=force` for `\framed` etc. which forces `width` to behaves 
as `maxwidth`. It will be nice to explicitly add both 
minwidth/minheight and maxwidth/maxheight options to framed, etc.


Adding minwidth is possible without problems but maximum values
can be problematic because you have to do a lot of size checks
and since framed is used by many other commands you would
increase compilation time.

The better solution to have maxwidth/maxheight support is to create
a new command which uses multiple passes to get the necessary
values for both directions (which already happens for natural and
extreme tables).

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] table cell minimum heights -- help needed

2018-12-14 Thread Taco Hoekwater
Hi all,

Offlist, Wolfgang sent me a patch for \framed (which \eTD inherits from) 
that adds a minheight key, and Hans promised to add that to the next beta :)

Best wishes,
Taco

> On 14 Dec 2018, at 15:18, Aditya Mahajan  wrote:
> 
> On Thu, 13 Dec 2018, Taco Hoekwater wrote:
> 
>> I am attempting to process html tables that are styled using css,
>> and I have problem with the ‘height’ property. CSS (or rather, the html 
>> browser) interprets ‘height’ as if it was a “minheight”, and
>> if the content does not fit, it will just enlarge the height until
>> it does fit.
>> 
>> Needless to say: I want that same functionality from the ConTeXt
>> table I am using to generate the PDF and not end up with text crossing row 
>> boundaries. And I cannot figure out how
>> to do it, as neither bTABLE’s \bTD nor xtable’s \startxcell
>> interpret a “minheight" parameter. And whatever I put in “height”
>> becomes the absolute value of the cell height. 
>> Did I miss something? I cannot imagine that this problem has not
>> come up before…
> 
> AFAIK, there is no option to do this. The closest option is `autowidth=force` 
> for `\framed` etc. which forces `width` to behaves as `maxwidth`. It will be 
> nice to explicitly add both minwidth/minheight and maxwidth/maxheight options 
> to framed, etc.
> 
> Aditya___
> 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
> ___

Taco Hoekwater
Elvenkind BV




___
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] table cell minimum heights -- help needed

2018-12-14 Thread Aditya Mahajan

On Thu, 13 Dec 2018, Taco Hoekwater wrote:


I am attempting to process html tables that are styled using css,
and I have problem with the ‘height’ property. CSS (or rather, the 
html browser) interprets ‘height’ as if it was a “minheight”, and

if the content does not fit, it will just enlarge the height until
it does fit.

Needless to say: I want that same functionality from the ConTeXt
table I am using to generate the PDF and not end up with text 
crossing row boundaries. And I cannot figure out how

to do it, as neither bTABLE’s \bTD nor xtable’s \startxcell
interpret a “minheight" parameter. And whatever I put in “height”
becomes the absolute value of the cell height. 


Did I miss something? I cannot imagine that this problem has not
come up before…


AFAIK, there is no option to do this. The closest option is 
`autowidth=force` for `\framed` etc. which forces `width` to behaves as 
`maxwidth`. It will be nice to explicitly add both minwidth/minheight and 
maxwidth/maxheight options to framed, etc.


Aditya___
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 cell minimum heights -- help needed

2018-12-13 Thread Taco Hoekwater
Hi all,

I am attempting to process html tables that are styled using css,
and I have problem with the ‘height’ property. CSS (or rather, the 
html browser) interprets ‘height’ as if it was a “minheight”, and
if the content does not fit, it will just enlarge the height until
it does fit.

Needless to say: I want that same functionality from the ConTeXt
table I am using to generate the PDF and not end up with text 
crossing row boundaries. And I cannot figure out how
to do it, as neither bTABLE’s \bTD nor xtable’s \startxcell
interpret a “minheight" parameter. And whatever I put in “height”
becomes the absolute value of the cell height. 

Did I miss something? I cannot imagine that this problem has not
come up before…

Best wishes,
Taco

Example code:

\starttext
\bTABLE[frame=on]
\bTR \bTD[height=20pt] \input tufte \eTD \eTR
\eTABLE
\blank[10*line]
\startxtable[frame=on]
\startxrow \startxcell[height=20pt] \input tufte \stopxcell \stopxrow
\stopxtable
\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
___

Re: [NTG-context] Table, xtable and lua

2018-11-11 Thread Wolfgang Schuster

Fabrice Couvreur schrieb am 11.11.18 um 10:50:

Hi Wolfgang and Henri,
Thank you so much.
What is the document that allows me to find more information about 
context and lua ?


1. The ConTeXt Lua manual (cld-mkiv.pdf) which comes with the 
installation (also available on Hans website: 
http://www.pragma-ade.com/show-man-33.htm)


2. The Lua manual which explains how you can write loops 
(https://www.lua.org/docs.html)


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] Table, xtable and lua

2018-11-11 Thread Fabrice Couvreur
Hi Wolfgang and Henri,
Thank you so much.
What is the document that allows me to find more information about context
and lua ?
Fabrice

Le dim. 11 nov. 2018 à 09:57, Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> a écrit :

>
>
> Henri Menke schrieb am 11.11.18 um 01:25:
> >
> > On 11/11/18 12:33 PM, Fabrice Couvreur wrote:
> >> Hi,
> >> I can not complete the first line of the table with the letters of the
> >> alphabet.
> >> Thank you.
> >> Fabrice
> >>
> >> \starttext
> >> \startlinecorrection[blank]
> >> \startmidaligned
> >> \startluacode
> >> context.startxtable({"align=middle, width=1.25cm"})
> >>  context.startxrow()
> >>  context.startxcell({"width=0.5cm"}) context("") context.stopxcell()
> >>  letter = {'A','B','C','D','E','F','G','H','I','J'}
> >>   for letter = 1,10 do
> >>   context.startxcell() context(print(letter))
> context.stopxcell()
> >>   end
> >  letters = {'A','B','C','D','E','F','G','H','I','J'}
> >  for _,letter in ipairs(letters) do
> >  context.startxcell() context(letter) context.stopxcell()
> >  end
>
> A few more alternatives (take a look at the number converter):
>
> \setupbodyfont[dejavu]
>
> \starttext
>
> \startluacode
>
> local letters = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" }
>
> for _, letter in ipairs(letters) do
>  context(letter)
> end
>
> context.par()
>
> for _, letter in next, letters do
>  context(letter)
> end
>
> context.par()
>
> for i=1,10 do
>  context(letters[i])
> end
>
> context.par()
>
> for i=1,10 do
>  context(converters.convert("A",i))
> end
>
> context.par()
>
> for i=1,10 do
>  context(converters.convert("A",i,"ru"))
> end
>
> \stopluacode
>
> \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
>
> ___
___
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] Table, xtable and lua

2018-11-11 Thread Wolfgang Schuster



Henri Menke schrieb am 11.11.18 um 01:25:


On 11/11/18 12:33 PM, Fabrice Couvreur wrote:

Hi,
I can not complete the first line of the table with the letters of the
alphabet.
Thank you.
Fabrice

\starttext
\startlinecorrection[blank]
\startmidaligned
\startluacode
context.startxtable({"align=middle, width=1.25cm"})
 context.startxrow()
 context.startxcell({"width=0.5cm"}) context("") context.stopxcell()
 letter = {'A','B','C','D','E','F','G','H','I','J'}
  for letter = 1,10 do
  context.startxcell() context(print(letter)) context.stopxcell()
  end

 letters = {'A','B','C','D','E','F','G','H','I','J'}
 for _,letter in ipairs(letters) do
 context.startxcell() context(letter) context.stopxcell()
 end


A few more alternatives (take a look at the number converter):

\setupbodyfont[dejavu]

\starttext

\startluacode

local letters = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" }

for _, letter in ipairs(letters) do
    context(letter)
end

context.par()

for _, letter in next, letters do
    context(letter)
end

context.par()

for i=1,10 do
    context(letters[i])
end

context.par()

for i=1,10 do
    context(converters.convert("A",i))
end

context.par()

for i=1,10 do
    context(converters.convert("A",i,"ru"))
end

\stopluacode

\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] Table, xtable and lua

2018-11-10 Thread Henri Menke


On 11/11/18 12:33 PM, Fabrice Couvreur wrote:
> Hi,
> I can not complete the first line of the table with the letters of the
> alphabet.
> Thank you.
> Fabrice
> 
> \starttext
> \startlinecorrection[blank]
> \startmidaligned
> \startluacode
> context.startxtable({"align=middle, width=1.25cm"})
> context.startxrow()
> context.startxcell({"width=0.5cm"}) context("") context.stopxcell()
> letter = {'A','B','C','D','E','F','G','H','I','J'}
>  for letter = 1,10 do
>  context.startxcell() context(print(letter)) context.stopxcell()
>  end

letters = {'A','B','C','D','E','F','G','H','I','J'}
for _,letter in ipairs(letters) do
context.startxcell() context(letter) context.stopxcell()
end

> context.stopxrow()
> context.startxrow({"background=color","backgroundcolor=gray"})
> 
> context.startxcell({"width=0.5cm","background=color","backgroundcolor=white"})
> context("1") context.stopxcell()
> context.startxcell({"width=2cm"}) context("Année") context.stopxcell()
>  for y = 1998,2006 do
>  context.startxcell() context(y) context.stopxcell()
>  end
> context.stopxrow()
> context.startxrow()
> context.startxcell({"width=0.5cm"}) context("2") context.stopxcell()
> 
> context.startxcell({"width=2cm","background=color","backgroundcolor=gray"})
> context("Prix (kg)") context.stopxcell()
>  local p = 1
>  for y = 1,9 do
>  context.startxcell() context("%0.3f",p) context.stopxcell()
>  p = p*1.031
>  end
> context.stopxrow()
> context.stopxtable()
> \stopluacode
> \stopmidaligned
> \stoplinecorrection
> \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
> ___
> 

___
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] Table, xtable and lua

2018-11-10 Thread Henri Menke


On 11/11/18 12:33 PM, Fabrice Couvreur wrote:
> Hi,
> I can not complete the first line of the table with the letters of the
> alphabet.
> Thank you.
> Fabrice
> 
> \starttext
> \startlinecorrection[blank]
> \startmidaligned
> \startluacode
> context.startxtable({"align=middle, width=1.25cm"})
> context.startxrow()
> context.startxcell({"width=0.5cm"}) context("") context.stopxcell()
> letter = {'A','B','C','D','E','F','G','H','I','J'}
>  for letter = 1,10 do
>  context.startxcell() context(print(letter)) context.stopxcell()
>  end

for _,letter in ipairs(letters) do
context.startxcell() context(letter) context.stopxcell()
end

> context.stopxrow()
> context.startxrow({"background=color","backgroundcolor=gray"})
> 
> context.startxcell({"width=0.5cm","background=color","backgroundcolor=white"})
> context("1") context.stopxcell()
> context.startxcell({"width=2cm"}) context("Année") context.stopxcell()
>  for y = 1998,2006 do
>  context.startxcell() context(y) context.stopxcell()
>  end
> context.stopxrow()
> context.startxrow()
> context.startxcell({"width=0.5cm"}) context("2") context.stopxcell()
> 
> context.startxcell({"width=2cm","background=color","backgroundcolor=gray"})
> context("Prix (kg)") context.stopxcell()
>  local p = 1
>  for y = 1,9 do
>  context.startxcell() context("%0.3f",p) context.stopxcell()
>  p = p*1.031
>  end
> context.stopxrow()
> context.stopxtable()
> \stopluacode
> \stopmidaligned
> \stoplinecorrection
> \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
> ___
> 

___
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, xtable and lua

2018-11-10 Thread Fabrice Couvreur
Hi,
I can not complete the first line of the table with the letters of the
alphabet.
Thank you.
Fabrice

\starttext
\startlinecorrection[blank]
\startmidaligned
\startluacode
context.startxtable({"align=middle, width=1.25cm"})
context.startxrow()
context.startxcell({"width=0.5cm"}) context("") context.stopxcell()
letter = {'A','B','C','D','E','F','G','H','I','J'}
 for letter = 1,10 do
 context.startxcell() context(print(letter)) context.stopxcell()
 end
context.stopxrow()
context.startxrow({"background=color","backgroundcolor=gray"})

context.startxcell({"width=0.5cm","background=color","backgroundcolor=white"})
context("1") context.stopxcell()
context.startxcell({"width=2cm"}) context("Année") context.stopxcell()
 for y = 1998,2006 do
 context.startxcell() context(y) context.stopxcell()
 end
context.stopxrow()
context.startxrow()
context.startxcell({"width=0.5cm"}) context("2") context.stopxcell()

context.startxcell({"width=2cm","background=color","backgroundcolor=gray"})
context("Prix (kg)") context.stopxcell()
 local p = 1
 for y = 1,9 do
 context.startxcell() context("%0.3f",p) context.stopxcell()
 p = p*1.031
 end
context.stopxrow()
context.stopxtable()
\stopluacode
\stopmidaligned
\stoplinecorrection
\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
___

Re: [NTG-context] Table "modules"

2018-10-29 Thread Aditya Mahajan

On Mon, 29 Oct 2018, Joseph Wright wrote:

Hans: Thanks for the quick reply. I'll suggest to the LaTeX team that we 
treat table modules as ConTeXt-specific/reserved, and will think of a 
different name.


How about `package`?

Aditya
___
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] Table "modules"

2018-10-29 Thread Joseph Wright

On 28/10/2018 16:06, Joseph Wright wrote:

Hello all,

Looking at management of global Lua tables (for the obvious cases ...), 
I notice that all of the core Mk IV files use the construct


     if not modules then modules = { } end
     modules[" From a ConTeXt point-of-view, is it acceptable for third-parties to use 
this construct, or is it 'ConTeXt maintainers only'? I'm wondering for 
code used generically: it would be good to use the same approach, but I 
don't want to tread on any reserved namespaces.


Joseph


Somehow I've managed to loose Hans' reply, but I've seen it in the 
archive :)


Hans: Thanks for the quick reply. I'll suggest to the LaTeX team that we 
treat table modules as ConTeXt-specific/reserved, and will think of a 
different name.


Joseph
___
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] Table "modules"

2018-10-28 Thread Hans Hagen

On 10/28/2018 5:06 PM, Joseph Wright wrote:

Hello all,

Looking at management of global Lua tables (for the obvious cases ...), 
I notice that all of the core Mk IV files use the construct


     if not modules then modules = { } end
     modules[" From a ConTeXt point-of-view, is it acceptable for third-parties to use 
this construct, or is it 'ConTeXt maintainers only'? I'm wondering for 
code used generically: it would be good to use the same approach, but I 
don't want to tread on any reserved namespaces.
Hard to say ... the only generic code is the fontloader and the only 
check done there is the toplevel 'context' table, so there is not much 
change on a clash I guess. We can hardly claim a namespace, but now at 
least it's possible to see if something is meant for context (and 
originates on context, fwiw).


Anyway, I don't expect much generic code to show up. One problem I see 
is that currently, as context uses that namespace, there are no 
duplicates. So, it being used more general,  probably means that I need 
to add a mechanism that will refuse to (over)load code, but even then i 
cannot oversee implications ... For latex you can consider 
'latexmodules' ... up to you. It's too late now to change it to 
contextmodules.


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
___

[NTG-context] Table "modules"

2018-10-28 Thread Joseph Wright

Hello all,

Looking at management of global Lua tables (for the obvious cases ...), 
I notice that all of the core Mk IV files use the construct


if not modules then modules = { } end
modules["From a ConTeXt point-of-view, is it acceptable for third-parties to use 
this construct, or is it 'ConTeXt maintainers only'? I'm wondering for 
code used generically: it would be good to use the same approach, but I 
don't want to tread on any reserved namespaces.


Joseph
___
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] table making ugly column sizes, how to fix?

2018-10-02 Thread David Walther

On Tue, Oct 02, 2018 at 12:28:44AM -0400, Aditya Mahajan wrote:

ConTeXt MkIV 2018.09.30

What version are you using?


My version is from 2017.  Thank you for the confirmation; now I will file a bug
report with Debian.

David
___
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] table making ugly column sizes, how to fix?

2018-10-01 Thread Aditya Mahajan

On Mon, 1 Oct 2018, David Walther wrote:

I looked at your example.  I ran your example, and on my installation, it 
has

the same problem as I described.  I have included a PDF file of my original
sample file, and also the PDF generated from your example.   What version 
of

ConTeXt are you using?


ConTeXt MkIV 2018.09.30

What version are you using?

On my installation of context, columns are still coming out "ugly" as 
you will see in the PDF t1.pdf.


Everything seems okay with the latest version of ConTeXt (see attached 
pdf, obtained from your t1.tex).


Aditya

t1.pdf
Description: Adobe PDF document
___
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] table making ugly column sizes, how to fix?

2018-10-01 Thread David Walther

I looked at your example.  I ran your example, and on my installation, it has
the same problem as I described.  I have included a PDF file of my original
sample file, and also the PDF generated from your example.   What version of
ConTeXt are you using?

On my installation of context, columns are still coming out "ugly" as you will
see in the PDF t1.pdf.  In t2.pdf you'll see the problem shows up in the table
labelled "Good".  The "Good" refers to the row in bold, not to the row above
it.

David

On Sun, Sep 30, 2018 at 07:44:12PM -0400, Aditya Mahajan wrote:

On Sat, 29 Sep 2018, David Walther wrote:


Full example at the bottom.

I'm making a table.  So far so good.

Every so often I want to make something like a section header.

Regular table rows are like this:

\bTR\bTC \eTC\bTC NightShift \eTC\bTC Tension Lines 146 - 150 \eTC\eTR

For the section headers, I do this, and they look the way I want:

\bTR\bTC 30. \eTC \bTC[nc=2,align=center,style=] \bf{Foo Bar} \eTC\eTR


You can also use

\bTC[nc=2, align=middle, style=bold]

But then the regular lines have ugly line breaks and suddenly the 
column size of column 3 is squeezed.  This shouldn't be, we have the 
whole page to work with.


I don't really see the difference in column sizes between the two 
cases. See attached (I simplified and cleaned the example a little)


Aditya





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




t1.tex
Description: TeX document


t2.pdf
Description: Adobe PDF document


t1.pdf
Description: Adobe PDF document
___
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] table making ugly column sizes, how to fix?

2018-09-30 Thread Aditya Mahajan

On Sat, 29 Sep 2018, David Walther wrote:


Full example at the bottom.

I'm making a table.  So far so good.

Every so often I want to make something like a section header.

Regular table rows are like this:

\bTR\bTC \eTC\bTC NightShift \eTC\bTC Tension Lines 146 - 150 \eTC\eTR

For the section headers, I do this, and they look the way I want:

\bTR\bTC 30. \eTC \bTC[nc=2,align=center,style=] \bf{Foo Bar} \eTC\eTR


You can also use

\bTC[nc=2, align=middle, style=bold]

But then the regular lines have ugly line breaks and suddenly the column 
size of column 3 is squeezed.  This shouldn't be, we have the whole page to 
work with.


I don't really see the difference in column sizes between the two cases. 
See attached (I simplified and cleaned the example a little)


Aditya

test.tex
Description: TeX document


test.pdf
Description: Adobe PDF document
___
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 making ugly column sizes, how to fix?

2018-09-29 Thread David Walther

Full example at the bottom.

I'm making a table.  So far so good.

Every so often I want to make something like a section header.

Regular table rows are like this:

\bTR\bTC \eTC\bTC NightShift \eTC\bTC Tension Lines 146 - 150 \eTC\eTR

For the section headers, I do this, and they look the way I want:

\bTR\bTC 30. \eTC \bTC[nc=2,align=center,style=] \bf{Foo Bar} \eTC\eTR

But then the regular lines have ugly line breaks and suddenly the column size 
of column 3 is squeezed.  This shouldn't be, we have the whole page to work 
with.

So, when I do my section headers this way, the columns come out sized nicely, 
but the section header isn't styled the way I want it:

\bTR\bTC 30. \eTC \bTC\eTC \bTC[align=center] \bf{Foo Bar} \eTC\eTR

Below is my minimal example you can cut and paste.  How do I do the section
headers without messing up the column sizing?


\setuppagenumbering[alternative=doublesided,location=none,page=no]
\setupfootertexts[\sans{Source: http://mywebsite}]
\setupheadertexts[test column text wrapping]
\setupheadertexts
 [] [Page \userpagenumber\ of \lastuserpagenumber]
 [Page \userpagenumber\ of \lastuserpagenumber] []
\setuppapersize[letter, portrait]
\setuplayout[topspace=0.5in, backspace=1in, height=10in, width=7in,
header=0.5in, footer=0.5in, headerdistance=0in, footerdistance=0in]
\switchtobodyfont[12pt]
\starttext
\setupTABLE[split=repeat]
\setupTABLE[r][each][toffset=3pt, boffset=3pt, loffset=3pt, roffset=3pt]
\setupTABLE[c][each][leftframe=off,rightframe=off,align=right]
\setupTABLE[c][first][frame=off,align=left]
\setupTABLE[c][2][style=\tfx\it,align=left]
\bTABLE
\bTABLEhead
\bTR\bTH Col1 \eTH\bTH Col2 \eTH\bTH Col3 \eTH\eTR
\eTABLEhead
\bTABLEnext
\bTR\bTH Col1 \eTH\bTH Col2 \eTH\bTH Col3 \eTH\eTR
\eTABLEnext
\bTABLEbody
\bTR\bTC \eTC\bTC NightShift \eTC\bTC Tension Lines 146 - 150 \eTC\eTR

% This displays the way I want, but breaks the regular rows.
\bTR\bTC 30. \eTC \bTC[nc=2,align=center,style=] \bf{Foo Bar} \eTC\eTR

% This works with the regular rows, but doesn't look how I want.
%\bTR\bTC 30. \eTC \bTC\eTC \bTC[align=center] \bf{Foo Bar} \eTC\eTR
\eTABLEbody
\eTABLE
\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
___

Re: [NTG-context] Table of contents setup

2018-08-30 Thread Wolfgang Schuster



Willi Egger schrieb am 30.08.18 um 11:18:

Hello,

I am busy to typeset a book with Maguntia.ttf.

I should prepare the TOC with leaders. However how can I get ConTeXT 
to use the same leader-size on all levels which need leaders? As in 
the given example the leaders are adapted to the size of the font.


\setuplist[...][textstyle=...]

Secondly I would like to have the page numbers all in the same size, 
irrespective from the level.
Thirdly, I would love to adapt the distance between the leader-dots to 
a bigger size. How to do that?


Create your own leaders setup with the \definefiller command.


\setuplist
  [chapter,section,subsection]
  [alternative=c]

\setuplist
  [chapter]
  [textstyle=\tfa]

\setuplist
  [subsection]
  [textstyle=\tfx]

\definefiller
  [willi]
  [method=global,
   width=1em]

\setuplistalternative
  [c]
  [filler=willi]

\starttext

\completecontent

\chapter{Chapter}

\section{Section}

\subsection{Subsection}

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

[NTG-context] Table of contents setup

2018-08-30 Thread Willi Egger
Hello,

I am busy to typeset a book with Maguntia.ttf.

I should prepare the TOC with leaders. However how can I get ConTeXT to use the 
same leader-size on all levels which need leaders? As in the given example the 
leaders are adapted to the size of the font.
Secondly I would like to have the page numbers all in the same size, 
irrespective from the level.
Thirdly, I would love to adapt the distance between the leader-dots to a bigger 
size. How to do that?


Kind regards

Willi
___
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] TABLE setups

2018-07-30 Thread Henning Hraban Ramm
Am 2018-07-30 um 16:22 schrieb kaddour kardio :

> \setupTABLE[frame=off]
> \setupTABLE[r][1][style=\ss]
> \setupTABLE[r][2][style=\tfa\bf]
> \setupTABLE[r][3][style=\ss]
> \setupTABLE[c][3][align=left]
> \setupTABLE[c][2][align=center]
> \setupTABLE[r][4][style=\bf] % how to override the \tt in the second column?

\setupTABLE[2][4][style=\ss\bf]

i.e. \setupTABLE[column][row][...]

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] TABLE setups

2018-07-30 Thread kaddour kardio
here is an example of mine

\startsetups table:width
  \setupTABLE[align={hyphenated,normal}]
  \setupTABLE[column][1][width=0.3\textwidth]
  \setupTABLE[column][2][width=0.4\textwidth]
  \setupTABLE[column][3][width=0.3\textwidth]
\stopsetups
% table des patients
\startsetups table:style
\setupTABLE[frame=off]
\setupTABLE[r][1][style=\ss]
\setupTABLE[r][2][style=\tfa\bf]
\setupTABLE[r][3][style=\ss]
\setupTABLE[c][3][align=left]
\setupTABLE[c][2][align=center]
\setupTABLE[r][4][style=\bf] % how to override the \tt in the second column?
\stopsetups
%protocole du stress
\startsetups table:protocole
\setupTABLE[frame=off,option=stretch]
  \setupTABLE[row][odd][background=color, backgroundcolor=lightgreen]
  \setupTABLE[row][1][style={\ss\bf}, background=color,
 backgroundcolor=cyan, foregroundcolor=white]
  \setupTABLE[column][1][style={\ssx\bf}]
  \setupTABLE[column][5][align=right]
  \setupTABLE[column][3][align=center]

\stopsetups

\starttext

.

 {\bTABLE[setups={table:style, table:width}]
   \bTR
   \bTD nom \& prénoms \eTD
   \bTD date de naissance \eTD
   \bTD Adresse \eTD
   \eTR
   \bTR
   \bTD  patient.name  \eTD
   \bTD  patient.birth  \eTD
   \bTD  patient.adresse \eTD
   \eTR
   \bTR
   \bTD motif d'admission \eTD
   \bTD médecin correspondant\eTD
   \bTD assurance \eTD
   \eTR
\bTR
   \bTD  sortie.motif
   \eTD
   \bTD patient.correspondant\eTD
   \bTD CNAS
\eTD
   \eTR
\eTABLE}

\stoptext



On Sat, Jul 28, 2018 at 2:36 AM Henri Menke  wrote:

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



-- 
Dr YAHYAOUI Mohamed Kaddour, cardiologue -- Clinique KARDIA.
___
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] TABLE setups

2018-07-29 Thread Henning Hraban Ramm
Am 2018-07-29 um 13:36 schrieb Henning Hraban Ramm :

> Am 2018-07-28 um 11:09 schrieb Henning Hraban Ramm :
> 
 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]
>> 
>> Thank you, that was what I wanted to know. A one-line answer would have been 
>> enough ;)
> 
> So finally I get the hang of setups, and natural tables do what I want, 
> except:
> 
> How can I convince my TABLEs, that there should be an empty line before them??
> 
> \setupTABLE[before={\blank[2*big]}]
> doesn’t do anything.

Ok, seems like \setupTABLE doesn’t use before and after at all:

\setupTABLE[
  before=BEFORE,
  after=AFTER,
]

\starttext

\input tufte

\bTABLE
\bTR\bTD Heinz \eTD\bTD Drei \eTD\bTD Brei \eTD\eTR
\eTABLE

\input tufte

\stoptext

But the keys are in i-naturaltable.xml

Might this be a bug?


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] TABLE setups

2018-07-29 Thread Henning Hraban Ramm
Am 2018-07-28 um 11:09 schrieb Henning Hraban Ramm :

>>> 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]
> 
> Thank you, that was what I wanted to know. A one-line answer would have been 
> enough ;)

So finally I get the hang of setups, and natural tables do what I want, except:

How can I convince my TABLEs, that there should be an empty line before them??

\setupTABLE[before={\blank[2*big]}]
doesn’t do anything.
I tried \vskip, but that somehow kills part of the setup.


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] TABLE setups

2018-07-29 Thread Hans Hagen

On 7/28/2018 11:09 AM, Henning Hraban Ramm wrote:


Meanwhile I had a look into the manuals folder and found the xtables manual.
Section 5 about \definextable and \starttexdefinition is especially interesting.
I guess I need to try both.

(My ConTeXt fu is always outdated, it seems...)
not much has changed in TABLE in years so once you're up to date in that 
domain you're probbably ok for years to come (typically a mechanism that 
cannot change much as it's used in xml processing a lot which means 
fully unattended usage)


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] TABLE setups

2018-07-28 Thread Henning Hraban Ramm
Am 2018-07-28 um 03:35 schrieb 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]

Thank you, that was what I wanted to know. A one-line answer would have been 
enough ;)

Sorry, I was just too busy with other TeX issues to simply try it.

Meanwhile I had a look into the manuals folder and found the xtables manual.
Section 5 about \definextable and \starttexdefinition is especially interesting.
I guess I need to try both.

(My ConTeXt fu is always outdated, it seems...)

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] 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] Table generator : Issues with borders and rotated cells

2018-06-27 Thread Wolfgang Schuster



Xavier Dionne 
19. Juni 2018 um 03:26

Hi everyone,

Excuse my poor English. I recently updated my online table generator 
(http://latex-tables.com) to support ConTeXt. It also supports many 
languages, like LaTeX, Plain TeX, Markdown, HTML and more. It uses the 
eXtreme table format and supports many features including :


- Borders, border width and border color

- Merged cells

- Background color

- Alignment (flushleft, center, flushright)

- Splitted tables

- Rotated tables

- Caption

- More...

However, I have many issues that I have trouble to fix.

1/ I have many troubles with borders, because I can't set the color 
and the width of each border. Instead, I use "fake rows" and "fake 
cells" when it is necessary. However, I can't figure out how to set 
the height of a row to 0.4pt. It's always bigger. So, instead I use 
"location=hanging" on this row but, because of this, borders are 
hidden behind the next row's background. What can I do about this ?




Frames accept only a single color and line thickness for all borders but 
there are two ways to set different values for each side The first 
method is to disable the frame and apply a background graphic where you 
draw different lines for each side. The other method is to create a 
custom renderer for each frame (top, bottom etc.) where you can than 
apply a different color or linewidth for each side, below (and also 
attached) is a example where I show how this can be done.


Wolfgang


 begin meta-imp-mpframe.mkiv
\startuseMPgraphic{mp_frame_left}
  draw leftboundary OverlayBox
withpen pensquare scaled \frameddimension{leftrulethickness}
withcolor \MPcolor{\framedparameter{leftframecolor}} ;
  setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic

\startuseMPgraphic{mp_frame_right}
  draw rightboundary OverlayBox
withpen pensquare scaled \frameddimension{rightrulethickness}
withcolor \MPcolor{\framedparameter{rightframecolor}} ;
  setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic

\startuseMPgraphic{mp_frame_top}
  draw topboundary OverlayBox
withpen pensquare scaled \frameddimension{toprulethickness}
withcolor \MPcolor{\framedparameter{topframecolor}} ;
  setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic

\startuseMPgraphic{mp_frame_bottom}
  draw bottomboundary OverlayBox
withpen pensquare scaled \frameddimension{bottomrulethickness}
withcolor \MPcolor{\framedparameter{bottomframecolor}} ;
  setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic

\installleftframerenderer   {mp} {\useMPgraphic{mp_frame_left}}
\installrightframerenderer  {mp} {\useMPgraphic{mp_frame_right}}
\installtopframerenderer{mp} {\useMPgraphic{mp_frame_top}}
\installbottomframerenderer {mp} {\useMPgraphic{mp_frame_bottom}}

\setupframed
  [ leftframecolor=\framedparameter{framecolor},
   rightframecolor=\framedparameter{framecolor},
 topframecolor=\framedparameter{framecolor},
  bottomframecolor=\framedparameter{framecolor},
 leftrulethickness=\framedparameter{rulethickness},
rightrulethickness=\framedparameter{rulethickness},
  toprulethickness=\framedparameter{rulethickness},
   bottomrulethickness=\framedparameter{rulethickness}]

\endinput
 end meta-imp-mpframe.mkiv


 begin mpframe.tex
\useMPlibrary[mpframe]

\definextable
  [mp]
  [width=2cm,
   height=2cm,
   align={middle,lohi},
   foregroundstyle=\ssd,
   framecolor=red,
   % use the custom frame renderer for all four sides:
   leftframe=mp,
   rightframe=mp,
   topframe=mp,
   bottomframe=mp]

\starttext

\startxtable[mp]
\startxrow[bottomrulethickness=2pt]
\startxcell[rightframecolor=blue]
A
\stopxcell
\startxcell[leftframe=off]
B
\stopxcell
\stopxrow
\startxrow
\startxcell[leftframecolor=green,leftrulethickness=2pt]
C
\stopxcell
\startxcell[rightframecolor=orange,rightrulethickness=2pt]
D
\stopxcell
\stopxrow
\stopxtable

\stoptext
 end mpframe.tex

\startuseMPgraphic{mp_frame_left}
  draw leftboundary OverlayBox 
withpen pensquare scaled \frameddimension{leftrulethickness}
withcolor \MPcolor{\framedparameter{leftframecolor}} ;
  setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic

\startuseMPgraphic{mp_frame_right}
  draw rightboundary OverlayBox 
withpen pensquare scaled \frameddimension{rightrulethickness}
withcolor \MPcolor{\framedparameter{rightframecolor}} ;
  setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic

\startuseMPgraphic{mp_frame_top}
  draw topboundary OverlayBox 
withpen pensquare scaled \frameddimension{toprulethickness}
withcolor \MPcolor{\framedparameter{topframecolor}} ;
  setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic

\startuseMPgraphic{mp_frame_bottom}
  draw bottomboundary OverlayBox 
withpen pensquare scaled \frameddimension{bottomrulethickness}

Re: [NTG-context] Table of Contents sectioning numbers in margin + oddity

2018-06-25 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 25 Jun 2018 01:10:18 -0600, Wolfgang Schuster  
 wrote:





Idris Samawi Hamid ادريس سماوي حامد 
25. Juni 2018 um 01:17
On Sun, 24 Jun 2018 17:09:02 -0600, Wolfgang Schuster
 wrote:


2. Oddity: Why does the TOC in the attached example default to a
monospaced font?



You put \placecontent before \starttext but the default fonts are
loaded after \starttext.
When you now put text in a box before \starttext a monospaced font is
loaded as replacement for the missing text font.


Ah, new protocol... many thanks.


Putting \placecontent or any other text creating command before
\starttext was always wrong.


Of course, was referring to the use of fixed-width for default font in  
such an event.. -)


Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] Table of Contents sectioning numbers in margin + oddity

2018-06-25 Thread Wolfgang Schuster



Idris Samawi Hamid ادريس سماوي حامد 
25. Juni 2018 um 01:17
On Sun, 24 Jun 2018 17:09:02 -0600, Wolfgang Schuster 
 wrote:


2. Oddity: Why does the TOC in the attached example default to a 
monospaced font?


You put \placecontent before \starttext but the default fonts are 
loaded after \starttext.
When you now put text in a box before \starttext a monospaced font is 
loaded as replacement for the missing text font.


Ah, new protocol... many thanks.


Putting \placecontent or any other text creating command before 
\starttext was always wrong.


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] Table of Contents sectioning numbers in margin + oddity

2018-06-25 Thread Wolfgang Schuster




Idris Samawi Hamid ادريس سماوي حامد 
25. Juni 2018 um 00:46
Dear gang,

mtx-context | current version: 2018.06.24 18:28

In the attached and below, we want sectioning numbers placed and 
naturally aligned in the margin:


===
\definecombinedlist % \setuplist[]
[content]
[section]
[level=section,
alternative=c,
criterium=local]

\setuphead[section][alternative=inmargin]
\setupitemize[1][inmargin][stopper=]

\placecontent

\starttext
\startsection[title= First]
\input ward
\stopsection
\startsection[title= Second]
\startitemize[r]
\startitem[] \input ward \stopitem
\startitem[] \input ward \stopitem
\stopitemize
\stopsection
\stoptext
===

1. What is the most straightforward way to to the section numerals 
generated by \placecontent placed and aligned inmargin?


\define[1]\SectionlistNumbercommand
  {\llap{#1\hskip\leftmargindistance}}

\setuplist
  [section]
  [alternative=c,
   criterium=local,
   width=0pt,
   distance=0pt,
   numbercommand=\SectionlistNumbercommand]


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] Table of Contents sectioning numbers in margin + oddity

2018-06-24 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 24 Jun 2018 17:09:02 -0600, Wolfgang Schuster  
 wrote:


2. Oddity: Why does the TOC in the attached example default to a  
monospaced font?


You put \placecontent before \starttext but the default fonts are loaded  
after \starttext.
When you now put text in a box before \starttext a monospaced font is  
loaded as replacement for the missing text font.


Ah, new protocol... many thanks.

Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] Table of Contents sectioning numbers in margin + oddity

2018-06-24 Thread Wolfgang Schuster




Idris Samawi Hamid ادريس سماوي حامد 
25. Juni 2018 um 00:46
Dear gang,

mtx-context | current version: 2018.06.24 18:28

In the attached and below, we want sectioning numbers placed and 
naturally aligned in the margin:


===
\definecombinedlist % \setuplist[]
[content]
[section]
[level=section,
alternative=c,
criterium=local]

\setuphead[section][alternative=inmargin]
\setupitemize[1][inmargin][stopper=]

\placecontent

\starttext
\startsection[title= First]
\input ward
\stopsection
\startsection[title= Second]
\startitemize[r]
\startitem[] \input ward \stopitem
\startitem[] \input ward \stopitem
\stopitemize
\stopsection
\stoptext
===

1. What is the most straightforward way to to the section numerals 
generated by \placecontent placed and aligned inmargin?


2. Oddity: Why does the TOC in the attached example default to a 
monospaced font?


You put \placecontent before \starttext but the default fonts are loaded 
after \starttext.


When you now put text in a box before \starttext a monospaced font is 
loaded as replacement for the missing text font.


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] Table of Contents sectioning numbers in margin + oddity

2018-06-24 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

mtx-context | current version: 2018.06.24 18:28

In the attached and below, we want sectioning numbers placed and naturally  
aligned in the margin:


===
\definecombinedlist % \setuplist[]
[content]
[section]
[level=section,
alternative=c,
criterium=local]

\setuphead[section][alternative=inmargin]
\setupitemize[1][inmargin][stopper=]

\placecontent

\starttext
\startsection[title= First]
\input ward
\stopsection
\startsection[title= Second]
\startitemize[r]
\startitem[] \input ward \stopitem
\startitem[] \input ward \stopitem
\stopitemize
\stopsection
\stoptext
===

1. What is the most straightforward way to to the section numerals  
generated by \placecontent placed and aligned inmargin?


2. Oddity: Why does the TOC in the attached example default to a  
monospaced font?


Thanks in advance.

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

test-content.pdf
Description: Adobe PDF document


test-content.tex
Description: TeX document
___
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] TABLE: centering splitted TABLE

2018-06-21 Thread Wolfgang Schuster

Remove the alignment environment, floats are centered by default.

Wolfgang

Procházka Lukáš Ing. 
9. Juni 2018 um 20:33
Hello,

I have two questions about TABLEs. Suppose having the following code:


\setuplayout[page]

 



\starttext
  \startalignment[middle]
\dontleavehmode
\bTABLE[before=,after=,inbetween=]
  \bTABLEbody
\dorecurse{10}{
  \bTR
\bTD aaa\eTD
\bTD bbb\eTD
  \eTR
}
  \eTABLEbody
\eTABLE
\crlf
\bTABLE[before=,after=,inbetween=]
  \bTABLEbody
\bTR
  \bTD AAA\eTD
  \bTD BBB\eTD
\eTR
  \eTABLEbody
\eTABLE
  \stopalignment
  %
  \page
  \startalignment[middle]
\dontleavehmode
\bTABLE[split=yes]
  \bTABLEbody
\dorecurse{60}{
  \bTR
\bTD uuu\eTD
\bTD vvv\eTD
  \eTR
}
  \eTABLEbody
\eTABLE
  \stopalignment
\stoptext


- How to make the "uuu - vvv" table - which goes into several pages - 
centered on each page, like "aaa - bbb" (non splitting) table is?


- How to suppress the vertical space between the last row of "aaa - 
bbb" table and the first row of the "AAA - BBB" table?


(I'm trying to typeset some picture playing cards, so usual 
typographic rules don't apply here...)


Any help would be appreciated.

Best regards,

Lukas


___
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
___
Procházka Lukáš Ing. 
20. Juni 2018 um 07:43
Hello,

On Sat, 09 Jun 2018 20:33:30 +0200, Procházka Lukáš Ing. 
 wrote:



any reaction?

E.g.
"splitted TABLE cannot be centered on pages - the alg is not 
implemented, and won't be" or
"splitted TABLE cannot be centered on pages - the alg is not 
implemented, but will be" or
"splitted TABLE cannot be centered on pages - use xtable instead with 
[key=value]" or
"use \setupTABLE[something=here] - it will center splitted TABLE on 
each page"?


Best regards,

Lukas


Wolfgang Schuster 
20. Juni 2018 um 07:59


Place the table as float and disable the caption, e.g.

\startplacetable[location={split,force,none}]
...
\stopplacetable

Wolfgang
Procházka Lukáš Ing. 
21. Juni 2018 um 11:10
Hello,

thanks, it works:


  \startalignment[middle]
\startplacetable[location={split,force,none}]
  \bTABLE[split=repeat]
\bTABLEhead
  \bTR\bTH A\eTH\bTH B\eTH\eTR
\eTABLEhead
\bTABLEbody
  \dorecurse{60}{
\bTR
  \bTD uuu\eTD
  \bTD vvv\eTD
\eTR
  }
\eTABLEbody
  \eTABLE
\stopplacetable
  \stopalignment


Best regards,

Lukas


On Wed, 20 Jun 2018 07:59:28 +0200, Wolfgang Schuster 
 wrote:






___
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] TABLE: centering splitted TABLE; suppressing vertical space btw two TABLEs

2018-06-21 Thread Procházka Lukáš Ing .

Hello,

On Wed, 20 Jun 2018 13:13:08 +0200, Aditya Mahajan  wrote:


- How to suppress the vertical space between the last row of "aaa - bbb"
table and the first row of the "AAA - BBB" table?


(Untested) Try `\blank[none]` instead of `\crlf`.

Aditya


actually, \blank[none] was not "enough", \blank[-1pt] dismissed the empty space.

Thank you for inspiration.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

___
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] TABLE: centering splitted TABLE

2018-06-21 Thread Procházka Lukáš Ing .

Hello,

thanks, it works:


  \startalignment[middle]
\startplacetable[location={split,force,none}]
  \bTABLE[split=repeat]
\bTABLEhead
  \bTR\bTH A\eTH\bTH B\eTH\eTR
\eTABLEhead
\bTABLEbody
  \dorecurse{60}{
\bTR
  \bTD uuu\eTD
  \bTD vvv\eTD
\eTR
  }
\eTABLEbody
  \eTABLE
\stopplacetable
  \stopalignment


Best regards,

Lukas


On Wed, 20 Jun 2018 07:59:28 +0200, Wolfgang Schuster 
 wrote:




Procházka Lukáš Ing. 
20. Juni 2018 um 07:43
Hello,

On Sat, 09 Jun 2018 20:33:30 +0200, Procházka Lukáš Ing.
 wrote:


any reaction?

E.g.
"splitted TABLE cannot be centered on pages - the alg is not
implemented, and won't be" or
"splitted TABLE cannot be centered on pages - the alg is not
implemented, but will be" or
"splitted TABLE cannot be centered on pages - use xtable instead with
[key=value]" or
"use \setupTABLE[something=here] - it will center splitted TABLE on
each page"?


Place the table as float and disable the caption, e.g.

\startplacetable[location={split,force,none}]
...
\stopplacetable

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

___
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] TABLE: centering splitted TABLE; suppressing vertical space btw two TABLEs

2018-06-20 Thread Aditya Mahajan

On Sat, 9 Jun 2018, Procházka Lukáš Ing. wrote:


Hello,

I have two questions about TABLEs. Suppose having the following code:


\setuplayout[page]



\starttext
\startalignment[middle]
  \dontleavehmode
  \bTABLE[before=,after=,inbetween=]
\bTABLEbody
  \dorecurse{10}{
\bTR
  \bTD aaa\eTD
  \bTD bbb\eTD
\eTR
  }
\eTABLEbody
  \eTABLE
  \crlf
  \bTABLE[before=,after=,inbetween=]
\bTABLEbody
  \bTR
\bTD AAA\eTD
\bTD BBB\eTD
  \eTR
\eTABLEbody
  \eTABLE
\stopalignment

- How to suppress the vertical space between the last row of "aaa - bbb" 
table and the first row of the "AAA - BBB" table?


(Untested) Try `\blank[none]` instead of `\crlf`.

Aditya___
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] TABLE: centering splitted TABLE

2018-06-20 Thread Wolfgang Schuster



Procházka Lukáš Ing. 
20. Juni 2018 um 07:43
Hello,

On Sat, 09 Jun 2018 20:33:30 +0200, Procházka Lukáš Ing. 
 wrote:



any reaction?

E.g.
"splitted TABLE cannot be centered on pages - the alg is not 
implemented, and won't be" or
"splitted TABLE cannot be centered on pages - the alg is not 
implemented, but will be" or
"splitted TABLE cannot be centered on pages - use xtable instead with 
[key=value]" or
"use \setupTABLE[something=here] - it will center splitted TABLE on 
each page"?


Place the table as float and disable the caption, e.g.

\startplacetable[location={split,force,none}]
...
\stopplacetable

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] TABLE: centering splitted TABLE

2018-06-19 Thread Procházka Lukáš Ing .

Hello,

On Sat, 09 Jun 2018 20:33:30 +0200, Procházka Lukáš Ing.  wrote:


- How to make the "uuu - vvv" table - which goes into several pages - centered on each 
page, like "aaa - bbb" (non splitting) table is?


any reaction?

E.g.
"splitted TABLE cannot be centered on pages - the alg is not implemented, and won't 
be" or
"splitted TABLE cannot be centered on pages - the alg is not implemented, but will 
be" or
"splitted TABLE cannot be centered on pages - use xtable instead with 
[key=value]" or
"use \setupTABLE[something=here] - it will center splitted TABLE on each page"?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

___
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 generator : Issues with borders and rotated cells

2018-06-19 Thread Xavier Dionne
Hi everyone,

Excuse my poor English. I recently updated my online table generator 
(http://latex-tables.com) to support ConTeXt. It also supports many languages, 
like LaTeX, Plain TeX, Markdown, HTML and more. It uses the eXtreme table 
format and supports many features including :
- Borders, border width and border color
- Merged cells
- Background color
- Alignment (flushleft, center, flushright)
- Splitted tables
- Rotated tables
- Caption
- More...

However, I have many issues that I have trouble to fix.

1/ I have many troubles with borders, because I can't set the color and the 
width of each border. Instead, I use "fake rows" and "fake cells" when it is 
necessary. However, I can't figure out how to set the height of a row to 0.4pt. 
It's always bigger. So, instead I use "location=hanging" on this row but, 
because of this, borders are hidden behind the next row's background. What can 
I do about this ?

MWE without background color :

\definecolor[Siren][r=0.502,g=0,b=0.251]
\definecolor[Rose][r=1,g=0,b=0.502]
\definecolor[FlushOrange][r=1,g=0.502,b=0]
\definecolor[ElectricViolet][r=0.502,g=0,b=1]
\definecolor[Chartreuse][r=0.502,g=1,b=0]
\definecolor[BlushPink][r=1,g=0.502,b=1]
\placetable[none]{}{
  \startxtable[align=lohi,framecolor=Siren,frame=off,leftframe=on,rightframe=on]
\startxrow[offset=overlay,location=hanging,topframe=on]
  \startxcell\stopxcell
  \startxcell[framecolor=Rose]\stopxcell
\stopxrow
\startxrow
  \startxcell[rightframe=off,framecolor=cyan] A\stopxcell
  \startxcell[rightframe=off,framecolor=FlushOrange] B\stopxcell
  \startxcell[width=0pt,framecolor=ElectricViolet]\stopxcell
\stopxrow

\startxrow[offset=overlay,location=hanging,topframe=on,framecolor=Chartreuse]
  \startxcell\stopxcell
  \startxcell[framecolor=BlushPink]\stopxcell
\stopxrow
  \stopxtable
}

MWE with background color

\definecolor[Siren][r=0.502,g=0,b=0.251]
\definecolor[Rose][r=1,g=0,b=0.502]
\definecolor[FlushOrange][r=1,g=0.502,b=0]
\definecolor[ElectricViolet][r=0.502,g=0,b=1]
\definecolor[Chartreuse][r=0.502,g=1,b=0]
\definecolor[BlushPink][r=1,g=0.502,b=1]
\definecolor[Dolly][r=1,g=1,b=0.502]
\placetable[none]{}{
  
\startxtable[align=lohi,background=color,backgroundcolor=Dolly,framecolor=Siren,frame=off,leftframe=on,rightframe=on]
\startxrow[offset=overlay,location=hanging,topframe=on,background=none]
  \startxcell\stopxcell
  \startxcell[framecolor=Rose]\stopxcell
\stopxrow
\startxrow
  \startxcell[rightframe=off,framecolor=cyan] A\stopxcell
  \startxcell[rightframe=off,framecolor=FlushOrange] B\stopxcell
  \startxcell[width=0pt,framecolor=ElectricViolet]\stopxcell
\stopxrow

\startxrow[offset=overlay,location=hanging,topframe=on,framecolor=Chartreuse]
  \startxcell\stopxcell
  \startxcell[framecolor=BlushPink]\stopxcell
\stopxrow
  \stopxtable
}

2/ I have trouble with rotated cells. It seems to affect the width of the 
table. How can I use a rotated cell without setting manually a fixed width.

MWE :

\placetable[none]{}{
  \startxtable[align=lohi]
\startxrow
  \startxcell \rotate[rotation=90]{Test test test}\stopxcell
  \startxcell Test\stopxcell
\stopxrow
\startxrow
  \startxcell Test\stopxcell
  \startxcell Test\stopxcell
\stopxrow
  \stopxtable
}

Thank you !

- X.D.
___
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: centering splitted TABLE; suppressing vertical space btw two TABLEs

2018-06-09 Thread Procházka Lukáš Ing .

Hello,

I have two questions about TABLEs. Suppose having the following code:


\setuplayout[page]



\starttext
  \startalignment[middle]
\dontleavehmode
\bTABLE[before=,after=,inbetween=]
  \bTABLEbody
\dorecurse{10}{
  \bTR
\bTD aaa\eTD
\bTD bbb\eTD
  \eTR
}
  \eTABLEbody
\eTABLE
\crlf
\bTABLE[before=,after=,inbetween=]
  \bTABLEbody
\bTR
  \bTD AAA\eTD
  \bTD BBB\eTD
\eTR
  \eTABLEbody
\eTABLE
  \stopalignment
  %
  \page
  \startalignment[middle]
\dontleavehmode
\bTABLE[split=yes]
  \bTABLEbody
\dorecurse{60}{
  \bTR
\bTD uuu\eTD
\bTD vvv\eTD
  \eTR
}
  \eTABLEbody
\eTABLE
  \stopalignment
\stoptext


- How to make the "uuu - vvv" table - which goes into several pages - centered on each 
page, like "aaa - bbb" (non splitting) table is?

- How to suppress the vertical space between the last row of "aaa - bbb" table and the 
first row of the "AAA - BBB" table?

(I'm trying to typeset some picture playing cards, so usual typographic rules 
don't apply here...)

Any help would be appreciated.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

t.mkiv
Description: Binary data


t.pdf
Description: Adobe PDF document
___
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] table and tabulate "negative" extra spacing

2018-05-21 Thread Alan Braslau
On Mon, 21 May 2018 15:47:41 -0400 (EDT)
Aditya Mahajan  wrote:

> On Mon, 21 May 2018, Alan Braslau wrote:
> 
> > Hello,
> >
> > In \starttable and \starttabulate, one can add extra blank space
> > between rows using \TB[...].
> >
> > Is there some way to add "negative" spacing, that is to tighten or
> > reduce the spacing between any two rows?  
> 
> Just use negative space:
> 
> \TB[-line]
> 
> or
> 
> \TB[-3cm]
> 
> Aditya

Interesting, this (obvious) feature works in the MWE below, but is
without effect in my real use case. I'll have to investigate...

Alan


\starttext

\startplacetable
\starttable [|c|c|]
\NC 1 \VL first row \AR
\TB[-1cm]
\NC 2 \VL second row \AR
\stoptable
\stopplacetable

\blank [5cm]

\startplacetable
\starttabulate [|c|c|]
\NC 1 \VL first row \NC\NR
\TB[-1cm]
\NC 2 \VL second row \NC\NR
\stoptabulate
\stopplacetable

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

Re: [NTG-context] table and tabulate "negative" extra spacing

2018-05-21 Thread Aditya Mahajan

On Mon, 21 May 2018, Alan Braslau wrote:


Hello,

In \starttable and \starttabulate, one can add extra blank space
between rows using \TB[...].

Is there some way to add "negative" spacing, that is to tighten or
reduce the spacing between any two rows?


Just use negative space:

\TB[-line]

or

\TB[-3cm]

Aditya
___
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 and tabulate "negative" extra spacing

2018-05-21 Thread Alan Braslau
Hello,

In \starttable and \starttabulate, one can add extra blank space
between rows using \TB[...].

Is there some way to add "negative" spacing, that is to tighten or
reduce the spacing between any two rows?

Thanks,

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
___

Re: [NTG-context] Table of contents: style and subject

2018-03-04 Thread Idris Samawi Hamid ادريس سماوي حامد

On Sun, 04 Mar 2018 06:29:53 -0700, Hans Hagen  wrote:

A working minimal example follows. Is this the recommended practice?  
Can it be streamlined further?

:

\placecontent


\placelist[content]
[subject,section,subsection,subsubsection]


Hm, toggling lines 12-13 below: Line 13 makes the TOC disappear entirely:

==
\setuphead[subject]
  [incrementnumber=yes,  % keep track of the number
   number=no]% but don't show it

\starttext % Approach I
\starttitle[title={Table of Contents},reference={}]
\start
\setuplist[subject,section,subsection,subsubsection]
  [alternative=c,style=bold]
\setupcombinedlist[content]
  [list={subject,section,subsection,subsubsection}]
% \placecontent % line 12
\placelist[content] % line 13
   [subject,section,subsection,subsubsection]
\stop
\stoptitle
\page
\startsection[title={Section One},reference={}]
new page \page
\stopsection

\startsection[title={Section Two},reference={}]
new page \page
\stopsection

\startsubject[title={Subject},reference={}]

\stopsubject
\stoptext
==

--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] Table of contents: style and subject

2018-03-04 Thread Hans Hagen

On 3/4/2018 2:01 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

On Sun, 04 Mar 2018 02:47:17 -0700, Hans Hagen  wrote:


On 3/4/2018 4:27 AM, Idris Samawi Hamid ادريس سماوي حامد wrote:

Dear gang,
 Here's a strange situation:
 In approach I) we get the subject heading in the TOC, but style=bold 
doesn't work.
 In approach II) style=bold works, but the subject heading doesn't 
show up.
 For each approach, how do we get both subject heading and style=bold 
in the TOC?


you set up individual lists elements at another level

\setuplist[subject,section,subsection,subsubsection][alternative=c,style=bold] 



Ok - see below.


looks bad this:

\setupinterlinespace[line=1.4ex]


Yes, residue from another experiment..

Between I) and II), which is the current recommended standard 
practice for MKIV?


A working minimal example follows. Is this the recommended practice? Can 
it be streamlined further?


Best wishes
Idris

==
\setuphead[subject]
   [incrementnumber=yes,  % keep track of the number
    number=no]    % but don't show it

\starttext % Approach I
\starttitle[title={Table of Contents},reference={}]
\start
\setuplist[subject,section,subsection,subsubsection]
   [alternative=c,style=bold]
\setupcombinedlist[content]
   [list={subject,section,subsection,subsubsection}]
\placecontent


\placelist[content]
   [subject,section,subsection,subsubsection]


\stop
\stoptitle
\page
\startsection[title={Section One},reference={}]
new page \page
\stopsection

\startsection[title={Section Two},reference={}]
new page \page
\stopsection

\startsubject[title={Subject},reference={}]

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




--

-
  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] Table of contents: style and subject

2018-03-04 Thread Idris Samawi Hamid ادريس سماوي حامد

On Sun, 04 Mar 2018 02:47:17 -0700, Hans Hagen  wrote:


On 3/4/2018 4:27 AM, Idris Samawi Hamid ادريس سماوي حامد wrote:

Dear gang,
 Here's a strange situation:
 In approach I) we get the subject heading in the TOC, but style=bold  
doesn't work.
 In approach II) style=bold works, but the subject heading doesn't show  
up.
 For each approach, how do we get both subject heading and style=bold  
in the TOC?


you set up individual lists elements at another level

\setuplist[subject,section,subsection,subsubsection][alternative=c,style=bold]


Ok - see below.


looks bad this:

\setupinterlinespace[line=1.4ex]


Yes, residue from another experiment..

Between I) and II), which is the current recommended standard practice  
for MKIV?


A working minimal example follows. Is this the recommended practice? Can  
it be streamlined further?


Best wishes
Idris

==
\setuphead[subject]
  [incrementnumber=yes,  % keep track of the number
   number=no]% but don't show it

\starttext % Approach I
\starttitle[title={Table of Contents},reference={}]
\start
\setuplist[subject,section,subsection,subsubsection]
  [alternative=c,style=bold]
\setupcombinedlist[content]
  [list={subject,section,subsection,subsubsection}]
\placecontent
\stop
\stoptitle
\page
\startsection[title={Section One},reference={}]
new page \page
\stopsection

\startsection[title={Section Two},reference={}]
new page \page
\stopsection

\startsubject[title={Subject},reference={}]

\stopsubject
\stoptext
==

--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

scratch.tex
Description: TeX document
___
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] Table of contents: style and subject

2018-03-04 Thread Hans Hagen

On 3/4/2018 4:27 AM, Idris Samawi Hamid ادريس سماوي حامد wrote:

Dear gang,

Here's a strange situation:

In approach I) we get the subject heading in the TOC, but style=bold 
doesn't work.


In approach II) style=bold works, but the subject heading doesn't show up.

For each approach, how do we get both subject heading and style=bold in 
the TOC?


you set up individual lists elements at another level

\setuplist[subject,section,subsection,subsubsection][alternative=c,style=bold]

looks bad this:

\setupinterlinespace[line=1.4ex]


Between I) and II), which is the current recommended standard practice 
for MKIV?


See below and attached scratch. Toggle the two \start|stoptext 
environments.


Best wishes
Idris

==
\setuphead[subject]
   [incrementnumber=yes,  % keep track of the number
    number=no]    % but don't show it

\starttext % Approach I
\starttitle[title={Table of Contents},reference={}]
\start
\setupcombinedlist[content]
   
[list={subject,section,subsection,subsubsection},alternative=c,style=bold]

\setupinterlinespace[line=1.4ex]
\placecontent
\stop
\stoptitle
\page
\startsection[title={Section One},reference={}]
new page \page
\stopsection

\startsection[title={Section Two},reference={}]
new page \page
\stopsection

\startsubject[title={Subject},reference={}]

\stopsubject
% \stoptext

% \starttext % Approach I
% \starttitle[title={Table of Contents},reference={}]
% \start
% \setupcombinedlist[{subject,section,subsection,subsubsection}]
   % [alternative=c,style=bold]
% \setupinterlinespace[line=1.4ex]
% \placecontent
% \stop
% \stoptitle
% \page
% \startsection[title={Section One},reference={}]
% new page \page
% \stopsection

% \startsection[title={Section Two},reference={}]
% new page \page
% \stopsection

% \startsubject[title={Subject},reference={}]

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




--

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

[NTG-context] Table of contents: style and subject

2018-03-03 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

Here's a strange situation:

In approach I) we get the subject heading in the TOC, but style=bold  
doesn't work.


In approach II) style=bold works, but the subject heading doesn't show up.

For each approach, how do we get both subject heading and style=bold in  
the TOC?


Between I) and II), which is the current recommended standard practice for  
MKIV?


See below and attached scratch. Toggle the two \start|stoptext  
environments.


Best wishes
Idris

==
\setuphead[subject]
  [incrementnumber=yes,  % keep track of the number
   number=no]% but don't show it

\starttext % Approach I
\starttitle[title={Table of Contents},reference={}]
\start
\setupcombinedlist[content]
  [list={subject,section,subsection,subsubsection},alternative=c,style=bold]
\setupinterlinespace[line=1.4ex]
\placecontent
\stop
\stoptitle
\page
\startsection[title={Section One},reference={}]
new page \page
\stopsection

\startsection[title={Section Two},reference={}]
new page \page
\stopsection

\startsubject[title={Subject},reference={}]

\stopsubject
% \stoptext

% \starttext % Approach I
% \starttitle[title={Table of Contents},reference={}]
% \start
% \setupcombinedlist[{subject,section,subsection,subsubsection}]
  % [alternative=c,style=bold]
% \setupinterlinespace[line=1.4ex]
% \placecontent
% \stop
% \stoptitle
% \page
% \startsection[title={Section One},reference={}]
% new page \page
% \stopsection

% \startsection[title={Section Two},reference={}]
% new page \page
% \stopsection

% \startsubject[title={Subject},reference={}]

% \stopsubject
% \stoptext
==

--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

scratch.tex
Description: TeX document
___
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] Table of content in presentation example

2017-05-13 Thread Hans Hagen

On 5/12/2017 10:08 PM, cryo shock wrote:


  \placecontent


\placelist[chapter,section][criterium=all]

by default you get a local one (you can also ask for one level up and so)



-
  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] Table of content in presentation example

2017-05-12 Thread cryo shock
Sorry, another side question: Is there no way to set the distance from the
title in the TOC to the page number? I tried alternative=c with width,
maxwidth, distance...
I still can't set it tighter. Going from the far left to the far right is
not good from the audience's POV. I saw some example *.tex from the CTX
distribution but none of them seems to use that mechanism except for
charts-mkiv. That again uses columns. But in my case it doesn't split the
content, but creates only the left column. You can try with the documents
and code snippets that I pasted.

2017-05-12 23:03 GMT+02:00 cryo shock :

> Sorry, me again. After fiddling around I found out why it didn't work:
> because \placecontent was *within* the subject that it had to print. Kind
> of a Gordian Knot or what was it called...?
> I modified my code a little, so that it looks better, but still one thing
> is missing... That's what my code looks like now:
>
> %D I copied the head settings to "title", so that it has the same style as
> the rest
> %D "title" will not be counted for TOC:
>
> \setuphead[title][style=\ssbfc, color=foreground:contrast,
> alternative=middle]
>
> \starttext
>
> \setvariables
> ...
>
> *\startstandardmakeup* %D else the content is placed at the very top,
> ignoring the header... (bad)
>
> *  \title{Table of contents}*
> *  \vfill*
> *  \placecontent*
> *  \vfill*
>
> *\stopstandardmakeup*
>
> \startslide[title={First Slide}]
> ...
>
> Yet the one thing I am missing is that the TOC is not in the middle of the
> page.
> I read some time ago that \vfill  has no effect at the very beginning or
> the very end of a page. A suggestion was to place a "ghost box" or
> something like that at the end or top respectively of the document. Yet I
> can't finde the article anymore. Can anybody provide some help with this
> or is there maybe a more elegant way to solve the whole TOC situation?
>
> Greetings, Sebastian
>
> 2017-05-12 22:16 GMT+02:00 cryo shock :
>
>> I forgot to add that I also tried a modified \setuplist:
>>
>> \setuplist[subject][width=2cm,margin=2cm]
>> and
>> \setuplist[subject][margin=2cm]
>>
>> I also added the following line to the component:
>>
>> \setupcombinedlist[content][list={chapter,subject,subsubject
>> ,section,subsection,slide}]
>>
>> Yet the Toc page stays blank...
>>
>> 2017-05-12 22:08 GMT+02:00 cryo shock :
>>
>>> Hi guys, I downloaded a sample presentation with component and example
>>> presentation from a link off of ctxwiki. I will attach both files and a
>>> premade PDF that shows what I mean.
>>>
>>> So far I edited the component a little in display style, yet I don't
>>> know why I can't get a simple table of content on the second slide.
>>>
>>> In the component I found the following code:
>>>
>>> \definehead
>>> [slide]
>>> [subject]
>>> [
>>>   style=\ssbfc,
>>>   color=foreground:contrast,
>>>   alternative=middle,
>>>   page=yes
>>> ]
>>>
>>> So I understand that the head called slide comes from the head subject,
>>> which by default isn't shown in the table of content. So I searched ctxwiki
>>> for table of content and modified the above setup to
>>>
>>> \definehead
>>> [slide]
>>> [subject]  % default: subject
>>> [
>>>   style=\ssbfc,
>>>   color=foreground:contrast,
>>>   alternative=middle,
>>>   page=yes,
>>> *  incrementnumber=yes,  % keep track of the number*
>>> *  number=no % but don't show it*
>>> ]
>>>
>>> I also added the following line:
>>>
>>> \setuplist[subject][width=2cm]
>>>
>>> The example .tex then starts with
>>>
>>> \starttext
>>>
>>> \setvariables
>>> ...
>>> \startslide
>>> ...
>>> \stopslide
>>> ...
>>> \stoptext
>>>
>>> So I inserted another \startslide \stopslide with \placecontent in
>>> between:
>>>
>>> \startslide[title={T.o.c.}]
>>>   \placecontent
>>> \stopslide
>>>
>>> Yet the rendered PDF shows only a blank page where the TOC is supposed
>>> to be.
>>>
>>> Can anybody tell me what I am doing wrong?
>>> Thanks in advance,
>>>
>>> Sebastian
>>>
>>
>>
>
___
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] Table of content in presentation example

2017-05-12 Thread cryo shock
Sorry, me again. After fiddling around I found out why it didn't work:
because \placecontent was *within* the subject that it had to print. Kind
of a Gordian Knot or what was it called...?
I modified my code a little, so that it looks better, but still one thing
is missing... That's what my code looks like now:

%D I copied the head settings to "title", so that it has the same style as
the rest
%D "title" will not be counted for TOC:

\setuphead[title][style=\ssbfc, color=foreground:contrast,
alternative=middle]

\starttext

\setvariables
...

*\startstandardmakeup* %D else the content is placed at the very top,
ignoring the header... (bad)

*  \title{Table of contents}*
*  \vfill*
*  \placecontent*
*  \vfill*

*\stopstandardmakeup*

\startslide[title={First Slide}]
...

Yet the one thing I am missing is that the TOC is not in the middle of the
page.
I read some time ago that \vfill  has no effect at the very beginning or
the very end of a page. A suggestion was to place a "ghost box" or
something like that at the end or top respectively of the document. Yet I
can't finde the article anymore. Can anybody provide some help with this or
is there maybe a more elegant way to solve the whole TOC situation?

Greetings, Sebastian

2017-05-12 22:16 GMT+02:00 cryo shock :

> I forgot to add that I also tried a modified \setuplist:
>
> \setuplist[subject][width=2cm,margin=2cm]
> and
> \setuplist[subject][margin=2cm]
>
> I also added the following line to the component:
>
> \setupcombinedlist[content][list={chapter,subject,
> subsubject,section,subsection,slide}]
>
> Yet the Toc page stays blank...
>
> 2017-05-12 22:08 GMT+02:00 cryo shock :
>
>> Hi guys, I downloaded a sample presentation with component and example
>> presentation from a link off of ctxwiki. I will attach both files and a
>> premade PDF that shows what I mean.
>>
>> So far I edited the component a little in display style, yet I don't know
>> why I can't get a simple table of content on the second slide.
>>
>> In the component I found the following code:
>>
>> \definehead
>> [slide]
>> [subject]
>> [
>>   style=\ssbfc,
>>   color=foreground:contrast,
>>   alternative=middle,
>>   page=yes
>> ]
>>
>> So I understand that the head called slide comes from the head subject,
>> which by default isn't shown in the table of content. So I searched ctxwiki
>> for table of content and modified the above setup to
>>
>> \definehead
>> [slide]
>> [subject]  % default: subject
>> [
>>   style=\ssbfc,
>>   color=foreground:contrast,
>>   alternative=middle,
>>   page=yes,
>> *  incrementnumber=yes,  % keep track of the number*
>> *  number=no % but don't show it*
>> ]
>>
>> I also added the following line:
>>
>> \setuplist[subject][width=2cm]
>>
>> The example .tex then starts with
>>
>> \starttext
>>
>> \setvariables
>> ...
>> \startslide
>> ...
>> \stopslide
>> ...
>> \stoptext
>>
>> So I inserted another \startslide \stopslide with \placecontent in
>> between:
>>
>> \startslide[title={T.o.c.}]
>>   \placecontent
>> \stopslide
>>
>> Yet the rendered PDF shows only a blank page where the TOC is supposed to
>> be.
>>
>> Can anybody tell me what I am doing wrong?
>> Thanks in advance,
>>
>> Sebastian
>>
>
>
___
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] Table of content in presentation example

2017-05-12 Thread cryo shock
I forgot to add that I also tried a modified \setuplist:

\setuplist[subject][width=2cm,margin=2cm]
and
\setuplist[subject][margin=2cm]

I also added the following line to the component:

\setupcombinedlist[content][list={chapter,subject,subsubject,section,subsection,slide}]

Yet the Toc page stays blank...

2017-05-12 22:08 GMT+02:00 cryo shock :

> Hi guys, I downloaded a sample presentation with component and example
> presentation from a link off of ctxwiki. I will attach both files and a
> premade PDF that shows what I mean.
>
> So far I edited the component a little in display style, yet I don't know
> why I can't get a simple table of content on the second slide.
>
> In the component I found the following code:
>
> \definehead
> [slide]
> [subject]
> [
>   style=\ssbfc,
>   color=foreground:contrast,
>   alternative=middle,
>   page=yes
> ]
>
> So I understand that the head called slide comes from the head subject,
> which by default isn't shown in the table of content. So I searched ctxwiki
> for table of content and modified the above setup to
>
> \definehead
> [slide]
> [subject]  % default: subject
> [
>   style=\ssbfc,
>   color=foreground:contrast,
>   alternative=middle,
>   page=yes,
> *  incrementnumber=yes,  % keep track of the number*
> *  number=no % but don't show it*
> ]
>
> I also added the following line:
>
> \setuplist[subject][width=2cm]
>
> The example .tex then starts with
>
> \starttext
>
> \setvariables
> ...
> \startslide
> ...
> \stopslide
> ...
> \stoptext
>
> So I inserted another \startslide \stopslide with \placecontent in between:
>
> \startslide[title={T.o.c.}]
>   \placecontent
> \stopslide
>
> Yet the rendered PDF shows only a blank page where the TOC is supposed to
> be.
>
> Can anybody tell me what I am doing wrong?
> Thanks in advance,
>
> Sebastian
>
___
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 of content in presentation example

2017-05-12 Thread cryo shock
Hi guys, I downloaded a sample presentation with component and example
presentation from a link off of ctxwiki. I will attach both files and a
premade PDF that shows what I mean.

So far I edited the component a little in display style, yet I don't know
why I can't get a simple table of content on the second slide.

In the component I found the following code:

\definehead
[slide]
[subject]
[
  style=\ssbfc,
  color=foreground:contrast,
  alternative=middle,
  page=yes
]

So I understand that the head called slide comes from the head subject,
which by default isn't shown in the table of content. So I searched ctxwiki
for table of content and modified the above setup to

\definehead
[slide]
[subject]  % default: subject
[
  style=\ssbfc,
  color=foreground:contrast,
  alternative=middle,
  page=yes,
*  incrementnumber=yes,  % keep track of the number*
*  number=no % but don't show it*
]

I also added the following line:

\setuplist[subject][width=2cm]

The example .tex then starts with

\starttext

\setvariables
...
\startslide
...
\stopslide
...
\stoptext

So I inserted another \startslide \stopslide with \placecontent in between:

\startslide[title={T.o.c.}]
  \placecontent
\stopslide

Yet the rendered PDF shows only a blank page where the TOC is supposed to
be.

Can anybody tell me what I am doing wrong?
Thanks in advance,

Sebastian


pres-c-slides.tex
Description: TeX document


pres-p-example.pdf
Description: Adobe PDF document


pres-p-example.tex
Description: TeX document
___
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 on two pages (natural tables)

2017-01-10 Thread Fabrice Couvreur
Hello,
My table does not fit on the first page that contains the title of the
evaluation and I would like it to continue on the second page. I tried using
the key split = yes but my table moves to the second page and there is more
than the title of the first.
thank you,
Fabrice
___
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 breaking is weird

2016-12-19 Thread Henri Menke
Dear list,

the problem is hard to describe but TABLE breaking behaves in a weird way.  
Please try out the MWE below.  It is reproducible on TL2016 and latest beta.

Cheers, Henri

--- MWE ---

\starttext

\dorecurse{10}{\input lorem}

\startplacetable
  [
title={Landscape table},
%location={page,split,90},
location={split,90},
  ]
  \startTABLE[split=repeat,option=stretch,textwidth=\textheight]

\startTABLEhead
  \NC[nx=6,align=center] Beschriftung \NC\NR
\stopTABLEhead

\startTABLEnext
  \NC[nx=6,align=center] Beschriftung (Fortsetzung) \NC\NR
\stopTABLEnext

\startTABLEbody
  \dorecurse{50}{
\NC Merkmal \NC Daten \NC Daten \NC Daten \NC Daten \NC Daten \NC\NR
  }
\stopTABLEbody

  \stopTABLE
\stopplacetable

\dorecurse{10}{\input lorem}

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

Re: [NTG-context] table and \setuptables questions

2016-11-17 Thread Csikos Bela
Hans Hagen írta:
>On 11/11/2016 4:26 PM, Csikos Bela wrote:
>> Dear list members:
>>
>> I have this simple table:
>>
>> \starttext
>> \placetable[here]{title}{
>> \setuptables[bodyfont=8pt,rulethickness=0.04em]
>> \start
>> \setuplocalinterlinespace[2.2ex]
>> \starttable[|lp(5cm)|lp(5cm)|cp(2cm)|]
>> \HL[2]
>> \NC \bf First Column \NC \bf Second Column \NC \bf Third Column \NC \SR
>> \HL
>> \NC Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa 
>> turpis,
>> semper quis fringilla ut, viverra nec risus. \NC Lorem ipsum dolor sit amet, 
>> consectetur adipiscing elit. \NC Lorem ipsum \NC \SR
>> \HL
>> \NC Pellentesque habitant morbi tristique senectus et netus
>> \NC Pellentesque habitant morbi tristique senectus et netus \NC Pellentesque 
>> \NC \SR
>> \HL
>> \NC Donec nunc lorem, sollicitudin vel sodales eget \NC Donec nunc lorem, 
>> sollicitudin vel sodales eget Donec nunc lorem, sollicitudin vel sodales 
>> eget \NC Donec \NC \SR
>> \HL[2]
>> \stoptable
>> \stop}
>> \stoptext
>>
>> I have some questions related to the above table.
>>
>> 1. How can I set the distance between the text (in rows) and the rule above 
>> and  below the text, separately?
>> I find that the rules are too close to the text. I tried \setuptables' 
>> height and depth options but those are
>> not what I need, I guess. What are height and depth options are for exactly?

Thank you for your answer.

>it's not configurable

Is it configurable in other table types, e.g. in TABLE or xtables?

>i'll an openup key
>
>
>\unprotect
>
>\def\tabl_table_normal_full_rule
>   {\starttablenoalign
>\!ttGetHalfRuleThickness
>\scratchdistance\directtablesparameter\c!openup
>\ifzeropt\scratchdistance\else\kern\scratchdistance\fi
>\hrule\s!height\scratchdimen\s!depth\scratchdimen
>\ifzeropt\scratchdistance\else\kern\scratchdistance\fi
>\stoptablenoalign}
>
>\setuptables
>   [\c!openup=\zeropoint]
>
>\protect
>
>...
>
>% \setuplocalinterlinespace[2.2ex]
>\setuptables
>   [openup=-.2ex]

Thank you. This forks for the distance between the rule and the top of the 
following text,
but not for the distance between the bottom of the text and the following rule.
How would it be that?

Thank you in advance,

bcsikos
___
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] table and \setuptables questions

2016-11-17 Thread Csikos Bela
Please disregard my last  message.
I haven't noticed that an answer arrived a little bit earlier I posted it.

But I don't understand why it didn't go in a new thread.

Best regards,

bcsikos
___
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 and \setuptables questions

2016-11-17 Thread Csikos Bela
Dear list members:

Last time I sent this message to the wrong thread accidentally. Now I send it 
again, hopefully to a new thread.

I have this simple table:

\starttext
\placetable[here]{title}{
\setuptables[bodyfont=8pt,rulethickness=0.04em]
\start
\setuplocalinterlinespace[2.2ex]
\starttable[|lp(5cm)|lp(5cm)|cp(2cm)|]
\HL[2]
\NC \bf First Column \NC \bf Second Column \NC \bf Third Column \NC \SR
\HL
\NC Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa 
turpis,
semper quis fringilla ut, viverra nec risus. \NC Lorem ipsum dolor sit amet, 
consectetur adipiscing elit. \NC Lorem ipsum \NC \SR
\HL
\NC Pellentesque habitant morbi tristique senectus et netus
\NC Pellentesque habitant morbi tristique senectus et netus \NC Pellentesque 
\NC \SR
\HL
\NC Donec nunc lorem, sollicitudin vel sodales eget \NC Donec nunc lorem, 
sollicitudin vel sodales eget Donec nunc lorem, sollicitudin vel sodales eget 
\NC Donec \NC \SR
\HL[2]
\stoptable
\stop}
\stoptext

I have some questions related to the above table.

1. How can I set the distance between the text (in rows) and the rule above and 
below the text, separately?
I find that the rules are too close to the text. I tried \setuptables' height 
and depth options but those are not what I need.  (For example the depth option 
adds extra space in rows where it is unnecessary.) What are height and depth 
options are for exactly?

2. Can \setuptables[bodyfont=...] option use font sizes as \tfa, \tfb, \tfc, 
\tfx, \tfxx, or point size has to be
set explicitly? 

3. What is the distance option in \setuptables?

Thank you in advance,

bcsikos
___
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] table and \setuptables questions

2016-11-17 Thread Hans Hagen

On 11/11/2016 4:26 PM, Csikos Bela wrote:

Dear list members:

I have this simple table:

\starttext
\placetable[here]{title}{
\setuptables[bodyfont=8pt,rulethickness=0.04em]
\start
\setuplocalinterlinespace[2.2ex]
\starttable[|lp(5cm)|lp(5cm)|cp(2cm)|]
\HL[2]
\NC \bf First Column \NC \bf Second Column \NC \bf Third Column \NC \SR
\HL
\NC Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa 
turpis,
semper quis fringilla ut, viverra nec risus. \NC Lorem ipsum dolor sit amet, 
consectetur adipiscing elit. \NC Lorem ipsum \NC \SR
\HL
\NC Pellentesque habitant morbi tristique senectus et netus
\NC Pellentesque habitant morbi tristique senectus et netus \NC Pellentesque 
\NC \SR
\HL
\NC Donec nunc lorem, sollicitudin vel sodales eget \NC Donec nunc lorem, 
sollicitudin vel sodales eget Donec nunc lorem, sollicitudin vel sodales eget 
\NC Donec \NC \SR
\HL[2]
\stoptable
\stop}
\stoptext

I have some questions related to the above table.

1. How can I set the distance between the text (in rows) and the rule above and 
 below the text, separately?
I find that the rules are too close to the text. I tried \setuptables' height 
and depth options but those are
not what I need, I guess. What are height and depth options are for exactly?


it's not configurable

i'll an openup key


\unprotect

\def\tabl_table_normal_full_rule
  {\starttablenoalign
   \!ttGetHalfRuleThickness
   \scratchdistance\directtablesparameter\c!openup
   \ifzeropt\scratchdistance\else\kern\scratchdistance\fi
   \hrule\s!height\scratchdimen\s!depth\scratchdimen
   \ifzeropt\scratchdistance\else\kern\scratchdistance\fi
   \stoptablenoalign}

\setuptables
  [\c!openup=\zeropoint]

\protect

...

% \setuplocalinterlinespace[2.2ex]
\setuptables
  [openup=-.2ex]



2.  Can \setuptables[bodyfont=...] option use font sizes as \tfa, \tfb, \tfc, 
\tfx, \tfxx, or point size has to be
set explicitly?


indeed


3. What is the distance option in \setuptables?

Thank you in advance,

bcsikos

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




--

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

[NTG-context] table and \setuptables questions

2016-11-11 Thread Csikos Bela
Dear list members:

I have this simple table:

\starttext
\placetable[here]{title}{
\setuptables[bodyfont=8pt,rulethickness=0.04em]
\start
\setuplocalinterlinespace[2.2ex]
\starttable[|lp(5cm)|lp(5cm)|cp(2cm)|]
\HL[2]
\NC \bf First Column \NC \bf Second Column \NC \bf Third Column \NC \SR
\HL
\NC Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa 
turpis,
semper quis fringilla ut, viverra nec risus. \NC Lorem ipsum dolor sit amet, 
consectetur adipiscing elit. \NC Lorem ipsum \NC \SR
\HL
\NC Pellentesque habitant morbi tristique senectus et netus
\NC Pellentesque habitant morbi tristique senectus et netus \NC Pellentesque 
\NC \SR
\HL
\NC Donec nunc lorem, sollicitudin vel sodales eget \NC Donec nunc lorem, 
sollicitudin vel sodales eget Donec nunc lorem, sollicitudin vel sodales eget 
\NC Donec \NC \SR
\HL[2]
\stoptable
\stop}
\stoptext

I have some questions related to the above table.

1. How can I set the distance between the text (in rows) and the rule above and 
 below the text, separately?
I find that the rules are too close to the text. I tried \setuptables' height 
and depth options but those are
not what I need, I guess. What are height and depth options are for exactly?

2.  Can \setuptables[bodyfont=...] option use font sizes as \tfa, \tfb, \tfc, 
\tfx, \tfxx, or point size has to be
set explicitly? 

3. What is the distance option in \setuptables?

Thank you in advance,

bcsikos

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

  1   2   3   4   5   >