Initial commit
This commit is contained in:
50
class/nitonepage.cls
Normal file
50
class/nitonepage.cls
Normal file
@@ -0,0 +1,50 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{myonepage}[2025/05/07 My One Page Class]
|
||||
|
||||
\LoadClass[
|
||||
lualatex,
|
||||
a4paper,
|
||||
article,
|
||||
fontsize=11pt,
|
||||
line_length=42zw,
|
||||
jlreq_warnings
|
||||
]{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}
|
||||
78
class/nitreport.cls
Normal file
78
class/nitreport.cls
Normal file
@@ -0,0 +1,78 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{myreport}[2025/05/07 My Report Class]
|
||||
|
||||
\LoadClass[
|
||||
lualatex,
|
||||
a4paper,
|
||||
article,
|
||||
fontsize=11pt,
|
||||
line_length=42zw,
|
||||
jlreq_warnings
|
||||
]{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
|
||||
{\getschoolname}
|
||||
|
||||
\vspace{0.75cm}
|
||||
|
||||
\LARGE
|
||||
{\getreporttitle}
|
||||
|
||||
\vspace{0.5cm}
|
||||
|
||||
\large
|
||||
{\getdepartment : \getsubject}
|
||||
|
||||
{担当教員:\getprofessor}
|
||||
|
||||
\vspace{0.5cm}
|
||||
|
||||
{\getreportauthor}
|
||||
|
||||
\vspace{-0.25cm}
|
||||
|
||||
{(学籍番号:{\getstudentid} 名列番号:{\getseatingnum})}
|
||||
|
||||
\vfill
|
||||
|
||||
{提出日:\getturnindate}
|
||||
|
||||
{\getreportdate}
|
||||
|
||||
\vspace{0.25cm}
|
||||
\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{}
|
||||
Reference in New Issue
Block a user