[NTG-context] TEXpage does not fit \placetable & \recurselevel always zero

2021-03-05 Thread Jacob Kauffmann
Dear list,

thank you very much for the help so far.

I have two problems understanding the output of the code below. I am using 
version 2021.02.23 17:47.
(1) The TEXpage is cut off after ~40 lines. Normally, the page is extended to 
fit its content. It's probably related to \placetable which I only use here 
because I need a centered table. I can set the height of the page manually, but 
the whole purpose of using TEXpage was to avoid that.
(2) \recurselevel is always zero in the output. Normally, it counts the 
iterations. This issue is not relevant for my actual use-case, but I found that 
when writing the MWE.

Best wishes,
Jacob Kauffmann

\setupTEXpage[width=10cm]

\startTEXpage
\placetable[force,none]{}{%
\starttabulate[|c|c|]
\NC A \NC B \NC\NR
\HL
\dorecurse{50}{\NC \expanded{\recurselevel} \NC \recurselevel \NC\NR}
\stoptabulate
}
\stopTEXpage
\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] TEXpage does not fit \placetable & \recurselevel always zero

2021-03-05 Thread Hans Hagen

On 3/5/2021 3:44 PM, Jacob Kauffmann wrote:

Dear list,

thank you very much for the help so far.

I have two problems understanding the output of the code below. I am using 
version 2021.02.23 17:47.
(1) The TEXpage is cut off after ~40 lines. Normally, the page is extended to 
fit its content. It's probably related to \placetable which I only use here 
because I need a centered table. I can set the height of the page manually, but 
the whole purpose of using TEXpage was to avoid that.
(2) \recurselevel is always zero in the output. Normally, it counts the 
iterations. This issue is not relevant for my actual use-case, but I found that 
when writing the MWE.

Best wishes,
Jacob Kauffmann

\setupTEXpage[width=10cm]

\startTEXpage
\placetable[force,none]{}{%
\starttabulate[|c|c|]
\NC A \NC B \NC\NR
\HL
\dorecurse{50}{\NC \expanded{\recurselevel} \NC \recurselevel \NC\NR}
\stoptabulate
}
\stopTEXpage
\stoptext

\startTEXpage[strut=no,offset=10pt]
\starttabulate[|c|c|c|c|c|]
\NC A \NC B \NC C \NC D \NC E \NC \NR
\HL
\dorecurse{50}{\NC ##1\NC ##1\NC ##1\NC ##1\NC ##1\NC\NR}
\stoptabulate
\stopTEXpage

works ok here upto

\starttext
\startTEXpage[strut=no,offset=10pt]
\starttabulate[|c|c|c|c|c|]
\NC A \NC B \NC C \NC D \NC E \NC \NR
\HL
\dorecurse{1128}{\NC ##1\NC ##1\NC ##1\NC ##1\NC ##1\NC\NR}
\stoptabulate
\stopTEXpage
\stoptext

but you need a special printer for that anyway

(don't use a place command inside a TEXpage)

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] \placetable vs. \placefloat and option "none"

2020-07-08 Thread Wolfgang Schuster

Lukas/ConTeXt schrieb am 08.07.2020 um 12:08:

Hello,

(– resending now without resulting .pdf to avoid attachment size limit –)

option "none" has different effect with \placetable and \placefloat.

No problem with this, but as I thought both commands raise from the same code 
(or more precisely: I thought that \placetable is special case (specialization) 
of \placefloat), I'm a bit surprised that \placefloat[none] keeps caption 
whilst \placetable[none] supresses it. See the sample:


\setupexternalfigures[location=default]

\starttext
   \placetable[force,none]{}{\externalfigure[cow]} % [1]
   \placefloat[force,none]{}{\externalfigure[cow]}
\stoptext


(I'm aware that I'm placing \externalfigure into \placetable in [1] - does it 
matter?)

- Also relates here: https://wiki.contextgarden.net/Command/placefloat .


The \placefloat command expects the name of the float instance as first 
argument, e.g. \placefloat[table].


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] \placetable vs. \placefloat and option "none"

2020-07-08 Thread Lukas/ConTeXt
Hello,

(– resending now without resulting .pdf to avoid attachment size limit –)

option "none" has different effect with \placetable and \placefloat.

No problem with this, but as I thought both commands raise from the same code 
(or more precisely: I thought that \placetable is special case (specialization) 
of \placefloat), I'm a bit surprised that \placefloat[none] keeps caption 
whilst \placetable[none] supresses it. See the sample:


\setupexternalfigures[location=default]

\starttext
  \placetable[force,none]{}{\externalfigure[cow]} % [1]
  \placefloat[force,none]{}{\externalfigure[cow]}
\stoptext


(I'm aware that I'm placing \externalfigure into \placetable in [1] - does it 
matter?)

- Also relates here: https://wiki.contextgarden.net/Command/placefloat .

Best regards,

Lukas\setupexternalfigures[location=default]

\starttext
  \placetable[force,none]{}{\externalfigure[cow]}
  \placefloat[force,none]{}{\externalfigure[cow]}
\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] \placetable vs. \placefloat and option "none"

2020-07-08 Thread Lukas/ConTeXt
Hello,

option "none" has different effect with \placetable and \placefloat.
No problem with this, but as I thought both commands raise from the same code 
(or more precisely: I thought that \placetable is special case (specialization) 
of \placefloat), I'm a bit surprised that \placefloat[none] keeps caption 
whilst \placetable[none] supresses it. See the sample:


\setupexternalfigures[location=default]

\starttext
  \placetable[force,none]{}{\externalfigure[cow]} % [1]
  \placefloat[force,none]{}{\externalfigure[cow]}
\stoptext


(I'm aware that I'm placing \externalfigure into \placetable in [1] - does it 
matter?)

- Also relates here: https://wiki.contextgarden.net/Command/placefloat .

Best regards,

Lukas\setupexternalfigures[location=default]

\starttext
  \placetable[force,none]{}{\externalfigure[cow]}
  \placefloat[force,none]{}{\externalfigure[cow]}
\stoptext


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] \placetable[location=split] reference ??

2020-05-07 Thread Benjamin Buchmuller
Okay, I found the solution myself: Need to specify \startxtable[split=repeat] 
or else. 

It’s actually a bit surprising that the value of the “outer” enivornment 
(placetable) depends on the settings in the inner one (xtable). I speculate 
this might be because the order of the tables might be different as soon as 
xtable tries to place them …

Cheers

\startplacetable[reference=tab1,title={A table},location=split]
\startxtable[split=repeat]
\startxrow
\startxcell hi \stopxcell
\stopxrow
\stopxtable
\stopplacetable


> On 22 Apr 2020, at 21:10, Benjamin Buchmuller  
> wrote:
> 
> Hi,
> 
> I would like to reference a table of the following structure. 
> 
> \starttext
> 
> \startplacetable[reference=tab1,title={A table},location=split]
> \startxtable
> \startxrow
> \startxcell hi \stopxcell
> \stopxrow
> \stopxtable
> \stopplacetable
> 
> In Table \in[tab1]
> 
> \stoptext
> 
> 
> It has [location=split], which I need this because xtable doesn’t like to be 
> placed without a split; and apparently neither does it accept the 
> \placetable[ref]{...} syntax. However, the reference is now no longer 
> detected.
> 
> I can see that the split table’s caption is about to become "Table 1.a.", 
> "Table 1.b" etc. and I appreciate that this is potentially a quite complex 
> mechanism anyways, but if there was any chance to  get a reference as “Table 
> 1”, I would be helped a lot.
> 
> On similar lines, is there a way to have “Table 1 (continued).” in the 
> caption?
> 
> Cheers
> 
> 
> Benjamin
> 
> 

___
If your question is of interest to others as well, please add an 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] \placetable[location=split] reference ??

2020-04-22 Thread Benjamin Buchmuller
Hi,

I would like to reference a table of the following structure. 

\starttext

\startplacetable[reference=tab1,title={A table},location=split]
\startxtable
\startxrow
\startxcell hi \stopxcell
\stopxrow
\stopxtable
\stopplacetable

In Table \in[tab1]

\stoptext


It has [location=split], which I need this because xtable doesn’t like to be 
placed without a split; and apparently neither does it accept the 
\placetable[ref]{...} syntax. However, the reference is now no longer detected.

I can see that the split table’s caption is about to become "Table 1.a.", 
"Table 1.b" etc. and I appreciate that this is potentially a quite complex 
mechanism anyways, but if there was any chance to  get a reference as “Table 
1”, I would be helped a lot.

On similar lines, is there a way to have “Table 1 (continued).” in the caption?

Cheers


Benjamin


___
If your question is of interest to others as well, please add an 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] splitted xtable with repeating headers and placetable

2020-04-05 Thread Wolfgang Schuster

Geert Dobbels schrieb am 05.04.2020 um 00:30:

Wolfgang,

Below is what I think is the bare minimum to explain this question 
(sorry for not doing it right from the beginning...)


Keep it up.

As I said, with the code as it is below, the header is not repeated 
after the first page, but the table is in the right place.


Replacing "split=yes" by "split=repeat" makes the header repeat 
correctly but puts the beginning of the table on the next page, leaving 
the first page nearly completely blank.


I already reported the problem on the dev-list. The reason is that
ConTeXt creates one big table and splits it afterwards in smaller
parts which fit on each page but when you use "split=repeat" the
part for the first page is too large to fit.

In both cases, the "header=repeat" setting has no influence at all on 
the behaviour and can be omitted without changing the results.


As I read in some other posts, sometimes putting the table in a float 
can help, so I tried this (by removing the 3 "%" in the code below), but 
there seems to be a conflict with the figure in the page header, and it 
stops with an error message.


Don't use floats in the header or footer, they serve no purpose
and you can include images without it. Below is a solution
with nested frames but you can also use a table to create
the header layout.

However, replacing the figure in the page header by a normal text 
suddenly solves the problem: putting "split" in the setupfloat and 
"header=repeat" in the setupxtable gives me a table with repeated 
headers that starts exactly where I want it to start. Apparently in this 
case, the "headers=repeat" is necessary. Unfortunately, I need a company 
logo up in the page header, which is what causes the error for which I 
have no explanation.


Here is a working version of your example but you have to a space
between the header and the page body (see headerdistance setting)
or reduce the height of the outer most frame (it uses at the moment
the height and width of the header area).

\setuppapersize[A4,landscape]

\setuplayout
  [location=middle,
   width=27.5cm,
   height=18cm,
   backspace=1cm,
   header=4cm,
   headerdistance=5mm]

\startsetups[header]
\startframed[width=max,height=max,frame=off,offset=overlay]
\startframed[height=1cm,width=max,frame=off]
\userpagenumber
\stopframed
\par
\startframed[height=3cm,width=max,offset=overlay]
\startframed[width=0.25\hsize,height=max]
\externalfigure[dummy][height=1.9cm]
\stopframed
\startframed[width=0.50\hsize,height=max,] % 
frame=off,topframe=on,bottomframe=on

some text in the middle block
\stopframed
\startframed[width=0.25\hsize,height=max]
some text in the right block
\stopframed
\stopframed
\stopframed
\stopsetups

\setupheadertexts[\directsetup{header}]

\startbuffer[tablerow]
\startxrow
\startxcell first \stopxcell
\startxcell second \stopxcell
\stopxrow
\stopbuffer

\startbuffer[table]
\startxtable
\startxtablehead[head]
\getbuffer[tablerow]
\stopxtablehead
\startxtablebody
\dorecurse{40}{\getbuffer[tablerow]}
\stopxtablebody
\stopxtable
\stopbuffer

\setupxtable
  [option=stretch,
   split=repeat,
   header=repeat,
   align=middle]

\setupxtable
  [head]
  [background=color,
   backgroundcolor=gray]

\starttext

\title{Table without float environment}

\samplefile{ward}

\getbuffer[table]

\title{Table with  float environment}

\samplefile{ward}

\startplacetable[location={none,split}]
\getbuffer[table]
\stopplacetable

\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] splitted xtable with repeating headers and placetable

2020-04-04 Thread Geert Dobbels
Wolfgang,

Below is what I think is the bare minimum to explain this question
(sorry for not doing it right from the beginning...)

As I said, with the code as it is below, the header is not repeated
after the first page, but the table is in the right place.

Replacing "split=yes" by "split=repeat" makes the header repeat
correctly but puts the beginning of the table on the next page, leaving
the first page nearly completely blank.

In both cases, the "header=repeat" setting has no influence at all on
the behaviour and can be omitted without changing the results.

As I read in some other posts, sometimes putting the table in a float
can help, so I tried this (by removing the 3 "%" in the code below), but
there seems to be a conflict with the figure in the page header, and it
stops with an error message.

However, replacing the figure in the page header by a normal text
suddenly solves the problem: putting "split" in the setupfloat and
"header=repeat" in the setupxtable gives me a table with repeated
headers that starts exactly where I want it to start. Apparently in this
case, the "headers=repeat" is necessary. Unfortunately, I need a company
logo up in the page header, which is what causes the error for which I
have no explanation.

btw: I am using context standalone version: 2020.01.30 14:13

=

\setuppapersize[A4, landscape]

\setuplayout[location=middle, width=27.5cm, height=18cm,
backspace=1cm,header=4cm]

\setupcaptions[location=none]

\setupbackgrounds[header][text][background={Logos}, state=repeat]

\defineoverlay

[Logos][{

\framed[width=\textwidth, height=3cm, align=right, strut=no, offset=none]{

\framed[width=0.280\textwidth,height=3cm,align=right,]

{\placefigure[force][]{none}{\externalfigure[somepic.png][height=1.9cm]} }

\framed[width=0.430\textwidth,height=3cm,align=middle] {sometext in the
middle}

\framed[width=0.270\textwidth, height=3cm, align=middle]{sometext on the
right}

}

}]

%\setupfloat[table][default={force,split}]

\setupxtable[ option=stretch,split=repeat,header=repeat,align=middle]

\setupxtable[head][background=color,backgroundcolor=gray,foregroundcolor=red]

\starttext

Some lines of text. This text must come just before the table, but only
on the first page of the table

\def\onerow{

\startxrow

\startxcell first \stopxcell

\startxcell second \stopxcell

\startxcell third \stopxcell

\startxcell fourth \stopxcell

\startxcell fifth \stopxcell

\startxcell sixth \stopxcell

\stopxrow}

%\startplacetable

\startxtable

\startxtablehead[head]

\onerow

\stopxtablehead

\startxtablebody

\dorecurse{40}{\onerow}

\stopxtablebody

\stopxtable

%\stopplacetable

\stoptext

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

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


Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Wolfgang Schuster

Geert Dobbels schrieb am 04.04.2020 um 16:46:

Hello,

Code below shows some behaviour I cannot explain (csv file attached):

- If I run the code below as is, I get what I want, except that the 
header line of the table does not repeat at the top of each page.
- Changing "split=yes" to "split=repeat" in the setupxtable gives me 
repeating headers, but the table starts at the second page, leaving the 
first page with only the text line and all the rest as blank spaces.
- Placing the table in a float by activating the 3 commented lines gives 
me an error ("extra } or forgotten endgroup") pointing to the external 
figure in my page header overlay.  Replacing the \placefigure. in 
the page header by ordinary text makes the error go away, but is no 
solution, since I need the company logo picture there, and even then 
with no error, the headers do not repeat.
- With the table in a float, I manage to get repeating headers when I 
change to "split=yes" and "headers=repeat" in the \setupxtable, but I 
still get the abovementioned error as soon as I want to put my figure 
back in the page header..


Any suggestions ?


Can you make your example simpler and reduce it to the bare minimum 
(replace your csv file which dummy content) which is required to show 
the error.


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] splitted xtable with repeating headers and placetable

2020-04-04 Thread Pablo Rodriguez
On 4/4/20 4:46 PM, Geert Dobbels wrote:
> Hello,
>
> Code below shows some behaviour I cannot explain (csv file attached):
>
> - If I run the code below as is, I get what I want, except that the
> header line of the table does not repeat at the top of each page.

Hi Geert,

this is the standard and intended behavior (documented on page 10 from
xtables-mkiv.pdf).

> - Changing "split=yes" to "split=repeat" in the setupxtable gives me
> repeating headers, but the table starts at the second page, leaving the
> first page with only the text line and all the rest as blank spaces.

This is a known bug, already reported at the devel mailing list
(https://mailman.ntg.nl/pipermail/dev-context/2020/003694.html).

> - Placing the table in a float by activating the 3 commented lines gives
> me an error ("extra } or forgotten endgroup") pointing to the external
> figure in my page header overlay.  Replacing the \placefigure. in
> the page header by ordinary text makes the error go away, but is no
> solution, since I need the company logo picture there, and even then
> with no error, the headers do not repeat.

Well, these are different issues.

> - With the table in a float, I manage to get repeating headers when I
> change to "split=yes" and "headers=repeat" in the \setupxtable, but I
> still get the abovementioned error as soon as I want to put my figure
> back in the page header..

My guess: an alternative approach would be to use layers (and adapting
the topspace to the layer on the top of the page).

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Geert Dobbels
Hello,

Code below shows some behaviour I cannot explain (csv file attached):

- If I run the code below as is, I get what I want, except that the
header line of the table does not repeat at the top of each page.
- Changing "split=yes" to "split=repeat" in the setupxtable gives me
repeating headers, but the table starts at the second page, leaving the
first page with only the text line and all the rest as blank spaces.
- Placing the table in a float by activating the 3 commented lines gives
me an error ("extra } or forgotten endgroup") pointing to the external
figure in my page header overlay.  Replacing the \placefigure. in
the page header by ordinary text makes the error go away, but is no
solution, since I need the company logo picture there, and even then
with no error, the headers do not repeat.
- With the table in a float, I manage to get repeating headers when I
change to "split=yes" and "headers=repeat" in the \setupxtable, but I
still get the abovementioned error as soon as I want to put my figure
back in the page header..

Any suggestions ?

Geert




\usemodule[handlecsv]

\opencsvfile{systaprov2.csv}

\setuppapersize[A4, landscape]

\setuplayout[location=middle, width=27.5cm, height=18cm,
backspace=1cm,header=4cm]

\setuppagenumbering[state=stop]

\setupcaptions[location=none]

\setupbackgrounds[header][text][background={Logos}, state=repeat]

\setupnumbering [location=]

\setupframed[offset=none]

\defineoverlay

[Logos][{

\framed[width=\textwidth,

height=3cm,

align=right,

strut=no,

offset=none,

frame=on,

frameoffset=0.1cm,

corner=round,

radius=0.15cm,

framecolor=darkgray,

background=color,

backgroundcolor=gray,

framecorner=round,

frameradius=0.15cm,

rulethickness=0.05cm]{

\framed[width=0.280\textwidth,

height=3cm,

align=right,

frame=off]

{\placefigure[force][]{none}{\externalfigure[somepic.png][height=1.9cm]} }

\framed[width=0.430\textwidth,

height=3cm,

align=middle,

frame=off]

{\crlf\tfa \crlf \bf Technical Report}

\framed[width=0.370\textwidth,

height=3cm,

align=middle,

frame=off]

{\tfx \crlf Annex T.2.3. \crlf \tfx Date of issue: \crlf \currentdate
\crlf page \pagenumber of \lastpage}

}

}]

%\setupfloat[table][default={force,split}]

\setupxtable[offset=0cm,

frame=off,

bottomframe=on,

framecolor=gray,

option=stretch,

split=yes,

header=repeat,

align=middle]

\setupxtable[head][background=color,

backgroundcolor=gray,

topframe=on,

bottomframe=on,

framecolor=black,

foregroundcolor=blue]

\setupxtable[left][align=right]

\starttext

Some lines of text. This text must come just before the table, but only
on the first page of the table

\startbuffer[loop]

\startxrow

\startxcell[left] \cA \stopxcell

\startxcell[left] \cB \stopxcell

\startxcell[left] \cC \stopxcell

\startxcell[left] \cD \stopxcell

\startxcell \cE \stopxcell

\startxcell[left] \cF \stopxcell

\startxcell \cG \stopxcell

\startxcell \cH \stopxcell

\doifdefined{cI}{\startxcell \cI \stopxcell}

\doifdefined{cJ}{\startxcell \cJ \stopxcell}

\doifdefined{cK}{\startxcell [left] \cK \stopxcell}

\stopxrow

\stopbuffer

%\startplacetable[]

\startxtable

\startxtablehead[head]

\doloopif{\lineno}{<}{2}{\getbuffer[loop]}

\stopxtablehead

\startxtablebody

\doloopif{\lineno}{>}{1}{\getbuffer[loop]}

\stopxtablebody

\stopxtable

%\stopplacetable

\stoptext

Nº;Subject;Dirno;Tano; Date;Corr;VAVE; Stage; Remark
ab;asdfa a fasddf  qgt qhq tr hq qhqhr ;EFERT;21-54-322-32-;12/12/20;ERTF; all;1;b
sg;afae a t hyj wy  thjqh jqtj  ;7GSD;25-65-89-45; -; 2018/1832; all; N/A;
ab;asdfa a fasddf  qgt qhq tr hq qhqhr ;EFERT;21-54-322-32-;12/12/20;ERTF; all;1;b
sg;afae a t hyj wy  thjqh jqtj  ;7GSD;25-65-89-45; -; 2018/1832; all; N/A;
ab;asdfa a fasddf  qgt qhq tr hq qhqhr ;EFERT;21-54-322-32-;12/12/20;ERTF; all;1;b
sg;afae a t hyj wy  thjqh jqtj  ;7GSD;25-65-89-45; -; 2018/1832; all; N/A;
ab;asdfa a fasddf  qgt qhq tr hq qhqhr ;EFERT;21-54-322-32-;12/12/20;ERTF; all;1;b
sg;afae a t hyj wy  thjqh jqtj  ;7GSD;25-65-89-45; -; 2018/1832; all; N/A;
ab;asdfa a fasddf  qgt qhq tr hq qhqhr ;EFERT;21-54-322-32-;12/12/20;ERTF; all;1;b
sg;afae a t hyj wy  thjqh jqtj  ;7GSD;25-65-89-45; -; 2018/1832; all; N/A;
ab;asdfa a fasddf  qgt qhq tr hq qhqhr ;EFERT;21-54-322-32-;12/12/20;ERTF; all;1;b
sg;afae a t hyj wy  thjqh jqtj  ;7GSD;25-65-89-45; -; 2018/1832; all; N/A;
ab;asdfa a fasddf  qgt qhq tr hq qhqhr ;EFERT;21-54-322-32-;12/12/20;ERTF; all;1;b
sg;afae a t hyj wy  thjqh jqtj  ;7GSD;25-65-89-45; -; 2018/1832; all; N/A;
ab;asdfa a fasddf  qgt qhq tr hq qhqhr ;EFERT;21-54-322-32-;12/12/20;ERTF; all;1;b
sg;afae a t hyj wy  thjqh jqtj  ;7GSD;25-65-89-45; -; 2018/1832; all; N/A;
ab;asdfa a fasddf  qgt qhq tr hq qhqhr ;EFERT;21-54-322-32-;12/12/20;ERTF; all;1;b
sg;afae a t hyj wy  thjqh jqtj  ;7GSD;25-65-89-45; -; 2018/1832; all; N/A;
ab;asdfa a fasddf  qgt qhq tr hq qhqhr ;EFERT;21-54-322-32-;12/12/20;ERTF; all;1;b
sg;afae a t hyj wy  thjqh jqtj  ;7GSD;25-65-89-45; -; 2018/1832; all; N/A;
ab;asdfa a fasddf  qgt 

Re: [NTG-context] placetable and localfootnotes

2019-05-01 Thread Wolfgang Schuster

Otared Kavian schrieb am 01.05.2019 um 12:01:

Thanks Alan for your attention.
In fact the footnote mechanism lacks the ability to work fine in a certain 
number of environments, including in framedtext. I don't know whether this can 
be overcome…

\starttext

One\footnote{First footnote}

\startframedtext
Two\footnote{Second footnote}
\stopframedtext

\startpostponingnotes
\startframedtext
Three\footnote{Second footnote}
\stopframedtext
\stoppostponingnotes

\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] placetable and localfootnotes

2019-05-01 Thread Otared Kavian
Hi Aditya,

Thank you for your explanation: indeed when the whole table is included in an 
hbox as you point out, the footnote mechanism and placetable work fine 
together. But I am not sure whether this would be the case when a table is 
split over two or more pages.

On the other hand, as I mentioned in another reply to Alan, the footnote 
mechanism does not work within a framedtext, and I am not sure with your turn 
around solution that would work. I will do some testing in a document where 
exercises and proclaims are defined to be typeset within framedtext and if your 
solution works I will let you know.

Best regards: OK

