Skip to content

Commit

Permalink
Inline external files
Browse files Browse the repository at this point in the history
In order for this class file to be useful for other
documents, without having to sort out various files
and their linking, a bunch of stuff that previously lived
in other files was inlined into the class file itself:

- translations
- lua code
- pgf code
- titlepage

Now, all that's needed is the cls file itself.

The big drawback is that the class file is now pretty big, ugly
and unwieldy...
  • Loading branch information
alexpovel committed Oct 6, 2021
1 parent c1260ca commit 1e27372
Show file tree
Hide file tree
Showing 7 changed files with 1,953 additions and 915 deletions.
15 changes: 0 additions & 15 deletions chapters/frontmatter.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,6 @@
\maketitle% Print main title page
\subimport{frontmatter/}{colophon}

\makeatletter
% Switch titlepage style around
\ifdefstring{\acp@titlestyle}{book}{%
\renewcommand*{\acp@titlestyle}{thesis}%
}{%
\renewcommand*{\acp@titlestyle}{book}%
}
\subtitle{An alternative title page style}
%
% Run this file again, since it contains the \renewcommand definitions
\subimport{other/}{titlepage.tex}
\makeatother

\maketitle% Print alternative title page

\frontmatter% In KOMAScript, resets pagenumber, uses Roman numerals etc.

% Note that \subincludefrom{}{} cannot be nested, therefore us \subimport
Expand Down
2 changes: 1 addition & 1 deletion chapters/mainmatter/code-listings.tex
Original file line number Diff line number Diff line change
Expand Up @@ -411,4 +411,4 @@ \section{Lua}

Files can also be read into \LaTeX{} directly.
For example, the following is some current Lua code \emph{used for this very document}:
\inputminted{lua}{./lib/lua/envvar_newcommands.lua}
\inputminted{lua}{./lib/example.lua}
115 changes: 0 additions & 115 deletions chapters/other/titlepage.tex

This file was deleted.

Loading

0 comments on commit 1e27372

Please sign in to comment.