From 99bd7b079ef0e8671a8d47b6632e433e4d2119b1 Mon Sep 17 00:00:00 2001 From: HeNine <> Date: Fri, 14 Apr 2023 17:31:48 +0200 Subject: [PATCH] dawn of a new chron --- .gitea/workflows/build.yaml | 37 ++++++++++++ .gitignore | 5 ++ README.md | 4 ++ introduction.tex | 16 +++++ kingdoms.tex | 10 ++++ latexmkrc | 5 ++ main.tex | 116 ++++++++++++++++++++++++++++++++++++ moons.tex | 11 ++++ 8 files changed, 204 insertions(+) create mode 100644 .gitea/workflows/build.yaml create mode 100644 .gitignore create mode 100644 README.md create mode 100644 introduction.tex create mode 100644 kingdoms.tex create mode 100644 latexmkrc create mode 100644 main.tex create mode 100644 moons.tex diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..2982366 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,37 @@ +name: Build Chronicles +run-name: ${{ github.actor }} is building Chronicles +on: + push: + branches: + - main + +jobs: + Build-PDF: + runs-on: texlive-2023-04-09 + permissions: + contents: read + steps: + - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "This job is now running on a ${{ runner.os }}." + - run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + + - name: Install node + run: apt-get update && apt-get install -y nodejs + + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "The ${{ github.repository }} repository has been cloned to the runner." + + - name: Build PDF with `latexmk` + run: latexmk -pdf + + - name: Publish package + env: + PACKAGE_UPLOAD_TOKEN: ${{ secrets.PACKAGE_UPLOAD_TOKEN }} + run: | + curl --user henine:$PACKAGE_UPLOAD_TOKEN -X DELETE \ + https://git.raptorpond.com/api/packages/KaRTS/generic/chonicles/latest/ + curl --user henine:$PACKAGE_UPLOAD_TOKEN \ + --fail-with-body \ + --upload-file "Chronicles of Savits.pdf" \ + https://git.raptorpond.com/api/packages/KaRTS/generic/chronicles/latest/chronicles.pdf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..332f532 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +build +*.log +*.synctex.gz +.vscode +*.pdf \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..0692aaa --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +Chronicles of Savits +============================ + +Lore for in-development TTRPG. \ No newline at end of file diff --git a/introduction.tex b/introduction.tex new file mode 100644 index 0000000..b5c0619 --- /dev/null +++ b/introduction.tex @@ -0,0 +1,16 @@ +\chapter{Introduction} + +\begin{multicols}{2} + + \section*{Tides} + +The tides on Savits are unusually ferocious, rising from the all-encompassing ocean from which the land gets its name. When both Savitian moons align, the tides can flood deep in-land, often destroying crops and low-lying villages alike. + +Larger cities are often situated on hills or fortified with high walls to withstand the typical High Tides. The most famous such city is Krane, the capital of Kraain, where the water cascading over the city walls forms the famous Savits Falls. While some claim that the falls illuminated by the setting sun after a storm would make the gods themselves pause and stare, it has been suggested that this opinion is mostly held by those who have recently survived a High Tide in a storm. + +In most other cities, a storm on top of a High Tide means major reconstruction will be in order. If the local ruler is lucky, all that is needed is bucket chains and some fresh paint. If fortune does not favor them, however, their throne may be washed away entirely. Many a kingdom has survived generations before being washed away in a single night. Others survived the initial flood, but fell to famine and pestilence later. Mostly, they fall to other kingdoms, as those who were lucky enough to foresee a High Tide, emerge in a perfect position to press their advantage against their less fortunate neighbors. + +\section*{Geography} + +\end{multicols} + diff --git a/kingdoms.tex b/kingdoms.tex new file mode 100644 index 0000000..37cd762 --- /dev/null +++ b/kingdoms.tex @@ -0,0 +1,10 @@ +\chapter{Kingdoms and Rulers} + +\begin{multicols}{2} + + \section*{Kraain} + + % Capital Krane + +\end{multicols} + diff --git a/latexmkrc b/latexmkrc new file mode 100644 index 0000000..5435859 --- /dev/null +++ b/latexmkrc @@ -0,0 +1,5 @@ +@default_files = ('main.tex'); +$jobname = "Chromicles of Savits"; + +$aux_dir = "build"; +$emulate_aux = 1; \ No newline at end of file diff --git a/main.tex b/main.tex new file mode 100644 index 0000000..96e2a1e --- /dev/null +++ b/main.tex @@ -0,0 +1,116 @@ +\documentclass[a4paper,11pt,pagesize, openany]{scrbook} + +\KOMAoptions{ + numbers=noenddot, + chapterprefix, + parskip=half +} +\setlength{\footskip}{2.5em} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[english]{babel} + +\usepackage{scrlayer-scrpage} + +\usepackage[hidelinks]{hyperref} +\hypersetup{pdfpagelayout=TwoColumnRight,pdfstartview={XYZ null null 1.00}} + +\usepackage[dvipsnames]{xcolor} + +\usepackage[]{cleveref} + +\usepackage{multicol} +\setlength{\columnsep}{0.75cm} +\raggedcolumns +% \usepackage{blindtext} +% \usepackage{float} +\usepackage{wrapfig} +\usepackage{framed} + +% \usepackage[a4paper,bottom=2.2cm,hmarginratio=2:3,textwidth=10.5cm]{geometry} +\usepackage[a4paper,bottom=3.2cm,outer=2cm, inner=1.5cm, footskip=2.0cm]{geometry} + +% \usepackage{setspace} +% % \onehalfspacing + +% \usepackage[]{parskip} +% \usepackage{array} +% \renewcommand{\arraystretch}{1.2} + +\raggedbottom + +\usepackage[mode=match]{siunitx} + +% \renewcommand*\sfdefault{ugq} +\usepackage[scaled]{helvet} +% \usepackage{tgadventor} +\usepackage[]{scholax} + +\usepackage{microtype} + +\usepackage{anyfontsize} + +% \addtokomafont{chapter}{\scshape} + +\definecolor{chapterbrown}{RGB}{ 89, 25, 9} +\definecolor{sectionbrown}{RGB}{140, 39, 14} + + +\renewcommand{\chapterlineswithprefixformat}[3]{% +\color{chapterbrown}#2\MakeUppercase{#3}% +} + +\addtokomafont{section}{\color{sectionbrown}} +\addtokomafont{subsection}{\color{sectionbrown}} +\addtokomafont{subsubsection}{\color{sectionbrown}} +\renewcommand*{\chapterheadmidvskip}{\par\nobreak\vspace{0em}} +\newcommand{\clearpart}[1]{\cleardoubleevenpage\part{#1}} + +\addtokomafont{pagenumber}{\normalshape} + +\renewcommand\chapterpagestyle{plain} +\renewcommand\partpagestyle{empty} +\setkomafont{pagehead}{\footnotesize\sffamily} +\ihead[]{} +% \ohead[]{} +\lehead[]{Chronicles of Savits} +\cehead[]{} +\rohead[]{\leftmark} +% \ofoot[]{} +\ofoot[\pagemark]{\pagemark} + +\title{Chronicles of Savits} +\author{\texttt{HeNine}} +\date{2023} + +% Kingdoms +% And +% Rulers +% Savits +% Tides? + +\newcommand{\tochange}[1]{\textcolor{red}{#1}} + +\begin{document} +% \fontdimen2\font=1.25\fontdimen2\font + +\pagestyle{scrheadings} + + +\frontmatter + +\maketitle + +\tableofcontents + +\mainmatter + +\include{introduction} + +% \include{geography} + +\include{kingdoms} + +\include{moons} + +\end{document} diff --git a/moons.tex b/moons.tex new file mode 100644 index 0000000..a534b58 --- /dev/null +++ b/moons.tex @@ -0,0 +1,11 @@ +\chapter{The Moons of Savits} + +\begin{multicols*}{2} + \section*{Moon 1} + + \section*{Mura} + + Mura, also known as the Wanderer, is more unpredictable -- its position in the sky erratic and its size inconstant. When Mura starts to approach his sister, however, a High Tide is sure to follow. + + A lot has been written on Mura's travels, as his comings and goings can raise or topple whole kingdoms. Many have tried to predict his paths, but long-term prediction continues to elude even the best arithmeticians. +\end{multicols*} \ No newline at end of file