Initial commit

This commit is contained in:
2025-04-24 00:33:12 +09:00
commit 9f68b841b2
46 changed files with 1881 additions and 0 deletions

43
class/nitonepage.cls Normal file
View File

@@ -0,0 +1,43 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{myonepage}[2025/04/09 My One Page Class]
\LoadClass[a4paper, 10.5bp]{jlreq}
\RequirePackage{../packages/mybibs}
\RequirePackage{../packages/mycodelistings}
\RequirePackage{../packages/mygraphics}
\RequirePackage{../packages/myfonts}
\RequirePackage{../packages/mypagesetup}
\RequirePackage{../packages/mycommands}
\RequirePackage{ragged2e}
\DeclareOption{left-aligned-title}{\newenvironment{thealign}{\begin{FlushLeft}}{\end{FlushLeft}}}
\DeclareOption{center-aligned-title}{\newenvironment{thealign}{\begin{Center}}{\end{Center}}}
\DeclareOption{right-aligned-title}{\newenvironment{thealign}{\begin{FlushRight}}{\end{FlushRight}}}
\ProcessOptions\relax
\newcommand{\titleheading}{
\begin{thealign}
\Huge
{\rmfamily \getreporttitle}
\vspace{-8mm}
\normalsize
{\rmfamily \getreportdate}
{\rmfamily \getprofessor}
\end{thealign}
}
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\lhead{\getreportauthor (\getstudentid)}
\chead{\getschoolname}
\rhead{\getsubject}
\lfoot{\footnotesize Made With \LaTeX{} + vim}
\cfoot{}
\rfoot{\footnotesize \compiledTime}

63
class/nitreport.cls Normal file
View File

@@ -0,0 +1,63 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{myreport}[2025/04/05 My Report Class]
\LoadClass[a4paper, 10.5bp]{jlreq}
\RequirePackage{../packages/mybibs}
\RequirePackage{../packages/mycodelistings}
\RequirePackage{../packages/mygraphics}
\RequirePackage{../packages/myfonts}
\RequirePackage{../packages/mypagesetup}
\RequirePackage{../packages/mycommands}
\newcommand{\coverpage}{
\begin{titlepage}
\thispagestyle{empty}
\begin{center}
\vspace*{0.25cm}
\includegraphics[height=5cm]{./assets/school-symbol.png}
\vspace{1cm}
\Huge
{\@schoolname}
\vspace{2cm}
\LARGE
\@title
\vspace{0.5cm}
\large
{\@department : \@subject}
{\@professor}
\vspace{1cm}
{\@author ({\@studentid})}
\vfill
{\@year \@month \@day}
\end{center}
\begin{flushleft}
\footnotesize
Made with \LaTeX{} + vim
\end{flushleft}
\end{titlepage}
}
\RequirePackage{fancyhdr}
\pagestyle{fancy}
%\renewcommand{\headwidth}{240mm}
\fancyhf{}
\lhead{\@author}
\chead{\@title $-$ \leftmark}
\rhead{\@subject}
\lfoot{\footnotesize Made With \LaTeX{} + vim}
\cfoot{\thepage}
\rfoot{}