Figure Numbering in InDesign (and cross-references to them)

Here’s a very common InDesign problem: How to add figure numbers throughout a document (or more than one document, if working with a book). I’ll use a “real world example” and share how Ole Kvern and I handled figure and table numbers in Real World InDesign CS4.

Add the Figure or Table Number

Every figure or table needs a unique number. In our case, it was based on the chapter number, such as “Figure 13-1″ or “Table 2-4″. Of course, we want the numbers to increment by one, and to automatically update if we add or remove a figure. What feature does that sound like? Yes, automatic paragraph numbering!

As we’ve described elsewhere, you can set up frames that jump from one unthreaded frame to the next by first making a List. In our case we made two lists: FigureNumbers and TableNumbers (you can call them anything you want). Then we made two paragraph styles that used automatic number. Here’s the numbering setup for figures:

Notice that the List is chosen at the top, the Format follows the numbering scheme we want to use (regular Arabic numerals), and the Number field says “Figure ^H-^1″. That means “insert the word Figure, followed by a space, followed by the chapter number, a dash, and the current list number.

(The “chapter number” comes from the Layout > Numbering & Section Options dialog box. You can use that or just type your own number manually.)

When we apply this paragraph style to a line, the line is automatically numbered! But here’s the cool part: We just apply this to a blank line in a text frame and the figure number appears:

and then (after applying the paragraph style):

Once we had one of these, it was easy to duplicate the frame (with copy/paste or option/alt-drag) and the number automatically increases. Delete of the frames, and the numbers all update, too.

Add the X-Ref

Now that we have some figure numbers, we can point to them in the text. For example, we wanted to refer to figure numbers like “See Figure 12-5″. To do that, we needed Cross References (which are part of CS4; if you have CS3 you’d need the cross-references plug-in from dtptools, which is probably even better).

First we place the text cursor where we want the x-ref in the text, and then we clicked the New Cross Reference button in the Hyperlinks panel:

Choose the figure number paragraph style in the list on the left, and the specific figure you’re pointing at in the list on the right. Then set the Format to Paragraph Number — after all, there’s no text in the paragraph; you just want its “number.” Don’t forget to set Appearance to Invisible so that you don’t have incredibly ugly black rectangles all over your document.

When you click OK, the cross-ref appears:

Well, that’s about it! Of course, when it comes to tables, you do exactly the same thing, but you choose that other List and type “Table ^H-^1″ in the Number field instead.

I hope this helps explain figure numbering in InDesign a bit better. Enjoy!

Tags
Related Articles
Comments