> On 1 May 2019, at 01:12, Aditya Mahajan  wrote:
> 
> On Tue, 30 Apr 2019, Otared Kavian wrote:
> 
>> Hi Hans,
>> 
>> It seems that there is a conflict between \startplacetable and 
>> \startlocalfootnotes: in the following example when the latter command (and 
>> its \stop counterpart) is commented out the table is placed correctly in the 
>> middle, while otherwise the table is not centered.
> 
> Usually, this is because the content of the float is in a vbox instead of a 
> hbox:
> 
> \starttext
> \startplacetable
>  \vbox{test}
> \stopplacetable
> 
> \startplacetable
>  \hbox{test}
> \stopplacetable
> \stoptext
> 
> Use your favorite mechanism to create a hbox around the content and the 
> output will be okay:
> 
> \startplacetable
>  \hbox{\startlocalfootnotes
>  \startplacelegend[location={bottom,middle}]
>\startcontent
>  \startxtable
>\startxrow
>  \startxcell Alpha \stopxcell
>  \startxcell Beta\footnote{Footnote Here} \stopxcell
>\stopxrow
>\startxrow
>  \startxcell Beta \stopxcell
>  \startxcell Alpha\stopxcell
>\stopxrow
>  \stopxtable
>\stopcontent
>\startcaption
>  \placelocalfootnotes
>\stopcaption
>  \stopplacelegend
> \stoplocalfootnotes}
> \stopplacetable
> \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
> ___

___
If your question is of interest to others as well, please add an 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] placetable and localfootnotes

2019-05-01 Thread Otared Kavian
Thanks Alan for your attention.
In fact the footnote mechanism lacks the ability to work fine in a certain 
number of environments, including in framedtext. I don't know whether this can 
be overcome…

Best regards: OK

> On 1 May 2019, at 00:59, Alan Braslau  wrote:
> 
> 
> 
>> On 30Apr19, at 02:54, Otared Kavian  wrote:
>> 
>> Hi Hans,
>> 
>> It seems that there is a conflict between \startplacetable and 
>> \startlocalfootnotes: in the following example when the latter command (and 
>> its \stop counterpart) is commented out the table is placed correctly in the 
>> middle, while otherwise the table is not centered.
>> 
>> Best regards: OK
>> %%% begin localfootnotes-xtable.tex
>> \startplacetable
>> \startlocalfootnotes
>>  \startxtable
>>  \startxrow
>>  \startxcell Alpha \stopxcell
>>  \startxcell Beta\footnote{Footnote Here} \stopxcell
>>  \stopxrow
>>  \startxrow
>>  \startxcell Beta \stopxcell
>>  \startxcell Alpha\stopxcell
>>  \stopxrow
>>  \stopxtable
>> \placelocalfootnotes
>> \stoplocalfootnotes
>> \stopplacetable
>> %%% end localfootnotes-xtable.tex
> 
> 
> The following doesn’t help:
> 
> \automigrateinserts % needed to handle footnotes within a box...
> 
> (I have found this necessary in the past in order to use footnotes in placed 
> tables.)
> 
> Alan
> 
> --
> Alan Braslau
> 
> 
> 
> ___
> If your question is of interest to others as well, please add an 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] placetable and localfootnotes

2019-04-30 Thread Aditya Mahajan

On Tue, 30 Apr 2019, Otared Kavian wrote:


Hi Hans,

It seems that there is a conflict between \startplacetable and 
\startlocalfootnotes: in the following example when the latter command 
(and its \stop counterpart) is commented out the table is placed 
correctly in the middle, while otherwise the table is not centered.


Usually, this is because the content of the float is in a vbox instead of 
a hbox:


\starttext
\startplacetable
  \vbox{test}
\stopplacetable

\startplacetable
  \hbox{test}
\stopplacetable
\stoptext

Use your favorite mechanism to create a hbox around the content and the 
output will be okay:


\startplacetable
  \hbox{\startlocalfootnotes
  \startplacelegend[location={bottom,middle}]
\startcontent
  \startxtable
\startxrow
  \startxcell Alpha \stopxcell
  \startxcell Beta\footnote{Footnote Here} \stopxcell
\stopxrow
\startxrow
  \startxcell Beta \stopxcell
  \startxcell Alpha\stopxcell
\stopxrow
  \stopxtable
\stopcontent
\startcaption
  \placelocalfootnotes
\stopcaption
  \stopplacelegend
\stoplocalfootnotes}
\stopplacetable
\stoptext

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

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


Re: [NTG-context] placetable and localfootnotes

2019-04-30 Thread Alan Braslau


> On 30Apr19, at 02:54, Otared Kavian  wrote:
> 
> Hi Hans,
> 
> It seems that there is a conflict between \startplacetable and 
> \startlocalfootnotes: in the following example when the latter command (and 
> its \stop counterpart) is commented out the table is placed correctly in the 
> middle, while otherwise the table is not centered.
> 
> Best regards: OK
> %%% begin localfootnotes-xtable.tex
> \startplacetable
> \startlocalfootnotes
>   \startxtable
>   \startxrow
>   \startxcell Alpha \stopxcell
>   \startxcell Beta\footnote{Footnote Here} \stopxcell
>   \stopxrow
>   \startxrow
>   \startxcell Beta \stopxcell
>   \startxcell Alpha\stopxcell
>   \stopxrow
>   \stopxtable
> \placelocalfootnotes
> \stoplocalfootnotes
> \stopplacetable
> %%% end localfootnotes-xtable.tex


The following doesn’t help:

\automigrateinserts % needed to handle footnotes within a box...

(I have found this necessary in the past in order to use footnotes in placed 
tables.)

Alan

--
Alan Braslau



___
If your question is of interest to others as well, please add an 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] placetable and localfootnotes

2019-04-30 Thread Otared Kavian
Hi Hans,

It seems that there is a conflict between \startplacetable and 
\startlocalfootnotes: in the following example when the latter command (and its 
\stop counterpart) is commented out the table is placed correctly in the 
middle, while otherwise the table is not centered.

Best regards: OK
%%% begin localfootnotes-xtable.tex
\startplacetable
\startlocalfootnotes
\startxtable
\startxrow
\startxcell Alpha \stopxcell
\startxcell Beta\footnote{Footnote Here} \stopxcell
\stopxrow
\startxrow
\startxcell Beta \stopxcell
\startxcell Alpha\stopxcell
\stopxrow
\stopxtable
\placelocalfootnotes
\stoplocalfootnotes
\stopplacetable
%%% end localfootnotes-xtable.tex
___
If your question is of interest to others as well, please add an 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] Overflowing text if placetable is set to split

2018-11-23 Thread Huseyin Özoguz

Hi all,

  


I encountered weird behavior if \placetable[here, split] is set. The text
after the table sometimes doesn't cause a pagebreak and flows into the
footer and overlaps the footertext instead.

See attached MWE.

Is there a way to avoid this behavior? Manually entering a page break is no
option.

  


Thanks,

Chris


Hi Christ,

can you give your complete code-example with this issue, then we might 
solve it or suggest a workaround. I had similar issues several times and 
can avoid them.


Thank you,

Huseyin

--
Huseyin Özoguz

E-Mail: h.oezo...@mmnetz.de

___
If your question is of interest to others as well, please add an 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] Overflowing text if placetable is set to split

2018-11-17 Thread mailinglist.context
Hi all,

 

I encountered weird behavior if \placetable[here, split] is set. The text
after the table sometimes doesn't cause a pagebreak and flows into the
footer and overlaps the footertext instead. 

See attached MWE. 

Is there a way to avoid this behavior? Manually entering a page break is no
option.

 

Thanks,

Chris

 



mwe.tex
Description: Binary data


mwe.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] stoptabulate undefined control sequence when used with placetable

2016-09-28 Thread Jan U. Hasecke
Am 28.09.2016 um 08:58 schrieb Wolfgang Schuster:

> It’s a tabulate bug:
> http://www.mail-archive.com/ntg-context%40ntg.nl/msg83290.html

Argh, there was a voice in my head telling me that I've seen something
about this. I should have browsed through my mails before making noise here.

So let me use this thread to say thank you to all who worked on LuaTeX
1.0.0 and many greetings to Kalenberg. Have a nice time. I hope I can
make it to the ConTeXt Meeting next year.

juh


___
If your question is of interest to others as well, please add an 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] stoptabulate undefined control sequence when used with placetable

2016-09-28 Thread Wolfgang Schuster

Jan U. Hasecke 
28. September 2016 um 08:31
Hi all,

with LuaTeX 1.0.0 I get an undefined control sequence error when
compiling an example from the wiki.
It’s a tabulate bug: 
http://www.mail-archive.com/ntg-context%40ntg.nl/msg83290.html


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

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

