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

Various Changes #278

Open
wants to merge 17 commits into
base: 0.8
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Evan Bergeron
Copyright (c) 2020 by the RPGTeX Team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 0 additions & 1 deletion dndcore.def
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
% Load other modules of this package after all dependencies to avoid load order
% conflicts (e.g., package options).
% Low-level modules first.
\RequirePackage {lib/compat} % compatibility definitions
\RequirePackage {lib/dndutility} % utility functions
ravenclaw900 marked this conversation as resolved.
Show resolved Hide resolved
\RequirePackage {lib/dndcolors} % color definitions
\RequirePackage {lib/dndfonts} % font definitions
Expand Down
14 changes: 0 additions & 14 deletions lib/compat.sty

This file was deleted.

4 changes: 4 additions & 0 deletions lib/dnddeprecated.sty
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Depracated code - to be removed in version 1.0.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

ravenclaw900 marked this conversation as resolved.
Show resolved Hide resolved
\RequirePackage {keycommand}

\ExplSyntaxOn
Expand Down
7 changes: 4 additions & 3 deletions lib/dndmonster.sty
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
\ExplSyntaxOn

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Monster environments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

ravenclaw900 marked this conversation as resolved.
Show resolved Hide resolved
\NewDocumentCommand {\DndCRExp} { m }
{
\str_case_e:nnF {#1}
Expand Down Expand Up @@ -43,9 +47,6 @@
{#1}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Monster environments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Stat block made to look like the Monster Manual NPC definitions
\DeclareTColorBox {DndMonsterNoBg} { O{} m }
{
Expand Down
7 changes: 4 additions & 3 deletions lib/dndsections.sty
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
\ExplSyntaxOn

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Section formatting
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

ravenclaw900 marked this conversation as resolved.
Show resolved Hide resolved
\bool_if:NT \l__dnd_layout_bool
{
% Change part numbering to Arabic numbers from Roman numerals
Expand All @@ -13,9 +17,6 @@
% Remove Numbering (If you want Numbering set secnumdepth to the appropriate depth)
\setcounter{secnumdepth}{0}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Section formatting
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Part
\titleformat {\part}
[display]
Expand Down
7 changes: 6 additions & 1 deletion lib/dndstrings.sty
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
\ExplSyntaxOn % Use tilde (~) for spaces.
\ExplSyntaxOn

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Strings for multi-language support
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Use tilde (~) for spaces.
% \addto\captions<language> cannot handle macros with parameters
% We need to make our own parameters
% |1| represents parameter 1
Expand Down
4 changes: 4 additions & 0 deletions lib/dndtable.sty
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
\ExplSyntaxOn

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Environment for colored tables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Centered Column
\newcolumntype { Y }
{ > { \centering \arraybackslash } X }
Expand Down
4 changes: 4 additions & 0 deletions lib/dndtoc.sty
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
\ExplSyntaxOn

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Custom table of contents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\bool_if:NT \l__dnd_layout_bool
{
\RequirePackage{titletoc}
Expand Down
4 changes: 4 additions & 0 deletions lib/dndutility.sty
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
\ExplSyntaxOn

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Other useful things
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Useful regex strings
\regex_const:Nn \c__pos_int_regex { \d+ }

Expand Down
5 changes: 5 additions & 0 deletions lib/languages/_template.sty
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
\ExplSyntaxOn % Use tilde (~) for spaces.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% <language> captions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\addto\captions<language> % Replace <language> tag with your language
{
% Monster basics
Expand Down Expand Up @@ -69,4 +73,5 @@
% % Miscellaneous
\renewcommand\pageabbreviationname{pg.}
\renewcommand\dname{d}
\renewcommand\tocchapterabbreviationname{Ch.}
}
6 changes: 4 additions & 2 deletions lib/languages/italian.sty
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
\ExplSyntaxOn
% Use tilde (~) for spaces.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Italian captions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\addto\captionsitalian
{
% Monster basics
Expand Down Expand Up @@ -71,5 +73,5 @@
% Miscellaneous
% \renewcommand\pageabbreviationname{pg.}
% \renewcommand\dname{d}
% \newcommand\tocchapterabbreviationname{Ch.}
% \renewcommand\tocchapterabbreviationname{Ch.}
}
7 changes: 5 additions & 2 deletions lib/languages/japanese.sty
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
\ExplSyntaxOn % Use tilde (~) for spaces.
\ExplSyntaxOn

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Japanese captions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\addto\captionsjapanese
{
% Monster basics
Expand Down Expand Up @@ -66,5 +69,5 @@
\renewcommand\spelldurationname{持続時間}
% Miscellaneous
\renewcommand\dname{d}
% \newcommand\tocchapterabbreviationname{Ch.}
% \renewcommand\tocchapterabbreviationname{Ch.}
}
9 changes: 6 additions & 3 deletions lib/languages/ngerman.sty
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
\ExplSyntaxOn % Use tilde (~) for spaces.
\ExplSyntaxOn

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% German captions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\addto\captionsngerman
{
\renewcommand\armorclassname{Rüstungsklasse}
Expand Down Expand Up @@ -62,7 +65,7 @@
\renewcommand\spellcomponentsname{Komponenten}
\renewcommand\spelldurationname{Wirkungsdauer}
% Miscellaneous
% \renewcommand\pageabbreviationname{pg.}
% \renewcommand\pageabbreviationname{pg.}
\renewcommand\dname{W}
% \newcommand\tocchapterabbreviationname{Ch.}
% \renewcommand\tocchapterabbreviationname{Ch.}
}
7 changes: 5 additions & 2 deletions lib/languages/russian.sty
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
\ExplSyntaxOn % Use tilde (~) for spaces.
\ExplSyntaxOn

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Russian captions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\addto\captionsrussian
{
% Monster basics
Expand Down Expand Up @@ -70,5 +73,5 @@
% % Miscellaneous
% \renewcommand\pageabbreviationname{pg.}
% \renewcommand\dname{d}
% \newcommand\tocchapterabbreviationname{Ch.}
% \renewcommand\tocchapterabbreviationname{Ch.}
}
6 changes: 5 additions & 1 deletion lib/languages/spanish.sty
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
\ExplSyntaxOn % Use tilde (~) for spaces.
\ExplSyntaxOn

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Spanish captions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\addto\captionsspanish
{
Expand Down
Binary file modified scrot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.