1

I have a table in Appendix. It also shows in list of tables. How can I remove it?

I tried the following but it didn't do anything.

\usepackage{caption}

\begin{document}

.

.

.

\appendix

\captionsetup{list=no}

\end{document}
3
  • Welcome to TeX.sx! I guess \caption* should do just that.
    – Corentin
    Commented Mar 20, 2013 at 21:12
  • Welcome to tex.sx. You can indent code sections by 4 spaces or equivalently highlight them and use the {} button, as I just did. Also it helps if you could make your example a complete small document that shows the problem, rather than just a fragment that can not be run. Commented Mar 20, 2013 at 21:13
  • 1
    Can you add a minimal working example (MWE)? It's important to know what's your setup, because with the standard classes your method works.
    – egreg
    Commented Mar 20, 2013 at 21:17

1 Answer 1

3

if the document class you use includes all captions (or all *'ed titles) in the contents, you can manually put a line in the appropriate contents list to suppress it.

here's what has been devised for use with the ams document classes. add a definition in the preamble:

\DeclareRobustCommand{\SkipTocEntry}[4]{}

(if you're using hyperref, change the 4 to 5 -- different number of arguments.)

then, just before the command that will write to the toc file (or lot or lof) the line that you don't want, insert the instruction to suppress it:

\addtocontents{toc}{\SkipTocEntry}

i'm not sure that this has actually been used inside a float, but it's worth a try.

in the ams author-faq, there's an entry that covers this in somewhat more detail, although it's written from the point of view of chapter and section headings. go to the faq and search for "omit". the title of the relevant entry is "How can I omit or change a heading in the table of contents?"; click on it to expand the text. here is a more compact way of reaching this answer; look for the red box surrounding the item.

when i have access once more to a working system, i'll try this with figure and table captions, and update the faq as appropriate.

3
  • Thank you Barbara. I did your suggestion. It removed the appendix table from the list of table but instead it added "10pt". How can I remove that "10pt".
    – H A
    Commented Mar 21, 2013 at 18:13
  • @HA -- this sounds like the \SkipTocEntry is removing one more "argument" than intended. but to really be able to figure out what is happening, a real minimal working example is needed, or at least the document class being used. with the book or report class, the command \captionsetup{list=no} is sufficient. Commented Mar 21, 2013 at 18:36
  • @HA If it works, you should considering acknowledging the effort put in by barbara by clicking "this answer is useful".
    – user10274
    Commented Mar 21, 2013 at 19:33

Not the answer you're looking for? Browse other questions tagged .