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
___


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
___


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
___


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
___


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 Основа за ПДВ + ПДВ 

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
___


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
___


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
___


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
___


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
___

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
___

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
___

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
___

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
___

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
___

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
___

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
___

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
___

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
___

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
___

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
___

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
___

Re: [NTG-context] Table index is nil

2016-04-18 Thread Hans Hagen

On 4/18/2016 3:59 AM, Brian Ballsun-Stanton wrote:

I'm getting (suddenly) an error:
...ext/tex/texmf-context/tex/context/base/mkiv/font-hsh.lua:124: table
index is nil


And I have a bunch of tables:


\placetable[here][tab01]{Kazanlak site numbers, aggregate area and
average area
through through time}{
\setupTABLE[c][each][align=middle,style={\tfx},alignmentcharacter={.},aligncharacter=yes]
\chardef\characteralignmentmode=2
\startCSV
Period,NL,Chl,EBA,LBA,EIA,LIA,RM,LA,BYZ,MA,OTT
Aggregate Area (ha),1.5,2.9,5.0,6.7,21.5,43.3,54.9,31.2,24.4,30.7,94.9
Site Count,3,6,10,7,23,38,23,19,15,21,15
Avg Area (ha),0.5,0.5,0.5,1.0,0.9,1.1,2.4,1.6,1.6,1.5,6.3
\stopCSV
}

The odd thing is that no other chapters of the book (all of which use
the same environment, and many use the same table)

When I comment out the series of tables, the errors go away.
I've just rerun first-setup.sh just out of paranoia. mtx-context |
current version: 2016.04.17 11:56


i really need a small *working* example for this



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Table index is nil

2016-04-18 Thread Wolfgang Schuster

Brian Ballsun-Stanton 
18. April 2016 um 03:59
I'm getting (suddenly) an error: 
...ext/tex/texmf-context/tex/context/base/mkiv/font-hsh.lua:124: table 
index is nil



And I have a bunch of tables:


\placetable[here][tab01]{Kazanlak site numbers, aggregate area and 
average area

through through time}{
\setupTABLE[c][each][align=middle,style={\tfx},alignmentcharacter={.},aligncharacter=yes]
\chardef\characteralignmentmode=2
\startCSV
Period,NL,Chl,EBA,LBA,EIA,LIA,RM,LA,BYZ,MA,OTT
Aggregate Area (ha),1.5,2.9,5.0,6.7,21.5,43.3,54.9,31.2,24.4,30.7,94.9
Site Count,3,6,10,7,23,38,23,19,15,21,15
Avg Area (ha),0.5,0.5,0.5,1.0,0.9,1.1,2.4,1.6,1.6,1.5,6.3
\stopCSV
}

The odd thing is that no other chapters of the book (all of which use 
the same environment, and many use the same table)



Create a minimal working example.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Table of Contents

2016-03-11 Thread Wolfgang Schuster

Pablo Rodriguez 
10. März 2016 um 23:48

Hi Aidan,

if I’m getting your point, you have to add to your .tex file:

\setupinteraction[state=start]%
% color=, style=, contrastcolor=, focus=standard %these may help too
\placebookmarks
[part,chapter,section] %written outlines
[part,chapter] %open outlines

When you use the \placebookmarks command without arguments ConTeXt shows
all entries form the \placecontent list without opening them.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Table of Contents

2016-03-11 Thread Aidan Nichol
Thanks Pablo

That did it. I found the \placebookmarks in the pandoc template once I knew 
what I was looking for. 
I also found
  \setupinteractionscreen[option=bookmark]
so I get it displayed when the document is opened.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Table of Contents

2016-03-10 Thread Pablo Rodriguez
On 03/10/2016 09:45 PM, Aidan Nichol wrote:
> I’m using using pandoc and ConTeXt to generate pdf documentation from
> markdown.
> 
> I started with the option to use latex (xetex) and swapped to
> ConTeXt, letting pandoc create the conTeXt file and invoke ConTeXt on
> it.C Both produce a table of contents active links etc. which is
> pretty much identical but the xetex version in my various pdf readers
> can show it in side panel referred to as Table of Contents or
> outline. This is really nice because it makes it just a click or
> swipe away.
> 
> Following advice from Pablo I’ve swapped over to generating XHTML and
> using the XML mapping ability to generate ConTeXt and the PDF. Using
> this route the TOC looks the same but it’s no longer there in the
> outline panel.
> 
> What do I need in addition to 
> \completecontent
> to get this feature to work?

