在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):rpgtex/DND-5e-LaTeX-Template开源软件地址(OpenSource Url):https://github.com/rpgtex/DND-5e-LaTeX-Template开源编程语言(OpenSource Language):TeX 96.9%开源软件介绍(OpenSource Introduction):DnD 5e LaTeX TemplateThis is a LaTeX template for typesetting documents in the style of the fifth edition of the "world's greatest roleplaying game". Features
InstallationThere are three options for using this project; choose the one that's right for you.
User install using |
Option | Package dnd |
Class dndbook |
---|---|---|
bg |
✓ | ✓ |
justified |
✓ | ✓ |
layout |
✓ | |
nomultitoc |
✓ | ✓ |
nodeprecatedcode |
✓ | ✓ |
The dndbook
class also supports all the options of the book
class.
bg
Declare how to load background and footer images. This is a key-value option with the following possible values:
full
: Load both background and footer images. (default)none
: Removes both background and footer images.print
: Loads only the footer images.justified
Justify column copy.
layout
Controls whether loading the dnd
package also modifies the document layout (geometry, colors, typography, etc.).
This is a boolean option with the following possible values:
true
: Modify the document layout.false
: Do not modify the document layout.The default value is true
for backwards compatibility with early releases.
This will change in a future release.
nomultitoc
Disable multi-column table of contents.
nodeprecatedcode
Excludes all deprecated code from the build process.
If you don't have LaTeX installed, we recommend installing a complete TeX Live distribution.
sudo apt-get install texlive-full
sudo pacman -S texlive-bin texlive-core texlive-latexextra
MacTex has its own installer, but you can install it through brew cask:
brew cask install mactex
brew cask install mactex-no-gui
Use tlmgr
to install packages as needed, see this answer for more information
brew cask install basictex
brew cask install tex-live-utility
After any of this, use the following such that the texlive directory doesn't require admin rights.
sudo chown -R myuser:mygroup /usr/local/texlive
For more information about MacTex permissions, see the following StackExchange post
This is a known issue in tcolorbox
. According to the tcolorbox
4.12 manual (p. 363):
If your text content contains some text color changing commands, your color will not survive the break to the next box.
You can use LuaTeX to compile the document.
lualatex main.tex
monsterbox
in float disrupts spacing inside stat blockWrapping a monsterbox
(or monsterboxnobg
) in a floating figure adds extra space between stat block elements:
\begin{figure}[b]
\begin{monsterbox}{Orc Warden}
% ...
\end{monsterbox}
\end{figure}
Instead, use the tcolorbox
float
parameter:
\begin{monsterbox}[float=b]{Orc Warden}
% ...
\end{monsterbox}
Refer to the tcolorbox
documentation (section 4.13) for more float parameters.
We use EditorConfig to enforce consistent formatting. Install the appropriate plugin for your editor.
Run ./bin/bump-version
to tag the new version.
./bin/bumpversion <version>
Compile the example PDF.
Save the first page of the PDF as scrot.jpg.
Update the change log for the new release; commit your changes.
Push changes.
git push && git push --tags
Create a new release and attach the PDF and scrot.
MIT
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论