Using an image for each chapter in your novel.

sh
shamguy4
Posts: 3
Joined: Mon May 02, 2016 2:23 am
Platform: Mac

Wed Nov 22, 2017 9:20 pm Post

Not sure if others know this but if you plan on having a picture for each chapter here is how I did it.
Now, obviously you can export and use indesign or something, but doing it straight from scrivener saves you some steps!

You need to make sure your chapter heading layout has a prefix like this:

Chapter <$t:chapter>
<$img:<$title>;w=150>
<$title>

this will output:

Chapter One
(image)
Title

The image must have the same name as the title for this to work. It will automatically find and place the proper image in. The size I chose is 150 pixels.
Let me know what you think!

User avatar
AmberV
Posts: 20613
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Santiago de Compostela, Galiza
Contact:

Wed Nov 22, 2017 9:38 pm Post

That’s a good tip! It keeps the compile settings clean and intuitive. In a slight variation on that, for cases where you want to use a selection of graphics rather than a different one for each chapter, is to make use of the new custom metadata feature for creating lists.
  1. Open Project/Project Settings...
  2. Click on Custom Metadata.
  3. Add a new field and call it something like “ChapterGraphic” (I recommend a single word for things we’ll use as placeholders later).
  4. Change the type to List, and then add the names of your graphics files as they appear in the binder.
Now you can set these to your chapter type items in the inspector or outliner—you can even make bulk changes by selecting a bunch of items and right-clicking, accessing the “ChapterGraphic” submenu you’ll find there.

Image

That leaves one tweak to your formula, the chapter prefix would be:

Code: Select all

Chapter <$t:chapter>
<$img:<$custom:ChapterGraphic>;w=150>


(You could leave the <$title> token in there, but you could also just click the checkbox that adds the title after the prefix.)
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

sh
shamguy4
Posts: 3
Joined: Mon May 02, 2016 2:23 am
Platform: Mac

Sun Nov 26, 2017 12:47 am Post

Cool!
thanks for the tip!