From 3e6504e5c10fd1295404bc954a762091648e5d5d Mon Sep 17 00:00:00 2001 From: Bokuan Li Date: Tue, 10 Mar 2026 22:44:38 -0400 Subject: [PATCH] Initial commit. --- .gitignore | 1 + README.md | 3 +++ document.tex | 14 ++++++++++++++ part1.tex | 20 ++++++++++++++++++++ preamble.sty | 5 +++++ refs.bib | 7 +++++++ spec.toml | 14 ++++++++++++++ 7 files changed, 64 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 document.tex create mode 100644 part1.tex create mode 100644 preamble.sty create mode 100644 refs.bib create mode 100644 spec.toml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1901059 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +spec.db \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..dc98c6c --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Spec Template + +This is a starter project for using `spec`. diff --git a/document.tex b/document.tex new file mode 100644 index 0000000..9b26a56 --- /dev/null +++ b/document.tex @@ -0,0 +1,14 @@ +% \documentclass{report} +\usepackage{amssymb, amsmath, hyperref} +\usepackage{preamble} + +\begin{document} + +Hello world! + +\input{./part1} + +\bibliographystyle{alpha} % We choose the "plain" reference style +\bibliography{refs} % Entries are in the refs.bib file + +\end{document} diff --git a/part1.tex b/part1.tex new file mode 100644 index 0000000..4a936f3 --- /dev/null +++ b/part1.tex @@ -0,0 +1,20 @@ +\part{The First Part} +\label{part:first} + +The following are the contents for the first part. + +\chapter{The First Chapter} +\label{chapter:first} + +Say hello to the first chapter. Test command: $\test$. + +\begin{theorem}[Example Theorem] + \label{theorem:example} + + Example theorem content. +\end{theorem} +\begin{proof} + See \cite[Page 120]{Example}. +\end{proof} + + diff --git a/preamble.sty b/preamble.sty new file mode 100644 index 0000000..edcd478 --- /dev/null +++ b/preamble.sty @@ -0,0 +1,5 @@ +\newtheorem{theorem}{Theorem}[chapter] +\newtheorem{proposition}[theorem]{Proposition} +\newtheorem{lemma}[theorem]{Lemma} + +\newcommand{\test}{\text{Test Command}} \ No newline at end of file diff --git a/refs.bib b/refs.bib new file mode 100644 index 0000000..800ba5d --- /dev/null +++ b/refs.bib @@ -0,0 +1,7 @@ +@book{Example, + title={Example Citation Entry}, + author={Example Author}, + url={https://www.youtube.com/watch?v=dQw4w9WgXcQ}, + year={2009}, + publisher={Unknown Publisher} +} \ No newline at end of file diff --git a/spec.toml b/spec.toml new file mode 100644 index 0000000..dd24777 --- /dev/null +++ b/spec.toml @@ -0,0 +1,14 @@ +database = "spec.db" +document = "document.tex" +siteTitle = "Unnamed Website" + +[compiler] +compileAll = false +redoTags = false +indirectReferences = true + +[website] +font = "cmu-serif" +primaryColour = "blue" +neutralColour = "grey" +searchLimit = 18