Skip to content

In the DndTable environment, permit the @{} column syntax and the \multicolumn command #370

@Whooleg

Description

@Whooleg

Hello! I'm loving this template so far. I found some unexpected behavior in the DndTable environment.

Description

Currently the DndTable environment does not support the @{} syntax for adding text between columns, or the \multicolumn command for spanning more than one column in a single row, as in typical tabular environments. Instead of inserting the desired characters or adjusting the spacing, LaTeX exits with regex errors or misplaced \omit errors respectively.

The form and purpose of the @{} tabular column syntax can be found in the LaTeX 2e Unofficial Reference Manual page 86. The \multicolumn command definition can be found on page 88 (The URL page number differs due to title pages.)

Consider adding functionality, or generating descriptive error messages.

Example:

\begin{DndTable}[header=Trap Construction]{r@{--}lX}
    \multicolumn{2}{c}{DC} & Result \\
    0 & 7 & Construction fails \\
    8 & 12 & DC 8 save, \DndDice{1d6} \\
    13 & 16 & DC 10 save, \DndDice{1d8} \\
    17 & 19 & DC 15 save, \DndDice{1d10} \\
    \multicolumn{2}{c}{20} & DC 20 save, \DndDice{2d10}
\end{DndTable}

Thank you so much for all of your hard work on this DnD template! It generates stunning documents, and it's inspired me to try writing down a few one-shots that I've designed! Keep up the great work <3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions