Initial commit
This commit is contained in:
150
src/report.tex
Normal file
150
src/report.tex
Normal file
@@ -0,0 +1,150 @@
|
||||
\documentclass[titlepage,a4paper]{ltjsreport}
|
||||
\usepackage{luatexja-preset}
|
||||
\usepackage[colorlinks=true, allcolors=blue]{hyperref}
|
||||
\usepackage[utf8]{luainputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{babel}
|
||||
\usepackage[dvipdfm]{graphicx}
|
||||
\usepackage{wrapfig}
|
||||
\usepackage[hang,small,bf]{caption}
|
||||
\usepackage[subrefformat=parens]{subcaption}
|
||||
\captionsetup{compatibility=false}
|
||||
\graphicspath{{../assets}}
|
||||
|
||||
\usepackage{fontspec}
|
||||
\setmainfont{ipag}[
|
||||
Path=../assets/fonts/,
|
||||
Extension=.ttf,
|
||||
]
|
||||
\setmonofont{0xProtoNerdFontMono}[
|
||||
Path=../assets/fonts/,
|
||||
Extension=.ttf,
|
||||
UprightFont=*-Regular
|
||||
]
|
||||
\setsansfont{LiberationSans}[
|
||||
Path=../assets/fonts/,
|
||||
Extension=.ttf,
|
||||
UprightFont=*-Regular
|
||||
]
|
||||
|
||||
\usepackage{amsmath}
|
||||
|
||||
\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
|
||||
}
|
||||
|
||||
\lstset{style=codestyle}
|
||||
|
||||
\begin{filecontents*}[overwrite]{references.bib}
|
||||
@online{example,
|
||||
title = {Example Entry},
|
||||
author = {Inc., Example},
|
||||
organization = {Example, Inc.},
|
||||
url = {https://www.example.com},
|
||||
year = {1970},
|
||||
month = {January},
|
||||
urldate = {1970-01-01}
|
||||
}
|
||||
\end{filecontents*}
|
||||
|
||||
\usepackage[backend=biber,bibencoding=utf8,firstinits=false,style=numeric-comp,date=short,dateabbrev=false]{biblatex}
|
||||
\addbibresource{references.bib}
|
||||
|
||||
\title{Insert Title Here}
|
||||
\author{
|
||||
柴田 健琉 \thanks{学籍番号:2024D14}
|
||||
}
|
||||
\date{令和6年 aa月bb日}
|
||||
|
||||
\usepackage{fancyhdr}
|
||||
\pagestyle{fancy}
|
||||
\fancyhead[RO,LE]{柴田健琉(2024D)}
|
||||
\fancyhead[C]{Title Here}
|
||||
\fancyhead[LO,RE]{令和6年 aa月bb日}
|
||||
\fancyfoot[C]{\thepage}
|
||||
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
Start Writing!
|
||||
|
||||
Use lualatex + biber to compile.
|
||||
|
||||
Test Bib\cite{example}
|
||||
|
||||
いろはにほへと ちりぬるを
|
||||
|
||||
\begin{lstlisting}[language=C, caption=Basic Hello World]
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
char* msg = "Hello World";
|
||||
printf("%s\n", msg);
|
||||
return 0;
|
||||
}
|
||||
\end{lstlisting}
|
||||
|
||||
\begin{displaymath}
|
||||
\int_{a}^{b} f(x) \,dx = F(b)-F(a)
|
||||
\end{displaymath}
|
||||
|
||||
\begin{itemize}
|
||||
\item C
|
||||
\item Python
|
||||
\item Javascript
|
||||
\item Rust
|
||||
\item Haskell
|
||||
\end{itemize}
|
||||
|
||||
\begin{enumerate}
|
||||
\item lualatex <filename>.tex
|
||||
\item biber <filename>
|
||||
\item lualatex <filename>.tex
|
||||
\item lualatex <filename>.tex
|
||||
\end{enumerate}
|
||||
|
||||
\newpage
|
||||
|
||||
new page
|
||||
|
||||
\printbibliography
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user