Re: [NTG-context] Tabulate: Change cell orienation for individual cells?

2023-06-27 Thread Bruce Horrocks via ntg-context


> On 27 Jun 2023, at 09:56, Denis Maier via ntg-context  
> wrote:
> 
> Hi,
>  is it possible to override the defined orienatation for a given cell ?

\starttext
\starttabulate[|l|c|r|]
\NC this and that \NC left and right \NC here and there \NC \NR
\NC such and so \NC \rotate[rotation=90]{up and down} \NC on and on \NC \NR
\stoptabulate
\stoptext

—
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 / 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] Tabulate: Change cell orienation for individual cells?

2023-06-27 Thread Denis Maier via ntg-context
Ok, if you use p for the column definition you can just use \setupalign on 
individual cells...

%%%
\starttext
\starttabulate[|pA{verytolerant,extremestretch}|pA{verytolerant,extremestretch}|]
\NC Heading flushleft \NC \setupalign[flushright] Heading flushright \NC \NR
\NC \input ward  \NC \input ward \NC \NR
\stoptabulate
\stoptext
%%%

Best,
Denis

Von: ntg-context  Im Auftrag von Denis Maier via 
ntg-context
Gesendet: Dienstag, 27. Juni 2023 10:56
An: ntg-context@ntg.nl
Cc: Maier, Denis Christian (UB) 
Betreff: [NTG-context] Tabulate: Change cell orienation for individual cells?

Sie erhalten nicht oft eine E-Mail von 
ntg-context@ntg.nl<mailto:ntg-context@ntg.nl>. Erfahren Sie, warum dies wichtig 
ist<https://aka.ms/LearnAboutSenderIdentification>
Hi,

is it possible to override the defined orienatation for a given cell ?

Take this example from the wiki:
%%
\starttext
\starttabulate[|l|c|r|]
\NC this and that \NC left and right \NC here and there \NC \NR
\NC such and so \NC up and down \NC on and on \NC \NR
\stoptabulate
\stoptext
%%

How can I change the alignment for a particular cell?

Best,
Denis

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

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


[NTG-context] Tabulate: Change cell orienation for individual cells?

2023-06-27 Thread Denis Maier via ntg-context
Hi,

is it possible to override the defined orienatation for a given cell ?

Take this example from the wiki:
%%
\starttext
\starttabulate[|l|c|r|]
\NC this and that \NC left and right \NC here and there \NC \NR
\NC such and so \NC up and down \NC on and on \NC \NR
\stoptabulate
\stoptext
%%

How can I change the alignment for a particular cell?

Best,
Denis

___
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] Tabulate \TH command not working in latest release

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

On 1/5/2023 12:16 AM, Michael Guravage via ntg-context wrote:


While typesetting a document containing a small tabulated table with the 
latest release I noticed that the tabulate \TH command hadn't added any 
vertical space between the rows. Here's a mwe.


\starttext
   \starttabulate[|l|l|]
     \NC Γ \NC Gamma \NC\NR
     \NC Θ \NC Theta \NC\NR
     \TB[line]
     \NC Φ \NC Phi \NC\NR
   \stoptabulate
\stoptext

swap nop and yes in tabl-tbl.mkxl, like:

\appendtoks
\enforced\let\TB\tabl_tabulate_TB_nop
\to \t_tabl_tabulate_initializers_first

\appendtoks
\enforced\let\TB\tabl_tabulate_TB_yes
\to \t_tabl_tabulate_initializers_second

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


[NTG-context] Tabulate \TH command not working in latest release

2023-01-04 Thread Michael Guravage via ntg-context
While typesetting a document containing a small tabulated table with the
latest release I noticed that the tabulate \TH command hadn't added any
vertical space between the rows. Here's a mwe.

\starttext
  \starttabulate[|l|l|]
\NC Γ \NC Gamma \NC\NR
\NC Θ \NC Theta \NC\NR
\TB[line]
\NC Φ \NC Phi \NC\NR
  \stoptabulate
\stoptext

---
Michael
___
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] tabulate with lp columns

2021-09-19 Thread Henning Hraban Ramm via ntg-context


> Am 19.09.2021 um 13:27 schrieb Wolfgang Schuster via ntg-context 
> :
> 
> Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 13:14:
>>> Am 19.09.2021 um 13:01 schrieb Wolfgang Schuster via ntg-context 
>>> :
>>> 
>>> Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 12:44:
 There are some problems in the following MWEs.
 
 First example looks the same with MkIV and LMTX, second uses \NS that is 
 only in LMTX.
 
 The first column is justified even if it’s defined as left aligned; this 
 happens also with a simple "l" column. With "p" the width is ignored.
>>> You're missing a \NC at the start of each row.
>> You’re right; in testing I got an empty column when I started with \NC (and 
>> wasn’t sure any more if something changed that I forgot), but I probably 
>> missed one line or something.
>> 
>> The problem with \NS remains:
>> 
>> \starttabulate[|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|]
>> \NC Default \NC Linux \NC MacOS \NC Windows \NC\NR
>> \HL
>> \NC Text processor \NS[3][l] LibreOffice or else \NC\NR
>> \NC Drawing\NS[2][lp(.4\textwidth)] Inkscape \NC Corel Draw \NC\NR
>> \NC Simple Editor  \NC Nano \NC TextEdit \NC Notepad \NC\NR
>> \stoptabulate
> 
> You have to pass the number of additional columns are argument.

Ah, i.e. one less than I was expecting from any other column span syntax...

Thank you!

Hraban
___
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] tabulate with lp columns

2021-09-19 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 13:14:

Am 19.09.2021 um 13:01 schrieb Wolfgang Schuster via ntg-context 
:

Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 12:44:

There are some problems in the following MWEs.

First example looks the same with MkIV and LMTX, second uses \NS that is only 
in LMTX.

The first column is justified even if it’s defined as left aligned; this happens also with a simple 
"l" column. With "p" the width is ignored.

You're missing a \NC at the start of each row.

You’re right; in testing I got an empty column when I started with \NC (and 
wasn’t sure any more if something changed that I forgot), but I probably missed 
one line or something.

The problem with \NS remains:

\starttabulate[|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|]
\NC Default \NC Linux \NC MacOS \NC Windows \NC\NR
\HL
\NC Text processor \NS[3][l] LibreOffice or else \NC\NR
\NC Drawing\NS[2][lp(.4\textwidth)] Inkscape \NC Corel Draw \NC\NR
\NC Simple Editor  \NC Nano \NC TextEdit \NC Notepad \NC\NR
\stoptabulate


You have to pass the number of additional columns are argument.

\starttext

\starttabulate[|*{4}{lp|}]
\NC Default    \NC Linux \NC MacOS    \NC Windows    \NC\NR
\HL
\NC Text processor \NS[2][p] LibreOffice or else \NC\NR
\NC Drawing    \NS[1][p]Inkscape  \NC Corel Draw \NC\NR
\NC Simple Editor  \NC Nano  \NC TextEdit \NC Notepad    \NC\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] tabulate with lp columns

2021-09-19 Thread Henning Hraban Ramm via ntg-context

> Am 19.09.2021 um 13:01 schrieb Wolfgang Schuster via ntg-context 
> :
> 
> Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 12:44:
>> There are some problems in the following MWEs.
>> 
>> First example looks the same with MkIV and LMTX, second uses \NS that is 
>> only in LMTX.
>> 
>> The first column is justified even if it’s defined as left aligned; this 
>> happens also with a simple "l" column. With "p" the width is ignored.
> 
> You're missing a \NC at the start of each row.

You’re right; in testing I got an empty column when I started with \NC (and 
wasn’t sure any more if something changed that I forgot), but I probably missed 
one line or something.

The problem with \NS remains:

\starttabulate[|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|]
\NC Default \NC Linux \NC MacOS \NC Windows \NC\NR
\HL
\NC Text processor \NS[3][l] LibreOffice or else \NC\NR
\NC Drawing\NS[2][lp(.4\textwidth)] Inkscape \NC Corel Draw \NC\NR
\NC Simple Editor  \NC Nano \NC TextEdit \NC Notepad \NC\NR
\stoptabulate


Hraban
___
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] tabulate with lp columns

2021-09-19 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 12:44:

There are some problems in the following MWEs.

First example looks the same with MkIV and LMTX, second uses \NS that is only 
in LMTX.

The first column is justified even if it’s defined as left aligned; this happens also with a simple 
"l" column. With "p" the width is ignored.


You're missing a \NC at the start of each row.

Wolfgang

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

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


[NTG-context] tabulate with lp columns

2021-09-19 Thread Henning Hraban Ramm via ntg-context
There are some problems in the following MWEs.

First example looks the same with MkIV and LMTX, second uses \NS that is only 
in LMTX.


The first column is justified even if it’s defined as left aligned; this 
happens also with a simple "l" column. With "p" the width is ignored.

With \NS the alignment is also wrong in the same way.


\starttext

\starttabulate[|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|]
Default \NC Linux \NC MacOS \NC Windows \NC\NR
\HL
Text Proc \NC LibreOffice \NC Apple Pages   \NC MS Office (Word) \NC\NR
PDF Viewer\NC Evince  \NC Preview   \NC Edge \NC\NR
\stoptabulate


\starttabulate[|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|]
Default \NC Linux \NC MacOS \NC Windows \NC\NR
\HL
Text processor \NS[3][l] LibreOffice or else \NC\NR
Drawing\NS[2][lp(.4\textwidth)] Inkscape \NC Corel Draw \NC\NR
Simple Editor  \NC Nano \NC TextEdit \NC Notepad \NC\NR
\stoptabulate


\stoptext


Additional question: How would I define those columns to use the whole 
\textwidth ?


Hraban
___
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] tabulate inside itemize

2020-07-29 Thread Mike Cooper
THANKS ADITYA!
I got Wolfgang's solution first and it works great.
But I think there are some things in your solution that I should try to learn 
about.  :)


> -Original Message-
> From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Aditya
> Mahajan
> Sent: Wednesday, July 29, 2020 11:12 AM
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] tabulate inside itemize
> 
> On Wed, 29 Jul 2020, Mike Cooper wrote:
> 
> > I would normally use tab stops and line breaks to achieve the following in a
> numbered list:
> >
> > 1.  DC =  3.20 bbl =   420 ft
> >HWDP   =  3.90 bbl =   450 ft
> >DP = 34.63 bbl = 2,037 ft
> >Totals = 41.73 bbl = 2,907 ft
> >
> > 2.  [next step …]
> >
> >
> > This is what I tried, but the output has a blank line at the number.  I 
> > can’t find
> anything about tabulate inside itemize.
> >
> > \starttext
> >
> > \startitemize[n]
> >\startitem \starttabulate[|l|l|r|l|r|]
> >\NC DC \NC = \NC 3.20 bbl \NC = \NC 420 
> > ft \NC \NR
> >\NC HWDP \NC = \NC 3.90 bbl \NC = \NC 
> > 450 ft \NC \NR
> >\NC DP \NC = \NC 34.63 bbl \NC =  \NC 
> > 2,037 ft \NC \NR
> >\NC DC \NC = \NC 41.73 bbl \NC =  \NC 
> > 2,907 ft \NC \NR
> >\stoptabulate \stopitem
> >\startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 
> > 2,907 ×
> 0.707 = 2,056 ft \stopitem
> >\startitem ΔP = 2,056 ft × 0.052 × (15 - 7.2) = 834 psi
> > \stopitemize
> >
> > \stoptext
> 
> Naive solution: Add a \hbox around tabulate:
> 
> 
> \defineframed[tabulateframed][location=top,frame=off]
> 
> \starttext
> 
> \startitemize[n]
>  \startitem \dontleavehmode
>\tabulateframed{\starttabulate[|l|l|r|l|r|]
>  \NC DC \NC = \NC 3.20 bbl \NC = \NC 420 
> ft \NC \NR
>  \NC HWDP \NC = \NC 3.90 bbl \NC = \NC 
> 450 ft \NC \NR
>  \NC DP \NC = \NC 34.63 bbl \NC =  \NC 
> 2,037 ft \NC \NR
>  \NC DC \NC = \NC 41.73 bbl \NC =  \NC 
> 2,907 ft \NC \NR
>  \stoptabulate} \stopitem
>  \startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 
> 2,907 ×
> 0.707 = 2,056 ft \stopitem
>  \startitem ΔP = 2,056 ft × 0.052 × (15 - 7.2) = 834 psi 
> \stopitemize
> 
> \stoptext
> 
> Normally, you can fix such issues by appending a \dontleavehmode in front of 
> the
> command but that doesn't work here. The offending code is line 1300 of tabl-
> tbl.mkxl:
> 
> \unexpanded\def\tabl_tabulate_outside_before
>{\ifhmode\par\fi
> \ifhmode
>   \vbox\bgroup
>   \let\tabl_tabulate_outside_after\egroup
>   \let\tabl_tabulate_outside_inbetween\relax
> \orelse\ifinner
>   \let\tabl_tabulate_outside_after\relax
>   \let\tabl_tabulate_outside_inbetween\relax
> \else
>   \whitespace
>   \tabulationparameter\c!before
>   \relax
>   \let\tabl_tabulate_outside_after\tabl_tabulate_outside_after_indeed
>   
> \let\tabl_tabulate_outside_inbetween\tabl_tabulate_outside_inbetween_indeed
> \fi}
> \protect
> 
> When you use \dontleavehmode\starttabulate, \starttabulate starts in 
> horizontal
> mode but the first \par in the above command takes it back to vertical mode. 
> The
> next \ifhmode then evaluates to false, \ifinner also evaluates to false, so 
> we enter
> the \else loop which inserts a \whitespace.
> 
> The reason why adding a \hbox{...} (which is what \framed without an align key
> does) works is because inside an \hbox{...} \par doesn't take TeX back to 
> vertical
> mode. So, we enter the first branch.
> 
> 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] tabulate inside itemize

2020-07-29 Thread Mike Cooper
THANKS HANS!
I got Wolfgang's solution first and it works great.



> -Original Message-
> From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Hans Hagen
> Sent: Wednesday, July 29, 2020 11:11 AM
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] tabulate inside itemize
> 
> On 7/29/2020 6:38 PM, Mike Cooper wrote:
>  > I would normally use tab stops and line breaks to achieve the following
>  > in a numbered list:
> I know this looks terrible:
> 
> \define\MyTabulateHack{\vskip-\lineheight\blank[disable]}
> 
> \startitemize[n]
> 
>  \startitem \MyTabulateHack
>  \starttabulate[|l|l|r|l|r|]
> 
> but it kind of works ok in your case.
> 
> 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] tabulate inside itemize

2020-07-29 Thread Hans Hagen

On 7/29/2020 7:09 PM, Wolfgang Schuster wrote:

Mike Cooper schrieb am 29.07.2020 um 18:38:
I would normally use tab stops and line breaks to achieve the 
following in a numbered list:


1. DC=3.20 bbl =420 ft
HWDP= 3.90 bbl =450 ft
DP= 34.63 bbl = 2,037 ft
Totals = 41.73 bbl = 2,907 ft

2. [next step …]

This is what I tried, but the output has a blank line at the number.I 
can’t find anything about tabulate inside itemize.


\starttext

\startitemize[n]
\startitem \starttabulate[|l|l|r|l|r|]
\NC DC \NC = \NC 3.20 bbl \NC = \NC 420 ft \NC \NR
\NC HWDP \NC = \NC 3.90 bbl \NC = \NC 450 ft \NC \NR
\NC DP \NC = \NC 34.63 bbl \NC =\NC 2,037 ft \NC \NR
\NC DC \NC = \NC 41.73 bbl \NC =\NC 2,907 ft \NC \NR
\stoptabulate \stopitem
\startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 2,907 × 
0.707 = 2,056 ft \stopitem

\startitem ΔP = 2,056 ft × 0.052 × (15 – 7.2) = 834 psi
\stopitemize

\stoptext

Is there some way to stop the blank line or should I use an entirely 
different approach?


1. Use \blank[overlay] to continue on the first line of the item entry


Ah ... I start forgetting things ... bad ... (I should use tex more 
often I guess)


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] tabulate inside itemize

2020-07-29 Thread Aditya Mahajan

On Wed, 29 Jul 2020, Mike Cooper wrote:


I would normally use tab stops and line breaks to achieve the following in a 
numbered list:

1.  DC =  3.20 bbl =   420 ft
   HWDP   =  3.90 bbl =   450 ft
   DP = 34.63 bbl = 2,037 ft
   Totals = 41.73 bbl = 2,907 ft

2.  [next step …]


This is what I tried, but the output has a blank line at the number.  I can’t 
find anything about tabulate inside itemize.

\starttext

\startitemize[n]
   \startitem \starttabulate[|l|l|r|l|r|]
   \NC DC \NC = \NC 3.20 bbl \NC = \NC 420 ft 
\NC \NR
   \NC HWDP \NC = \NC 3.90 bbl \NC = \NC 450 ft 
\NC \NR
   \NC DP \NC = \NC 34.63 bbl \NC =  \NC 2,037 
ft \NC \NR
   \NC DC \NC = \NC 41.73 bbl \NC =  \NC 2,907 
ft \NC \NR
   \stoptabulate \stopitem
   \startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 2,907 
× 0.707 = 2,056 ft \stopitem
   \startitem ΔP = 2,056 ft × 0.052 × (15 - 7.2) = 834 psi
\stopitemize

\stoptext


Naive solution: Add a \hbox around tabulate:


\defineframed[tabulateframed][location=top,frame=off]

\starttext

\startitemize[n]
\startitem \dontleavehmode
  \tabulateframed{\starttabulate[|l|l|r|l|r|]
\NC DC \NC = \NC 3.20 bbl \NC = \NC 420 ft 
\NC \NR
\NC HWDP \NC = \NC 3.90 bbl \NC = \NC 450 
ft \NC \NR
\NC DP \NC = \NC 34.63 bbl \NC =  \NC 2,037 
ft \NC \NR
\NC DC \NC = \NC 41.73 bbl \NC =  \NC 2,907 
ft \NC \NR
\stoptabulate} \stopitem
\startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 2,907 
× 0.707 = 2,056 ft \stopitem
\startitem ΔP = 2,056 ft × 0.052 × (15 - 7.2) = 834 psi
\stopitemize

\stoptext

Normally, you can fix such issues by appending a \dontleavehmode in front of 
the command but that doesn't work here. The offending code is line 1300 of 
tabl-tbl.mkxl:

\unexpanded\def\tabl_tabulate_outside_before
  {\ifhmode\par\fi
   \ifhmode
 \vbox\bgroup
 \let\tabl_tabulate_outside_after\egroup
 \let\tabl_tabulate_outside_inbetween\relax
   \orelse\ifinner
 \let\tabl_tabulate_outside_after\relax
 \let\tabl_tabulate_outside_inbetween\relax
   \else
 \whitespace
 \tabulationparameter\c!before
 \relax
 \let\tabl_tabulate_outside_after\tabl_tabulate_outside_after_indeed
 \let\tabl_tabulate_outside_inbetween\tabl_tabulate_outside_inbetween_indeed
   \fi}
\protect

When you use \dontleavehmode\starttabulate, \starttabulate starts in horizontal 
mode but the first \par in the above command takes it back to vertical mode. 
The next \ifhmode then evaluates to false, \ifinner also evaluates to false, so 
we enter the \else loop which inserts a \whitespace.

The reason why adding a \hbox{...} (which is what \framed without an align key 
does) works is because inside an \hbox{...} \par doesn't take TeX back to 
vertical mode. So, we enter the first branch.

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] tabulate inside itemize

2020-07-29 Thread Hans Hagen

On 7/29/2020 6:38 PM, Mike Cooper wrote:
> I would normally use tab stops and line breaks to achieve the following
> in a numbered list:
I know this looks terrible:

\define\MyTabulateHack{\vskip-\lineheight\blank[disable]}

\startitemize[n]

\startitem \MyTabulateHack
\starttabulate[|l|l|r|l|r|]

but it kind of works ok in your case.

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] tabulate inside itemize

2020-07-29 Thread Wolfgang Schuster

Mike Cooper schrieb am 29.07.2020 um 18:38:
I would normally use tab stops and line breaks to achieve the following 
in a numbered list:


1. DC=3.20 bbl =420 ft
HWDP= 3.90 bbl =450 ft
DP= 34.63 bbl = 2,037 ft
Totals = 41.73 bbl = 2,907 ft

2. [next step …]

This is what I tried, but the output has a blank line at the number.I 
can’t find anything about tabulate inside itemize.


\starttext

\startitemize[n]
\startitem \starttabulate[|l|l|r|l|r|]
\NC DC \NC = \NC 3.20 bbl \NC = \NC 420 ft \NC \NR
\NC HWDP \NC = \NC 3.90 bbl \NC = \NC 450 ft \NC \NR
\NC DP \NC = \NC 34.63 bbl \NC =\NC 2,037 ft \NC \NR
\NC DC \NC = \NC 41.73 bbl \NC =\NC 2,907 ft \NC \NR
\stoptabulate \stopitem
\startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 2,907 × 
0.707 = 2,056 ft \stopitem

\startitem ΔP = 2,056 ft × 0.052 × (15 – 7.2) = 834 psi
\stopitemize

\stoptext

Is there some way to stop the blank line or should I use an entirely 
different approach?


1. Use \blank[overlay] to continue on the first line of the item entry

2. Disable the blank line at the start of the table with "before="

\starttext

