Initial commit

This commit is contained in:
NIT_Report
2026-04-12 21:04:57 +09:00
commit e8c1f49f70
18 changed files with 651 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamer-setup}
\usepackage{zxjatype}
\usetheme{Pittsburgh}
+40
View File
@@ -0,0 +1,40 @@
\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{\duedate}[3]{
\def\@dueyear{#1}
\def\@duemonth{#2}
\def\@dueday{#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}}
\newcommand{\schoolyear}[1]{\def\@schoolyear{#1}}
\newcommand{\grade}[1]{\def\@grade{#1}}
+15
View File
@@ -0,0 +1,15 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{depD-bib}
\renewbibmacro*{cite}{
\printtext[bibhyperref]{%
\printfield{labelprefix}%
\printfield{labelnumber})%
\ifbool{bbx:subentry}
{\printfield{entrysetcount}}
{}}}
\DeclareFieldFormat{title}{"\mkbibemph{#1}"}
\DeclareFieldFormat{chapter}{#1\bibstring{章}}
\DeclareFieldFormat{pages}{#1\bibstring{頁}}
\DeclareFieldFormat{publisher}{#1}
\DeclareFieldFormat{urldate}{\mkbibparens{#1 参照}}
+34
View File
@@ -0,0 +1,34 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{detailedTitle}
\usepackage{tex/coms}
\newcommand{\detailedtitle}{
\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}
}
+84
View File
@@ -0,0 +1,84 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{experimentTitle}
\usepackage{tex/coms}
\usepackage{multirow}
\usepackage{array}
\usepackage{etoolbox}
\usepackage{ifthen}
\makeatletter
\newcounter{researchercount}
\setcounter{researchercount}{1}
\newcommand{\addResearcher}[1]{\listadd{\researchers}{#1}}
\newcommand{\researchercs}[1]{
\ifthenelse{\isodd{\theresearchercount}}
{
& \underline{(\theresearchercount) #1}
}
{
& \underline{(\theresearchercount) #1} \@arraycr
}
\stepcounter{researchercount}
}
\newcounter{expdatecount}
\setcounter{expdatecount}{0}
\newcommand{\expdates}{}
\newcommand{\addExperimentDate}[1]{\listadd{\expdates}{#1}}
\newcommand{\expdatecs}[1]{\stepcounter{expdatecount} & \underline{\theexpdatecount.\qquad #1} \@arraycr}
\newcommand{\expgroup}[1]{\def\@expgroup{#1}}
\newcommand{\reportid}[1]{\def\@reportid{#1}}
\newcommand{\experimentTitle}{
\begin{titlepage}
\thispagestyle{empty}
\begin{flushright}
提出締切\hspace{2em}{\@dueyear \@duemonth \@dueday}
提出\qquad\hspace{1.84375em}{\@turninyear \@turninmonth \@turninday}
\end{flushright}
\vspace{2em}
\begin{center}
{\Large {\@schoolyear}年度\quad {\@department} {\@grade}年}
\vspace{2em}
{\Huge {\@subject}レポート}
\end{center}
\begin{flushleft}
\vspace{1em}
{\large レポート記号:\quad {\@reportid}}
\vspace{1em}
{\large 実験テーマ名:\quad {\@title}}
\vspace{1em}
提出者:\quad \underline{実験班\quad \@expgroup}\quad \underline{名列番号\quad \@seatingnum}\quad \underline{氏名\quad \@author}
\vspace{1em}
\hspace{-0.5625em}\begin{tabular}{ lp{5em}p{5em} }
\ifthenelse{\isundefined{\researchers}}{
\multirow[t]{3}{7.3125em}{共同実験者:} & なし & \\
}{
\multirow[t]{3}{7.3125em}{共同実験者:} \forlistloop{\researchercs}{\researchers}
}
\end{tabular}
\vspace{5em}
\hspace{-0.5625em}\begin{tabular}{ lp{5em} }
\multirow[t]{3}{7.3125em}{実験実施日:} \forlistloop{\expdatecs}{\expdates}
\end{tabular}
\end{flushleft}
\end{titlepage}
}
\makeatother
+63
View File
@@ -0,0 +1,63 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mypreamble}
\usepackage[
backend=biber,
style=numeric,
sorting=none,
hyperref=false,
alldates=ymd
]{biblatex}
\usepackage[japanese]{babel}
\usepackage{fontspec}
\usepackage[mono=false]{libertine}
\usepackage{noto}
\setmonofont{0xProto}
\usepackage[european]{circuitikz}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{here}
\usepackage[hang,small,bf]{caption}
\captionsetup{compatibility=false}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=cyan
}
\urlstyle{same}
\usepackage{listings}
\usepackage{xcolor}
\definecolor{codekeyword}{rgb}{0.3373, 0.6118, 0.8392}
\definecolor{codestring}{rgb}{0.5961, 0.7647, 0.4745}
\definecolor{codeidentifier}{rgb}{0.6706, 0.6980, 0.7490}
\definecolor{codenumber}{rgb}{0.8980, 0.7529, 0.4824}
\definecolor{codecomment}{rgb}{0.3765, 0.5451, 0.3059}
\definecolor{codebackground}{rgb}{0.1569, 0.1725, 0.2039}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{codebackground},
basicstyle=\color{codeidentifier}\ttfamily\footnotesize,
stringstyle=\color{codestring},
numberstyle=\ttfamily\color{codenumber},
identifierstyle=\color{codeidentifier},
keywordstyle=\color{codekeyword},
commentstyle=\color{codecomment},
numbers=left,
numbersep=10pt,
tabsize=4,
showspaces=false,
showstringspaces=true,
showtabs=true,
breakatwhitespace=true,
frame=single,
framexleftmargin=10mm
}
\lstset{style=mystyle}
+16
View File
@@ -0,0 +1,16 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{reportpaper}
\geometry{
a4paper,
total={166mm,270mm},
left=22mm,
right=22mm,
top=30mm,
headheight=15mm,
headsep=5mm,
marginparwidth=25mm,
footnotesep=5mm,
footskip=15mm,
bottom=25mm
}
+26
View File
@@ -0,0 +1,26 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{simpleTitle}
\usepackage{tex/coms}
\newcommand{\simpletitle}{
\begin{titlepage}
\thispagestyle{empty}
\begin{center}
\Huge
{\@title}
\vspace{0.5cm}
\large
{\@author}
\vfill
{提出日:\@turninyear \@turninmonth \@turninday}
{\@year \@month \@day}
\vspace{0.25cm}
\end{center}
\end{titlepage}
}