mirror of
https://github.com/kenryuS/report-temp.git
synced 2026-06-14 16:26:13 +09:00
added commands and simple title
This commit is contained in:
@@ -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}}
|
||||
+8
-3
@@ -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,
|
||||
|
||||
@@ -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}
|
||||
@@ -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}
|
||||
}
|
||||
Reference in New Issue
Block a user