On Fri, Feb 24, 2012 at 4:45 PM, luigi scarso
On Fri, Feb 24, 2012 at 4:40 PM, Wolfgang Schuster
wrote: Am 24.02.2012 um 13:06 schrieb luigi scarso:
It seems that xtable doesn't export @rows and @columns This patch to tabl-xtb.mkvi works, not sure if it is a good style.
\unexpanded\def\tabl_x_start_cell_construct_yes[#settings]% {\dostarttagged\t!tablecell\empty % can't we just tag the box \setbox\b_tabl_x\hbox\bgroup \setupcurrentxtable[#settings] \letxtableparameter\c!width \d_tabl_x_width % overloads given width \letxtableparameter\c!height\d_tabl_x_height % overloads given height \ctxcommand{x_table_init_construct()}% \inheritedxtableframed\bgroup \tabl_x_begin_of_cell \def\tablecellcolumns{% \ifnum\csname \m_mult_interfaces_namespace nx\endcsname>\csname \m_mult_interfaces_namespace nc\endcsname% \csname \m_mult_interfaces_namespace nx\endcsname% \else \csname \m_mult_interfaces_namespace nc\endcsname% \fi}% \def\tablecellrows{% \ifnum\csname \m_mult_interfaces_namespace ny\endcsname>\csname \m_mult_interfaces_namespace nr\endcsname% \csname \m_mult_interfaces_namespace ny\endcsname% \else \csname \m_mult_interfaces_namespace nr\endcsname% \fi} \dotagxtablecell}
You need this
\appendtoks %\def\dotagxtablecell {\taggedctxcommand{settagtablecell(\number\tablecellrows,\number\tablecellcolumns,\number\raggedstatus)}}% \def\dotagxtablecell {\taggedctxcommand{settagtablecell(\number\c_tabl_x_nx,\number\c_tabl_x_ny,\number\raggedstatus)}}%
Hm, not sure --- I'm always confused by "nx" that could be "nr of rows" which goes down along the y-axis direction. So it should be \def\dotagxtablecell {\taggedctxcommand{settagtablecell(\number\c_tabl_x_ny,\number\c_tabl_x_nx,\number\raggedstatus)}}% ie swithc nx with ny And maybe we should keep this as good and modify other part of code \def\dotagxtablecell {\taggedctxcommand{settagtablecell(\number\tablecellrows,\number\tablecellcolumns,\number\raggedstatus)}} PS @wolfgang: I've said "it looks ok", but it was friday evening... :-) -- luigi