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