Initial commit.

This commit is contained in:
Bokuan Li
2026-03-10 22:44:38 -04:00
commit 3e6504e5c1
7 changed files with 64 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
spec.db

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# Spec Template
This is a starter project for using `spec`.

14
document.tex Normal file
View File

@@ -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}

20
part1.tex Normal file
View File

@@ -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}

5
preamble.sty Normal file
View File

@@ -0,0 +1,5 @@
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\newcommand{\test}{\text{Test Command}}

7
refs.bib Normal file
View File

@@ -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}
}

14
spec.toml Normal file
View File

@@ -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