Afin de conserver mes styles d'en-tête de table créées avec le paquetage caption, j'utilise le paquetage tblr-extras.

Je ne trouve pas comment ne pas créer d'entrée dans la liste des tables pour une table données.

\documentclass[12pt]{article}%

\usepackage{multicol}%
\usepackage{tabularray}%
\usepackage{tblr-extras}%
\UseTblrLibrary{caption}%

\setlength{\parindent}{0em}%

\begin{document}%

\begin{multicols}{2}%

caption=Caption1, entry=Entry1, label={tab:label1}

\begin{talltblr}
  [ caption=Caption1, entry=Entry1, label={tab:label1} ]
  { colspec = { Q Q }, hlines, vlines }
  1 & the text in the cell \\ A & another text         \\
\end{talltblr}
\vspace{2.0\baselineskip}

caption=none, entry=Entry2, label={tab:label2}

\begin{talltblr}
  [ caption=none, entry=Entry2, label={tab:label2} ]
  { colspec = { Q Q }, hlines, vlines }
  2 & the text in the cell \\ B & another text         \\
\end{talltblr}
\vspace{2.0\baselineskip}

caption=Caption3, entry=none, label={tab:label3}

\begin{talltblr}
  [ caption=Caption3, entry=none, label={tab:label3} ]
  { colspec = { Q Q }, hlines, vlines }
  3 & the text in the cell \\ C & another text         \\
\end{talltblr}
\vspace{2.0\baselineskip}

caption=Caption4, entry=Entry4, label=none

\begin{talltblr}
  [ caption=Caption4, entry=Entry4, label=none ]
  { colspec = { Q Q }, hlines, vlines }
  4 & the text in the cell \\ D & another text         \\
\end{talltblr}

\columnbreak

caption=Caption5, entry=none, label=none

\begin{talltblr}
  [ caption=Caption5, entry=none, label=none ]
  { colspec = { Q Q }, hlines, vlines }
  5 & the text in the cell \\ E & another text         \\
\end{talltblr}
\vspace{2.0\baselineskip}

caption=none, entry=none, label={tab:label6}

\begin{talltblr}
  [ caption=none, entry=none, label={tab:label6} ]
  { colspec = { Q Q }, hlines, vlines }
  6 & the text in the cell \\ D & another text         \\
\end{talltblr}
\vspace{2.0\baselineskip}

caption=none, entry=Entry7, label=none

\begin{talltblr}
  [ caption=none, entry=Entry7, label=none ]
  { colspec = { Q Q }, hlines, vlines }
  7 & the text in the cell \\ F & another text         \\
\end{talltblr}
\vspace{2.0\baselineskip}

caption=none, entry=none, label=none

\begin{talltblr}
  [ caption=none, entry=none, label=none ]
  { colspec = { Q Q }, hlines, vlines }
  8 & the text in the cell \\ G & another text         \\
\end{talltblr}
%
\end{multicols}%

\listoftables%
\end{document}%

Posée 01 Sep, 16:45

polymorphisme's gravatar image

polymorphisme
6991330
Taux d'acceptation : 50%

Modifiée 01 Sep, 16:55


Vous pouvez utiliser \captionsetup[table]{list=no} :

\documentclass{article}

\usepackage{tabularray}
\usepackage{tblr-extras}
\UseTblrLibrary{caption}

\begin{document}

{
\captionsetup[table]{list=no}
\begin{talltblr}
  [ caption={Not in LoT}, label=foo]
  { colspec = { Q Q }, hlines, vlines }
  8 & the text in the cell \\ G & another text         \\
\end{talltblr}
}

\begin{talltblr}
  [ caption={In LoT}, label=quack, entry=quack! ]
  { colspec = { Q Q }, hlines, vlines }
  8 & the text in the cell \\ G & another text         \\
\end{talltblr}

\listoftables
\end{document}
Lien permanent

Publiée 01 Sep, 17:16

samcarter's gravatar image

samcarter
9.0k2817
Taux d'acceptation : 57%

Modifiée 01 Sep, 17:17

Ok, c'est noté. Je n'avais pas saisi que l'option list pouvait s'appliquer à une seule table.

(06 Sep, 14:56) polymorphisme polymorphisme's gravatar image

Toutefois, mon test dans le message précédant montre que la librairie caption, créée en extra pour le paquetage tabularray, n'est pas fonctionnelle : ses paramètres caption, entry et label ne suivent pas la même logique que ceux des paquetages caption et tabularray. Il me semble que ceci s'apparente à un bug ! Qu'en pensez-vous ?

(06 Sep, 15:03) polymorphisme polymorphisme's gravatar image
2

Effectivement, vous pouvez le signaler ici

(06 Sep, 21:12) touhami touhami's gravatar image

Voilà qui est fait :)

(18 Sep, 15:38) polymorphisme polymorphisme's gravatar image
Votre réponse
(dés)activer l'aperçu

Suivre cette question

Par courriel :

Une fois que vous serez enregistré, vous pourrez souscrire à n'importe quelle mise à jour ici

Par flux RSS :

Réponses

Réponses et commentaires

Bases de Markdown

  • *italique* ou _italique_
  • **gras** ou __gras__
  • Lien ::[texte](http://url.com/ "Titre ")
  • Image : ?![alt texte](/path/img.jpg "Titre ")
  • Liste numérotée : 1. Foo 2. Bar
  • Pour ajouter un passage à la ligne, ajoutez deux espaces à l'endroit où vous souhaitez que la ligne commence.
  • Les balises HTML de base sont également prises en charge.