Hi Aidan,

if I’m getting your point, you have to add to your .tex file:

  \setupinteraction[state=start]%
   % color=, style=, contrastcolor=, focus=standard %these may help too
  \placebookmarks
[part,chapter,section] %written outlines
[part,chapter] %open outlines

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

Re: [NTG-context] table of contents

2015-09-28 Thread Wolfgang Schuster

Meer, Hans van der 
28. September 2015 um 14:27
I would like to restrict the tableofcontents to chapters only, leaving 
the sections etc. out.

\completecontent does not seem the right command here.

I am sure it is simple, but I don't see it. How to accomplish?


You can use the \placelist command, e.g.

\title{Content}
\placelist[chapter]

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Table setups interfering with another table?

2015-09-03 Thread Mari Voipio
On Tue, Sep 1, 2015 at 2:43 PM, Procházka Lukáš Ing. - Pontex s. r. o.
 wrote:
>
> 2. Perform all setups right after \bTABLE (table_test2.mkiv). This is not
> applicable in all cases (e.g. \bTABLE[width=\textwidth] must be done here,
> not later) but in you case - you just setup specific columns and row, which
> can be done after \bTABLE safely. I deduce that each \bTABLE  \eTABLE
> creates a group, so all initializations done within remain local.

This solved the problem. Once I'd moved all \bTABLE commands up above
the setups, all tables behaved as intended.

Thank you very much!

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Table setups interfering with another table?

2015-09-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Mari,

I can see two ways:

1. Enclose each table into \bgroup ... \egroup scope, so all \setupTABLE will 
be treated local (table_test.mkiv).

2. Perform all setups right after \bTABLE (table_test2.mkiv). This is not 
applicable in all cases (e.g. \bTABLE[width=\textwidth] must be done here, not 
later) but in you case - you just setup specific columns and row, which can be 
done after \bTABLE safely. I deduce that each \bTABLE  \eTABLE creates a 
group, so all initializations done within remain local.

See my attempts.

Best regards,

Lukas



On Tue, 01 Sep 2015 12:25:03 +0200, Mari Voipio  wrote:


Hello!

I have a bit of a table mystery. It seems that the setups of an
earlier table interfere with the table coming after it (in the real
thing there's text between the tables, but the behaviour is the same).
Each table looks fine by itself, but if I compile a file with both,
the second one looks weird. What is it that I don't see or understand?

And yes, the tables really need to look like that. I'm recreating from
a pdf a document that is probably made with Word and this is how
they've done their tables in the original.

I admit that my ConTeXt version isn't exactly the newest available, it
is dated 2015.02.03. If the combination of tables works in newer
versions, I'll update, otherwise I'm not keen to fiddle with a working
combo.


As always, I'll be grateful for any help I can get,


Mari




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

Tel: +420 241 096 751
Fax: +420 244 461 038

table_test.mkiv
Description: Binary data


table_test.pdf
Description: Adobe PDF document


table_test2.mkiv
Description: Binary data


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

Re: [NTG-context] TABLE bug (new beta)

2015-01-12 Thread Hans Hagen

On 1/12/2015 6:34 PM, Alan BRASLAU wrote:

Hi,

There is a bug in the new beta with the TABLE macros and spanning rows:
[nr=]


indeed, i'll fix it (i'm cleaning up some of that code)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Table in header, or multicolumn header

2013-12-16 Thread Marco Pallante
Wolfgang,

Your solution seems to work perfectly: I get exactly what I want (I only
have to remove frames around cells).

I don't understand the possible problems: are you saying that if I use
xtables in the body of the document (other than in the header), and
those tables split across pages it could give unexpected behaviours?

What if I don't use xtables in the body, but other tabular environments
that allow splitting, such as TABLE or Linetable (I'm reading from the
wiki, I never used that)?

Thank you very much!

Bye,

Marco Pallante

 
 You can try to use a table but there is a possibility for problems when you 
 use xtables
 in your document which are split across pages.
 
 \startsetups[header:table]
 
   \startembeddedxtable[align={middle,lohi},strut=no]
   \startxrow
   \startxcell[width=0.25\paperwidth,nr=4]
   %\externalfigure[logo]
   \stopxcell
   \startxcell[width=0.40\paperwidth,nr=4]
   Document title
   \stopxcell
   
 \startxcellgroup[height=0.25\headerheight,foregroundstyle=small]
   
 \startxcell[width=0.10\paperwidth,align={flushright,lohi}]
   Doc No.
   \stopxcell
   
 \startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
   \unknown
   \stopxcell
   \stopxcellgroup
   \stopxrow
   \startxrow
   
 \startxcellgroup[height=0.25\headerheight,foregroundstyle=small]
   
 \startxcell[width=0.10\paperwidth,align={flushright,lohi}]
   Revision
   \stopxcell
   
 \startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
   \unknown
   \stopxcell
   \stopxcellgroup
   \stopxrow
   \startxrow
   
 \startxcellgroup[height=0.25\headerheight,foregroundstyle=small]
   
 \startxcell[width=0.10\paperwidth,align={flushright,lohi}]
   Data
   \stopxcell
   
 \startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
   \unknown
   \stopxcell
   \stopxcellgroup
   \stopxrow
   \startxrow
   
 \startxcellgroup[height=0.25\headerheight,foregroundstyle=small]
   
 \startxcell[width=0.10\paperwidth,align={flushright,lohi}]
   Pagina
   \stopxcell
   
 \startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
   \pagenumber/\lastpagenumber
   \stopxcell
   \stopxcellgroup
   \stopxrow
   \stopembeddedxtable
 
 \stopsetups
 
 \setupheadertexts[\texsetup{header:table}]
 
 \starttext
 \dorecurse{30}{\input knuth\par}
 \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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Table in header, or multicolumn header

2013-12-15 Thread Wolfgang Schuster

Am 13.12.2013 um 16:00 schrieb Marco Pallante marco.palla...@gmail.com:

 Hello everyone,
 
 I'm starting to write some technical documents for a customer. I used MS
 Word in the past because that's what they use, then switched to OO
 Writer for the last job, but I'm not very comfortable with neither of
 them, so I decided to switch to ConTeXt.
 
 However, I'm facing with a problem. Page headings must contain a three
 columns table, with a logo in the left cell, a title in the middle one
 and finally some rows with a document reference number, the issue, the
 issue date and page/pages numbers.
 
 I'm not sure if I should use the \startcolumns environment (but it
 doesn't seems to work in headers or footers) or one of the various table
 environments.
 
 Could you give me some advice?
 
 I attached a screenshot of what the header looks like in Writer.


You can try to use a table but there is a possibility for problems when you use 
xtables
in your document which are split across pages.

\startsetups[header:table]

\startembeddedxtable[align={middle,lohi},strut=no]
\startxrow
\startxcell[width=0.25\paperwidth,nr=4]
%\externalfigure[logo]
\stopxcell
\startxcell[width=0.40\paperwidth,nr=4]
Document title
\stopxcell

\startxcellgroup[height=0.25\headerheight,foregroundstyle=small]

\startxcell[width=0.10\paperwidth,align={flushright,lohi}]
Doc No.
\stopxcell

\startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
\unknown
\stopxcell
\stopxcellgroup
\stopxrow
\startxrow

\startxcellgroup[height=0.25\headerheight,foregroundstyle=small]

\startxcell[width=0.10\paperwidth,align={flushright,lohi}]
Revision
\stopxcell

\startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
\unknown
\stopxcell
\stopxcellgroup
\stopxrow
\startxrow

\startxcellgroup[height=0.25\headerheight,foregroundstyle=small]

\startxcell[width=0.10\paperwidth,align={flushright,lohi}]
Data
\stopxcell

\startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
\unknown
\stopxcell
\stopxcellgroup
\stopxrow
\startxrow

\startxcellgroup[height=0.25\headerheight,foregroundstyle=small]

\startxcell[width=0.10\paperwidth,align={flushright,lohi}]
Pagina
\stopxcell

\startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
\pagenumber/\lastpagenumber
\stopxcell
\stopxcellgroup
\stopxrow
\stopembeddedxtable

\stopsetups

\setupheadertexts[\texsetup{header:table}]

\starttext
\dorecurse{30}{\input knuth\par}
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Table cell spanning multiple columns in tabulate

