-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
106 lines (94 loc) · 2.4 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
\RequirePackage{plautopatch}
\documentclass[uplatex, dvipdfmx, paper=a4paper, titlepage]{jlreq}
%
\usepackage{amsmath,amssymb}
\usepackage{bm}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{lastpage}
\usepackage{fancyhdr}
\usepackage{ascmac}
\usepackage[italicdiff]{physics}
\usepackage{tensor}
\usepackage[separate-uncertainty=true]{siunitx}
\usepackage{here}
\usepackage[
colorlinks=true,
urlcolor=purple,
linkcolor=blue,
citecolor=red,
setpagesize=false
]{hyperref}
\usepackage{pxjahyper}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{float}
\usepackage{tikz}
\usepackage{subfiles}
\usepackage{xr}
\externaldocument[M-]{\subfix{sample}}
\usepackage{listings}
\usepackage{plistings}
\definecolor{OliveGreen}{rgb}{0.0,0.6,0.0}
\definecolor{Orenge}{rgb}{0.89,0.55,0}
\definecolor{SkyBlue}{rgb}{0.28, 0.28, 0.95}
\lstset{language={C}, % 言語の指定
basicstyle={\ttfamily},
identifierstyle={\small},
commentstyle={\smallitshape},
keywordstyle={\small\bfseries},
ndkeywordstyle={\small},
stringstyle={\small\ttfamily},
frame={tb},
breaklines=true,
columns=[l]{fullflexible},
numbers=left,
xrightmargin=0zw,
xleftmargin=3zw,
numberstyle={\scriptsize},
stepnumber=1,
numbersep=1zw,
lineskip=-0.5ex,
keywordstyle={\color{SkyBlue}}, %キーワード(int, ifなど)の書体指定
commentstyle={\color{OliveGreen}}, %注釈の書体
stringstyle=\color{Orenge} %文字列
}
\numberwithin{equation}{section}
\graphicspath{{subfix{img/}}}
%
% \setlength{\textwidth}{\fullwidth}
% \setlength{\textheight}{39\baselineskip}
% \addtolength{\textheight}{\topskip}
% \setlength{\voffset}{-0.5in}
% \setlength{\headsep}{0pt}
% For fancyhdr warning
% \headheight is too small (10.0pt):
% (fancyhdr) Make it at least 17.0pt, for example:
% (fancyhdr) \setlength{\headheight}{17.0pt}.
% (fancyhdr) You might also make \topmargin smaller to compensate:
% (fancyhdr) \addtolength{\topmargin}{-7.0pt}.
\setlength{\headheight}{17.0pt}
\pagestyle{fancy}
\rhead{\hyperlink{context}{目次}}
\lhead{\rightmark}
\cfoot{\thepage}
\lfoot{}
% subsubsectionまで目次に表示
\setcounter{tocdepth}{3}
\title{Sample}
\author{佐藤太郎}
\date{\today}
\begin{document}
\maketitle
\hypertarget{context}
\tableofcontents
\clearpage
%
%
\subfile{./src/sec1.tex}
\newpage
\bibliographystyle{jplain}
\bibliography{reference.bib}
%
%
\end{document}