Initial commit

This commit is contained in:
2025-06-18 22:17:59 +09:00
commit 09936da755
51 changed files with 2210 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{info-processing}[2025/04/10 Commands and Environments for Information Processing Class Report]
\usepackage{luacode}
\usepackage[dvipsnames]{xcolor}
\usepackage{fancybox}
\usepackage{ascmac}
\usepackage{fancyvrb}
\makeatletter
\newif\ifFV@bgcolor
\newbox\FV@bgbox
\define@key{FV}{bgcolor}{\FV@bgcolortrue\def\FV@bgcolor{#1}}
\define@key{FV}{framecolor}{\FV@bgcolortrue\def\FV@framecolor{#1}}
\def\FV@framecolor{white}
\def\FV@BeginVBox{%
\leavevmode\ifFV@bgcolor\setbox\FV@bgbox=\fi
\hbox\ifx\FV@boxwidth\relax\else to\FV@boxwidth\fi\bgroup
\ifcase\FV@baseline\vbox\or\vtop\or$\vcenter\fi\bgroup}
\def\FV@EndVBox{\egroup\ifmmode$\fi\hfil\egroup
\ifFV@bgcolor\fcolorbox{\FV@framecolor}{\FV@bgcolor}{\box\FV@bgbox}\fi}
\makeatother
\newenvironment{syntax}[1][]
{\VerbatimEnvironment
\begin{itembox}[l]{\sffamily Syntax: #1}\begin{BVerbatim}[bgcolor=Black,frame=lines,commandchars=\$\{\}]}
{\end{BVerbatim}\end{itembox}}
\newcommand{\resultIO}[2]{
}

7
packages/mybibs.sty Normal file
View File

@@ -0,0 +1,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mybibs}[2025/04/05 My BibLaTeX Config]
\usepackage[backend=biber,bibencoding=utf8,giveninits=false,style=numeric-comp,date=short,dateabbrev=false]{biblatex}
\addbibresource{../references.bib}
\usepackage[unicode,colorlinks=true,allcolors=blue]{hyperref}
\urlstyle{same}

View File

@@ -0,0 +1,48 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mycodelistings}[2025/04/05 My Code Listings Config]
\usepackage{listings}
\usepackage{xcolor}
\definecolor{draculabg}{RGB}{40,42,54}
\definecolor{draculafg}{RGB}{248,248,242}
\definecolor{draculacomment}{RGB}{98,114,164}
\definecolor{draculacurrentline}{RGB}{68, 71, 90}
\definecolor{draculaorange}{RGB}{255,184,108}
\definecolor{draculacyan}{RGB}{139,244,253}
\definecolor{draculagreen}{RGB}{80,250,123}
\lstdefinestyle{codestyle}{
backgroundcolor=\color{draculabg},
commentstyle=\color{draculacomment},
keywordstyle={\color{draculaorange}},
identifierstyle=\color{draculacyan},
numberstyle=\small\color{draculacurrentline},
stringstyle=\bfseries\color{draculagreen},
basicstyle=\ttfamily\normalsize\color{draculafg},
breakatwhitespace=false,
breaklines=true,
captionpos=t,
keepspaces=true,
numbers=left,
numbersep=14pt,
showspaces=false,
showstringspaces=true,
showtabs=false,
tabsize=4,
lineskip=-3pt,
xrightmargin=32pt,
xleftmargin=32pt,
frame=single,
framerule=1pt,
rulesepcolor=\color{draculacyan},
framexleftmargin=4pt,
framexrightmargin=4pt,
framextopmargin=4pt,
framexbottommargin=4pt,
xleftmargin=5px,
xrightmargin=5px
}
\newcommand{\defaultlistingstyle}{\lstset{style=codestyle}}
\renewcommand{\lstlistingname}{コードリスティング}

48
packages/mycommands.sty Normal file
View File

@@ -0,0 +1,48 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mycommands}[2025/04/09 My Commands Config]
\usepackage{luacode}
\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}
\date{\@turninyear \@turninmonth \@turninday}
}
\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{\getreportauthor}{\@author}
\newcommand{\getreportdate}{\@year \@month \@day}
\newcommand{\getturnindate}{\@turninyear \@turninmonth \@turninday}
\newcommand{\getreporttitle}{\@title}
\newcommand{\getschoolname}{\@schoolname}
\newcommand{\getstudentid}{\@studentid}
\newcommand{\getseatingnum}{\@seatingnum}
\newcommand{\getdepartment}{\@department}
\newcommand{\getsubject}{\@subject}
\newcommand{\getprofessor}{\@professor}
\newcommand{\compiledTime}{\directlua{tex.sprint("Last Compiled(UN*X Time): " .. tostring(os.time()))}}

73
packages/myfonts.sty Normal file
View File

@@ -0,0 +1,73 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{myfonts}[2025/04/05 My Fonts Configs]
\newif\if@japanese
\DeclareOption{japanese}{\@japanesetrue}
\DeclareOption{no-japanese}{\@japanesefalse}
\ExecuteOptions{japanese}
\ProcessOptions\relax
\if@japanese
\usepackage{luatexja-fontspec}
\usepackage{luatexja}
\else
\usepackage{fontspec}
\fi
\usepackage[lutf8]{luainputenc}
\usepackage[T1]{fontenc}
\if@japanese
\setmainjfont{NotoSerifJP}[
Path=../assets/fonts/,
Extension=.ttf,
YokoFeatures={JFM=jlreq},
TateFeatures={JFM=jlreqv},
UprightFont=*-Regular,
BoldFont=*-Bold,
ItalicFont=*-Regular,
ItalicFeatures={FakeSlant=0.33},
BoldItalicFont=*-Regular,
BoldItalicFeatures={FakeBold=2, FakeSlant=0.33}
]
\setsansjfont{NotoSansJP}[
Path=../assets/fonts/,
Extension=.ttf,
YokoFeatures={JFM=jlreq},
TateFeatures={JFM=jlreqv},
UprightFont=*-Regular,
BoldFont=*-Bold,
ItalicFont=*-Regular,
ItalicFeatures={FakeSlant=0.33},
BoldItalicFont=*-Regular,
BoldItalicFeatures={FakeBold=2, FakeSlant=0.33}
]
\fi
\setmainfont{NotoSerif}[
Path=../assets/fonts/,
Extension=.ttf,
UprightFont=*-Regular,
BoldFont=*-Bold,
ItalicFont=*-Italic,
BoldItalicFont=*-BoldItalic
]
\setsansfont{NotoSans}[
Path=../assets/fonts/,
Extension=.ttf,
UprightFont=*-Regular,
BoldFont=*-Bold,
ItalicFont=*-Italic,
BoldItalicFont=*-BoldItalic
]
\newfontfamily{\fonthack}{Hack}[
Path=../assets/fonts/,
Extension=.ttf,
UprightFont=*-Regular,
BoldFont=*-Bold,
ItalicFont=*-Italic,
BoldItalicFont=*-BoldItalic
]
\renewcommand{\ttfamily}{\fonthack}

11
packages/mygraphics.sty Normal file
View File

@@ -0,0 +1,11 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mygraphics}[2025/04/05 My Graphics(x) Configs]
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{here}
\graphicspath{{../assets}}
\usepackage[hang,small,bf]{caption}
\usepackage[subrefformat=parens]{subcaption}
\captionsetup{compatibility=false}

16
packages/mypagesetup.sty Normal file
View File

@@ -0,0 +1,16 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mypagesetup}[2025/04/05 My Page Configs]
\usepackage[
a4paper,
total={166mm, 270mm},
left=22mm,
right=22mm,
top=30mm,
headheight=15mm,
headsep=5mm,
marginparwidth=25mm,
footnotesep=5mm,
footskip=15mm,
bottom=25mm
]{geometry}