2013-07-16 Thread Thomas Friedrich
2013/7/16 Sietse Brouwer sbbrou...@gmail.com:
 Thomas Friedrich wrote:
 I am switching from texexec to context, and from table to tabulate.
 Question: What is the equivalent for \use{2}\ReFormat[c]{text} in the
 \table environment, when you what to do the same in the \tabulate
 environment? I couldn't find the answer in the context garden.

 Wolfgang Schuster wrote:
 The tabulate environment has no support for spanned cells.

 The TABLE mechanism does, though, and that is probably the mkiv
 standard for writing non-trivial tables. It's a bit more verbose, but
 it can do an enormous number of things -- including many things that
 the tabulate mechanism can't. Wiki link:
 http://wiki.contextgarden.net/TABLE

 The equivalent of \use{2}\ReFormat[c]{text} would be this (rest of
 table code added to make this example self-contained and compilable):

 \bTABLE
   \bTR
 \bTD[nc=2, align=center] text \eTD
   \eTR
   \bTR
 \bTD apples \eTD
 \bTD oranges \eTD
   \eTR
 \eTABLE

 Hope this help!
 Cheers,
 Sietse

Thanks for pointing this out, and I did indeed rewrite the code, so it
would work with the TABLE mechanism. It's a bit like breaking a
butterfly with a wheel. Please have a look at the following code, as I
think I may have found bug in the TABLE mechanism.

The following code does exactly what I want but it has a pretty bad
hack on line 7, where I reference all columns by
[1,2,3,4,5,6,7,8][1,2,3] rather than using the [r][1,2,3], since the
latter does not work as expected.  It seems that statements concerning
columns take precedence before statements that concern rows.  In the
example below, \setupTABLE[c][1,2,3][align=right] overwrites
\setupTABLE[r][1,2][align=center] --- no matter where you put the
latter (before or after the former statement). At least for me, this
is rather unintuitive.

~~~ snip ~~~
\enableregime[utf-8]
\starttext
\placetable[here][tab:bcg-study-data]{The table shows results}{%

\bTABLE
\setupTABLE[r][each][align=left]
\setupTABLE[1,2,3,4,5,6,7,8][1,2][align=center]
%%% The following should be equivalest to the line above:
%\setupTABLE[r][1,2][align=center]

\setupTABLE[c][1,2,3][align=right]
\setupTABLE[c][4,5,6,7][width=17mm]
\setupTABLE[r][2][height=\lineheight]

\setupTABLE[frame=off]
\setupTABLE[4,5,6,7][2][bottomframe=on]
\setupTABLE[r][first][topframe=on]
\setupTABLE[r][last][bottomframe=on]
\setupTABLE[r][4][topframe=on]

\bTABLEhead
\bTR
  \bTD[nr=3] Trial \eTD
  \bTD[nr=3] Author \eTD
  \bTD[nr=3] Year \eTD
  \bTD[nc=4] Infected when\eTD
  \bTD[nr=3] {Absolute\\ latitute}\eTD
\eTR
\bTR
  \bTD[nc=2] vaccinated \eTD
  \bTD[nc=2] not vaccinated \eTD
\eTR
\bTR
  \bTD yes \eTD
  \bTD no \eTD
  \bTD yes \eTD
  \bTD no \eTD
\eTR
\eTABLEhead
\bTABLEbody
\bTR\bTD A \eTD\bTD Aronson   \eTD\bTD 1948 \eTD\bTD 4 \eTD\bTD 119
\eTD\bTD 11 \eTD\bTD 128  \eTD\bTD 44 \eTD\eTR
\bTR\bTD B \eTD\bTD Ferguson  \eTD\bTD 1949 \eTD\bTD 6 \eTD\bTD 300
\eTD\bTD 129 \eTD\bTD 274 \eTD\bTD 55 \eTD\eTR
\bTR\bTD C \eTD\bTD Rosenthal \eTD\bTD 1960 \eTD\bTD 3 \eTD\bTD 228
\eTD\bTD 11 \eTD\bTD 2090 \eTD\bTD 442 \eTD\eTR
\bTR\bTD D \eTD\bTD Hart \eTD\bTD 1977 \eTD\bTD 656 \eTD\bTD 13536
\eTD\bTD 248 \eTD\bTD 12619 \eTD\bTD 52 \eTD\eTR
\eTABLEbody
\eTABLE}
\stoptext
~~~ snip ~~~


Is this a bug? Is this a feature?

Thanks.

