tabularray icon indicating copy to clipboard operation
tabularray copied to clipboard

The style of "note" will affect the style of "remark" and "contfoot-text" in the "longtblr", and the same goes for others

Open Meiting-Wang opened this issue 3 years ago • 0 comments

Hello Mr. Lu. I find that \SetTblrStyle{note}{\huge\color{blue}} will also affect the style of remark and contfoot-text, if I run the codes below:

\SetTblrStyle{contfoot-text}{\Large\color{red}}
\SetTblrStyle{remark}{\footnotesize}
\SetTblrStyle{note}{\huge\color{blue}}

and \SetTblrStyle{note}{\huge\color{blue}} will not affect the style of remark and contfoot-text, if I don't set style for both remark and contfoot-text at the same time, i.e. I only run the code:

\SetTblrStyle{note}{\huge\color{blue}}

I think this may be a bug.

Best wishes

PS. my system: win10 Tex Live version: TeX 3.141592653 (TeX Live 2022) tlmgr update time: August 6, 2022 My MWE:

image

\documentclass{article}
\usepackage{lipsum}
\usepackage{xcolor}
\usepackage{tabularray}

\SetTblrStyle{contfoot-text}{\Large\color{red}}
\SetTblrStyle{remark}{\footnotesize}
\SetTblrStyle{note}{\huge\color{blue}}

\begin{document}

\lipsum[1-4]

\begin{longtblr}[
  caption={There is a caption},
  remark{Note 1}={There is a remark.},
  note{a}={There is a note.},
]{
  hline{1,Z}={1pt},
}
  Alpha   & Beta             & Gamma  & Delta & aaa & bbb  \\
  Epsilon & Zeta\TblrNote{a} & Eta    & Theta & aaa & bbb  \\
  Iota    & Kappa            & Lambda & Mu    & aaa & bbb  \\
  Iota    & Kappa            & Lambda & Mu    & aaa & bbb  \\
  Iota    & Kappa            & Lambda & Mu    & aaa & bbb  \\
  Iota    & Kappa            & Lambda & Mu    & aaa & bbb  \\
  Iota    & Kappa            & Lambda & Mu    & aaa & bbb  \\
  Iota    & Kappa            & Lambda & Mu    & aaa & bbb  \\
  Iota    & Kappa            & Lambda & Mu    & aaa & bbb  \\
  Iota    & Kappa            & Lambda & Mu    & aaa & bbb  \\
  Iota    & Kappa            & Lambda & Mu    & aaa & bbb  \\
  Iota    & Kappa            & Lambda & Mu    & aaa & bbb  \\
\end{longtblr}
\end{document}

Meiting-Wang avatar Aug 13 '22 15:08 Meiting-Wang