Finally MiKTeX provide version 2022A! So, I make some tests if in this new version (2022A) can be used \verb
command in caption, note and remark. Unfortunately, as at old version, not (as least as I try):
\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\SetTblrStyle{note}{font=\footnotesize,
verbr} % <--- doesn't help ...
\begin{document}
\begin{table}[!htb]
\centering
\begin{talltblr}[
%caption = {Caption of table where verb doesn't \verb+works+.},
label = {tab: test},
note{1} = {A footnote with verbatim doesn't \verb+work+.},
]{colspec={ll},
verb} % work in table body
\toprule
column 1 & column 2 \\
\midrule
row1 & value 11\TblrNote{1} . Here verbatim \verb+works+ \\
\bottomrule
\end{talltblr}
\end{table}
\end{document}
which gives (expected) error:
! Missing } inserted.
<inserted text>
}
l.21 \end
{talltblr}
? x
Forcing compilation gives the following result:
So I wonder, is there a way to use verb
as as aforementioned? For example as this problem is solved by use of the cprotect
package in caption outsize talltblr
or longtblr
environments or use verb in their table bodies?
\texttt{word}
verb
to the package later. Then you will be able to use\verb
command in the header and footer of the table.