-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhandout.tex
89 lines (77 loc) · 2.43 KB
/
handout.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
\documentclass[a4paper]{ltjsarticle}
\usepackage[top=17truemm,bottom=17truemm,left=11truemm,right=11truemm]{geometry}
\usepackage{multirow}
\usepackage[version=4]{mhchem}
\usepackage{color}
\usepackage[dvipsnames]{xcolor}
\usepackage{enumerate}
\usepackage{tikz}
\usepackage{lscape}
\usepackage{amsmath}
\usepackage{chemfig}
\usepackage{fancyhdr}
\usepackage{hyperref}
\usepackage{ascmac}
\usepackage{multicol}
\usepackage{amssymb}
\usepackage{longtable}
\usepackage{graphicx}
\usepackage{luatexja-otf}
\usepackage[no-math]{luatexja-fontspec}
\setmainjfont[BoldFont=HiraMinProN-W6]{HiraMinProN-W3}
\setsansjfont[BoldFont=HiraginoSans-W6]{HiraginoSans-W3}
\setsansfont{Helvetica}
\newfontfamily{\rfamily}[Renderer=Basic, Ligatures=TeX]{SFProRounded-Regular}
\usetikzlibrary{calc}
\makeatletter
\def\section{\@startsection {section}{1}{\z@}{-1.5ex plus -1ex minus -.2ex}{1.5 ex plus .2ex}{\Large \bfseries \sffamily}}
\def\subsection{\@startsection {subsection}{1}{\z@}{-1.5ex plus -1ex minus -.2ex}{1.3 ex plus .2ex}{\Large \sffamily}}
\def\subsubsection{\@startsection {subsubsection}{1}{\z@}{-1.5ex plus -1ex minus -.2ex}{.3 ex plus .2ex}{\large \sffamily}}
\makeatother
\newcommand{\answer}{%
\begin{tikzpicture}[baseline=(num.south),font=\sffamily\footnotesize]
\node[draw=black, rectangle, rounded corners=2pt,
text=black, solid,
line width=.5pt, inner sep=1pt, outer sep=0pt
] (num) {\addtocounter{answer}{1}\arabic{answer}};
\end{tikzpicture}%
}
\newcounter{answer}
\newcommand{\hl}[1]{\answer\textcolor{red}{\sffamily#1}}
\newcommand{\hce}[1]{\textcolor{blue}{\rfamily \ce{#1}}}
\newcommand{\hlbox}[1]{\fbox{\textcolor{red}{\rfamily #1}}}
\rfoot{}
\pagestyle{empty}
\newcommand{\stamp}[2]{%
\begin{tikzpicture}[baseline=(A.base),font=\sffamily]
\node[draw=#1, rectangle, rounded corners=2pt,
text=#1, solid,
fill=#1!10!white,
line width=.4pt, inner sep=1pt, outer sep=0pt
] (A) {\bfseries\small #2};
\end{tikzpicture}%
}
\newcommand{\subject}{科目名}
\columnseprule=0.2mm
\pagestyle{fancy}
\lfoot{\hyperlink{top}{\subject}}
\cfoot{\sffamily \thepage}
\hypersetup{
bookmarks=false,
colorlinks=true,
linkcolor=black,
citecolor=[rgb]{0,0.4,0.8},
filecolor=black,
urlcolor=[rgb]{0,0.4,0.8}
}
\begin{document}
\twocolumn[
\begin{center}
\Huge{\gtfamily \subject}\\
\vspace{5mm}
\end{center}
]
\hypertarget{top}{\tableofcontents}
\onecolumn
Hello, World!
\end{document}