Thomas








 On 15 July 2013 16:49, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 Am 15.07.2013 um 16:39 schrieb Thomas Friedrich 
 friedr...@statistik.tu-dortmund.de:

 Hello ConTeXt users,

 I am switching from texexec to context, and from table to tabulate.
 Question: What is the equivalent for \use{2}\ReFormat[c]{text} in the
 \table environment, when you what to do the same in the \tabulate
 environment? I couldn't find the answer in the context garden.

 The tabulate environment has no support for spanned cells.

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

 maillist : ntg-context@ntg.nl / 
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___



-- 
Thomas Friedrich
Fakultät Statistik
Technische Universität Dortmund
44221 Dortmund
Telefon: 0231 755 - 3116
FAX: 0231 755 - 5304
E-Mail: 

Re: [NTG-context] Table cell spanning multiple columns in tabulate

2013-07-15 Thread Wolfgang Schuster

Am 15.07.2013 um 16:39 schrieb Thomas Friedrich 
friedr...@statistik.tu-dortmund.de:

 Hello ConTeXt users,
 
 I am switching from texexec to context, and from table to tabulate.
 Question: What is the equivalent for \use{2}\ReFormat[c]{text} in the
 \table environment, when you what to do the same in the \tabulate
 environment? I couldn't find the answer in the context garden.

The tabulate environment has no support for spanned cells.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Table cell spanning multiple columns in tabulate

2013-07-15 Thread Sietse Brouwer
Thomas Friedrich wrote:
 I am switching from texexec to context, and from table to tabulate.
 Question: What is the equivalent for \use{2}\ReFormat[c]{text} in the
 \table environment, when you what to do the same in the \tabulate
 environment? I couldn't find the answer in the context garden.

Wolfgang Schuster wrote:
 The tabulate environment has no support for spanned cells.

The TABLE mechanism does, though, and that is probably the mkiv
standard for writing non-trivial tables. It's a bit more verbose, but
it can do an enormous number of things -- including many things that
the tabulate mechanism can't. Wiki link:
http://wiki.contextgarden.net/TABLE

The equivalent of \use{2}\ReFormat[c]{text} would be this (rest of
table code added to make this example self-contained and compilable):

\bTABLE
  \bTR
\bTD[nc=2, align=center] text \eTD
  \eTR
  \bTR
\bTD apples \eTD
\bTD oranges \eTD
  \eTR
\eTABLE

Hope this help!
Cheers,
Sietse

On 15 July 2013 16:49, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 Am 15.07.2013 um 16:39 schrieb Thomas Friedrich 
 friedr...@statistik.tu-dortmund.de:

 Hello ConTeXt users,

 I am switching from texexec to context, and from table to tabulate.
 Question: What is the equivalent for \use{2}\ReFormat[c]{text} in the
 \table environment, when you what to do the same in the \tabulate
 environment? I couldn't find the answer in the context garden.

 The tabulate environment has no support for spanned cells.

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

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Table

2013-05-03 Thread Wolfgang Schuster

Am 03.05.2013 um 10:39 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Hi,
 
 for a bilingual book (german-arabic) I want to use a table. So far I have 
 this one:
 
 \starttabulate[||p(.46\textwidth)|p(.46\textwidth)||]
 
 But that is not exactly, what I want: I want a table with 3 columns. The left 
 one ist left-aligned, for the german text (left-algined in the usual sence, I 
 understood that these terms are opposite in context?), the middle one is 
 empty (just to control the space between the to text-columns), and the right 
 columns, arabic, is right aligned.
 
 I want to control all three by something like .46\textwidth, and no 
 indentation (like the above result, left column is indented). How to achieve 
 this (simple) table? My tries did not work so far.

\showframe[text][text]

\starttext

\starttabulate[|lp|rp|]
\NC \input knuth \NC \input tufte \NC\NR
\stoptabulate

\stoptext

The space between the columns can be controlled by the i, j or k keywords which 
accepts a number or a dimension as argument.

%  i  in skip left of column
%  j  in skip right of column
%  k  in skip around column

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Table

2013-05-03 Thread Wolfgang Schuster

Am 03.05.2013 um 10:52 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com:

 The space between the columns can be controlled by the i, j or k keywords 
 which accepts a number or a dimension as argument.
 
 %  i  in skip left of column
 %  j  in skip right of column
 %  k  in skip around column

I’m sorry but the keys accept only a number which uses the values of 
\setuptabulate[unit=dimension]

