Initial commit
This commit is contained in:
43
class/nitonepage.cls
Normal file
43
class/nitonepage.cls
Normal 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}
|
||||
Reference in New Issue
Block a user