我使用以下文本创建了一个制表环境:
\definefont[bigfont][name:alegreyasansscextrabold at 50pt]
\define[1]\maketextbig{{\bigfont #1}}
\starttext
\starttabulate[|p|p|p|]
\HL
\NC A \NC B \NC C \NC\NR
\HL
\NC \maketextbig{big text} \NC regular text \NC regular text \NC\NR
\NC \maketextbig{big text} \NC regular text \NC regular text \NC\NR
\NC \maketextbig{big text} \NC regular text \NC regular text \NC\NR
\NC \maketextbig{big text} \NC regular text \NC regular text \NC\NR
\HL
\stoptabulate
\stoptext
编译时,大文本会拼凑在一起。如何让行扩展,并让行中的其他文本垂直居中?
答案1
我认为极端表格是解决您问题的一种便捷方式。它们可以很好地跨页面拆分,正如您在评论中所要求的那样。拉伸选项在极端表格手册中有描述。它可用于使表格使用整个水平空间。
\definefont[bigfont][name:pagella at 50pt]
\define[1]\maketextbig{{\bigfont #1}}
\starttext
\startxtable [align={middle,lohi},option=stretch]
\startxrow
\startxcell A
\stopxcell
\startxcell B
\stopxcell
\startxcell C
\stopxcell
\stopxrow
\startxrow
\startxcell \maketextbig{big text}
\stopxcell
\startxcell regular text
\stopxcell
\startxcell regular text
\stopxcell
\stopxrow
\startxrow
\startxcell \maketextbig{big text}
\stopxcell
\startxcell regular text
\stopxcell
\startxcell regular text
\stopxcell
\stopxrow
\startxrow
\startxcell \maketextbig{big text}
\stopxcell
\startxcell regular text
\stopxcell
\startxcell regular text
\stopxcell
\stopxrow
\stopxtable
\stoptext