Figure Caption Counter

Count figure and table captions in a draft.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste your manuscript and get the number of figure captions, table captions and the total, based on lines beginning Figure N, Fig. N or Table N, plus LaTeX \caption{} commands.

How to use

1
Step 1
Paste your manuscript text.
2
Step 2
Press Count.
3
Step 3
Compare the totals with your figure limit.

How it works

Plain-text captions are recognised when a line starts with Figure or Fig. plus a number and a colon or full stop, or with Table plus a number. A LaTeX \caption{} is counted once, as a table caption if the nearest preceding environment is \begin{table} (or longtable) and as a figure caption otherwise. A \caption outside any figure or table environment therefore counts as a figure.

figure: ^(Figure|Fig.)\s*\d+[.:] or \caption{} in a figure      table: ^Table\s*\d+[.:] or \caption{} in a table

Worked example

Plain-text captions

Input
Figure 1: Training loss over epochs. Fig. 2. Accuracy by model size. Table 1: Hyperparameters.
Output
Figure captions: 2; Table captions: 1; Total captions: 3
Walkthrough
Figure 1 and Fig. 2 are figure captions and Table 1 is the table caption, giving three in total.

Limitations

  • In LaTeX source, a \caption is classified by the nearest preceding \begin{figure} or \begin{table}; one outside both is counted as a figure.
  • Plain-text captions not at the start of a line are missed.
  • Counts captions, not the figures or tables themselves.

Questions

How are LaTeX captions classified?
By the closest \begin{figure} or \begin{table} before the \caption. A caption outside both counts as a figure.
Does Fig. 2. count?
Yes, Fig. followed by a number and a full stop or colon counts as a figure caption.
Does it count the figures themselves?
No, only captions.

Features

  • Figure and table totals
  • Plain-text captions
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • HTML Crash Course For Absolute Beginners

    Traversy Media

    Web writing basics for paper and citation helpers.

    Watch on YouTube
  • Citation Basics (MLA, APA & Chicago)

    TutorialSmith

    Citation styles for academic formatting tools.

    Watch on YouTube