\startitemize[n]
\startitem \blank[overlay]
\starttabulate[|l|c|r|c|r|][before=,after=]
\NC DC   \NC = \NC  3.20 bbl \NC = \NC   420 ft \NC\NR
\NC HWDP \NC = \NC  3.90 bbl \NC = \NC   450 ft \NC\NR
\NC DP   \NC = \NC 34.63 bbl \NC = \NC 2,037 ft \NC\NR
\NC DC   \NC = \NC 41.73 bbl \NC = \NC 2,907 ft \NC\NR
\stoptabulate
\stopitem
\startitem
Convert 2,907 to TVD:\crlf
TVD = 2,907 × cosine 45° = 2,907 × 0.707 = 2,056 ft
\stopitem
\startitem
ΔP = 2,056 ft × 0.052 × (15 – 7.2) = 834 psi
\stopitem
\stopitemize

\stoptext


You can also get rid of the = in your table when you use the \EQ column 
separator and set the sign for the separator to =.


\starttext

\starttabulate[|l|r|r|][EQ={=}]
\NC DC   \EQ  3.20 bbl \EQ   420 ft \NC\NR
\NC HWDP \EQ  3.90 bbl \EQ   450 ft \NC\NR
\NC DP   \EQ 34.63 bbl \EQ 2,037 ft \NC\NR
\NC DC   \EQ 41.73 bbl \EQ 2,907 ft \NC\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] tabulate inside itemize

2020-07-29 Thread Mike Cooper
I would normally use tab stops and line breaks to achieve the following in a 
numbered list:

1.  DC =  3.20 bbl =   420 ft
HWDP   =  3.90 bbl =   450 ft
DP = 34.63 bbl = 2,037 ft
Totals = 41.73 bbl = 2,907 ft

2.  [next step …]


This is what I tried, but the output has a blank line at the number.  I can’t 
find anything about tabulate inside itemize.

\starttext

\startitemize[n]
\startitem \starttabulate[|l|l|r|l|r|]
\NC DC \NC = \NC 3.20 bbl \NC = \NC 420 ft 
\NC \NR
\NC HWDP \NC = \NC 3.90 bbl \NC = \NC 450 
ft \NC \NR
\NC DP \NC = \NC 34.63 bbl \NC =  \NC 2,037 
ft \NC \NR
\NC DC \NC = \NC 41.73 bbl \NC =  \NC 2,907 
ft \NC \NR
\stoptabulate \stopitem
\startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 2,907 
× 0.707 = 2,056 ft \stopitem
\startitem ΔP = 2,056 ft × 0.052 × (15 - 7.2) = 834 psi
\stopitemize

\stoptext

Is there some way to stop the blank line or should I use an entirely different 
approach?

THANKS!!


Mike Cooper
Technical Trainer
Murchison Drilling Schools, Inc.
2501 Juan Tabo NE
Albuquerque, NM 87112
Tel: (505) 293-6271
Fax: (505) 298-5294
Email: 
m...@murchisondrillingschools.com
Website: 
www.murchisondrillingschools.com
[cid:image007.jpg@01D03ADC.BD6E6850]
  [cid:image008.jpg@01D03ADC.BD6E6850] 
   
[cid:image009.jpg@01D03ADC.BD6E6850] 
Murchison Drilling Schools is now part of
[cid:image001.png@01D63515.857FD120]

___
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] Tabulate & repeating header

2018-11-13 Thread Wolfgang Schuster

Procházka Lukáš Ing. schrieb am 12.11.18 um 13:17:

Hello,

the following code:


\starttext
  \bgroup
    \setuptabulate[split=yes,header=repeat]

    \starttabulatehead
  \FL
  \NC {\bf format char} \NC {\bf meaning} \NC \AR
  \LL
    \stoptabulatehead


For the moment use (with a empty argument):

\starttabulatehead[]
...
\stoptabulatehead


\starttabulate[|r|l|]
  \NC c \NC centered  \NC \AR
  \NC l \NC left aligned  \NC \AR
  \NC r \NC right aligned \NC \AR
    \stoptabulate
  \egroup
\stoptext


has been copied from wiki - 
https://wiki.contextgarden.net/Tabulate#Headers and it should generate 
(repeating) header,

but no header appears.

Has anything changed?


Hans rewrote the code for tabulate in MkIV and it’s possible some parts 
don’t work as expected.


Wolfgang

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

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

[NTG-context] Tabulate & repeating header

2018-11-12 Thread Procházka Lukáš Ing .

Hello,

the following code:


\starttext
  \bgroup
\setuptabulate[split=yes,header=repeat]

\starttabulatehead
  \FL
  \NC {\bf format char} \NC {\bf meaning} \NC \AR
  \LL
\stoptabulatehead

\starttabulate[|r|l|]
  \NC c \NC centered  \NC \AR
  \NC l \NC left aligned  \NC \AR
  \NC r \NC right aligned \NC \AR
\stoptabulate
  \egroup
\stoptext


has been copied from wiki - https://wiki.contextgarden.net/Tabulate#Headers and 
it should generate (repeating) header,
but no header appears.

Has anything changed?

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 | IČO: 40763439
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] Tabulate backgroundcolors

2018-09-10 Thread Hans Hagen

On 9/10/2018 12:45 PM, Henri Menke wrote:

bump


already fixed but no upload yet (maybe later today)


On 09/07/2018 09:58 AM, Henri Menke wrote:

Dear list,

I'm trying to color the background of “p” cells in tabulate.  The MWE
below will fail with the error “Undefined control sequence \IMPOSSIBLE”
but when I enter scrollmode to finish the run, I get a PDF which looks
exactly as intended.  Looks like it's not \IMPOSSIBLE after all but
there is actually just a definition missing.  Can you please fix this?

Cheers, Henri

---

\starttext
\starttabulate[|CM{black}l|CM{gray}p|][distance=none]
   \HL
   \VL \color[white]{\bf Table NAME} \CM[black] \VL\NR
   \HL
   \VL \VL \bf Description: \VL\NR
   \HL
   \VL \VL
 \startitemize
 \dorecurse{60}{\item Item \recurselevel}
 \stopitemize
   \VL\NR
   \HL
\stoptabulate
\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] Tabulate backgroundcolors

2018-09-10 Thread Henri Menke
bump

On 09/07/2018 09:58 AM, Henri Menke wrote:
> Dear list,
> 
> I'm trying to color the background of “p” cells in tabulate.  The MWE
> below will fail with the error “Undefined control sequence \IMPOSSIBLE”
> but when I enter scrollmode to finish the run, I get a PDF which looks
> exactly as intended.  Looks like it's not \IMPOSSIBLE after all but
> there is actually just a definition missing.  Can you please fix this?
> 
> Cheers, Henri
> 
> ---
> 
> \starttext
> \starttabulate[|CM{black}l|CM{gray}p|][distance=none]
>   \HL
>   \VL \color[white]{\bf Table NAME} \CM[black] \VL\NR
>   \HL
>   \VL \VL \bf Description: \VL\NR
>   \HL
>   \VL \VL
> \startitemize
> \dorecurse{60}{\item Item \recurselevel}
> \stopitemize
>   \VL\NR
>   \HL
> \stoptabulate
> \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
___

[NTG-context] Tabulate backgroundcolors

2018-09-06 Thread Henri Menke
Dear list,

I'm trying to color the background of “p” cells in tabulate.  The MWE
below will fail with the error “Undefined control sequence \IMPOSSIBLE”
but when I enter scrollmode to finish the run, I get a PDF which looks
exactly as intended.  Looks like it's not \IMPOSSIBLE after all but
there is actually just a definition missing.  Can you please fix this?

Cheers, Henri

---

\starttext
\starttabulate[|CM{black}l|CM{gray}p|][distance=none]
  \HL
  \VL \color[white]{\bf Table NAME} \CM[black] \VL\NR
  \HL
  \VL \VL \bf Description: \VL\NR
  \HL
  \VL \VL
\startitemize
\dorecurse{60}{\item Item \recurselevel}
\stopitemize
  \VL\NR
  \HL
\stoptabulate
\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] Tabulate containing high element

2017-11-01 Thread Procházka Lukáš Ing .

Hello Taco,

thank you for the hack.

\tabulatesplitlinemode=0 has local effect, so one may enclose it into group to 
protect global setting.

I also had to enclose some elements into \tbox to get proper vertical alignment 
- see the MWE attached.

Thank you anyway.

Best regards,

Lukas


On Tue, 31 Oct 2017 13:37:00 +0100, Taco Hoekwater  wrote:



Hi,

This should work:

  \tabulatesplitlinemode=0 % 1 | 2, default: 1
  % controls the splitting dimensions for lines in ‘p’ mode
  % 0: do nothing
  % 1: make each line exactly the height and depth of \strut
  % 2: make each line at least the height and depth height of \strut


Undocumented, so likely to change in the next beta ;)

Best wishes,
Taco



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

Tabul-with-HighElem.mkiv
Description: Binary data


Tabul-with-HighElem.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] Tabulate containing high element

2017-10-31 Thread Taco Hoekwater

Hi,

This should work:

  \tabulatesplitlinemode=0 % 1 | 2, default: 1
  % controls the splitting dimensions for lines in ‘p’ mode 
  % 0: do nothing
  % 1: make each line exactly the height and depth of \strut
  % 2: make each line at least the height and depth height of \strut


Undocumented, so likely to change in the next beta ;)

Best wishes,
Taco


> On 31 Oct 2017, at 12:55, Procházka Lukáš Ing.  wrote:
> 
> Hello,
> 
> any idea?
> 
> My other attempts to constrain the row height to reflect its highest member 
> fail, too.
> 
> Is it possible in the tabulate environment at all?
> 
> Best regards,
> 
> Lukas
> 
> 
> On Mon, 30 Oct 2017 09:04:18 +0100, Procházka Lukáš Ing.  
> wrote:
> 
>> Hello,
>> 
>> On Sun, 29 Oct 2017 23:50:51 +0100, Aditya Mahajan  wrote:
>> 
>>> On Sun, 29 Oct 2017, Procházka Lukáš Ing. wrote:
>>> 
 Hello,
 
 how to make tabulate row "aware" of some content of some "bigger" height?
 
 In the following sample:
 
 
 \starttext
 \starttabulate[|pd(.4\textwidth)|p|]
  \HL
  \NC
\framed[location=top,width=1in,height=1in]{Abc}
  \VL
Def
  \NC\NR
  \HL
 \stoptabulate
 \stoptext
 
>>> 
>>> (Untested): Does
>>> 
>>> \dontleavehmode \framed 
>> 
>> unfortunately, it does not...
>> 
>> Lukas
>> 
>>> work better?
>>> 
>>> Aditya
>> 
>> 
> 
> 
> -- 
> 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
> ___

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] Tabulate containing high element

2017-10-31 Thread Procházka Lukáš Ing .

Hello,

any idea?

My other attempts to constrain the row height to reflect its highest member 
fail, too.

Is it possible in the tabulate environment at all?

Best regards,

Lukas


On Mon, 30 Oct 2017 09:04:18 +0100, Procházka Lukáš Ing.  wrote:


Hello,

On Sun, 29 Oct 2017 23:50:51 +0100, Aditya Mahajan  wrote:


On Sun, 29 Oct 2017, Procházka Lukáš Ing. wrote:


Hello,

how to make tabulate row "aware" of some content of some "bigger" height?

In the following sample:


\starttext
\starttabulate[|pd(.4\textwidth)|p|]
  \HL
  \NC
\framed[location=top,width=1in,height=1in]{Abc}
  \VL
Def
  \NC\NR
  \HL
\stoptabulate
\stoptext



(Untested): Does

\dontleavehmode \framed 


unfortunately, it does not...

Lukas


work better?

Aditya






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

Tabul-with-HighElem.mkiv
Description: Binary data


Tabul-with-HighElem.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] Tabulate containing high element

2017-10-30 Thread Procházka Lukáš Ing .

Hello,

On Sun, 29 Oct 2017 23:50:51 +0100, Aditya Mahajan  wrote:


On Sun, 29 Oct 2017, Procházka Lukáš Ing. wrote:


Hello,

how to make tabulate row "aware" of some content of some "bigger" height?

In the following sample:


\starttext
\starttabulate[|pd(.4\textwidth)|p|]
  \HL
  \NC
\framed[location=top,width=1in,height=1in]{Abc}
  \VL
Def
  \NC\NR
  \HL
\stoptabulate
\stoptext



(Untested): Does

\dontleavehmode \framed 


unfortunately, it does not...

Lukas


work better?

Aditya



--
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] Tabulate containing high element

2017-10-29 Thread Aditya Mahajan

On Sun, 29 Oct 2017, Procházka Lukáš Ing. wrote:


Hello,

how to make tabulate row "aware" of some content of some "bigger" height?

In the following sample:


\starttext
\starttabulate[|pd(.4\textwidth)|p|]
  \HL
  \NC
\framed[location=top,width=1in,height=1in]{Abc}
  \VL
Def
  \NC\NR
  \HL
\stoptabulate
\stoptext



(Untested): Does

\dontleavehmode \framed 

work better?

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

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

[NTG-context] Tabulate containing high element

2017-10-29 Thread Procházka Lukáš Ing .

Hello,

how to make tabulate row "aware" of some content of some "bigger" height?

In the following sample:


\starttext
  \starttabulate[|pd(.4\textwidth)|p|]
\HL
\NC
  \framed[location=top,width=1in,height=1in]{Abc}
\VL
  Def
\NC\NR
\HL
  \stoptabulate
\stoptext


content of the \framed flows out of the height of the first row;
I'd like the first row to have height of the highest element (here: the \framed 
- be 1 in).

How to achieve this?

Thank you in advance.

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

t2.mkiv
Description: Binary data


t2.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] Tabulate and \VL

2017-10-24 Thread Procházka Lukáš Ing .

Hello,

I noticed that \VL's behavior over several lines has been fixed - thank you, 
Hans!

Best regards,

Lukas


On Thu, 05 Oct 2017 15:28:54 +0200, Hans Hagen  wrote:


On 10/5/2017 8:57 AM, Procházka Lukáš Ing. wrote:

Hello,

maybe a very basic question -
- but in the sample bellow the VL of the first row is drawn only to
height of the first line of the 2line paragraph;
how to make the VL "full-height"?

it needs an extension so you have to be patient



--
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] Tabulate and \VL

2017-10-05 Thread Hans Hagen

On 10/5/2017 8:57 AM, Procházka Lukáš Ing. wrote:

Hello,

maybe a very basic question -
- but in the sample bellow the VL of the first row is drawn only to 
height of the first line of the 2line paragraph;

how to make the VL "full-height"?

it needs an extension so you have to be patient


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

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

[NTG-context] Tabulate and \VL

2017-10-05 Thread Procházka Lukáš Ing .

Hello,

maybe a very basic question -
- but in the sample bellow the VL of the first row is drawn only to height of 
the first line of the 2line paragraph;
how to make the VL "full-height"?


\starttext
  \starttabulate[|l|p|]
\NC Hello \VL This is a dummy but very lng text which goes into 
several (one, two, three?) lines \NC\NR
\NC Something \VL else \NC\NR
  \stoptabulate
\stoptext


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

TabulVL.mkiv
Description: Binary data


TabulVL.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] tabulate as header

2017-03-05 Thread kaddour kardio
Thank you Aditya, i ended up using a layer for my header, but your approach
is more succint

\setupbackgrounds[page][background=mybg]

 \setlayer[mybg] % name of the layer
   [hoffset=2.5cm, voffset=0.2cm]  % placement (from upper left corner
of the layer)
   {\framed[frame=off, background=color, backgroundcolor= , height=3cm]{
 \starttabulate[|p|lrw(2cm)|pr|]
  \NC \ss Clinique médico chirurgicale El Abrar\NC
\externalfigure[logo.png][width=1cm, location=inline]\NC  \ss Service de

cardiologie\NC \NR
 \NC \ss\tfx Dr Yahyaoui .M.K \NC  \NC \ss\tfx kaddourkardio(at)
gmail.com \NC \NR
\stoptabulate
}} % the actual contents of the layer
 should i use the same layer for a sidebar, or better-off to define another
layer ?

On Sun, Mar 5, 2017 at 7:25 PM, Aditya Mahajan  wrote:

> On Sat, 4 Mar 2017, kaddour kardio wrote:
>
> ​Hi everyone, i have a quiet simple question as i'm a beginnerin ConTeXT
>> (with a background of 05 years with LaTeX):
>> Is it possible tu use tabulate environment as a header?
>>
>
> Yes, but there were too many typos in your code.
>
> \setupheadertexts[\setups{tableheader}]
>
> \startsetups tableheader
>  \starttabulate[|p|p|]
>\NC Clinique médico chirurgicale El Abrar
>\NC \externalfigure[width=1.5cm][logo.png]
>\NC \NR
> \stoptabulate
> \stopsetups
>
>  \setuppagenumbering[location=footer]
>
>  \starttext
>  \input knuth
>  \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
> 
> ___
>



-- 
Dr YAHYAOUI Mohamed Kaddour, cardiologue.Clinique EL ABRAR.
___
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] tabulate as header

2017-03-05 Thread Aditya Mahajan

On Sat, 4 Mar 2017, kaddour kardio wrote:


​Hi everyone, i have a quiet simple question as i'm a beginnerin ConTeXT
(with a background of 05 years with LaTeX):
Is it possible tu use tabulate environment as a header?


Yes, but there were too many typos in your code.

\setupheadertexts[\setups{tableheader}]

\startsetups tableheader
 \starttabulate[|p|p|]
   \NC Clinique médico chirurgicale El Abrar
   \NC \externalfigure[width=1.5cm][logo.png]
   \NC \NR
\stoptabulate
\stopsetups

 \setuppagenumbering[location=footer]

 \starttext
 \input knuth
 \stoptext

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

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

[NTG-context] tabulate as header

2017-03-04 Thread kaddour kardio
​Hi everyone, i have a quiet simple question as i'm a beginnerin ConTeXT
(with a background of 05 years with LaTeX):
Is it possible tu use tabulate environment as a header?

\startsetups headertext
\setupheadertexts[\setups{tableheader}]
 % \framed[frame=off, align=normal]
 \setuptableheader  {\starttabulate[|p|p|p|]
\NC Clinique médico chirurgicale El Abrar\NC
\externalfigue[width=1.5cm][logo.png]\NC placeholder\NR
\stoptabulate   }
 \stopsetup

​
thak you in advance

-- 
Dr YAHYAOUI Mohamed Kaddour, cardiologue.Clinique EL ABRAR.
___
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] Tabulate \NN not working

2016-05-29 Thread Hans Åberg

> On 29 May 2016, at 20:58, Wolfgang Schuster  
> wrote:
> 
>> Hans Åberg 29. Mai 2016 um 20:49

>> The pages [1], "Using math mode” suggests
>>   \NN 
>> is equivalent to
>>   \NC $$ 
>> 
>> 1. 
>> http://wiki.contextgarden.net/Tabulate
> The description is wrong, the \NN command calls the \digits command at the 
> begin of the cell, i.e.
> 
> \NN …
> 
> is the same as
> 
> \NC \digits …

OK. Perhaps a \NM … command call $…$, then.

The output on the \digits page is wrong, too. (Because of the confusion of “,” 
and “.” in numbers, an international standard suggests to use either of them as 
a decimal separator, and a single space between digits if so wished. Haven’t 
caught on much, though.)

http://wiki.contextgarden.net/Command/digits


___
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] Tabulate \NN not working

2016-05-29 Thread Wolfgang Schuster

Hans Åberg 
29. Mai 2016 um 20:49

On 29 May 2016, at 18:57, Wolfgang Schuster  wrote:


Hans Åberg 29. Mai 2016 um 18:38
For some reason, the use of \NN as in the first table below is not working. It 
works fine using math columns, though, as in the second table below.

What do you expect?


The pages [1], "Using math mode” suggests
   \NN
is equivalent to
   \NC $$

1. http://wiki.contextgarden.net/Tabulate
The description is wrong, the \NN command calls the \digits command at 
the begin of the cell, i.e.


\NN …

is the same as

\NC \digits …

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] Tabulate \NN not working

2016-05-29 Thread Hans Åberg

> On 29 May 2016, at 20:42, L.S.-Soc  wrote:
> 
> You also shouldn't paste blackboard characters as you did in your example.
> 
> Instead you should use \blackboard command -> 

I want to use Unicode characters, making the source code more readable.


___
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] Tabulate \NN not working

2016-05-29 Thread Hans Åberg

> On 29 May 2016, at 18:57, Wolfgang Schuster  
> wrote:
> 
>> Hans Åberg 29. Mai 2016 um 18:38
>> For some reason, the use of \NN as in the first table below is not working. 
>> It works fine using math columns, though, as in the second table below.
> What do you expect?

The pages [1], "Using math mode” suggests
  \NN 
is equivalent to
  \NC $$ 

1. http://wiki.contextgarden.net/Tabulate

> You use in your table math characters which aren’t available in the text font 
> and as a result nothing is shown.

But it ain’t.


___
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] Tabulate \NN not working

2016-05-29 Thread L.S.-Soc

You also shouldn't paste blackboard characters as you did in your example.

Instead you should use \blackboard command -> check wiki. You will have 
to place it within a math environment though, so it might be wiser to 
read into "natural TABLES". -> also check wiki.


For example:

\startformula {\blackboard Hello World} \stopformula

or

\startformula {\blackboard R} \stopformula



Greets, Seba


Am 29.05.2016 um 18:38 schrieb Hans Åberg:

For some reason, the use of \NN as in the first table below is not working. It 
works fine using math columns, though, as in the second table below.


\setupbodyfont[xits,10pt]

\starttabulate[|c|c|]
   \NN x \NN ¬x \NR
   \HL
   \NN 핗 \NN 핥 \NR
   \NC 핥 \NN 핗 \NR