\starttext

\starttabulate[|l|l|]
\VL Left column \VL Right Column \VL\NR
\stoptabulate

\starttabulate[|i1l|l|]
\VL Left column \VL Right Column \VL\NR
\stoptabulate

\starttabulate[|j1l|l|]
\VL Left column \VL Right Column \VL\NR
\stoptabulate

\starttabulate[|k1l|l|]
\VL Left column \VL Right Column \VL\NR
\stoptabulate

\blank[2cm]

\starttabulate[|l|l|]
\VL Left column \VL Right Column \VL\NR
\stoptabulate

\starttabulate[|l|l|][unit=2cm]
\VL Left column \VL Right Column \VL\NR
\stoptabulate

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


Re: [NTG-context] Table

2013-05-03 Thread H. Özoguz

Thanks Wolfgang!
But now I see a different issue arising: The left and the right column 
are set on the same lines (like grid-setting, not the same). I mean, 
that the text in the left column is set on the same lines, like the text 
in the right columns. Usually that is good, but not for my purpose, 
because arabic is very different, has long letters. So for the arabic 
text the interlinespace should be bigger, than for the german text. Is 
that possible with a table?


An example:

\starttext

\starttabulate[|lp|rp|]

\NC \input knuth

\NC \dorecurse{20}{\tfc Blub}

\NC\NR

\stoptabulate

\stoptext


And this exactly, what happens with arabic. The only other possibility 
would be to set the arabic font very small, but that would be not very 
well readable.


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Table

2013-05-03 Thread H. Özoguz

One thing to add: In LaTex I realized this with minipages:

\newcommand{\kum}[2]{

\begin{minipage}[t]{0.445\textwidth} \small

#1

\end{minipage}

\begin{minipage}[t]{0.05\textwidth}

~

\end{minipage}

\begin{minipage}[t]{0.445\textwidth}

\begin{arab}[voc]

\raggedleft

#2

\end{arab}

\end{minipage}

\begin{minipage}[t]{0.06\textwidth}

~

\end{minipage}

}


This sets very well the german and the arabic text, with different 
interlinespaces. Is there a possibility to copy this into ConText?


Huseyin


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Table

2013-05-03 Thread Wolfgang Schuster

Am 03.05.2013 um 11:54 schrieb H. Özoguz h.oezo...@mmnetz.de:

 One thing to add: In LaTex I realized this with minipages:
 
 \newcommand{\kum}[2]{
 
 \begin{minipage}[t]{0.445\textwidth} \small
 
 #1
 
 \end{minipage}
 
 \begin{minipage}[t]{0.05\textwidth}
 
 ~
 
 \end{minipage}
 
 \begin{minipage}[t]{0.445\textwidth}
 
 \begin{arab}[voc]
 
 \raggedleft
 
 #2
 
 \end{arab}
 
 \end{minipage}
 
 \begin{minipage}[t]{0.06\textwidth}
 
 ~
 
 \end{minipage}
 
 }

You can use \framed but like a minipage no page breaks are possible in a block.

 This sets very well the german and the arabic text, with different 
 interlinespaces. Is there a possibility to copy this into ConText?

You can use natural tables (or xtables) and use the loffset and roffset keys for
margins between both columns. You can also hide the table commands in your
own macros for the texts.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Table

2013-05-03 Thread H. Özoguz

Thanks.


You can use \framed but like a minipage no page breaks are possible in a block.

/  This sets very well the german and the arabic text, with different 
interlinespaces. Is there a possibility to copy this into ConText?
/
You can use natural tables (or xtables) and use the loffset and roffset keys for
margins between both columns. You can also hide the table commands in your
own macros for the texts.


Maybe the minipages/frames are really the only possibility, so that I 
have to resign page-breaking, sad, but if this is the only way... 
Because without different line-interspaces the arabic text is definitely 
not well readable.


Now I tried it with frames; this is my try (from the wiki):

\starttext
\startcombination[2*1]
{\framed
   [width=4cm,
align={flushleft}]
   {\input ward }}
{\framed
   [width=4cm,
align={flushleft,nothyphenated,verytolerant}] % maybe also stretch
   {\tfb \input ward }}
\stopcombination
\stoptext

But it seems to not matter, if I write 2*1 or 1*2, in both cases the 
frames are set one below the other, and not side by side (what I want). Why?


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Table

