michal-h21 / odsfile

LaTeX package for reading opendocument spreadsheet files.
14 stars 2 forks source link

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

Open student-sx opened 4 years ago

student-sx commented 4 years ago

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}
}