\stoptabulate

\starttabulate[|mc|mc|]
   \NC x \NC ¬x \NR
   \HL
   \NC 핗 \NC 핥 \NR
   \NC 핥 \NC 핗 \NR
\stoptabulate


___
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] Tabulate \NN not working

2016-05-29 Thread Wolfgang Schuster

Hans Åberg 
29. Mai 2016 um 18:38
For some reason, the use of \NN as in the first table below is not 
working. It works fine using math columns, though, as in the second 
table below.

What do you expect?

You use in your table math characters which aren’t available in the text 
font and as a result nothing is shown.


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
___

[NTG-context] Tabulate \NN not working

2016-05-29 Thread Hans Åberg
For some reason, the use of \NN as in the first table below is not working. It 
works fine using math columns, though, as in the second table below.


\setupbodyfont[xits,10pt]

\starttabulate[|c|c|]
  \NN x \NN ¬x \NR
  \HL
  \NN 핗 \NN 핥 \NR
  \NC 핥 \NN 핗 \NR
\stoptabulate

\starttabulate[|mc|mc|]
  \NC x \NC ¬x \NR
  \HL
  \NC 핗 \NC 핥 \NR
  \NC 핥 \NC 핗 \NR
\stoptabulate


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

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

[NTG-context] Tabulate: lines bellow header

2015-07-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

Let's have the following code:


\starttext
  \setuptabulate[header=repeat,split=yes]
  \starttabulatehead
\HL
\NC H \NC H \NC\NR
\LL % \LL[8] causes error
  \stoptabulatehead
  \starttabulate[|l|l|]
\dorecurse{50}{
  \NC A \NC A \NC\NR
  \HL[8]
}
  \stoptabulate
\stoptext


It produces:

1) horizontal line bellow header, which is somewhat shifted down, closer to the 
first body row, but only on the 1st page;

2) horizontal line bellow header on page look differently from that on page 1
- its thickness if about a half of that between body rows,
- and also its position is different from that on page 1.

3) Is there a way to affect thickness of the rule bellow header? \LL[8] causes 
error.
I guess this is quite normal - to have a table header separated by a thicker 
rule, to have:


table header

body row 1

body row 2


So:

Ad 1: Is it possible to place the rule bellow the header to a better position? E.g. 
using a more proper command than \LL?

Ad 2: Is it a Ctx feature or -- ?

Ad 3: Any idea how to achieve this?

Best regards,

Lukas


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

Tabulate.mkiv
Description: Binary data


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

[NTG-context] tabulate and header=repeat

2015-03-21 Thread Alan BRASLAU
Hello,

I have a simple problem with headers and tabulate spread over multiple
pages. In the following MWE, the header's \HL gets rendered twice on
its first instance (the first page). My error must be something simple
(and obvious)?

Thanks

Alan




\setupbodyfont [dejavu,12pt]

\setuptabulate[split=yes,header=repeat]

\starttext
\starttabulatehead
\NC \type{\input} \NC text \NC\NR
\HL
\stoptabulatehead
\starttabulate [|r|p|]
\NC knuth   \NC \input knuth   \NC\NR
\NC tufte   \NC \input tufte   \NC\NR
\NC ward\NC \input ward\NC\NR
\NC darwin  \NC \input darwin  \NC\NR
\NC dawkins \NC \input dawkins \NC\NR
\NC reich   \NC \input reich   \NC\NR
\HL
\stoptabulate
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] tabulate and header=repeat

2015-03-21 Thread Wolfgang Schuster

 Am 21.03.2015 um 18:22 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
 Hello,
 
 I have a simple problem with headers and tabulate spread over multiple
 pages. In the following MWE, the header's \HL gets rendered twice on
 its first instance (the first page). My error must be something simple
 (and obvious)?

There are actually three different rule command (\FL, \ML and \LL)
which are used from the \HL dependent on the position in the table
and in the table header this auto selection can be wrong because
ConTeXt uses \ML while \LL should be used instead. To fix the double
rule on the first page use \LL as last rule in the header.

\starttabulatehead
\NC \type{\input} \NC text \NC\NR
\LL
\stoptabulatehead

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] tabulate and header=repeat

2015-03-21 Thread Alan BRASLAU
On Sat, 21 Mar 2015 18:50:29 +0100
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

  in the table header this auto selection can be wrong because
 ConTeXt uses \ML while \LL should be used instead. To fix the double
 rule on the first page use \LL as last rule in the header.

Thank you.

I have modified the wiki as well.

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

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

Re: [NTG-context] tabulate: header not repeated

2014-05-02 Thread Wolfgang Schuster

Am 28.04.2014 um 08:36 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz:

 ... OK, it seems repeated headers with 'tabulate' are not used frequently by 
 Ctx users.
 
 Probably 'b/e-TABLE' would do the job;
 
 so are repeated headers with 'tabulate' buggy and/or deprecated?

This is a bug, please check if is fixed when Hans releases a new beta.

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] tabulate: header not repeated

2014-04-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... OK, it seems repeated headers with 'tabulate' are not used frequently by 
Ctx users.

Probably 'b/e-TABLE' would do the job;

so are repeated headers with 'tabulate' buggy and/or deprecated?

Best regards,

Lukas


On Thu, 24 Apr 2014 08:41:51 +0200, Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz wrote:


Hello,

'tabulate' header is not repeated across pages, the header appears only at the 
begin of the 'tabulate'.

The code is based on http://wiki.contextgarden.net/Tabulate#Headers


\starttext
   \setuptabulate[split=yes,header=repeat]

   \starttabulatehead
 \HL
 \NC A \NC B \NC\NR
 \HL
   \stoptabulatehead

   \starttabulate[|l|l|]
 %\starttabulatebody
   \dorecurse{100}{\NC a \NC b \NC\NR}
 %\stoptabulatebody
   \stoptabulate
\stoptext


Where is the problem?

Best regards,

Lukas





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

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

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


[NTG-context] tabulate: header not repeated

2014-04-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

'tabulate' header is not repeated across pages, the header appears only at the 
begin of the 'tabulate'.

The code is based on http://wiki.contextgarden.net/Tabulate#Headers


\starttext
  \setuptabulate[split=yes,header=repeat]

  \starttabulatehead
\HL
\NC A \NC B \NC\NR
\HL
  \stoptabulatehead

  \starttabulate[|l|l|]
%\starttabulatebody
  \dorecurse{100}{\NC a \NC b \NC\NR}
%\stoptabulatebody
  \stoptabulate
\stoptext


Where is the problem?

Best regards,

Lukas


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

t-Tab.mkiv
Description: Binary data


t-Tab.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
___

[NTG-context] Tabulate: how to center tabulate horizontally?

2014-04-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I'm trying to center horizontally a tabulate, but the tabulate is still 
placed on the left side of the page.

How to center it?

Here is my code:


\starttext
  \startalignment[center]
\dontleavehmode
\externalfigure[cow]
  \stopalignment

  \startalignment[center]
\dontleavehmode
\starttabulate[|rw(1in)|rw(1in)|rw(1in)|]
  \HL
  \NC BBCCDD \NC $y_{JTSK}$ \NC $x_{JTSK}$ \NC\NR
  \HL[3]
  \NC 00 \NC 123456.479 \NC 123456.479 \NC\NR
  \HL
\stoptabulate%
  \stopalignment
\stoptext


Best regards,

Lukas


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

t.mkiv
Description: Binary data


t.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Tabulate: how to center tabulate horizontally?

2014-04-02 Thread H. Özoguz

I'm trying to center horizontally a tabulate, but the tabulate is still 
placed on the left side of the page.

How to center it?


You could use the tabularframe and align in the middle:

\defineframedcontent [tabularframe] [frame=off, align=middle]
\starttext
\placetable[here]{Framesolution}{
\starttabulate[|rw(1in)|rw(1in)|rw(1in)|]
   \HL
   \NC BBCCDD \NC $y_{JTSK}$ \NC $x_{JTSK}$ \NC\NR
   \HL[3]
   \NC 00 \NC 123456.479 \NC 123456.479 \NC\NR
   \HL
 \stoptabulate
}
\stoptext

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] Tabulate: how to center tabulate horizontally?

2014-04-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

it works, thanks!

Lukas


On Wed, 02 Apr 2014 11:26:39 +0200, H. Özoguz h.oezo...@mmnetz.de wrote:


I'm trying to center horizontally a tabulate, but the tabulate is still 
placed on the left side of the page.

How to center it?


You could use the tabularframe and align in the middle:

\defineframedcontent [tabularframe] [frame=off, align=middle]
\starttext
\placetable[here]{Framesolution}{
\starttabulate[|rw(1in)|rw(1in)|rw(1in)|]
\HL
\NC BBCCDD \NC $y_{JTSK}$ \NC $x_{JTSK}$ \NC\NR
\HL[3]
\NC 00 \NC 123456.479 \NC 123456.479 \NC\NR
\HL
  \stoptabulate
}
\stoptext

Huseyin



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

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

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


[NTG-context] tabulate and tolerance

2013-09-26 Thread Peter Münster
Hi,

It seems, that tabulate does not use the tolerance setting:

--8---cut here---start-8---
\setbreakpoints[compound]
\setuptolerance[stretch]
\starttext
\starttabulate[|p(1cm)|l|]
\NC bla-blabla-bla \NC XXX \NC \NR
\stoptabulate

\hsize1cm
bla-blabla-bla
\stoptext
--8---cut here---end---8---

For now, my workaround is \NC \setuptolerance[stretch] bla-blabla-bla \NC

Is there anything better?

TIA for any hints,
-- 
   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] tabulate and tolerance

2013-09-26 Thread Wolfgang Schuster

Am 26.09.2013 um 21:33 schrieb Peter Münster pmli...@free.fr:

 Hi,
 
 It seems, that tabulate does not use the tolerance setting:
 
 --8---cut here---start-8---
 \setbreakpoints[compound]
 \setuptolerance[stretch]
 \starttext
 \starttabulate[|p(1cm)|l|]
 \NC bla-blabla-bla \NC XXX \NC \NR
 \stoptabulate
 
 \hsize1cm
 bla-blabla-bla
 \stoptext
 --8---cut here---end---8---
 
 For now, my workaround is \NC \setuptolerance[stretch] bla-blabla-bla \NC
 
 Is there anything better?


You can use the “A” keyword in the table preamble to set values for the 
alignment, e.g. \starttabulate[|p(1cm)A{stretch}|]

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] Tabulate: vertical distance between rows

2013-05-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Great, thank you!

