0

I'm using qcircuit to draw quantum circuits. They're built using LaTeX's table environment, but my circuits are not tables. How can I make sure they're not listed in the list of tables built by \listoftables?

It also happens that the table's caption says Table instead of Circuit. (I don't need a command such as \listofcircuits. I don't list to list them all out.)

\begin{table}[H]
\caption{A circuit for calculating the parity of $\ket{x}$.}
\label{circuit-for-parity}
\centering
\[ \Qcircuit @C=1em @R=1.6em {
  \lstick{} & \ctrl{2} & \qw & \qw \\
  \lstick{} & \qw      & \ctrl{1} & \qw \inputgroupv{1}{2}{.8em}{.8em}{\qr{x}}\\
  \lstick{\qr0} & \targ & \targ & \qw \\
} \]
\end{table}

closed as off-topic by Sebastiano, Phelype Oleinik, Zarko, Kurt, KJO Jun 19 at 1:44

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    I find no code inside of qcircuit.sty that adds anything to a \listof... at all... Do you place your diagrams inside table environments and use \caption by chance? – user31729 Jan 10 at 14:44
  • 2
    Since you prefer numbered captions, using \caption*{A circuit...} is no option for you. The simplest way I see right now, is \renewcommand{\addcontentsline}[3]{} within the table environment. – user31729 Jan 10 at 15:18
  • 2
    Why are you using the table environment at all? Actually they are diagrams, so figure would be the best option. Otherwise use \renewcommand{\tablename}{Circuit} etc. But using \autoref or cleveref macros they will still report Table as counter – user31729 Jan 10 at 15:27
  • 1
    Please consider that in case of having real tables being listed in the \listoftables, omitting the 'non' - tables leads to inconsistencies in the LoT. Readers will wonder why table 3.2 is followed by 3.6, when 3 circuits in table environments are omitted, for example – user31729 Jan 10 at 15:33
  • 4
    I'm voting to close this question because the OP has finded the solution with the comments. – Sebastiano Jun 18 at 20:55