initial commit

This commit is contained in:
Infendro committed 2025-07-13 15:51:32 +02:00
commit 6c87e9099a
32 files changed
+844

No files matched your search

+84
View File
@@ -0,0 +1,84 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{recipe}
\LoadClass{article}
\RequirePackage{amsmath}
\RequirePackage{fontspec}
\RequirePackage{geometry}
\RequirePackage{hyperref}
\RequirePackage{tocloft}
\setlength{\cftsecnumwidth}{0.8cm}
\setlength{\cftsubsecnumwidth}{1.2cm}
\geometry{papersize={210mm,297mm}, margin=2cm}
\setmainfont{JetBrains Mono}
\setlength{\parindent}{0pt}
\setlength{\parskip}{0.4cm}
\renewcommand{\contentsname}{recipes}
\newcommand{\recipes}
{
\tableofcontents
\newpage
}
\newenvironment{category}[1]
{
\section{#1}\label{category:#1}
\newpage
}
{}
\newenvironment{recipe}[1]
{
\subsection{#1}\label{recipe:#1}
}
{}
\newenvironment
{ingredients}[1][ingredients]
{
#1
\vspace{-0.4cm}
\begin{itemize}
\setlength{\itemsep}{0pt}
}
{
\end{itemize}
}
\newcommand
{\ingredient}[1]
{
\item[$\bullet\ $] #1
}
\newenvironment
{references}[1]
{
#1
\vspace{-0.4cm}
\begin{itemize}
\setlength{\itemsep}{0pt}
}
{
\end{itemize}
}
\newcommand
{\reference}[1]
{
\item[$\bullet\ $] \hyperref[recipe:#1]{#1}
}
\newcommand
{\separator}
{
\rule{\textwidth}{0.1mm}\vspace{4mm}
}
\newcommand
{\fraction}[2]
{$\frac{\text{#1}}{\text{#2}}$}