ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem centernig a table by Lua
@ 2011-05-13  8:12 Procházka Lukáš Ing. - Pontex s. r. o.
  2011-05-13  9:47 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-05-13  8:12 UTC (permalink / raw)
  To: ConTeXt

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

Hello,

I'm typesetting a centered (middaligned) 1-cell table by Ctx - no problem.

When I rewrite the same code to Lua, the table is always moved to the right; see or try the attached files.

---
\starttext
   % By TeX

   \centerline{
     \starttable[|c|]
       \HL
       \VL 5 \VL\AR
       \HL
     \stoptable
   }

   % By Lua

   \startluacode
     context([[\centerline{]])
       context.starttable{"|c|"}
         context.HL()
         context.VL(5); context.VL(); context.AR()
         context.HL()
       context.stoptable()
     context([[}]])
   \stopluacode
\stoptext
---

Why? How to modify the Lua code?

Kind regards,

Lukas


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

Tel: +420 244 062 238
Fax: +420 244 461 038

[-- Attachment #2: t-Tab6.mkiv --]
[-- Type: application/octet-stream, Size: 393 bytes --]

\starttext
  % By TeX

  \centerline{
    \starttable[|c|]
      \HL
      \VL 5 \VL\AR
      \HL
    \stoptable
  }

  % By Lua

  \startluacode
    context([[\centerline{]])
      context.starttable{"|c|"}
        context.HL()
        context.VL(5); context.VL(); context.AR()
        context.HL()
      context.stoptable()
    context([[}]])
  \stopluacode
\stoptext

[-- Attachment #3: t-Tab6.pdf --]
[-- Type: application/pdf, Size: 4850 bytes --]

[-- Attachment #4: 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] 3+ messages in thread

end of thread, other threads:[~2011-05-13  9:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-13  8:12 Problem centernig a table by Lua Procházka Lukáš Ing. - Pontex s. r. o.
2011-05-13  9:47 ` Hans Hagen
2011-05-13  9:52   ` luigi scarso

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