19 Comments on “Figure Numbering in InDesign (and cross-references to them)

  1. I had no idea you could do this stuff! Almost makes me wish I had a catalog to work on (I haven’t had occasion to work on something that required a bunch of numbered figures like this). But please note that I said “almost”…. :-)

  2. This is great – thank you. Running figure captions with chapter numbers works like a dream come true.

    But one document can only have one chapter number .. if I want a series of Fig 1-1, Fig 1-2, Fig 1-3 and also a series of Fig 2-1, Fig 2-2, Fig 2-3 series, can I have that in one long document.. or does it have to be divided into separate book/chapter documents to make this happen?

    There must be a way to get the section numbers/ “section prefix” showing up in these numbered lists in the running captions?

    None of the provided options in the Bullets & Numbering / Numbers drop down list seem to do it. In the “Insert Number Placeholder” there is only a “Chapter Number” option in there. Is there a trick to make the “section prefix” show up somehow – it’s too logical for it not to be there – it must be hiding somewhere! Maybe you did that you reveal and I missed it!

    Thank you for your site – hugely interesting and helpful, the emails and podcasts are informative. It is huge encouragement to exploring the depths of this great app. It’s a game changer, – a job changer, life changer, really!

  3. The described numbering process is useful. I’m wondering what the Best Practice would be to ensure that the text frame containing the figure / section / chapter number remains locked to the figure that it refers to. A couple of attempts I’m tried haven’t been successful. Perhaps I’m not applying the technique properly or I’m unaware of another approach. Anyone have a suggestion or two?
    Thanks…-rp-

  4. Brian, unfortunately there’s no way to pull in the section prefix/section placeholder in the automatically generated number. (Great feature request though!) I tried using “^x” which is Find/Change-ese to target a Section Marker, but all ID did was create a figure caption like “Figure ^x-4″ …sigh. You probably tried this too.

    If you want to keep the entire book in one file, then you’ll have to create a figure number paragraph style for each section, and include the section/chapter name in the “code” you enter in the style’s Bullets & Numbering > Number field. Example: “Figure [sectionname]-^#^t” replacing the italics with the name of that section of course.

    Then when you’re in say, Section 3 (and assuming your Section name is simply “3″ — so that’s what you replaced the italics above with), you’d apply the paragraph style “Figure Number – Sec3″ to all the figure captions in that section.

    A couple glitches: If you cut/paste a caption to a different section, you’ll have to remember to apply that section’s paragraph style to it. Also, you’ll need to do a local override to the first caption in the second and subsequent sections, setting it to Start at 1 instead of Continue Numbering.

  5. Anne-Marie – thank you for this speedy (!!) helpful, clear response and thorough detailed workaround reply. You are amazing! And David too – InDesign Secrets is SO helpful in unpacking the complex features into something figure-out-able/do-able – the manual is a bit intense, sometimes. I can’t thank you enough.

    I thought a few university degrees would help me figure it out – but apparently not!! haha! I did try to push the ^x options, and go searching for scripts maybe? but came up blank. Also thanks for your suggestion about a feature request. I have made it so, Number One!

  6. Hey,

    When my auto figure numbers automatically update if I add or remove one from a document, my cross reference still displays the original figure number not the updated one, any suggestions as to how I overcome this?

    Giles

  7. Hi
    I use cross-reference in my text which is works perfectly. but always I have had big problem when I wanted to put several Figures in parenthesis. simply I want to write for example (Figs 2-3 and 2-4) instead of Fig 2-3 and Fig 2-4). as you know I can delet Fig and write by hand Figs but as soon as I update the fields all the fig will come back and makes like (Figs Fig 2-3 and Fig 2-4). I hope some of you can help me to solve the problem

    thanks in advance

  8. I just thought that I would post a correction regarding multi-level numbering. Perhaps you can update your explanation to incorporate this information.

    Multi-level numbering is quite easy, once you’ve figured out how to do it. I am using InDesign CS4 to write a technical dissertation, and it works great with my multi-level headings, such as “3.4.1 Partial Transient…”, and figures and tables throughout each section (or chapter). I do have the whole document in one file, but it’s not too large since the images are all linked.

    So, to create multi-level headings, you need to use the Level option just to the right of the List drop-down box. My second- and third-level headings use the same list as the first-level headings (this is necessary), except that they are changed to Level 2 and 3, respectively. Then, when numbering the section heading, you can insert the number of the previous-level heading above it. These can be selected using the arrow to the right of the Number field and selecting one of the levels under “Insert Number Placeholder.” So, the text in the Number field for my second-level heading is ^1.^#^t and it is ^1.^2.^#^t for the third-level heading. This presents the multi-level heading with dots between the numbers and a tab between the numbers and the section heading.

    As far as figure or table numbering goes, the numbering needs to be done under the same list but on a different level. I use level 4 for my figures and level 5 for my tables. As an example, the figure style has this in the Number field: Figure^.^1-^#:^>. This renders any figure caption anywhere in the document correctly: Figure 3-7, Figure 5-2, Figure 1-11, depending only upon where in the text the style is applied. The ^. is a punctuation space. It’s slightly less than a regular space and keeps any cross-referenced figure instance from breaking over a line; so I’ll never see text like “…see Figure(line break)2-2 for a diagram of…” Also, the en space (^>) adds a nice distance between the figure number and the text explaining the figure.

    As a final note, I also use this feature for my bibliography, which has about 230 references right now. (Thank goodness they finally added the capability to put text before the automatic number. InDesign CS2 is incapable of rendering an automatic list of bracketed numbers.) Anyway, the cross-referencing works great, but I run into the same problem that Dolati mentioned about having to manually change “Fig 2-3 and Fig 2-4″ to “Figs 2-3 and 2-4.” Changing the linked text does cause problems when you update the cross references. So, I set up a character style (invisible) that changes the text to white and changes the tracking so that the text doesn’t take up any horizontal space. That way, when I have a set of references like [5][6][7][12], I type [5-7,12] next to the references and apply the invisible character style to the linked references. Then, I don’t have to worry about the linked text giving me a warning that it needs to be updated. Also if the reference numbers change, I can (1) change the invisible character style so that I can see the text, (2) update the typed reference, and (3) put the invisible character style back how it was. This solution is far from ideal, but it works.

  9. Hi,

    I am very new to InDesign but have decided to use ID for writing up my thesis (actually due in 10 weeks and 1 day :-S) due to its more controlled with its layout design features (over Word).

    I am currently looking at how to number my levels of headings, tables and figures in each document (chapter) and then eventually combine them into a book with an overall TOC!
    Soooo, all the info above makes a little sense however is still quite foreign to me!!! can someone please forward me to basic 101 class so i can kick some thesis butt.

    Cheers
    billie

  10. Hi,
    I’m new to InDesign, and thought I had sorted out figure numbering but am having trouble with the way that figures are numbered in my document. I set it up as described in this post, but some of my figures are in line and the captions are just another line of text in the body of the story, while others are full page graphics with text box captions that are not linked to the body of the document. Currently, the figure numbers run sequentially through the figures that are in line in the document, and then continue with the full page graphics. The problem is that the full page graphics come before any of the in line graphics, so they are out of order. Is there any way to correct this?
    Thanks!
    Becky

  11. If I want to create a Table of Figures using the Table of Contents functionality how can I extract just Figure 2.3 to be displayed in the Table with the page number it appears on, rather than the full caption (Figure 2.3 A very long caption is needed to describe what can be seen above. Blah, blah, blah…”)?

    A more detailed version of this exact question was posed in the comments on Bob Bringhurst’s Adobe Blog, but the promised reply never came.

  12. I have created a Table of Figures through the Table of Contents function. I used the Figure Captions style through out the book (which worked well, thanks for the instructions). I then used that style for the “Include Paragraph Style” in the Table of Content dialog box.

    The resulting Table of Figures looks great for the most part; however, some of the figures are not listed in numerical order. The figures are in order within the book, just not the Table of Figures.

    Is there something I’m doing wrong in setting up the Table of Figures or maybe within the document?

    Thanks so much for your blog. I have found it a thousand times more helpful than the Adobe InDesign help site.

    –Mel

  13. For those people trying to get *just* the number without any preceding text, as Grant was getting at:

    You can style the text you don’t want as “invisible” after placing, which doesn’t break the ‘update’ route. So if you insert another figure the number updates without getting any extra test (e.g.: you only want the 3.2 out of Figure 3.2).

    So if InDesign inserts ‘Figure 3.2′, just highlight ‘Figure ‘ and make it an invisible class, and you have just ’3.2′ visible.

    I put a quick post up with photos if it makes more sense: http://www.ipv6forthemasses.com/tiki-view_blog_post.php?postId=5

  14. @Grant,

    Thank you (bunches!) for the comments on the nested figure/table numbers. You saved me today when I was struggling and my knows-InDesign-better-than-I-do friend was offline.

    I don’t (yet!) need the rest of the information you shared, but it’s a quite creative workaround!

    Thanks, again!

    -Lori

  15. this is great. however, i tried it but the numbering got stuck to 2. i’m using boxes instead of figures. box 1 is alright, then box 2 is alright. but when i got to box 3, box 2 became box 3 and box 3 became box 2. i added another box and box 4 became box and box 2 became box 3 and box 3 became box 4.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>