I presently have an Indesign Book File with around 50 or so chapters. Each of these chapters has a heading style that I've created and told the TOC to generate from. These chapters also have screenshots (pictures) that keep showing up in the Table of Contents when I generate it. When I try to create a Table of Contents I get something like this, and I obviously don't want these pictures in the TOC. Does anyone know why this is happening?
Most likely the screen shots are anchored objects in the paragraphs you're collecting. ID picks up the entire paragraph, up the the character limit, including any variables, anchored objects, forced line breaks or applied character styles.
So do I just need to "unanchor" these objects?
That's one approach, not necessarily the best, though, as it may do bad things to the layout.
You can also select and delete them manually from the TOC, or create non-printing text containing just the part you want, with a different, unique paragraph style and put them on the pages wher the real headings appear, then build the TOC from those, instead.