[NTG-context] stoptabulate undefined control sequence when used with placetable

2016-09-28 Thread Jan U. Hasecke
Hi all,

with LuaTeX 1.0.0 I get an undefined control sequence error when
compiling an example from the wiki.

\placetable[force,none]{}{%
  \starttabulate[|r|l|]
  \HL
  \NC I want this table \NC aligned in the center.\NC\NR
  \HL
  \stoptabulate
}


or


\startplacetable[location=force,number=no]
  \starttabulate[|r|l|]
  \HL
  \NC I want this table \NC aligned in the center.\NC\NR
  \HL
  \stoptabulate
\stopplacetable


In both cases \stoptabulate is reported as undefined.

Without \placetable everything is ok.


juh

-- 
Soziale Plastik. Die Kunst der Allmende
Essay zum 30. Todestag von Joseph Beuys
http://www.amazon.de/dp/1523458763/
Taschenbuch, 130 Seiten, EUR 9,90
___
If your question is of interest to others as well, please add an 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] placetable with location=split produces error

2016-06-20 Thread Christoph Reller
>> Christoph Reller 
>> 16. Juni 2016 um 15:31
>> This is a long standing issue and I would very much appreciate any
>> comment on this.
> The problem has been fixed.
>
> Wolfgang

Indeed this error is gone now. Tausend Dank, Wolfgang!
Cheers,
Christoph
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] placetable with location=split produces error

2016-06-18 Thread Wolfgang Schuster

Christoph Reller <mailto:christoph.rel...@gmail.com>
16. Juni 2016 um 15:31
On Fri, 10 Jun 2016 14:00:01, Christoph Reller

This must have something to do with page breaking in conjunction with
table splitting. The following MWE produces no error:

\starttext
\dorecurse{9}{\input ward}
\testpage[10]
\startplacetable[location=split]
\bTABLE
\bTR \bTD \input tufte \eTD \eTR
\eTABLE
\stopplacetable
\stoptext

On the other hand the following MWE produces the error, and of course
here, a testpage will not help:

\starttext
\dorecurse{11}{\input ward}
\pagebreak[disable]
\placetable[split]{}{
\bTABLE
\bTR \bTD Ups \eTD \eTR
\eTABLE
}
\stoptext

This is a long standing issue and I would very much appreciate any
comment on this.

The problem has been fixed.

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] placetable with location=split produces error

2016-06-16 Thread Christoph Reller
On Fri, 10 Jun 2016 14:00:01, Christoph Reller
<christoph.rel...@gmail.com> wrote:
> On Thu, 09 Jun 2016 10:08:24, Christoph Reller
> <christoph.rel...@gmail.com> wrote:
>> \starttext
>>   \dorecurse{9}{\input ward}
>>   \startplacetable[location=split]
>> \bTABLE
>>   \bTR \bTD \input tufte \eTD \eTR
>> \eTABLE
>>   \stopplacetable
>> \stoptext
>>
>> The error message is:
>>
>> ! Undefined control sequence
>>  ...ixednumber {\currentfloat }\currentfloatnumber
>>   \relax
>> \thecurrentfloatnum...
>> \flushbothlabelclass #1#2#3->#1#3
>>  #2
>> \namedtaggedlabeltexts ...\dostarttagged {#1}{#2}}
>>   \dostoptagged \endgroup
>> \thecurrentfloatnumber ...rentfloatnumbersuffix }}
>>   \fi \fi \fi
>> \strc_floats_make_complete_caption ...floatnumber
>>   }\ifnofloatcaption \else
>> \...
>> \strc_floats_check_caption_content ...ete_caption
>>   }\ifdim \wd
>> \b_strc_floats...
>> ...
>
> I have some additional information:
>

This must have something to do with page breaking in conjunction with
table splitting. The following MWE produces no error:

\starttext
  \dorecurse{9}{\input ward}
  \testpage[10]
  \startplacetable[location=split]
\bTABLE
  \bTR \bTD \input tufte \eTD \eTR
\eTABLE
  \stopplacetable
\stoptext

On the other hand the following MWE produces the error, and of course
here, a testpage will not help:

\starttext
  \dorecurse{11}{\input ward}
  \pagebreak[disable]
  \placetable[split]{}{
\bTABLE
\bTR \bTD Ups \eTD \eTR
\eTABLE
  }
\stoptext

This is a long standing issue and I would very much appreciate any
comment on this.
Thank you in advance for any contribution,
Christoph
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] placetable with location=split produces error (Christoph Reller)

2016-06-10 Thread Christoph Reller
On Thu, 09 Jun 2016 10:08:24, Christoph Reller
<christoph.rel...@gmail.com> wrote:
> \starttext
>   \dorecurse{9}{\input ward}
>   \startplacetable[location=split]
> \bTABLE
>   \bTR \bTD \input tufte \eTD \eTR
> \eTABLE
>   \stopplacetable
> \stoptext
>
> The error message is:
>
> ! Undefined control sequence
>  ...ixednumber {\currentfloat }\currentfloatnumber
>   \relax
> \thecurrentfloatnum...
> \flushbothlabelclass #1#2#3->#1#3
>  #2
> \namedtaggedlabeltexts ...\dostarttagged {#1}{#2}}
>   \dostoptagged \endgroup
> \thecurrentfloatnumber ...rentfloatnumbersuffix }}
>   \fi \fi \fi
> \strc_floats_make_complete_caption ...floatnumber
>   }\ifnofloatcaption \else
> \...
> \strc_floats_check_caption_content ...ete_caption
>   }\ifdim \wd
> \b_strc_floats...
> ...

I have some additional information:

1. This error is also occurs when using the inline version:

\placetable[split]{}{\bTABLE ... \eTABLE}

2. When adding \setupinteraction[state=start], then the error changes to:

! Missing number, treated as zero

{
\strc_floats_place_packaged_boxes_indeed ...bute {
  \doifelsemainfloatbody \cu...
\strc_floats_finish_placement ...e_packaged_boxes
  \dostoptagged \global \d_p...
\syst_boxes_with_next_box ...mand {\box \nextbox }
  \egroup \ifconditional \so...
\tabl_split_loop_body ...sult \tsplitafterresult }
  \doifnotinsidesplitfloat \...
\syst_helpers_loop_yes ...helpers_recurse_content
  \endofloop
...

3. This error happens in the currently latest version 2016.06.10_08:11
of context.
It is, however, also reproducible for earlier versions dating back at
least to 2015.06.12.

If there is any way I can help in resolving this issue then please let me know.

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

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

[NTG-context] placetable with location=split produces error

2016-06-09 Thread Christoph Reller
Hi,

Can anybody tell me why the following MWE does not work:

\starttext
  \dorecurse{9}{\input ward}
  \startplacetable[location=split]
\bTABLE
  \bTR \bTD \input tufte \eTD \eTR
\eTABLE
  \stopplacetable
\stoptext

The error message is:

! Undefined control sequence
 ...ixednumber {\currentfloat }\currentfloatnumber
  \relax
\thecurrentfloatnum...
\flushbothlabelclass #1#2#3->#1#3
 #2
\namedtaggedlabeltexts ...\dostarttagged {#1}{#2}}
  \dostoptagged \endgroup
\thecurrentfloatnumber ...rentfloatnumbersuffix }}
  \fi \fi \fi
\strc_floats_make_complete_caption ...floatnumber
  }\ifnofloatcaption \else
\...
\strc_floats_check_caption_content ...ete_caption
  }\ifdim \wd
\b_strc_floats...
...

Any feedback is welcome!

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

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

Re: [NTG-context] aligning \placetable with bidi

2014-11-17 Thread Hans Hagen

On 11/16/2014 8:53 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

Dear gang,

In the following, we middle align both \placetable's:


\setupbodyfont[tt]
\definefont[ALM][file:almfixed.otf*arabic at 12pt]
\setupdirections[bidi=global]

\setupxtable[width=1in]

\showframe

\starttext
\startalignment[middle]
\ALM
\placetable[middle,none]{}
{\startxtable
  \startxrow
  \startxcell Text 1 \stopxcell
  \startxcell[align=r2l] النص ١ \stopxcell
  \stopxrow
\stopxtable}

\placetable[middle,none]{}
{\righttoleft \startxtable
  \startxrow
  \startxcell[align=r2l] النص ١ \stopxcell
  \startxcell Text 1 \stopxcell
  \stopxrow
\stopxtable}
\stopalignment
\stoptext


