Text Types
The Front Page
The front page has the form
\frontpage{Title}%
{path/to/image.jpg}%
{Subtext}
Boxtex
Sometimes you want to introduce an example of what to read out to players:
At the centre of the room sits a corpse, clutching a longsword by the tip.
You can get this in Latex with the boxtext
environment:
\begin{boxtext}
At the centre of the room sits a corpse, clutching a longsword by the tip.
\end{boxtext}
Speech Text
If your example phrasing is all about someone speaking, try using speech text:
\begin{speechtext}
Hear ye, hear ye!
\end{speechtext}
This would produce a box in italics:
Hear ye, hear ye!
Examples
To make italicised examples of stories, or input blocks of history, you can use the exampletext
environment:
\begin{exampletext}
Arnor, intent on bashing through the knight's heavy armour, bludgeons him withe heavy end of his sword.
\end{exampletext}
This environment does not show up in the non-verbose versions (see the repo overview page).
Locations
Encounters are often tied to locations, which have maps.
To make an entry in a map, you can use the \mapentry
command, which makes a 'subsubsection' with a number, and requires a label.
To make a map entry called 'The Port Cullis', you would use:
\mapentry{The Port Cullis}{portCullis}
This would then produce the output:
(1) The Port Cullis
Each new map entry increases the number by 1.
You can reference the room, by using \ref{portCullis}
, e.g.:
The only escape route is through the Portcullis, (see room \ref{portcullis}).
Placing Maps
Place a map with the \mapPic
command:
\mapPic{t}{artist/funky_town}{
\ref{castleMoat}/20/18,
\ref{portcullis}/50/8,
}
- Argument 1 specifies
t
op orb
ottom. - Argument 2 specifies where the image is in the
images
directory. You don't need the extension - it simply has to be eithersvg
orjpg
. - Argument 3 is a big list of numbers on the map.
- The first part is the actual number which appears on the map.
- It doesn't have to be a number. You can write
Bob
, and 'Bob' will appear on the map. - You can make it a
\ref{someRoom}
label to automatically get the room number. - You could also place the name there by simply doing
\nameref{portcullis}
, which would show up as 'Portcullis'. - Or add a
\rotatebox{45}{Bob}
command around the label so the label rotates.
- Argument 3 also has the coordinates in terms of X/Y percentages upon the images, so 'Bob/30/8' places the word 'Bob' 30% along the image, and 80% up (so we're starting from the bottom-left).
Small Maps
The \smolMapPic
works the same way, but takes small maps which sit in the middle of a column of text.
Pictures
We have the following four commands:
\pic{artistName/imageName}
\sidepic{artistName/imageName}
\widePic{artistName/imageName}
The image's extension can be either jpg
or svg
, but the extension itself is not written.
All images must be in the images
directory.
The \sidepic command can also take an optional argument for how big it is.
\sidepic[3]{artistName/imageName}
This makes an image which is 30% the size of the text column, while writing '7' would make an image 70% the size of the text column.
Each image uses the location as a label, so if you display an image with \pic{Frazetta/killerBlob}, you can display the page number later with
\autopageref{Frazetta/killerBlob}`.
The \widePic{}
goes at the bottom of the page by default, but you can put it at the top with \widePic[t]{}
.