\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{}
