This package provides three different templates. They differ in the underlying \LaTeX{} classes that they use and in the way that they map the different Org headers to \LaTeX{} headers.
This is the most complete one. It will use the dndbook
\LaTeX{} class and it will map the headers starting at part
and going down from there.
This is an alternative version of the above. It also uses the dndbook
class, but the first level of headers is mapped to chapter
. This makes the output more compact as parts uses full pages.
This is the best style for short documents and it uses the dndarticle
class. Top level headers are mapped to sections
, therefore, there are less levels available than in the others.
\DndDropCapLine{T}{his package is designed to aid you in} writing beautifully typeset documents for the fifth edition of the world’s greatest roleplaying game. It starts by adjusting the section formatting from the defaults in \LaTeX{} to something a bit more familiar to the reader. The article formatting is displayed above.
Sections break up chapters into large groups of associated text. Sections are defined by using Org headings. Depending on the template selected, the headings will be mapped to different latex section types. See the org-latex-classes
variable to see how the mappings are done for the different templates.
Subsections further break down the information for the reader.
Subsubsections are the furthest division of text that still have a block header. Below this level, headers are displayed inline.
The paragraph format is seldom used in the core books, but is available if you prefer it to the “normal” style.
Subparagraph The subparagraph format with the paragraph indent is likely going to be more familiar to the reader.The description list allows hanging indented lists of options, such as those used for class features, background skill/tool proficiency options, and sometimes area features, for example:
- Doors:
- The doors are made from thick lumber and are unlocked.
- Light:
- The area is illuminated by candles placed in sconces on the walls. Each candle has had a continual flame spell cast on it. Dispelling a flame is rumoured to give grievous offence to the host.
- Ventilation:
- All areas contain an adequate air supply. The air is renewed via lung-like sacks that cling to the ceiling.
The module also includes functions to aid in the proper typesetting of multi-line section headers: \DndFeatHeader
for feats, \DndItemHeader
magic items and traps, and \DndSpellHeader
for spells.
The map region commands provides automatic numbering of areas. You just need to add the map tag to your headings and they will be considered part of a map. Notice that only headings equivalent to certain levels in the hierarchy (subsection
and subsubsection
when translated to \LaTeX) will be tagged in this way.
This is the village of hommlet.
Inside the village is the inn of the Welcome Wench.
There’s a blacksmith in town, too.
This is foo’s home, a hovel of mud and sticks.
This ditch has a board spanning it.
A five-foot hole reveals the dirt floor illuminated by a hole in the roof.
Published modules sometimes use plain numbers for locations, sometimes plain letters, and sometimes they prefix a character to the front of the numbers. The following options can be used to display in these forms. Notice that only the second heading has number/letters vs the two levels from the standard style:
Areas in the Numbered Dungeon have sequential numbers. This is done using the numberedmap tag in your headers:
The entry.
The trap.
The fight.
The exit.
Same as above but using the letteredmap tag in the headers:
The entry.
The trap.
The fight.
The exit.
The module has three environments for setting text apart so that it is drawn to the reader’s attention. readaloud
is used for text that a game master would read aloud.
The other two environments are the commentbox
and the sidebar
. The commentbox
is breakable and can safely be used inline in the text.
The sidebar
is not breakable and is best used floated toward a page corner as it is below.
Table head | Table head |
Some value | Some value |
Some value | Some value |
Some value | Some value |
Table head | Table head |
Some value | Some value |
Some value | Some value |
Some value | Some value |
Table head | Table head | Table head |
Some value | Some very long value that might expand more than one line | Some value |
Some value | Some value | Some value |
Some value | Some value | |
Some value | Some value | Some value |
Some value | Some value | |
Some value | Some value | Some value |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value | |
Some value | Some value |
This package provides several global color variables to style commentbox
, readaloud
, sidebar
, and dndtable
environments.
Color | Description |
commentboxcolor | Controls commentbox background. |
paperboxcolor | Controls paperbox background. |
quoteboxcolor | Controls quotebox background. |
tablecolor | Controls background of even dndtable rows. |
See Table tab:colors for a list of accent colors that match the core books.
Color | Description |
\rowcolor{PhbLightGreen} PhbLightGreen | Light green used in PHB Part 1 |
\rowcolor{PhbLightCyan} PhbLightCyan | Light cyan used in PHB Part 2 |
\rowcolor{PhbMauve} PhbMauve | Pale purple used in PHB Part 3 |
\rowcolor{PhbTan} PhbTan | Light brown used in PHB appendix |
\rowcolor{DmgLavender} DmgLavender | Pale purple used in DMG Part 1 |
\rowcolor{DmgCoral} DmgCoral | Orange-pink used in DMG Part 2 |
\rowcolor{DmgSlateGrey} DmgSlateGray (DmgSlateGrey ) | Blue-gray used in PHB Part 3 |
\rowcolor{DmgLilac} DmgLilac | Purple-gray used in DMG appendix |
\rowcolor{BrGreen} BrGreen | Light-gray used for tables in Basic Rules |
- Use
\DndSetThemeColor[<color>]
to setthemecolor
,commentcolor
,paperboxcolor
, andtablecolor
to a specific color. - Calling
\DndSetThemeColor
without an argument sets those colors to the currentthemecolor
. commentbox
,dndtable
,paperbox
, andquoteboxcolor
also accept an optional color argument to set the color for a single instance.
\DndSetThemeColor[PhbMauve]
\DndSetThemeColor[PhbLightCyan]
d8 | Item |
1 | Small wooden button |
2 | Red feather |
3 | Human tooth |
4 | Vial of green liquid |
6 | Tasty biscuit |
7 | Broken axe handle |
8 | Tarnished silver locket |
d8 | Item |
1 | Small wooden button |
2 | Red feather |
3 | Human tooth |
4 | Vial of green liquid |
6 | Tasty biscuit |
7 | Broken axe handle |
8 | Tarnished silver locket |
\appendix
\DndDropCapLine{U}sing the \appendix
command causes all subsequent chapters to be formatted as appendices. Neat!