I added some info to wiki (http://wiki.contextgarden.net/Tabulate).

Best regards,

Lukas



You can use the \TB which accepts the same keywords as \blank.

\starttext

\starttabulate
\NC one  \NC two   \NC\NR
\NC two  \NC three \NC\NR
\TB[line]
\NC four \NC five  \NC\NR
\TB[1cm]
\NC six  \NC seven \NC\NR
\stoptabulate

\stoptext

Wolfgang


--
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 244 062 238
Fax: +420 244 461 038

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

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

[NTG-context] Tabulate: vertical distance between rows

2013-05-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

are there more ways how to affect vertical distance between rows within 
\start/stop-tabulate?

1) There is one, described on wiki (http://wiki.contextgarden.net/Tabulate):


\unprotect
\appendtoks
  \blank[halfline]
\to \t_tabl_tabulate_every_after_row
\protect

...


Its problem is that I don't know how to call it by Lua.
The following code fails:


  \startluacode
context[[
\unprotect
\appendtoks
  \blank[halfline]
\to \t_tabl_tabulate_every_after_row
\protect
]]
  \stopluacode

...


So how to make it acceptable by Ctx?


2) Is there another way, e.g. inserting something each time before \NC\NR or 
elsewhere)?

This brings no effect:


  \starttabulate[|l|r|]
\NC a \NC b \blank\NC\blank\NR
\NC A \NC B \NC\NR
  \stoptabulate


As I intend to typeset a table (into tabulate) via Lua, adding an extra 
sequence/command anywhere when a table row is typeset is no problem.

Questions are: a) what would be such sequence and b) where it should be placed?


My whole testing code is attached.

Thank you in advance.

Best regards,

Lukas


--
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 244 062 238
Fax: +420 244 461 038

t-Tabul.mkiv
Description: Binary data


t-Tabul.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] Tabulate: vertical distance between rows

2013-05-22 Thread Wolfgang Schuster

Am 22.05.2013 um 15:20 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz:

 Hello,
 
 are there more ways how to affect vertical distance between rows within 
 \start/stop-tabulate?
 
 1) There is one, described on wiki (http://wiki.contextgarden.net/Tabulate):
 
 
 \unprotect
 \appendtoks
  \blank[halfline]
 \to \t_tabl_tabulate_every_after_row
 \protect

This is only a hack and shouldn’t be used.

 Its problem is that I don't know how to call it by Lua.
 The following code fails:
 
 
  \startluacode
context[[
 \unprotect
 \appendtoks
  \blank[halfline]
 \to \t_tabl_tabulate_every_after_row
 \protect
 ]]
  \stopluacode
 
 ...
 
 
 So how to make it acceptable by Ctx?
 
 
 2) Is there another way, e.g. inserting something each time before \NC\NR or 
 elsewhere)?
 
 This brings no effect:
 
 
  \starttabulate[|l|r|]
\NC a \NC b \blank\NC\blank\NR
\NC A \NC B \NC\NR
  \stoptabulate
 
 
 As I intend to typeset a table (into tabulate) via Lua, adding an extra 
 sequence/command anywhere when a table row is typeset is no problem.


You can use the \TB which accepts the same keywords as \blank.

\starttext

\starttabulate
\NC one  \NC two   \NC\NR 
\NC two  \NC three \NC\NR 
\TB[line]
\NC four \NC five  \NC\NR 
\TB[1cm]
\NC six  \NC seven \NC\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] tabulate \midaligned

2012-11-29 Thread luigi scarso
On Thu, Nov 29, 2012 at 8:11 AM, Procházka Lukáš Ing. - Pontex s. r.
o. l...@pontex.cz wrote:
 Hello,

 the \start/stop-tabulate doesn't work inside \midaligned:

 
 \def\T{%
 \starttabulate[|r|l|]
   \NC c \NC centered  \NC \AR
   \NC l \NC left aligned  \NC \AR
   \NC r \NC right aligned \NC \AR
 \stoptabulate
 }

 \starttext
   \T % This is OK

   \midaligned{\T} % This fails
 \stoptext
 

 Why? - How to make it work?
\midaligned{\vbox{\T}} % This should be ok
--
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] tabulate \midaligned

2012-11-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Thanks, it works!

Best regards,

Lukas


On Thu, 29 Nov 2012 09:05:38 +0100, luigi scarso luigi.sca...@gmail.com wrote:


On Thu, Nov 29, 2012 at 8:11 AM, Procházka Lukáš Ing. - Pontex s. r.
o. l...@pontex.cz wrote:

Hello,

the \start/stop-tabulate doesn't work inside \midaligned:


\def\T{%
\starttabulate[|r|l|]
  \NC c \NC centered  \NC \AR
  \NC l \NC left aligned  \NC \AR
  \NC r \NC right aligned \NC \AR
\stoptabulate
}

\starttext
  \T % This is OK

  \midaligned{\T} % This fails
\stoptext



\midaligned{\vbox{\T}} % This should be ok
--
luigi


--
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 244 062 238
Fax: +420 244 461 038

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

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


[NTG-context] tabulate \midaligned

2012-11-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

the \start/stop-tabulate doesn't work inside \midaligned:


\def\T{%
\starttabulate[|r|l|]
  \NC c \NC centered  \NC \AR
  \NC l \NC left aligned  \NC \AR
  \NC r \NC right aligned \NC \AR
\stoptabulate
}

\starttext
  \T % This is OK

  \midaligned{\T} % This fails
\stoptext


Why? - How to make it work?

Best regards,

Lukas


--
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 244 062 238
Fax: +420 244 461 038

___
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] [tabulate] colored background

2012-09-28 Thread Philipp Gesang
···date: 2012-09-27, Thursday···from: Aditya Mahajan···

 On Fri, 28 Sep 2012, Philipp Gesang wrote:
 
 Hi all,
 
 the background mechanism of tabulations is quite simplistic: it
 extends only to the first line of a cell irrespective of its
 length. Example:
 
 ···
 \starttext
 \starttabulate[|p|r|]
  \CM [red] \input knuth \NC was said by The Don \NC \AR
 \stoptabulate
 \stoptext
 ···
 
 Is there a way to get the whole cell covered? (Textbackgrounds
 only color the area where text is, not the entire cell.)
 
 The TABLE macros are more flexible than tabulate.

Yes, I know that, but I cannot rule out that I will be needing
page breaks inside paragraphs. (Besides, the wiki doesn’t mention
this behavior and afair I’m partially responsible for that
omission ;-))

Philipp


 
 (Untested)
 
 \startsetups table:setup
 \setupTABLE[frame=off]
 \setupTABLE[r][1][background=color, color=red, width=0.5\hsize]
 \stopsetups
 
 \startTABLE[setups={table:setup}]
 \NC \input knuth \NC was said by the Don \NC \NR
 \stopTABLE
 
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpxfLx9KDUYb.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] [tabulate] colored background

2012-09-27 Thread Philipp Gesang
Hi all,

the background mechanism of tabulations is quite simplistic: it
extends only to the first line of a cell irrespective of its
length. Example:

···
\starttext
\starttabulate[|p|r|]
  \CM [red] \input knuth \NC was said by The Don \NC \AR
\stoptabulate
\stoptext
···

Is there a way to get the whole cell covered? (Textbackgrounds
only color the area where text is, not the entire cell.)

Regards
Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpI4XzTcBYb4.pgp
Description: PGP signature
___
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] [tabulate] colored background

2012-09-27 Thread Aditya Mahajan

On Fri, 28 Sep 2012, Philipp Gesang wrote:


Hi all,

the background mechanism of tabulations is quite simplistic: it
extends only to the first line of a cell irrespective of its
length. Example:

···
\starttext
\starttabulate[|p|r|]
 \CM [red] \input knuth \NC was said by The Don \NC \AR
\stoptabulate
\stoptext
···

Is there a way to get the whole cell covered? (Textbackgrounds
only color the area where text is, not the entire cell.)


The TABLE macros are more flexible than tabulate.

(Untested)

\startsetups table:setup
\setupTABLE[frame=off]
\setupTABLE[r][1][background=color, color=red, width=0.5\hsize]
\stopsetups

\startTABLE[setups={table:setup}]
\NC \input knuth \NC was said by the Don \NC \NR
\stopTABLE

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

[NTG-context] Tabulate and \EQ

2012-06-07 Thread Wolfgang Schuster
Hi,

in MkIV there is no space in front of the \EQ symbol in the second row while in 
MkII there is a space.

\starttext

\starttabulate
\NC A\EQ B \NC\NR
\NC Left \EQ Right \NC\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] tabulate to full text width?

2012-04-21 Thread Wolfgang Schuster

Am 20.04.2012 um 17:52 schrieb Marco:

 On 2012-04-20 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote:
 
 is it possible to specify \(start)tabulate or \setuptabulate to fit
 \textwidth?
 
 How about linetables?
 
 \setuplinetable [width=.5\textwidth]
 
 \starttext
 \showboxes
 
   \starttabulate
   \NC Foo \NC Bar \NC\NR
   \stoptabulate
 
   \startlinetable
   \NC Foo \NC Bar \NC\NR
   \stoplinetable
 
 \stoptext

The first column of tabulate is too narrow because you use a column which has 
only the width
of the longest test in this column, when you use other parameters for both 
(e.g. [|p|p|]) the use
enough space to take the width of the main text.

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
___


[NTG-context] tabulate to full text width?

2012-04-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

is it possible to specify \(start)tabulate or \setuptabulate to fit \textwidth?

- I mean all columns to have the same width so in total to occupy the whole 
\textwidth...

Best regards,

Lukas


--
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 244 062 238
Fax: +420 244 461 038

___
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] tabulate to full text width?

2012-04-20 Thread Marco
On 2012-04-20 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote:

 is it possible to specify \(start)tabulate or \setuptabulate to fit
 \textwidth?

How about linetables?

\setuplinetable [width=.5\textwidth]

\starttext
\showboxes

\starttabulate
\NC Foo \NC Bar \NC\NR
\stoptabulate

\startlinetable
\NC Foo \NC Bar \NC\NR
\stoplinetable

\stoptext

Marco


___
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] tabulate to full text width?

2012-04-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

your code seems hopefully, but it doesn't compile (?!)...

Missing [ and ] somewhere?

See the test and log.

Best regards,

Lukas


On Fri, 20 Apr 2012 17:52:35 +0200, Marco net...@lavabit.com wrote:


On 2012-04-20 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote:


is it possible to specify \(start)tabulate or \setuptabulate to fit
\textwidth?


How about linetables?

\setuplinetable [width=.5\textwidth]

\starttext
\showboxes

\starttabulate
\NC Foo \NC Bar \NC\NR
\stoptabulate

\startlinetable
\NC Foo \NC Bar \NC\NR
\stoplinetable

\stoptext

Marco



--
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 244 062 238
Fax: +420 244 461 038

t-LT.log
Description: Binary data


t-LT.mkiv
Description: Binary data


t-LT.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] tabulate to full text width?

2012-04-20 Thread Marco
On 2012-04-20 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote:

 your code seems hopefully, but it doesn't compile (?!)...

Your file works here with 2012.04.17 and 2011.05.18.

Marco


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

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

[NTG-context] tabulate error

2011-12-19 Thread Andreas Harder
Hi Hans,

a line break in tabulate p-column leads to an error.

! TeX capacity exceeded, sorry [input stack size=1].

\starttext
  \starttabulate[|p|]
  % \NC \dorecurse{7}{paragraph, } \NC\NR % OK
  \NC \dorecurse{8}{paragraph, } \NC\NR % - line break (error)
  \stoptabulate
\stoptext


Regards
Andreas
___
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] tabulate error

2011-12-19 Thread Hans Hagen

On 19-12-2011 17:15, Andreas Harder wrote:

Hi Hans,

a line break in tabulate p-column leads to an error.

! TeX capacity exceeded, sorry [input stack size=1].

\starttext
   \starttabulate[|p|]
   % \NC \dorecurse{7}{paragraph, } \NC\NR % OK
   \NC \dorecurse{8}{paragraph, } \NC\NR % -  line break (error)
   \stoptabulate
\stoptext


line 452 of tabl-tbl.mkiv should be

   \tabulatedummy\expandafter{\the\tabulatedummy\NC}%



-
  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] tabulate error

2011-12-19 Thread Andreas Harder

On 19.12.2011, at 20:03, Hans Hagen wrote:

 On 19-12-2011 17:15, Andreas Harder wrote:
 Hi Hans,
 
 a line break in tabulate p-column leads to an error.
 
 ! TeX capacity exceeded, sorry [input stack size=1].
 
 \starttext
   \starttabulate[|p|]
   % \NC \dorecurse{7}{paragraph, } \NC\NR % OK
   \NC \dorecurse{8}{paragraph, } \NC\NR % -  line break (error)
   \stoptabulate
 \stoptext
 
 line 452 of tabl-tbl.mkiv should be
 
   \tabulatedummy\expandafter{\the\tabulatedummy\NC}%

Thanks!

Andreas
___
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] Tabulate-export

2011-12-09 Thread Hans Hagen

On 5-12-2011 13:32, Andreas Harder wrote:

Hi Hans,

it seems that tabulate environments are not exported correctly. Here is an 
example.

\setupbackend[export=yes]

\starttext
   \starttabulate[|l|c|r|]
   \NC left \NC center \NC right \NC \NR
   \NC l\NC c  \NC r \NC \NR
   \stoptabulate
\stoptext

exports to:tabulate  /tabulate


fixed in next beta



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


[NTG-context] Tabulate-export

2011-12-05 Thread Andreas Harder
Hi Hans,

it seems that tabulate environments are not exported correctly. Here is an 
example.

\setupbackend[export=yes]

\starttext
  \starttabulate[|l|c|r|]
  \NC left \NC center \NC right \NC \NR
  \NC l\NC c  \NC r \NC \NR
  \stoptabulate
\stoptext

exports to:  tabulate /tabulate


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

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


[NTG-context] Tabulate

2011-04-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

several questions about tabulate. Let's have:

---
\starttext
  \setuptabulate[header=repeat]
  \starttabulatehead
\HL
\NC T \NC U \NC\AR % [1] \SR? \NR?...
\HL
  \stoptabulatehead

  \starttabulate[|c|c|]
\NC a \NC b \NC\NR
\NC A \NC B \NC\NR
  \stoptabulate

  \hairline

  \starttabulate[|c|c|]
\NC a \NC b \NC\NR
\NC A \NC B \NC\NR
  \stoptabulate
\stoptext
---

- Which kind of \?R to write to [1] to get pretty placed horizontal line? 
(There is a huge unwanted space above the second \HL.)

- How to rewrite the code above to affects only a particular kind of tabulate? I'd like to have a 
special \definetabulate which would contain header=repeat specification as well as a special 
tabulehead (my code affects all following \tabulates).

How to rewrite it better?

TIA.

Best regards,

Lukas


--
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 244 062 238
Fax: +420 244 461 038

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

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


[NTG-context] tabulate

2011-03-23 Thread Herbert Voss

this worked some time ago.
Current minimal mkiv

\def\tabulateuse#1{%
  \dorecurse{\numexpr2*#1-1\relax}
{\span\omit}}
\appendtoks
  \let\use\tabulateuse
  \defineTABLEshorthands
\to \everytabulate
\starttext
\starttabulate[|l|Bc|c|c|c|r|]
\NC a\NC b\NC c \NC d\NC e\NC f\NC\NR
\NC a\NC \use2 b\NC d\NC e\NC f\NC\NR
\NC a\NC \use3 b \NC e\NC f\NC\NR
\NC \use4 a  \NC e\NC f\NC\NR
\stoptabulate
\stoptext


system   tex  error on line 10 in file 09-02-30.ctxcrop: 
Undefined control sequence ...


 1 \def\tabulateuse#1{%
 2   \dorecurse{\numexpr2*#1-1\relax}
 3 {\span\omit}}
 4 \appendtoks
 5   \let\use\tabulateuse
 6   \defineTABLEshorthands
 7 \to \everytabulate
 8 \starttext
 9 \starttabulate[|l|Bc|c|c|c|r|]
10   \NC a\NC b\NC c \NC d\NC e\NC f\NC\NR
11 \NC a\NC \use2 b\NC d\NC e\NC f\NC\NR
12 \NC a\NC \use3 b \NC e\NC f\NC\NR
13 \NC \use4 a  \NC e\NC f\NC\NR
14 \stoptabulate
15 \stoptext

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

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


[NTG-context] tabulate span broken

2011-01-10 Thread Steffen Wolfrum
Hi,

as far as I remember, the following code worked up to december:

\def\tabulateuse#1%
 {\dorecurse{\numexpr2*#1-1\relax}{\span\omit}\raggedright\ignorespaces}

\appendtoks
   \let\use\tabulateuse
   \defineTABLEshorthands
\to \everytabulate

\starttext

\starttabulate[|p(4cm)|p(4cm)|p(6cm)|]
\NC \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC
\dorecurse{18}{text } \NC\NR
\NC \TWO Short text spanning two tabulate paragraphs. \NC
\dorecurse{22}{text } \NC\NR
\stoptabulate

\stoptext


Today it gives:
! Undefined control sequence.
inserted text ...lateuse \defineTABLEshorthands 
  
\dofinalstarttabulate ...ount \the \everytabulate 
  \tabulateparameter \c!inne...
to be read again 
   \NC 
l.42 \NC
 \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC
? 



Is there a substitute?
Steffen
___
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] tabulate span broken

2011-01-10 Thread Hans Hagen

On 10-1-2011 10:46, Steffen Wolfrum wrote:

Hi,

as far as I remember, the following code worked up to december:

\def\tabulateuse#1%
  {\dorecurse{\numexpr2*#1-1\relax}{\span\omit}\raggedright\ignorespaces}

\appendtoks
\let\use\tabulateuse
\defineTABLEshorthands


remove the previous line as there is no reason why tabulate should 
inherit all from table



\to \everytabulate

\starttext

\starttabulate[|p(4cm)|p(4cm)|p(6cm)|]
\NC \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC
\dorecurse{18}{text } \NC\NR
\NC \TWO Short text spanning two tabulate paragraphs. \NC


\use2 seems to work but keep in mind that such local patches are not 
guaranteed to work (one never what logic is used deep down)



\dorecurse{22}{text } \NC\NR
\stoptabulate

\stoptext


Today it gives:
! Undefined control sequence.
inserted text  ...lateuse \defineTABLEshorthands

\dofinalstarttabulate ...ount \the \everytabulate
   \tabulateparameter \c!inne...
to be read again
\NC
l.42 \NC
  \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC
?



Is there a substitute?
Steffen
___
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
___



--

-
  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] tabulate span broken

2011-01-10 Thread Steffen Wolfrum

Am 10.01.2011 um 14:24 schrieb Hans Hagen:

 On 10-1-2011 10:46, Steffen Wolfrum wrote:
 Hi,
 
 as far as I remember, the following code worked up to december:
 
 \def\tabulateuse#1%
  {\dorecurse{\numexpr2*#1-1\relax}{\span\omit}\raggedright\ignorespaces}
 
 \appendtoks
\let\use\tabulateuse
\defineTABLEshorthands
 
 remove the previous line as there is no reason why tabulate should inherit 
 all from table
 
 \to \everytabulate
 
 \starttext
 
 \starttabulate[|p(4cm)|p(4cm)|p(6cm)|]
 \NC \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC
 \dorecurse{18}{text } \NC\NR
 \NC \TWO Short text spanning two tabulate paragraphs. \NC
 
 \use2 seems to work but keep in mind that such local patches are not 
 guaranteed to work (one never what logic is used deep down)


... except you :-)

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

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


[NTG-context] Tabulate bug

2010-11-26 Thread Taco Hoekwater

Hi Hans,

In recent beta's, this produces an extra 's' at the start of the
entry in the first column:

  \starttext
  \starttabulate[|lf\ss|p|]
  \NC alignment   \NC a (partial) alignment is being added   \NC\NR
  \stoptabulate
  \stoptext

Best wishes,
Taco
___
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] Tabulate bug

2010-11-26 Thread Hans Hagen

On 26-11-2010 11:49, Taco Hoekwater wrote:

Hi Hans,

In recent beta's, this produces an extra 's' at the start of the
entry in the first column:

\starttext
\starttabulate[|lf\ss|p|]
\NC alignment \NC a (partial) alignment is being added \NC\NR
\stoptabulate
\stoptext


not on my machine so it's been fixed and will be ok next beta

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


[NTG-context] tabulate

2010-11-20 Thread Herbert Voss
this worked some days ago:

\starttext

\starttabulate[|p(3cm)|p|]
\NC foo \NC bar \NC
\stoptabulate

\stoptext

minimal mkiv

Herbert


systems : begin file 09-02-15.ctxcrop at line 1
! Undefined control sequence.
\bskip ...bulatehook \ifconditional \autotabulate
  \hsize \tabulatewidth
\fi ...
template ...l \empty \dotagtabulatealign \bskip
  \ifnum \tabulatetype
=\plu...
to be read again
   f
\tabulatecontent -\NC f
oo \NC bar \NC
\fulltabulatecontent ...dcontent \tabulatecontent
  \tabulatetailcontent
\remo...
\processtabulate ...le \crcr \fulltabulatecontent
  \crcr }\dostoptagged
\dost...
l.5 \stoptabulate
___
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] tabulate

2010-11-20 Thread Hans Hagen

On 20-11-2010 9:27, Herbert Voss wrote:

this worked some days ago:

\starttext

\starttabulate[|p(3cm)|p|]
\NC foo \NC bar \NC
\stoptabulate

\stoptext

minimal mkiv


I'll check it ... I did some cleanup + added color support. For the 
moment add \NR to end the row



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


[NTG-context] tabulate font setting

2010-11-20 Thread Herbert Voss
trhe documentation says, that this should work:

\starttext

{\bs bold slanted}
{\bi bold italic}

\starttabulate[||f\bs|f\bi|]
\NC foo\NC bar\NC baz\NC
\stoptabulate

\stoptext

I get a foo bar baz in the default font setting

Herbert
___
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] tabulate

2010-11-20 Thread Herbert Voss
Am 20.11.2010 12:39, schrieb Hans Hagen:

 in tabl-tbl.mkiv:
 
 \newconditional  \ifautotabulate
 
 should be
 
 \newconditional  \autotabulate

Hans,
thanks, but that produces a new problem.
http://perce.de/temp/x.png

Herbert
___
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] tabulate

2010-11-20 Thread Herbert Voss
Am 20.11.2010 14:10, schrieb Herbert Voss:
 Am 20.11.2010 12:39, schrieb Hans Hagen:
 
 in tabl-tbl.mkiv:

 \newconditional  \ifautotabulate

 should be

 \newconditional  \autotabulate
 
 Hans,
 thanks, but that produces a new problem.
 http://perce.de/temp/x.png

forgot the code:

\starttext

\starttabulate[|p(0.35\textwidth)|p(0.125\textwidth)|p|]\HL
\NC foo \NC bar \NC baz \NC\NR
\stoptabulate

\stoptext

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

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


[NTG-context] tabulate with span columns

2010-11-20 Thread Herbert Voss
\def\tabulateuse#1{%
  \dorecurse{\numexpr2*#1-1\relax}
{\span\omit}}
\appendtoks
  \let\use\tabulateuse
  \defineTABLEshorthands
\to \everytabulate

\starttext
\starttabulate[|l|Bc|c|c|c|r|]
\NC a\NC b\NC c \NC d\NC e\NC f\NC\NR
\NC a\NC b\use2 \NC d\NC e\NC f\NC\NR
\NC a\NC b\use3  \NC e\NC f\NC\NR
\NC a\use4   \NC e\NC f\NC\NR
\stoptabulate
\stoptext

why is the 2nd line ok and the 3rd and 4th not?

http://perce.de/temp/xx.png

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

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


[NTG-context] tabulate

2010-11-16 Thread Herbert Voss
is this known, that I need at least one space between the last digit
and a followng \NC?

\starttext

\starttabulate[|g{,}|]
%\NG 100.000,00\NC\NR % error
\NG 100.000,00 \NC\NR
\stoptabulate

\stoptext

Herbert
___
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] tabulate

2010-11-16 Thread Hans Hagen

On 16-11-2010 11:07, Herbert Voss wrote:

is this known, that I need at least one space between the last digit
and a followng \NC?

\starttext

\starttabulate[|g{,}|]
%\NG 100.000,00\NC\NR % error
\NG 100.000,00 \NC\NR
\stoptabulate

\stoptext


yes, think of

\def\NG#1 {...}

so the space is a delimiter


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


[NTG-context] tabulate with a header

2010-11-16 Thread Herbert Voss
\starttext

\startcolumns
\setuptabulate[header=repeat]
\starttabulatehead
\HL
\NC\em SPALTE 1 \NC\em SPALTE 2\NC\NR\HL
\stoptabulatehead

\starttabulate[|c|c|]
\dorecurse{100}{\NC Die erste Spalte \NC Und die zweite\NC\NR}
\stoptabulate
\stopcolumns
\stoptext

is it possible to get identical headers? This here
looks a bit weired ...

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

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


[NTG-context] tabulate and combination

2008-11-13 Thread Wolfgang Schuster
Hi,

is there a better way to place two tables (with the tabulate environment)
side by side, I wrap them now in a vbox but this destroyes the spacing
before and after them. I know floatcombination but I don't want to use it
at the moment.

\starttext

\startcombination[2*1]
  {\vbox\bgroup
   \starttabulate[|cm|l|]
   \NC   \NC Materialkosten je ME\NC\NR
   \NC + \NC Fertigungskosten je ME  \NC\NR
   \HR
   \NC = \NC Herstellkosten je ME\NC\NR
   \NC + \NC Verwaltungskosten je ME \NC\NR
   \NC + \NC Vertriebskosten je Me   \NC\NR
   \HR
   \NC = \NC Selbstkosten je ME  \NC\NR
   \stoptabulate
   \egroup}
  {Progressive Kalkulation}
  {\vbox\bgroup
   \starttabulate[|cm|l|]
   \NC   \NC Bruttoerlös je ME   \NC\NR
   \NC - \NC Erlösminderung je Me\NC\NR
   \HR
   \NC = \NC Nettoerlös je ME\NC\NR
   \NC - \NC variable Kosten je Me   \NC\NR
   \NC   \NC \NC\NR
   \HR
   \NC = \NC Deckungsbeitrag je ME   \NC\NR
   \stoptabulate
   \egroup}
  {Retrograde Kalkulation}
\stopcombination

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


Re: [NTG-context] tabulate and combination

2008-11-13 Thread Aditya Mahajan
On Thu, 13 Nov 2008, Wolfgang Schuster wrote:

 Hi,

 is there a better way to place two tables (with the tabulate environment)
 side by side, I wrap them now in a vbox but this destroyes the spacing
 before and after them. I know floatcombination but I don't want to use it
 at the moment.

\framed[align=normal] seems to behave better than a \vbox.

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


Re: [NTG-context] tabulate and combination

2008-11-13 Thread Wolfgang Schuster

Am 13.11.2008 um 16:12 schrieb Aditya Mahajan:

 On Thu, 13 Nov 2008, Wolfgang Schuster wrote:

 Hi,

 is there a better way to place two tables (with the tabulate  
 environment)
 side by side, I wrap them now in a vbox but this destroyes the  
 spacing
 before and after them. I know floatcombination but I don't want to  
 use it
 at the moment.

 \framed[align=normal] seems to behave better than a \vbox.

The difference is not very big but it gives me more control,
I will make my final decision at the end after the text is finished.

Thanks and regards,
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] tabulate in itemize

2008-11-11 Thread Wolfgang Schuster
Hi,

do own of you know how I can have a line in the tabulate that will start
at the same position as the first column, \HR is no solution for me
because it adds extra space before the line and I try to avoid to define
my own costomized \HR command.

\starttext

\startitemize

\item text text text

\starttabulate[|cm|l|]
\NC   \NC Anfangsbestand \NC\NR
\NC + \NC Zugänge\NC\NR
\NC - \NC Abgänge\NC\NR
\HL
\NC   \NC Endbestand \NC\NR
\stoptabulate

\stopitemize

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


Re: [NTG-context] tabulate in itemize

2008-11-11 Thread Wolfgang Schuster
On Tue, Nov 11, 2008 at 12:19 PM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:
 Hi,

 do own of you know how I can have a line in the tabulate that will start
 at the same position as the first column, \HR is no solution for me
 because it adds extra space before the line and I try to avoid to define
 my own costomized \HR command.

I have now done what I tried to avoid but I'm still not happy with solution,
can't this be provided by default.

\appendtoks
  \def\HSR{\mytabulaterule}
\to \everytabulate

\def\mytabulaterule
  {\dotabulatenobreak
   \TABLEnoalign{\vskip-.5\lineheight}%
   \dotabulatelinerule
   \TABLEnoalign{\vskip-.5\lineheight}%
   \dotabulatenobreak}


\starttext

\startitemize

\item text text text

\starttabulate[|cm|l|]
\NC   \NC Anfangsbestand \NC\NR
\NC + \NC Zugänge\NC\NR
\NC - \NC Abgänge\NC\NR
\HSR
\NC   \NC Endbestand \NC\NR
\stoptabulate

\stopitemize

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


Re: [NTG-context] Tabulate problem

2004-12-21 Thread Mari Voipio
VnPenguin wrote:
--- begin code 
\starttext
\starttabulate[|l|l|]
\NC foo \NC cmd 21 | grep bar \NC \NR
\stoptabulate
\stoptext
--- end code --
When I changed  by \ I have the same error.
Anyone could tell me how to fix it please.
Your code has another special character besides the ampersand (); it is 
the 'pipe' (i.e. | ). If the pipe is taken away, the file compiles 
perfectly.
I very recently found out that having 'mismatched' pipes *really* makes 
a mess - and of course I messed up in a text with table code and it took 
me ages to figure out that there was nothing wrong with my table and the 
problem was my stupid pipe.

I had to fiddle with your greater than sign, too, after I got the file 
to compile at all (and there might be an easier way), but this compiles 
into nice healthy pdf on my TeXLive:

-- start code ---
\setupoutput[pdf] %remove this line if you don't want pdf
\starttext
\starttabulate[|l|l|]
\NC foo \NC cmd 2 \type{}\1 \type{|} grep bar \NC \NR
\stoptabulate
\stoptext
-- end code --
Hope this helps!
Mari
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Tabulate problem

2004-12-21 Thread VnPenguin
On Tue, 21 Dec 2004 19:03:57 +0200, Mari Voipio [EMAIL PROTECTED] wrote:
 VnPenguin wrote:
  --- begin code 
  \starttext
  \starttabulate[|l|l|]
  \NC foo \NC cmd 21 | grep bar \NC \NR
  \stoptabulate
  \stoptext
  --- end code --
 
  When I changed  by \ I have the same error.
  Anyone could tell me how to fix it please.
 
 Your code has another special character besides the ampersand (); it is
 the 'pipe' (i.e. | ). If the pipe is taken away, the file compiles
 perfectly.
 I very recently found out that having 'mismatched' pipes *really* makes
 a mess - and of course I messed up in a text with table code and it took
 me ages to figure out that there was nothing wrong with my table and the
 problem was my stupid pipe.
 
 I had to fiddle with your greater than sign, too, after I got the file
 to compile at all (and there might be an easier way), but this compiles
 into nice healthy pdf on my TeXLive:
 
 -- start code ---
 
 \setupoutput[pdf] %remove this line if you don't want pdf
 
 \starttext
 \starttabulate[|l|l|]
 \NC foo \NC cmd 2 \type{}\1 \type{|} grep bar \NC \NR
 \stoptabulate
 \stoptext
 
 -- end code --
 
 Hope this helps!

Thank you so much,
I'll try this now.

Regards,
Quy NGUYEN -DAI
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Tabulate problem

2004-12-20 Thread VnPenguin
Hi all,
I'm trying a simple tabulate env:
--- begin code 
\starttext
\starttabulate[|l|l|]
\NC foo \NC cmd 21 | grep bar \NC \NR
\stoptabulate
\stoptext
--- end code --

I have error:
-- begin error ---
 grep bar \NC \NR \tabulatetailcontent \removefunnytabulateline 
! Forbidden control sequence found while scanning use of \next.
inserted text 
\par 
to be read again 
   \endtemplate 
template \endtemplate 

\processtabulate ...cr \fulltabulatecontent \crcr 
  }}\ifnum \nofautotabulate ...
l.21 \stoptabulate
--- end error
--

When I changed  by \ I have the same error.
Anyone could tell me how to fix it please.

Thank you in advance,

Quy NGUYEN-DAI
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context