-
Notifications
You must be signed in to change notification settings - Fork 23
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
Colour models inside tabularray #106
Comments
I would suggest not to use slashes but a syntax like |
In |
Of course, I think it would be better to follow LaTeX3 rules on this matter. If |
This aren't "LaTeX3" rules and we aren't setting a standard here. It is more what is already there, e.g. in hyperref, colortbl, nicematrix. |
I understand there are no "rules" per say. However, if each package uses their own standards, it will become very confusing for users and website like StackOverflow will be overwhelmed with confused users. |
The disadvantage of |
So you trading the advantage of being able to support optional arguments. I can understand that in places where optional arguments make little sense but I think it is counterproductive when the optionals are the norm and expected and used in this way everywhere else (as, for example, with color specifications). |
but color models don't contain commas. And we don't speak here about arguments of commands, but how to provide a value. |
First, maybe it was due to some historical reasons, in my opinion Second, Third, I care more about the consistency of interfaces inside this package than others. It looks weird if most of the interfaces use curly braces but several interfaces use square brackets. |
As far as I know, |
In issue #111, I am planning to add \begin{tblr}{row{2}={red7},column{2}={bg+=green7}}
Alpha & Beta & Gamma \\
Epsilon & Zeta & Eta \\
Iota & Kappa & Lambda \\
\end{tblr} we get |
|
With latest \documentclass{article}
\usepackage{xcolor}
\usepackage{tabularray}
\UseTblrLibrary{functional}
\begin{document}
\begin{tblr}{
hlines,
row{2} = {bg=\funColor{rgb}{0,1,1}},
}
Alpha & Beta & Gamma \\
Epsilon & Zeta & Eta \\
Iota & Kappa & Lambda \\
\end{tblr}
\begin{tblr}{
hlines,
row{2} = {bg=\funColor{RGB}{100,255,100}},
}
Alpha & Beta & Gamma \\
Epsilon & Zeta & Eta \\
Iota & Kappa & Lambda \\
\end{tblr}
\begin{tblr}{
hlines,
row{2} = {bg=\funColor{HTML}{FF0077}},
}
Alpha & Beta & Gamma \\
Epsilon & Zeta & Eta \\
Iota & Kappa & Lambda \\
\end{tblr}
\begin{tblr}[evaluate=all]{hlines}
Alpha & Beta & Gamma \\
\SetRow{bg=\funColor{cmyk}{0,0.5,1,0}}
Epsilon & Zeta & Eta \\
Iota & Kappa & Lambda \\
\end{tblr}
\end{document} |
It would be great to be able to use colours inside a table without having to declare the colours before:
The text was updated successfully, but these errors were encountered: