From aff88e2a2206da5d8d6e01af45aa1c21001990b8 Mon Sep 17 00:00:00 2001 From: Max Value Date: Sun, 23 Nov 2025 10:41:19 +0000 Subject: [PATCH] MERGED --- .gitignore | 2 + Makefile | 15 ++++-- docs/001.tex | 3 +- docs/002.tex | 2 + docs/003.tex | 2 + docs/004.tex | 2 + docs/dev.cls | 94 ++++++++++++++++++++++++++++++++++++++ media/ootcoutline.pdf | Bin 0 -> 2606 bytes media/svg/ootcoutline.svg | 38 +++++++++++++++ 9 files changed, 153 insertions(+), 5 deletions(-) create mode 100644 docs/dev.cls create mode 100644 media/ootcoutline.pdf create mode 100755 media/svg/ootcoutline.svg diff --git a/.gitignore b/.gitignore index 4469528..a6906b1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ **/build +docs/*.pdf +.log diff --git a/Makefile b/Makefile index 1d9906b..c70d1f2 100644 --- a/Makefile +++ b/Makefile @@ -6,17 +6,19 @@ all : pdf tidy .PHONY : pdf pdf : $(documents) -$(documents) : ./media/goodnight.pdf ./media/ootcblack.pdf ./media/ootccolor.pdf ./media/ootcgray.pdf +$(documents) : ./media/goodnight.pdf ./media/ootcblack.pdf ./media/ootccolor.pdf ./media/ootcgray.pdf ./media/ootcoutline.pdf + tail -n +2 "docs/$@.tex" > ./build/temp.tex + # compile as pdf for screens using the ootc-pdf format (twice) - pdflatex -output-directory="./build" -interaction="nonstopmode" -jobname='$@' -output-format='pdf' "\documentclass{ootc-pdf}\input{docs/$@}" - pdflatex -output-directory="./build" -interaction="nonstopmode" -jobname='$@' -output-format='pdf' "\documentclass{ootc-pdf}\input{docs/$@}" + pdflatex -output-directory="./build" -interaction="nonstopmode" -jobname='$@' -output-format='pdf' "\documentclass{ootc-pdf}\input{build/temp}" + pdflatex -output-directory="./build" -interaction="nonstopmode" -jobname='$@' -output-format='pdf' "\documentclass{ootc-pdf}\input{build/temp}" # make the titlepage for the document # pdfjam ./build/$@.pdf 1 -o ./build/cover-$@.pdf # magick -density 60x60 ./build/cover-$@.pdf -quality 90 -background white -flatten -alpha off ./build/$@.png # compile as epub using the ootc-epub format - latexmlc --dest=./build/$@.epub --base=./build --includestyles "literal:\documentclass{ootc-html}\input{docs/$@}" + latexmlc --dest=./build/$@.epub --base=./build --includestyles "literal:\documentclass{ootc-html}\input{build/temp}" ./media/goodnight.pdf : inkscape -D ./media/svg/goodnight.svg -o ./media/goodnight.pdf @@ -30,9 +32,14 @@ $(documents) : ./media/goodnight.pdf ./media/ootcblack.pdf ./media/ootccolor.pdf ./media/ootcgray.pdf : inkscape -D ./media/svg/ootcgray.svg -o ./media/ootcgray.pdf +./media/ootcoutline.pdf : + inkscape -D ./media/svg/ootcoutline.svg -o ./media/ootcoutline.pdf + .PHONY : tidy tidy : -rm latexml.log + -rm .log + -rm ./build/temp.tex -rm ./build/*.log ./build/*.aux ./build/cover-* .PHONY : clean diff --git a/docs/001.tex b/docs/001.tex index c360a70..52e7320 100644 --- a/docs/001.tex +++ b/docs/001.tex @@ -1,4 +1,5 @@ -% \documentclass{../ootc-pdf} +\documentclass{dev} + \usepackage{amssymb} \title{Defining the rule: What \textit{is} The Commissioner (all hail) anyway?} diff --git a/docs/002.tex b/docs/002.tex index 111393a..a0f905b 100644 --- a/docs/002.tex +++ b/docs/002.tex @@ -1,3 +1,5 @@ +\documentclass{dev} + \usepackage{soul} \title{The Deck} diff --git a/docs/003.tex b/docs/003.tex index d312f39..fb5bf79 100644 --- a/docs/003.tex +++ b/docs/003.tex @@ -1,3 +1,5 @@ +\documentclass{dev} + \usepackage{amssymb} \title{The Game and The Guide} diff --git a/docs/004.tex b/docs/004.tex index 5c3fd86..e7adf86 100644 --- a/docs/004.tex +++ b/docs/004.tex @@ -1,3 +1,5 @@ +\documentclass{dev} + \usepackage{amsmath} \usepackage{soul} diff --git a/docs/dev.cls b/docs/dev.cls new file mode 100644 index 0000000..52f150a --- /dev/null +++ b/docs/dev.cls @@ -0,0 +1,94 @@ +% --------------------------------------------------------- +% Documentation class for documentation of the Office of +% the Commissioner (all hail). +% +% This file is licenced under the Blackjack 2 Esoteric +% Licence. +% --------------------------------------------------------- + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{dev}[27/08/2025 Class for typesetting documentation content before being published.] + +\LoadClass{article} +\usepackage{tikz} +\RequirePackage{graphicx} +\RequirePackage[table]{xcolor} +\graphicspath{{./media/}} +\RequirePackage[ + a4paper, + top=2cm, + bottom=4cm, + left=4cm, + right=2cm, + ]{geometry} +\RequirePackage{helvet} +\renewcommand{\familydefault}{\sfdefault} +\RequirePackage{draftwatermark} + +% --------------------------------------------------------- +% Colour setup + +\definecolor {ootc-blue} {HTML} {8BE7FF} +\definecolor {ootc-pink} {HTML} {F49AC0} +\definecolor {ootc-green} {HTML} {7CC576} + +% --------------------------------------------------------- +% Additional option setup + +\newcommand*{\id}[1]{\gdef\@id{#1}} +\newcommand*{\@id}{DRA} +\newcommand*{\type}[1]{\gdef\@type{#1}} +\newcommand*{\@type}{Draft} +\newcommand*{\exerpt}[1]{\gdef\@exerpt{#1}} +\newcommand*{\@exerpt}{} +\newcommand*{\version}[1]{\gdef\@version{#1}} +\newcommand*{\@version}{v1.0} + +% --------------------------------------------------------- +% Re-make the title in the OotC style +% --------------------------------------------------------- + +% Titlepage 1 +\renewcommand{\maketitle}{% + \begin{titlepage} + \begin{flushright} + {\Huge\noindent\textbf{\@id}\par} + {\Large\noindent\@type\par} + \vspace{5mm} + {\Huge\noindent\textbf{\@title}\par} + \vspace{5mm} + \end{flushright} + \vspace*{\fill} + {\large\noindent\textit{% + \textbf{The Office of the Commissioner (all hail)} + }% + }% + \tikz[% + remember picture, + overlay, + shift=(current page.east) + ]% + \node[inner sep=0pt] + at (-3cm,-2cm){% + \includegraphics[width=12cm]{ootcoutline} + }; + \clearpage + \thispagestyle{empty} +% --------------------------------------------------------- +% Titlepage 2 + \newpage + \section*{Document information} + \@title\par + Item \@id \textit{(\@version)}\par + \begin{quotation} + \noindent\textcolor{gray}{\textit{% + "\@exerpt{}" + }} + \end{quotation} + \thispagestyle{empty} + \end{titlepage} + \pagenumbering{arabic} +} + +% --------------------------------------------------------- +\endinput diff --git a/media/ootcoutline.pdf b/media/ootcoutline.pdf new file mode 100644 index 0000000000000000000000000000000000000000..06f641be42ab85408409373e52ab529221c7d2b1 GIT binary patch literal 2606 zcma);2{e>#8^;Yo!@RODdG*Lr5;J3FEMaU}r-qra#26W4>`XCsQ&g{=3emiuC@GYs zL>OD?r6@|%P(s;Lc1b9G!&iOpIi2r2?{l7W-}iOj&vTvsb^g~mzgyM*prs~U3k6oK znWC_PJ97v{94^k;KFDe*~28Yr^ zsN^7UWL{9t;R;QZ$eBqO3mub3XD<~<0ZMS5gd~u^%8mmOak94<%^}_9ZrhET*t&xm zl!ngnYPZ!D$I;>%7gkra(+TwRg3|WlUCkXwzu}i?C$G7#De4$~>nf(LezRJensmc- zwWvLQGj1H3`umEE%wP)SK_PSU>;Tbku!j6}z=`>?A3madDt?`Y<{%Xxg87(+B^0Fw=9mko`TRNB3@nkFr57p|KBLbt$B5 z9Q~MSb<;6dA%lJFFQW6v>6MqRJ-=b^Ts3c9-_LnTZfn>dB(dJj7_Dscn=BeIu*>DE z-;>SBO)Gtb8-{gKq?F~9TXL*Yv-@A$PvH|dk18thH+lR6zw(b|owPgPx4)jhR+KTh zB%nh8IoerFEbdNKF0kFvNaW$X#%t;!pC#K!MIo~XFS>K?WMlRKixfyDjnDza)cSXLZ@Oy``BT@ zBN9g;85J(=?>ZTxa7v%ALgrl97{n;P&sj2tc=>~QqDP8Qb$<5w(a49dknUmf>5>lN z3s*?B{*U42P-%m=mt3P}8s|^jtN0VI-suxc(QSS}FwH3MOJA`ZH&S zG>{eDDiobcz*3o}AnM7heLf*Ad)K{u>CbL!(P?~u;WGilL?scPs}oC)%l5>{-FDh> zLW?lLNJby&Q#Yy>QC3%g(>s_?trcAz#k{v|giB2%cL9p8Y77Hzx!0fGb*A6vsF+b_ z2Efe3>Asb0(c%?vc^WCC)ZfZfIf43Qt|^5q=uxY*7p=B$EUa}`ir`2MFMh@YgKal*T=Y~uDEDm6sPSyiSNg-#`&3aN7TJ;6o^TGO zSC8F0njAQM%QkdYWjMS4d6>HMIzE}x>ys+>V1YNQx9;jWYmUHrh9#sktJX_AlD_kD z?<6ZmB?v5Jhria>!m@Hln_nxflBa($=$c}Y_%0`O2C{{5Ih@@+Uz-)CWi85vA|USs z7p!S5LFDAja-?ql)q(&d*>@p{CFEwt>M9d96D`Cap?($`quhs-voTGT=S*xMtDV=s zM9b3SJB#p!#}0c#;cT<7`+|=?vp(4>8ts&|WZu||vIszF1{qUS%SmEdw^o*$9gi(5 z)myi> z?$f#07ZRC?UxJR~8FC2xVL-h1**^DT19|>Csm`M$1P zX6As?+@77I!7m;Diium;OLj%DNX4aYm|BR1bPP)Lx@`&O#nrB*8wvOA)yxw4tDpaN zg+1mcpGNDM>zSS|9kW$3XIl=Wpd;Frj2VlR4K$-*1N2ca>NS`e?DZWX+|?$0Hi@%2 zbD0B2>1%I(uo)tLvT2J(7Ljx-0-Z}Dz|e4WgZn_qFm3=q%}oI~0Hu(*BbQIy1MbLu zzvt2YnFoM6L>;37P&-e50zGIe>v!ns{e&JCfNvdG`h|qj0p$1f{|6z00DGGV-Xi}aQOXvE1=CK5&W{95C1`G8qIyJ){sOw(O( zRa40Y3=a^~>mx|J7uO0Jig938EW~yAb9TlAbYF6i#;aGO;`n7$5ilOxVi`Ws!BO6ZYM7r+tF#;}h_t z=Wjgg=FfgBbZSktBfQBjYbFH@So<}1bfo}IBYBa`wfiZ;qm!f zL2`UnJm??{URCbx;o9k58{Cw6M+9( ZWhk8-LXQmL7NCvL)dQ=lTG&~F{|%kSWn%yU literal 0 HcmV?d00001 diff --git a/media/svg/ootcoutline.svg b/media/svg/ootcoutline.svg new file mode 100755 index 0000000..d7249b9 --- /dev/null +++ b/media/svg/ootcoutline.svg @@ -0,0 +1,38 @@ + + + + + + -- 2.39.2