Can Scrivener number figures sequentially?

I have many sections and some contain figures. Now, when I compile, I can check or uncheck specific sections to be included or not, and this means my output document will have a different set of figures depending on what I include or leave out. Is there any way to have it place “Figure number X” captions under each figure, which would automatically number sequentially, based on which ones end up being exported to the compilation?

Hi mlevin,

Fellow Scrivener user here. Scriv’s placeholder tags will do exactly what you want.

Depending on whether you need to be able to refer in your body text to your figures by number or not, you will be using placeholders tags something like one of these:

<$n:figure>

<$n:figure:thisParticularFiguresName>

These get put wherever you would otherwise put a figure number. For example, under some figure you might have one of these as caption text:

Figure <$n:figure>

Figure <$n:figure:threeActStrucChart>

See the Scrivener Help menu > Placeholder Tags List… See especially the sections on ‘Using named auto-numbering streams’ and ‘Figure and table numbering’.

-gr

Also worth mention, if you started with one of our non-fiction templates, it is likely we have a figure and table numbering macro set up for you to use. Check out the help file at the top of the Binder for more information.

Scriv’s placeholder tags will do exactly what you want

super, thank you!

if you started with one of our non-fiction templates, it is likely we have a figure and table numbering
macro set up for you to use. Check out the help file at the top of the Binder for more information.

sorry, where are these templates? I will check if there’s one suitable for writing biotechnology research manuscripts.

You can browse the templates by using the File/New Project… command. The General Non-Fiction (or its counterpart with subheads) have the macros I refer to. These are very general by the way, they are more a showcase for how Scrivener can be used, than anything to do with the content itself. They also do not do anything you cannot copy into your own project. So if you’re curious about how it works, check out the Replacements compile option pane from one of these projects and check out the Project Replacements entries. You could even go with simpler syntax than !fig(image_name), using something like {{image_name}}. It’s a lot easier to type in, and less textually noisy. If you want these replacements in your project, simply select them from the compile pane in the template project and paste them into the respective pane in your working project.