Skip to content

How to refer to the n-th row in a template #12

@student-sx

Description

@student-sx

When creating templates you can refer to the first row by using -{colheading} as in the example below.

\tabletemplate{booktabs}{%
\begin{tabular}{-{coltypes}}
\toprule
-{colheading}
\midrule
-{content}
\\ \bottomrule
\end{tabular}
}

It would be nice if one could also refer to the second, third etc. in general n-th line and then to the rest of the table as in the following pseudocode:

\tabletemplate{booktabs}{%
\begin{tabular}{-{coltypes}}
\rowstyle{\bfseries}
-{colheading-1}
\rowstyle{\itshape}
-{colheading-2}
-{colheading-3} \\
\hline
-{rest-of-table}
\end{tabular}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions