Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Whooleg opened this issue Jan 25, 2025 · 1 comment

Comments

@Whooleg
Copy link

Whooleg commented Jan 25, 2025

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

@BrianCriswell
Copy link
Member

Note to self: \multicolumn works on anything other than the first row. Something else is going on there, probably in the formatting setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants