ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Multipage xtables starts at the wrong page
@ 2014-01-07 19:17 Marco Pallante
  2014-01-09 12:08 ` Marco Patzer
  0 siblings, 1 reply; 10+ messages in thread
From: Marco Pallante @ 2014-01-07 19:17 UTC (permalink / raw)
  To: ntg-context

Hello everyone,

I'm using ConTeXt to write a technical manual and I'm facing with some
strange behavior I don't know how to overcome.

I need a multipage table and I'm using the xtables. This is a (stripped
down) version of a part of my document:

\mainlanguage [en]

\setupxtable
  [externaldocs]
  [split=repeat, header=repeat, bodyfont=8pt, foregroundstyle=\ss,
   option=stretch, align=middle, frame=off, bottomframe=on,
   framecolor=elitalblue]
\setupxtable
  [externaldocsheader]
  [background=color,
   backgroundcolor=black, foregroundcolor=white,
   foregroundstyle=\ss\bf]

\starttext

\chapter{Introduction}

\startxtable [externaldocs]
  \startxtablehead
    \startxrow [externaldocsheader]
      \startxcell AD No. \stopxcell
      \startxcell Title \stopxcell
      \startxcell Doc No. \stopxcell
      \startxcell Issue \stopxcell
      \startxcell Date \stopxcell
      \startxcell Applicability \stopxcell
    \stopxrow
  \stopxtablehead

  \startxtablebody
  \dorecurse{60}{
    \startxrow
      \startxcell AD No. \stopxcell
      \startxcell Title \stopxcell
      \startxcell Doc No. \stopxcell
      \startxcell Issue \stopxcell
      \startxcell Date \stopxcell
      \startxcell Applicability \stopxcell
    \stopxrow
  }
  \stopxtablebody
\stopxtable

\stoptext

What I get, however, is a table that starts at page 2 and not just after
the chapter head.

If the number of rows is smaller and the table fit the first page, then
it starts at the right place.

What I'm doing wrong?

Thank you very much,

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Multipage xtables starts at the wrong page
  2014-01-07 19:17 Multipage xtables starts at the wrong page Marco Pallante
@ 2014-01-09 12:08 ` Marco Patzer
  2014-01-09 14:26   ` Marco Pallante
  0 siblings, 1 reply; 10+ messages in thread
From: Marco Patzer @ 2014-01-09 12:08 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 229 bytes --]

On 2014–01–07 Marco Pallante wrote:

> […]
> 
> What I get, however, is a table that starts at page 2 and not just after
> the chapter head.

The table starts on page one here. Which version are you using?

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Multipage xtables starts at the wrong page
  2014-01-09 12:08 ` Marco Patzer
@ 2014-01-09 14:26   ` Marco Pallante
  2014-01-09 14:49     ` Marco Patzer
  0 siblings, 1 reply; 10+ messages in thread
From: Marco Pallante @ 2014-01-09 14:26 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 1294 bytes --]

Hello Marco,

First log line reports:
  ConTeXt  ver: 2013.05.28 00:36 MKIV current  fmt: 2013.7.29

$ context --version
reports:

mtx-context | ConTeXt Process Management 0.60
mtx-context |
mtx-context | main context
file: /usr/local/texlive/2013/texmf-dist/tex/context/base/context.mkiv
mtx-context | current version: 2013.05.28 00:36

ConTeXt is installed from TL2013 distribution.

I've attached the generated PDF.

Thank you,

Marco


Il giorno gio, 09/01/2014 alle 13.08 +0100, Marco Patzer ha scritto:
> On 2014–01–07 Marco Pallante wrote:
> 
> > […]
> > 
> > What I get, however, is a table that starts at page 2 and not just after
> > the chapter head.
> 
> The table starts on page one here. Which version are you using?
> 
> 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
> ___________________________________________________________________________________