Only the first \placetable is aligned correctly; how do we get the
second one -- \righttoleft table -- middle aligned? See attached.


i can fix the funny lap but still we need to have some concept of cells 
running from l2r or r2l ..


-
  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] aligning \placetable with bidi

2014-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

In the following, we middle align both \placetable's:


\setupbodyfont[tt]
\definefont[ALM][file:almfixed.otf*arabic at 12pt]
\setupdirections[bidi=global]

\setupxtable[width=1in]

\showframe

\starttext
\startalignment[middle]
\ALM
\placetable[middle,none]{}
{\startxtable
 \startxrow
 \startxcell Text 1 \stopxcell
 \startxcell[align=r2l] النص ١ \stopxcell
 \stopxrow
\stopxtable}

\placetable[middle,none]{}
{\righttoleft \startxtable
 \startxrow
 \startxcell[align=r2l] النص ١ \stopxcell
 \startxcell Text 1 \stopxcell
 \stopxrow
\stopxtable}
\stopalignment
\stoptext


Only the first \placetable is aligned correctly; how do we get the second  
one -- \righttoleft table -- middle aligned? See attached.


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

xtable-bidi.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] \placetable whitespace problem in columnset

2014-11-02 Thread Bryor Snefjella
I have a document using columnsets to place tables near an entry in a long
list of sorts. The problem is that wherever I issue a \placetable
\placefigure etc command, I get unwanted extra whitespace between entries
where the command is issued. I have tried changing the parameters in
\setupfloats, but haven't found a setting that works.

I'm using the context version distributed with the latest texlive.

You can see the extra whitespace between entry Q and R in this example.

\definecolumnset[TwoColumns][n=2,distance=0.04\makeupwidth]

\setupindenting[yes, small]


\setupfloats[before=,after=]


\definedescription

[MyEntry][alternative=serried,width=fit,before=\indentation,indenting=yes]

 \unexpanded\def\MyCommand#1#2#3%

{\startMyEntry{\bi#2:}#3\stopMyEntry}


 \definesorting[My][Mys]




\starttext

\startcolumnset[TwoColumns]


\definecolumnsethsize{TwoColumns}{1}{1}\One


\startbuffer

\placetable[lrtb][tab:mytable]{My Table}{

\bTABLE[option=stretch,textwidth=\One,align=middle]

\bTR\bTH Foo \eTH\bTH Bar \eTH\eTR

\bTR\bTD Bar \eTD\bTD Foo \eTD\eTR

\bTR\bTD Foo \eTD\bTD Bar \eTD\eTR

\eTABLE}

\stopbuffer




\My[Q]{\input knuth\getbuffer}

\My[R]{\input knuth}

\My[C]{\input knuth}

\My[A]{\input knuth}


\placelistofsorts[My][criterium=all,command=\MyCommand]


\stopcolumnset

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

[NTG-context] localfootnotes and bodyfontsize in a placetable

2013-04-23 Thread Alan BRASLAU
The following attached minimal example using local footnotes
and a small body font size exhibits two problems:

1. The \placelocalfootnotes are incoherently in the normal size, as
   I would expect them to be proportionally reduced.

2. The width of the first column gets incorrectly set
   (there is a break between a and cell).

Probably there is a better way of achieving this correctly.

Alan\setupbodyfont[10pt]

\starttext
10pt
\startplacetable [title=A title]
\switchtobodyfont [6pt]
\startlocalfootnotes
\bTABLE
 \bTR
 \bTD a cell\startfootnote A footnote\stopfootnote\eTD
 \bTD another cell\eTD
 \eTR
\eTABLE
\placelocalfootnotes
\stoplocalfootnotes
\stopplacetable
\stoptext



\setupbodyfont[10pt]

\starttext
10pt
\startplacetable [title=A title]
\switchtobodyfont [6pt]
\startlocalfootnotes
\bTABLE
 \bTR
 \bTD a cell\startfootnote A footnote\stopfootnote\eTD
 \bTD another cell\eTD
 \eTR
\eTABLE
\placelocalfootnotes
\stoplocalfootnotes
\stopplacetable
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] rotated placetable

2013-04-20 Thread Alan BRASLAU
Hello,

On October 1, 2010 Mojca asked about inserting a rotated page content
(landscape) in an otherwise portrait document, keeping the headers and
footers upright. The suggested solution was essentially
\rotate [rotation=90] {\startTEXpage
[width=\textheight,height=\textwidth]
...
\stopTEXpage}

I would like to place a wide table rotated as above, keeping the page
headers and footers upright. In other words, I would like to do
something like
\startplacetable [location=page,orientation=90,title=Table
caption]
...
\stopplacetable
That is, rotate the table contents *and its caption*, but not the page
header and footer.

Note that the following will indeed rotate the contents but not the
caption.
\startplacetable [title=Table caption]
\rotate [rotation=90] {\startTEXpage
...
\stopTEXpage}
\stopplacetable

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] rotated placetable

2013-04-20 Thread Wolfgang Schuster

Am 20.04.2013 um 13:59 schrieb Alan BRASLAU alan.bras...@cea.fr:

 Hello,
 
 On October 1, 2010 Mojca asked about inserting a rotated page content
 (landscape) in an otherwise portrait document, keeping the headers and
 footers upright. The suggested solution was essentially
   \rotate [rotation=90] {\startTEXpage
   [width=\textheight,height=\textwidth]
   ...
   \stopTEXpage}
 
 I would like to place a wide table rotated as above, keeping the page
 headers and footers upright. In other words, I would like to do
 something like
   \startplacetable [location=page,orientation=90,title=Table
   caption]
   ...
   \stopplacetable
 That is, rotate the table contents *and its caption*, but not the page
 header and footer.
 
 Note that the following will indeed rotate the contents but not the
 caption.
   \startplacetable [title=Table caption]
   \rotate [rotation=90] {\startTEXpage
   ...
   \stopTEXpage}
   \stopplacetable

\startplacetable[location={page,90},title=Table caption]
…
\stopplacetable

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

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


Re: [NTG-context] rotated placetable

2013-04-20 Thread Alan BRASLAU
On Sat, 20 Apr 2013 14:24:25 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 \startplacetable[location={page,90},title=Table caption]
 …
 \stopplacetable

Thank you Wolfgang!

I find it necessary to do the following:

\startplacetable [location={page,90},title=Table caption]
\startTEXpage [width=\textheight]
…
\stopTEXpage
\stopplacetable

The \startTEXpage [width=\textheight] … \stopTEXpage
is necessary in order to get the content (table macros: \bTABLE
\eTABLE) to work correctly.

I had thought that it would have made sense to use width=\textheight
with \startplacetable, but this did not work.

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] rotated placetable

2013-04-20 Thread Wolfgang Schuster

Am 20.04.2013 um 15:35 schrieb Alan BRASLAU alan.bras...@cea.fr:

 On Sat, 20 Apr 2013 14:24:25 +0200
 Wolfgang Schuster schuster.wolfg...@gmail.com wrote:
 
 \startplacetable[location={page,90},title=Table caption]
 …
 \stopplacetable
 
 Thank you Wolfgang!
 
 I find it necessary to do the following:
 
 \startplacetable [location={page,90},title=Table caption]
   \startTEXpage [width=\textheight]
   …
   \stopTEXpage
 \stopplacetable
 
 The \startTEXpage [width=\textheight] … \stopTEXpage
 is necessary in order to get the content (table macros: \bTABLE
 \eTABLE) to work correctly.
 
 I had thought that it would have made sense to use width=\textheight
 with \startplacetable, but this did not work.

This is nonsense because \startTEXpage … \stopTEXpage is supposed to create
a standalone page on your document where you can control the width/height
of the page.

It’s hard to tell why you need this without a example but you can try to force
the table width with \bTABLE[textwidth=\textheight].

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] rotated placetable

2013-04-20 Thread Alan BRASLAU
On Sat, 20 Apr 2013 17:09:45 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 This is nonsense because \startTEXpage … \stopTEXpage is supposed to
 create a standalone page on your document where you can control the
 width/height of the page.

It seemed to me to be a strange use of TEXpage, but I was just following
your own suggestion of Fri, 01 Oct 2010 09:13:39, see,
http://www.mail-archive.com/ntg-context@ntg.nl/msg49606.html
so nonsense indeed! :)
 
 It’s hard to tell why you need this without a example but you can try
 to force the table width with \bTABLE[textwidth=\textheight].

Indeed, this is the proper solution (and gives a better result). I had
tried width=\textheight but this set the width of *all* columns to
\textheight!

Thanks again!

Ala
-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
If your question is of interest to others as well, please add an 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] No numbers with `\ref` and floats like `\placetable`

2011-11-07 Thread Andreas Harder

On 30.10.2011, at 09:45, Wolfgang Schuster wrote:

 
 Am 29.10.2011 um 23:57 schrieb Andreas Harder:
 
 
 On 29.10.2011, at 23:47, Paul Menzel wrote:
 
 Dear ConTeXt folks,
 
 
 I am sorry for another reference related question. Using
 
  ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
 english/english
 
 That's also true for yesterdays beta.
 
 I’m aware of this but I hadn’t time so far to write a fix for this.

Hi Wolfgang,

still no fix?

\starttext
  \placeformula[eq:1]
  \startformula a+b \stopformula
  \in{Equation:}[eq:1]
\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] No numbers with `\ref` and floats like `\placetable`

2011-11-07 Thread Andreas Harder

On 07.11.2011, at 12:03, Wolfgang Schuster wrote:

 
 Am 07.11.2011 um 11:53 schrieb Andreas Harder:
 
 
 On 30.10.2011, at 09:45, Wolfgang Schuster wrote:
 
 
 Am 29.10.2011 um 23:57 schrieb Andreas Harder:
 
 
 On 29.10.2011, at 23:47, Paul Menzel wrote:
 
 Dear ConTeXt folks,
 
 
 I am sorry for another reference related question. Using
 
ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
 english/english
 
 That's also true for yesterdays beta.
 
 I’m aware of this but I hadn’t time so far to write a fix for this.
 
 Hi Wolfgang,
 
 still no fix?
 
 \starttext
 \placeformula[eq:1]
 \startformula a+b \stopformula
 \in{Equation:}[eq:1]
 \stoptext
 
 When you don’t need subformulas change this in strc-mat.mkiv:

I don’t, 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] No numbers with `\ref` and floats like `\placetable`

2011-11-07 Thread Wolfgang Schuster

Am 07.11.2011 um 12:45 schrieb Andreas Harder:

 When you don’t need subformulas change this in strc-mat.mkiv:
 
 I don’t, thanks.

Instead of patching strc-mat.mkiv you can create a file with the name 
cont-loc.mkiv
in your working directory where you add both modified commands. With this method
you don’t have to make the changes in the core and when it’s fixed just delete 
this file.

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] No numbers with `\ref` and floats like `\placetable`

2011-11-07 Thread Andreas Harder

On 07.11.2011, at 13:02, Wolfgang Schuster wrote:

 
 Am 07.11.2011 um 12:45 schrieb Andreas Harder:
 
 When you don’t need subformulas change this in strc-mat.mkiv:
 
 I don’t, thanks.
 
 Instead of patching strc-mat.mkiv you can create a file with the name 
 cont-loc.mkiv
 in your working directory where you add both modified commands. With this 
 method
 you don’t have to make the changes in the core and when it’s fixed just 
 delete this file.

This is a really useful tip! Thanks again.

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] No numbers with `\ref` and floats like `\placetable`

2011-10-30 Thread Wolfgang Schuster

Am 29.10.2011 um 23:47 schrieb Paul Menzel:

 Dear ConTeXt folks,
 
 
 I am sorry for another reference related question. Using
 
ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
 english/english
 
 the following example does not work. Either no number is shown or »??«.
 
\starttext
 
Table \ref[][tab:reference] is a nice table. But referencing does not 
 work \ref[tab:reference].

Use “\in[tab:reference]” to refer to the table number of give “\ref” a keyword 
(in your case “number”) for the first argument.

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] No numbers with `\ref` and floats like `\placetable`

2011-10-30 Thread Wolfgang Schuster

Am 29.10.2011 um 23:57 schrieb Andreas Harder:

 
 On 29.10.2011, at 23:47, Paul Menzel wrote:
 
 Dear ConTeXt folks,
 
 
 I am sorry for another reference related question. Using
 
   ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
 english/english
 
 That's also true for yesterdays beta.

I’m aware of this but I hadn’t time so far to write a fix for this.

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] No numbers with `\ref` and floats like `\placetable`

2011-10-30 Thread Andreas Harder

On 30.10.2011, at 09:45, Wolfgang Schuster wrote:

 
 Am 29.10.2011 um 23:57 schrieb Andreas Harder:
 
 
 On 29.10.2011, at 23:47, Paul Menzel wrote:
 
 Dear ConTeXt folks,
 
 
 I am sorry for another reference related question. Using
 
  ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
 english/english
 
 That's also true for yesterdays beta.
 
 I’m aware of this but I hadn’t time so far to write a fix for this.

Okay. Thank you in advance.

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] [solved] No numbers with `\ref` and floats like `\placetable`

2011-10-30 Thread Paul Menzel
Am Sonntag, den 30.10.2011, 08:30 +0100 schrieb Wolfgang Schuster:
 Am 29.10.2011 um 23:47 schrieb Paul Menzel:

  I am sorry for another reference related question. Using
  
 ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
  english/english
  
  the following example does not work. Either no number is shown or »??«.
  
 \starttext
  
 Table \ref[][tab:reference] is a nice table. But referencing does 
  not work \ref[tab:reference].
 
 Use “\in[tab:reference]” to refer to the table number of give “\ref” a 
 keyword (in your case “number”) for the first argument.

That indeed solved this issue. Thank you very much!


Thanks,

Paul


ref.pdf
Description: Adobe PDF document
\starttext

Table \ref[number][tab:reference] is a nice table. But referencing does not work \in[tab:reference].

\placetable[][tab:reference]
{The table should be set up better.}
{
\startluacode
context.bTABLE()
  context.bTR()
context.bTD() context(n) context.eTD()
for j=1,10 do
  context.bTD() context($10^{ .. j .. }$) context.eTD()
end
  context.eTR()
  t = { 1, 2, 4, 8 }
  for index, i in ipairs(t) do
context.bTR()
context.bTD() context($n^{ .. -i .. }$) context.eTD()
for j=1,10 do
  context.bTD() context(\%.4f, 10^(-j/i)) context.eTD()
end
context.eTR()
  end
context.eTABLE()
\stopluacode
}
\stoptext


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an 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] No numbers with `\ref` and floats like `\placetable`

2011-10-29 Thread Paul Menzel
Dear ConTeXt folks,


I am sorry for another reference related question. Using

ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
english/english

the following example does not work. Either no number is shown or »??«.

\starttext

Table \ref[][tab:reference] is a nice table. But referencing does not 
work \ref[tab:reference].

\placetable[][tab:reference]
{The table should be set up better.}
{
\startluacode
context.bTABLE()
  context.bTR()
context.bTD() context(n) context.eTD()
for j=1,10 do
  context.bTD() context($10^{ .. j .. }$) context.eTD()
end
  context.eTR()
  t = { 1, 2, 4, 8 }
  for index, i in ipairs(t) do
context.bTR()
context.bTD() context($n^{ .. -i .. }$) context.eTD()
for j=1,10 do
  context.bTD() context(\%.4f, 10^(-j/i)) context.eTD()
end
context.eTR()
  end
context.eTABLE()
\stopluacode
}
\stoptext

Please find the source file and the resulting PDF file attached.


Thanks,

Paul


ref.pdf
Description: Adobe PDF document
\starttext

Table \ref[][tab:reference] is a nice table. But referencing does not work \ref[tab:reference].

\placetable[][tab:reference]
{The table should be set up better.}
{
\startluacode
context.bTABLE()
  context.bTR()
context.bTD() context(n) context.eTD()
for j=1,10 do
  context.bTD() context($10^{ .. j .. }$) context.eTD()
end
  context.eTR()
  t = { 1, 2, 4, 8 }
  for index, i in ipairs(t) do
context.bTR()
context.bTD() context($n^{ .. -i .. }$) context.eTD()
for j=1,10 do
  context.bTD() context(\%.4f, 10^(-j/i)) context.eTD()
end
context.eTR()
  end
context.eTABLE()
\stopluacode
}
\stoptext


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an 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] No numbers with `\ref` and floats like `\placetable`

2011-10-29 Thread Andreas Harder

On 29.10.2011, at 23:47, Paul Menzel wrote:

 Dear ConTeXt folks,
 
 
 I am sorry for another reference related question. Using
 
ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
 english/english

That's also true for yesterdays beta.

