![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
Hello, are there more ways how to affect vertical distance between rows within \start/stop-tabulate? 1) There is one, described on wiki (http://wiki.contextgarden.net/Tabulate): ---- \unprotect \appendtoks \blank[halfline] \to \t_tabl_tabulate_every_after_row \protect ... ---- Its problem is that I don't know how to call it by Lua. The following code fails: ---- \startluacode context[[ \unprotect \appendtoks \blank[halfline] \to \t_tabl_tabulate_every_after_row \protect ]] \stopluacode ... ---- So how to make it acceptable by Ctx? 2) Is there another way, e.g. inserting something each time before \NC\NR or elsewhere)? This brings no effect: ---- \starttabulate[|l|r|] \NC a \NC b \blank\NC\blank\NR \NC A \NC B \NC\NR \stoptabulate ---- As I intend to typeset a table (into tabulate) via Lua, adding an extra sequence/command anywhere when a table row is typeset is no problem. Questions are: a) what would be such sequence and b) where it should be placed? My whole testing code is attached. Thank you in advance. Best regards, Lukas -- Ing. Lukáš Procházka [mailto: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
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Am 22.05.2013 um 15:20 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
Hello,
are there more ways how to affect vertical distance between rows within \start/stop-tabulate?
1) There is one, described on wiki (http://wiki.contextgarden.net/Tabulate):
---- \unprotect \appendtoks \blank[halfline] \to \t_tabl_tabulate_every_after_row \protect
This is only a hack and shouldn’t be used.
Its problem is that I don't know how to call it by Lua. The following code fails:
---- \startluacode context[[ \unprotect \appendtoks \blank[halfline] \to \t_tabl_tabulate_every_after_row \protect ]] \stopluacode
... ----
So how to make it acceptable by Ctx?
2) Is there another way, e.g. inserting something each time before \NC\NR or elsewhere)?
This brings no effect:
---- \starttabulate[|l|r|] \NC a \NC b \blank\NC\blank\NR \NC A \NC B \NC\NR \stoptabulate ----
As I intend to typeset a table (into tabulate) via Lua, adding an extra sequence/command anywhere when a table row is typeset is no problem.
You can use the \TB which accepts the same keywords as \blank. \starttext \starttabulate \NC one \NC two \NC\NR \NC two \NC three \NC\NR \TB[line] \NC four \NC five \NC\NR \TB[1cm] \NC six \NC seven \NC\NR \stoptabulate \stoptext Wolfgang
![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
... Great, thank you! I added some info to wiki (http://wiki.contextgarden.net/Tabulate). Best regards, Lukas
You can use the \TB which accepts the same keywords as \blank.
\starttext
\starttabulate \NC one \NC two \NC\NR \NC two \NC three \NC\NR \TB[line] \NC four \NC five \NC\NR \TB[1cm] \NC six \NC seven \NC\NR \stoptabulate
\stoptext
Wolfgang
-- Ing. Lukáš Procházka [mailto: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
participants (2)
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster