added commands and simple title

This commit is contained in:
Kenryu Shibata
2025-10-22 00:19:46 +09:00
parent 0b3cf04495
commit d8e1e5fc59
5 changed files with 90 additions and 3 deletions
+32
View File
@@ -0,0 +1,32 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mycommands}
\newcommand{\reporttitle}[1]{
\def\@title{#1}
\title{#1}
}
\newcommand{\reportauthor}[1]{
\def\@author{#1}
\author{#1}
}
\newcommand{\reportdate}[3]{
\def\@year{#1}
\def\@month{#2}
\def\@day{#3}
\date{\@year \@month \@day}
}
\newcommand{\turnindate}[3]{
\def\@turninyear{#1}
\def\@turninmonth{#2}
\def\@turninday{#3}
}
\newcommand{\schoolname}[1]{\def\@schoolname{#1}}
\newcommand{\studentid}[1]{\def\@studentid{#1}}
\newcommand{\seatingnum}[1]{\def\@seatingnum{#1}}
\newcommand{\department}[1]{\def\@department{#1}}
\newcommand{\subject}[1]{\def\@subject{#1}}
\newcommand{\professor}[1]{\def\@professor{#1}}
View File
+8 -3
View File
@@ -1,17 +1,22 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mypreamble}
\usepacakge[backend=biber]{biblatex}
\usepackage[backend=biber]{biblatex}
\usepackage{fontspec}
\usepackage[mono=false]{libertine}
\usepackage{noto}
\setmonofont{0xProto}
\setCJKmonofont{0xProto}
\usepackage[european]{circuitikz}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{here}
\usepackage[hang,small,bf]{caption}
\captionsetup{compatibility=false}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
+16
View File
@@ -0,0 +1,16 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{reportpaper}
\usepackage[
a4paper,
total={166mm,270mm},
left=22mm,
right=22mm,
top=30mm,
headheight=15mm,
headsep=5mm,
marginparwidth=25mm,
footnotesep=5mm,
footskip=15mm,
bottom=25mm
]{geometry}
+34
View File
@@ -0,0 +1,34 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{simpleTitle}
\usepackage{tex/coms}
\newcommand{\simpletitle}{
\begin{titlepage}
\thispagestyle{empty}
\begin{center}
\Huge
{\@title}
\vspace{0.5cm}
\large
{\@department \@subject}
{担当教員:\@professor}
\vspace{0.5cm}
{\@author}
{(学籍番号:{\@studentid} 名列番号:{\@seatingnum})}
\vfill
{提出日:\@turninyear \@turninmonth \@turninday}
{\@year \@month \@day}
\vspace{0.25cm}
\end{center}
\end{titlepage}
}