Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
student-sx opened this issue Jun 11, 2020 · 0 comments
Open

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

student-sx opened this issue Jun 11, 2020 · 0 comments

Comments

@student-sx
Copy link

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}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant