Callouts
A callout is a passage set off from the rest of the text and numbered on its own — a technical session, a case study, a note to the reader, a worked example. It behaves like a block quote, in that it is a container holding whatever you put in it, but it also carries a heading of its own, gets a number, can be cross-referenced, and can be collected into a list at the back of the book.
Defining a kind
Callouts come in kinds, and you define them. A textbook might have Technical Session and Case Study; a devotional might have just For Reflection. Nothing is defined to begin with, so the first step is always to make a kind.
Callouts live in the paragraph style dropdown, alongside Blockquote — they are chosen the same way. Open it and pick (New Callout Kind…) at the bottom. Give the kind a name in the singular — "Technical Session", not "Technical Sessions" — because the name is what appears in front of the number: Technical Session 3. Inkwell works out the plural on its own for the list page.
Whatever you had selected becomes a callout of the new kind straight away.
You can also add and edit kinds under Callouts in Project Settings.
Inserting one
Select the paragraphs you want set off and pick the kind from the style dropdown. The whole selection is wrapped, so you can take in a run of paragraphs, a list, a table — anything.
With the cursor inside a callout the dropdown shows its kind rather than the style of the paragraph you are in. Pick a different kind to change what it is, or pick Paragraph to take the callout apart — exactly as choosing a style inside a block quote takes you out of the quotation. The content stays; only the callout around it goes, and a title becomes an ordinary paragraph.
Giving it a title
A new callout starts with an empty title line at the top, marked Title (optional), and the cursor waiting in it — so you can name the thing as you make it. The title is what appears in the callout's heading and in the list at the back.
It really is optional. Press Enter to leave it empty and move down into the body, and a callout with no title simply shows its label and number. Press Backspace on the empty title line to take it off altogether.
To carry on writing after a callout — including one that ends the chapter, with nothing below it yet — press Enter on an empty last line, or click just beneath it.
Adjusting one callout
A kind's settings apply to every callout of that kind. To change just one, put the cursor inside it and open the Callout section of Local Settings. Its spacing and paragraph settings start out as the kind's; change one and only this callout follows. Like the kind's paragraph settings, these apply to the callout's content only; the lines the template draws keep their own formatting.
The template
Everything a reader sees around a callout's content comes from a template you can edit, rather than from a row of settings. Open Project Settings, find your kind under Callouts, and click Edit Template.
The template is ordinary document content with variables in it:
- Label — the kind's name, "Technical Session"
- Number — the number, "3" or "1.4"
- Title — the title you typed on the callout's first line
- Body — where the callout's own content goes
Body is the important one. Give it a line of its own, with nothing else on that line. Whatever you put above it becomes the callout's header, and whatever you put below it becomes its footer. So a rule above and below, a bold label line, a closing "— end of session" — all of it is just content you type into the template, in the order you want it.
The kind's paragraph settings — its font, size, alignment, background — are for the callout's content. The template's own lines are not part of the content, so they keep the formatting you give them in the template: to set the title in a different font or size, select it in the template and format it there.
The default template is one bold line reading Label Number: Title, followed by the body. If a callout has no title, the colon disappears with it; if the kind is not numbered, the number disappears and the colon stays to separate the label from the title: "Technical Session: Measuring Drag". You never end up with a stray "Technical Session 3: " and nothing after it.
Boxes and frames
The template can hold anything a page can hold, and tables are how you draw boxes. A table cell's shading, borders and padding are what the box looks like — set them the way you would for any table.
- A shaded title band. Put Label Number: Title in a one-cell table above Body. The band sits over the content, and the content runs on below it.
- A framed callout. Put Body inside a table cell. The cell's shading and borders now surround the callout's content itself. A Title line in the same cell, above Body, sits inside the frame with it.
- A header over a frame. Make a one-column table with two rows: Label Number: Title in the top cell, Body in the bottom one. Shade them differently for a coloured header bar over a lighter box. The header never ends a page on its own: if the content can't start below it, both move to the next page.
Body can also go inside a block quote, which indents the content. Whatever frames it, the content keeps the callout's own text style, set under the kind's settings, rather than the cell's or the quote's. A title in a shaded cell shows on the cell's shading, even when the kind gives its paragraphs a background of their own.
The editor draws all of these the way the page will, with the content still editable inside the frame. That works because Title and Body are placed where the editor can follow them: Body at the top of the template, in a table cell or in a block quote — not in a list — and Title above Body, either in the same cell or quote, in a one-cell table, or in the cell directly above Body's. The template editor marks a Title or Body anywhere else in red; hover over it to see what will happen instead. A Title that can't stay where it is goes on its own line just above the content, and a Body that can't stay puts the content after the whole template.
Numbering
Each kind is numbered independently, so Case Study 1 and Technical Session 1 can sit on the same page without either looking wrong. Under the kind's settings:
- Numbered By — Chapter restarts in every chapter, Book runs straight through from beginning to end, and Not Numbered leaves the callout without a number at all.
- Numbering — numerals, letters, roman numerals and the rest.
- Include Chapter Number Prefix — whether a chapter-numbered callout reads "3" or "1.3".
Numbers are worked out as you write. Insert a callout in chapter two and every later callout of that kind renumbers itself immediately, in the editor as well as in the PDF.
Referring to one
Type the kind's name followed by a space — Technical Session — and a list of that
kind's callouts appears; pick one and Inkwell inserts a live cross-reference to it. The
reference shows the callout's number and follows it if the numbering changes.
Each kind has its own trigger, so typing Case Study offers only the case studies. Rename
a kind and the trigger changes with it.
The list at the back
Each kind can have its own list page, the way figures have a List of Figures. Open the + menu at the top of the chapter list and choose List of Technical Sessions — one entry appears there for every kind you have defined.
The page lists that kind alone, in the order the callouts appear in the book, with the page each one starts on. Its layout is a template too: open it from the kind's settings to change what the rows hold. Its title starts out as "List of …" and you can rename it by editing the heading on the page itself.
Callouts and comments
Callouts are part of the book: they are printed, numbered and listed. They are not the same thing as the comments you leave for a collaborator, which sit in the text between one paragraph and the next and never appear in the finished book — those are covered in Collaboration.