[-- Attachment #2: tabletest.pdf --]
[-- Type: application/pdf, Size: 17064 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Multipage xtables starts at the wrong page
  2014-01-09 14:26   ` Marco Pallante
@ 2014-01-09 14:49     ` Marco Patzer
  2014-01-09 15:16       ` Marco Pallante
  0 siblings, 1 reply; 10+ messages in thread
From: Marco Patzer @ 2014-01-09 14:49 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 496 bytes --]

On 2014–01–09 Marco Pallante wrote:

Hello Marco,

I have no clue where the issue is, but I can confirm that the table
starts on page two using version 2013.05.28. It works with a current
beta.

If want to keep using TeXLive, instead of ConTeXt standalone, one
possible workaround would be to use LuajitTeX. Surprisingly
LuajitTeX in TeXlive uses context ver: 2014.01.08, whereas LuaTeX
uses ver: 2013.05.28. The newer context version might break your
document, though.

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Multipage xtables starts at the wrong page
  2014-01-09 14:49     ` Marco Patzer
@ 2014-01-09 15:16       ` Marco Pallante
  2014-01-09 15:30         ` Marco Patzer
  0 siblings, 1 reply; 10+ messages in thread
From: Marco Pallante @ 2014-01-09 15:16 UTC (permalink / raw)
  To: ntg-context

Il giorno gio, 09/01/2014 alle 15.49 +0100, Marco Patzer ha scritto:
> On 2014–01–09 Marco Pallante wrote:
> 
> Hello Marco,
> 
> I have no clue where the issue is, but I can confirm that the table
> starts on page two using version 2013.05.28. It works with a current
> beta.
> 
> If want to keep using TeXLive, instead of ConTeXt standalone, one
> possible workaround would be to use LuajitTeX. Surprisingly
> LuajitTeX in TeXlive uses context ver: 2014.01.08, whereas LuaTeX
> uses ver: 2013.05.28. The newer context version might break your
> document, though.
> 
> Marco

Thank you for your answer :)

How do I use LuajitTeX? I've seen the two options --jit and --jiton
which seem to be the right way. Am I right?

Let's see if it breaks anything :)

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


___________________________________________________________________________________
If your question is of interest to others as well, please add an 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Multipage xtables starts at the wrong page
  2014-01-09 15:16       ` Marco Pallante
@ 2014-01-09 15:30         ` Marco Patzer
  2014-01-09 17:08           ` Hans Hagen
  2014-01-10  9:51           ` Marco Pallante
  0 siblings, 2 replies; 10+ messages in thread
From: Marco Patzer @ 2014-01-09 15:30 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 513 bytes --]

On 2014–01–09 Marco Pallante wrote:

> How do I use LuajitTeX?

  context --jit <file>

> I've seen the two options --jit and --jiton
> which seem to be the right way. Am I right?

context --help | grep jit

  --jit    use luajittex with jit turned off (only use the faster virtual machine)
  --jiton  use luajittex with jit turned on (in most cases not faster, even slower)

I've never come across a real world document where --jiton was
faster than --jit, so just stick with --jit.

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Multipage xtables starts at the wrong page
  2014-01-09 15:30         ` Marco Patzer
@ 2014-01-09 17:08           ` Hans Hagen
  2014-01-10  9:51           ` Marco Pallante
  1 sibling, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2014-01-09 17:08 UTC (permalink / raw)
  To: ntg-context

On 1/9/2014 4:30 PM, Marco Patzer wrote:
> On 2014–01–09 Marco Pallante wrote:
>
>> How do I use LuajitTeX?
>
>    context --jit <file>
>
>> I've seen the two options --jit and --jiton
>> which seem to be the right way. Am I right?
>
> context --help | grep jit
>
>    --jit    use luajittex with jit turned off (only use the faster virtual machine)
>    --jiton  use luajittex with jit turned on (in most cases not faster, even slower)
>
> I've never come across a real world document where --jiton was
> faster than --jit, so just stick with --jit.

in fact we found that --jiton is slower ... just use --jit and benefit 
from the faster virtual machine (the fact that jitting can slow down 
gets obscured by the fact that the vm is twice as fast); i guess that 
the context lua codebase is too large to benefit from jit and also 
hardly uses jitabble built-in functions (much if that is hardcoded in 
jit) and the amount of calls is too low to trade off jitting and using 
(we don't do number crunching or have applications running for more than 
a few seconds)

Hans


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Multipage xtables starts at the wrong page
  2014-01-09 15:30         ` Marco Patzer
  2014-01-09 17:08           ` Hans Hagen
@ 2014-01-10  9:51           ` Marco Pallante
  2014-01-10 10:17             ` Mojca Miklavec
  2014-01-10 10:37             ` Marco Patzer
  1 sibling, 2 replies; 10+ messages in thread