\starttext
  \placeformula[eq:1]
  \startformula a+b \stopformula
  \in{Equation:}[eq:1]
\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] Error with \placetable ... \starttable

2011-01-11 Thread Aditya Mahajan

On Thu, 6 Jan 2011, Khaled Hosny wrote:


Looks like \stattable ... \stoptable no longer do grouping, the
following is broken unless \stattable ... \stoptable is grouped.

\starttext
\placetable[here,nonumber]{foo}
\starttable[|r|r|]
\NC foo \NC bar \AR
\stoptable
\stoptext


This is still present in the latest beta.

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] Error with \placetable ... \starttable

2011-01-05 Thread Khaled Hosny
Looks like \stattable ... \stoptable no longer do grouping, the
following is broken unless \stattable ... \stoptable is grouped.

\starttext
\placetable[here,nonumber]{foo}
\starttable[|r|r|]
\NC foo \NC bar \AR
\stoptable
\stoptext

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
If your question is of interest to others as well, please add an 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] Help Using \placetable and TABLE

2010-12-13 Thread barndog1946

I got the recodes for splitting loong tables and that works but:

How can I get (continued) in the footer and get the table number within the  
caption to understand that the table is continued and NOT a NEW table?


barney
___
If your question is of interest to others as well, please add an 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] placetable (split but title only ONE time) ?

2009-09-08 Thread Steffen Wolfrum

Hi,

how do I set a long placetable to split, but write the legend/label  
only one time?



This does repeat the title at every page:

\setupcaption[table][location=top]

\placetable
 [split]
 {A very long table}
 {\bTABLE
  \dorecurse{200}{\bTR\bTD Text \eTD\eTR}
  \eTABLE}


But it should read A very long table only one time at the top of the  
TABLE.



Thanks!

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


[NTG-context] multi page TABLE and placetable

2009-05-04 Thread Jos van Gisbergen
Hi,

I'm using TABLE macros for typesetting tables. Since the tables I'm using
may get very long, I set split=yes. This works ... except if I surround
a TABLE with \placetable:

  \placetable[here]{caption} {
\bTABLE ...
\eTABLE
  }

In such a case a table that is too long to fit on a single page is truncated
at page bottom and nothing is printed on the next page.
What am I doing wrong?

Thanks in advance,

Jos



  ___
If your question is of interest to others as well, please add an 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] Natural tables with \placetable

2009-04-17 Thread Design Department
Can anyone tell me why this table example is placed on the left margin
on the first page and the right margin on subsequent pages?
My intention is to place against the right margin on all pages.

\starttext
\placetable[right, 4*line, split]
  {none}
  {\bTABLE[split=repeat,option=stretch, textwidth=3in]
\bTABLEhead[rulethickness=1pt]
  \bTR
 \bTH[align={middle}] head \eTH
  \eTR
\eTABLEhead
\bTABLEbody
\dorecurse{6}{
  \bTR
\bTD
  {\input knuth \par}
\eTD
  \eTR
}
\eTABLEbody
\bTABLEfoot
  \bTR
\bTH footer  \eTH
  \eTR
\eTABLEfoot
  \eTABLE}
\stoptext


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

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


Re: [NTG-context] Natural TABLE does not split with \placetable

2007-07-04 Thread luigi scarso
Can you give an example ?

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


Re: [NTG-context] Natural TABLE does not split with \placetable

2007-07-04 Thread Saji Njarackalazhikam Hameed
 Can you give an example ?

i am cutting and pasting this from Wolfgang. He suggested using the 
split option and it works.

\starttext  
   

   
\placetable 
   
  [split]   
   
  {Splitted table}  
   
  {\bTABLE  
   
   \dorecurse{100}{\bTR\bTD text\eTD\eTR}   
   
   \eTABLE} 
   

   
\stoptext   

* luigi scarso [EMAIL PROTECTED] [2007-07-04 09:08:53 +0200]:

 Can you give an example ?
 
 -- 
 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

-- 
Saji N. Hameed

APEC Climate Center +82 51 668 7470
National Pension Corporation Busan Building 12F 
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 [EMAIL PROTECTED]
KOREA
___
If your question is of interest to others as well, please add an 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] Natural TABLE does not split with \placetable

2007-07-04 Thread Saji Njarackalazhikam Hameed
Thanks very much. 

saji

* Wolfgang Schuster [EMAIL PROTECTED] [2007-07-04 07:47:48 +0200]:

 2007/7/4, Saji Njarackalazhikam Hameed [EMAIL PROTECTED]:
 
  Hi,
 
  I am using Natural Tables to typeset a rather long table. If I
  embed the table within a \placetable[][]{}{\bTABLE \eTABLE}, I
  cannot get the table to spread over multiple pages.
 
  The table extends over multiple pages, if I do not embed it
  within \placetable.
 
  Can somebody help? I am using  the latest version of context
  ( i believe ) :
 
  texexec --version
  TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
 
  saji
 
  --
  Saji N. Hameed
 
 \starttext
 
 \placetable
   [split]
   {Splitted table}
   {\bTABLE
\dorecurse{100}{\bTR\bTD text\eTD\eTR}
\eTABLE}
 
 \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
 ___

-- 
Saji N. Hameed

APEC Climate Center +82 51 668 7470
National Pension Corporation Busan Building 12F 
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 [EMAIL PROTECTED]
KOREA
___
If your question is of interest to others as well, please add an 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] Natural TABLE does not split with \placetable

2007-07-03 Thread Saji Njarackalazhikam Hameed

   
Hi, 
   

I am using Natural Tables to typeset a rather long table. If I 
embed the table within a \placetable[][]{}{\bTABLE \eTABLE}, I
cannot get the table to spread over multiple pages.  

   
The table extends over multiple pages, if I do not embed it 
within \placetable.

   
Can somebody help? I am using  the latest version of context
( i believe ) :

texexec --version  
TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD  

   
saji 

-- 
Saji N. Hameed

APEC Climate Center +82 51 668 7470
National Pension Corporation Busan Building 12F 
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 [EMAIL PROTECTED]
KOREA
___
If your question is of interest to others as well, please add an 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] Natural TABLE does not split with \placetable

2007-07-03 Thread Wolfgang Schuster
2007/7/4, Saji Njarackalazhikam Hameed [EMAIL PROTECTED]:

 Hi,

 I am using Natural Tables to typeset a rather long table. If I
 embed the table within a \placetable[][]{}{\bTABLE \eTABLE}, I
 cannot get the table to spread over multiple pages.

 The table extends over multiple pages, if I do not embed it
 within \placetable.

 Can somebody help? I am using  the latest version of context
 ( i believe ) :

 texexec --version
 TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

 saji

 --
 Saji N. Hameed

\starttext

\placetable
  [split]
  {Splitted table}
  {\bTABLE
   \dorecurse{100}{\bTR\bTD text\eTD\eTR}
   \eTABLE}

\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] placetable style argument trouble.

2006-04-13 Thread Hans Hagen
Johannes Graumann wrote:
 Hello,

 Why is in 
 \setupTABLE[frame=off,split=repeat,splitmethod=a,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}]

 the '\setupinterlinespace[line=2.8ex]' not honored (at least not with
 respect to the switched bodyfont)?
   
add a \par after your text 

i'm not sure if teh following patch will break other things 

\def\eTBLCELL
  {\ifhmode
 \delayedendstrut
 \par % added 
   \else
 \par
 \ifdim\prevdepth\zeropoint % =-1000pt ?
   \vskip-\strutdp
 \else
   \removebottomthings
 \fi
   \fi}


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] placetable style argument trouble.

2006-04-12 Thread Johannes Graumann
Hello,

Why is in 
\setupTABLE[frame=off,split=repeat,splitmethod=a,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}]

the '\setupinterlinespace[line=2.8ex]' not honored (at least not with
respect to the switched bodyfont)?

Thanks, Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \placetable and \starttables ... \stoptables

2004-12-13 Thread Nikolai Weibull
\starttext
\placetable
  [][]
  {Operators}
  {\start
\starttablehead
\HL
\NC \bf Operator \NC \bf Matches \NC\SR
\HL
\stoptablehead
\starttabletail
\HL
\stoptabletail
\starttables[|l|lp(25em)|]
\dorecurse{50}{\NC . \NC anything \NC\AR}
\stoptables\stop}
\stoptext

This doesn't split appropriately.  It works OK if one removes the
placetable, but that kind of counteracts the whole idea.  Am I doing
something wrong, or is this an issue with the tables code?
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context