2013-05-03 Thread Wolfgang Schuster

Am 03.05.2013 um 12:39 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Thanks.
 
 You can use \framed but like a minipage no page breaks are possible in a 
 block.
 
  This sets very well the german and the arabic text, with different 
  interlinespaces. Is there a possibility to copy this into ConText?
 
 You can use natural tables (or xtables) and use the loffset and roffset keys 
 for
 margins between both columns. You can also hide the table commands in your
 own macros for the texts.
 
 Maybe the minipages/frames are really the only possibility, so that I have to 
 resign page-breaking, sad, but if this is the only way... Because without 
 different line-interspaces the arabic text is definitely not well readable.   
   

Why don’t you use natural tables where each cell *is a frame*.

 Now I tried it with frames; this is my try (from the wiki):
 
 \starttext
 \startcombination[2*1]
 {\framed
[width=4cm,
 align={flushleft}]
{\input ward }}
 {\framed
[width=4cm,
 align={flushleft,nothyphenated,verytolerant}] % maybe also stretch
{\tfb \input ward }}
 \stopcombination
 \stoptext
 
 But it seems to not matter, if I write 2*1 or 1*2, in both cases the frames 
 are set one below the other, and not side by side (what I want). Why?

Each entry in combination consists a the content and the caption but in your 
example the first frame is the content and the second the caption.

When you want two things side by side you can use \placesidebyside{…}{…}.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Table

2013-05-03 Thread Eslamica

Why don't you use natural tables where each cell *is a frame*.


Ah, ok Wolfgang. I did not get at with your first post. I will try it!

--

*Hüseyin Özoguz
**
Verlag Eslamica -- www.eslamica.de http://www.eslamica.de**
**m-haditec * GmbH Co. KG
Georg-Wulf-Str. 15
D-28199 Bremen
Telefon+49 (0) 421 1611 2763
Fax+49 (0) 421 3331667
e-Mail: h.oezo...@m-haditec.de
www.mhaditec.de http://www.m-haditec.de/


Sitz der Gesellschaft Bremen
Amtsgericht Bremen, HRA 23526
Ust-IdNr.: 237875374

Persönlich haftende Gesellschafterin
m-haditec GmbH
Sitz der Gesellschaft Bremen
Amtsgericht Bremen, HRA 22270
Geschäftsführer:
Dr.-Ing. Yavuz Özoguz
Dr.-Ing. Gürhan Özoguz

Raiffeisen-Volksbank
BLZ: 280 671 70, Kto. Nr.: 711 894 500
IBAN: DE70 2806 7170 0711 8945 00
BIC: GENODEF1GSC

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Table

2013-05-03 Thread H. Özoguz

Why don’t you use natural tables where each cell *is a frame*.


Ah, ok Wolfgang. I did not get this at your first posting. I will try it!

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Table

2013-05-03 Thread Peter Münster
On Fri, May 03 2013, H. Özoguz wrote:

 One thing to add: In LaTex I realized this with minipages:

 This sets very well the german and the arabic text, with different
 interlinespaces. Is there a possibility to copy this into ConText?

Do minipages support page breaks? And floats?

Did you try this:
http://www.ntg.nl/pipermail/ntg-context/2012/068387.html ?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Table

2013-05-03 Thread H. Özoguz

Do minipages support page breaks? And floats?

Did you try this:
http://www.ntg.nl/pipermail/ntg-context/2012/068387.html  ?


No, they do not, but this was ok for that bilingual project.

No, I did not try this solution, and to be honest: I hope not to have, 
because it seems too complicated for me to implement it. I usually only 
work with .tex files in ConText, nothing more. But maybe, if there is no 
other way, I have to come back to that. Thanks for the info.


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] TABLE frame

2013-05-03 Thread H. Özoguz

Done with \setupTABLE[frame=off].

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] table formatting mystery

2013-04-30 Thread Wolfgang Schuster

Am 29.04.2013 um 17:19 schrieb Lance Larsen lance.c.lar...@gmail.com:

 Thankyou luigi. The suggestion provided below worked. I wish I understood why 
 context thought that a cell height to two rows were needed, but the 
 combination of \hbox and alignment of lohi is a reasonable workaround.

Spannded row/columns in natural tables can be problematic when context 
determines the height and width of the cells.

You can try to use xtables which are similar to natural 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

  1   2   3   4   >