From: Marco Pallante @ 2014-01-10  9:51 UTC (permalink / raw)
  To: ntg-context

Il giorno gio, 09/01/2014 alle 16.30 +0100, Marco Patzer ha scritto:
> On 2014–01–09 Marco Pallante wrote:
> 
> > How do I use LuajitTeX?
> 
>   context --jit <file>
> 
> > I've seen the two options --jit and --jiton
> > which seem to be the right way. Am I right?
> 
> context --help | grep jit
> 
>   --jit    use luajittex with jit turned off (only use the faster virtual machine)
>   --jiton  use luajittex with jit turned on (in most cases not faster, even slower)
> 
> I've never come across a real world document where --jiton was
> faster than --jit, so just stick with --jit.
> 
> Marco

It seems my TL2013 installation is missing LuajitTeX. Do you know what
package has it?

Thank you again :)

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Multipage xtables starts at the wrong page
  2014-01-10  9:51           ` Marco Pallante
@ 2014-01-10 10:17             ` Mojca Miklavec
  2014-01-10 10:37             ` Marco Patzer
  1 sibling, 0 replies; 10+ messages in thread
From: Mojca Miklavec @ 2014-01-10 10:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Jan 10, 2014 at 10:51 AM, Marco Pallante wrote:
>
> It seems my TL2013 installation is missing LuajitTeX. Do you know what
> package has it?

Only the ConTeXt distribution
(http://distribution.contextgarden.net/setup/), but if TL serves you
well, you can also simply fetch the binary
(http://distribution.contextgarden.net/current/bin/luajittex/)
provided that one exists for you architecture, make sure it's
executable and place it in the same folder where other TeX Live
binaries are.

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Multipage xtables starts at the wrong page
  2014-01-10  9:51           ` Marco Pallante
  2014-01-10 10:17             ` Mojca Miklavec
@ 2014-01-10 10:37             ` Marco Patzer
  1 sibling, 0 replies; 10+ messages in thread
From: Marco Patzer @ 2014-01-10 10:37 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 629 bytes --]

On 2014–01–10 Marco Pallante wrote:

> It seems my TL2013 installation is missing LuajitTeX. Do you know what
> package has it?

You're right, TeXLive apparently doesn't ship LuajitTeX. I don't use
TeXLive myself, but have an installation for testing. Having set up
the PATH for TeXLive "context <file>" invokes TeXLive's version on
my system. However, "context --jit <file>" invokes context
standalone's LuajitTeX since it can't be found in TeXLive's path and
I didn't remove context standalone from my PATH. I should have
noticed that before due to the version mismatch. Sorry for the
misinformation.

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-01-10 10:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-07 19:17 Multipage xtables starts at the wrong page Marco Pallante
2014-01-09 12:08 ` Marco Patzer
2014-01-09 14:26   ` Marco Pallante
2014-01-09 14:49     ` Marco Patzer
2014-01-09 15:16       ` Marco Pallante
2014-01-09 15:30         ` Marco Patzer
2014-01-09 17:08           ` Hans Hagen
2014-01-10  9:51           ` Marco Pallante
2014-01-10 10:17             ` Mojca Miklavec
2014-01-10 10:37             ` Marco Patzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).