-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathSimpleNote.tex
More file actions
114 lines (91 loc) · 3.03 KB
/
SimpleNote.tex
File metadata and controls
114 lines (91 loc) · 3.03 KB
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
107
108
109
110
111
112
113
114
%xelatex编译,ubuntu16.04 + texlive2015 + vscode环境下通过检测。
%满足图片插入、数学公式排版、中英文混排、代码插入要求。
\documentclass[UTF8]{ctexart}
\usepackage{graphicx}
\usepackage[colorlinks,linkcolor=black]{hyperref}
\usepackage{listings, geometry, amsmath}
\geometry{left=3cm,right=3cm,top=3cm,bottom=4cm}
\usepackage[colorinlistoftodos]{todonotes}
\lstset{ % 代码高亮
backgroundcolor=\color{white}, % choose the background color
basicstyle=\footnotesize\ttfamily, % size of fonts used for the code
columns=fullflexible,
numbers=left, % where to put the line-numbers; possible values are (none, left, right)
numbersep=0.5em, % how far the line-numbers are from the code
breaklines=true, % automatic line breaking only at whitespace
captionpos=t, % sets the caption-position to bottom
tabsize=4,
frame = single,
framexleftmargin=2em,
commentstyle=\color{mygreen}, % comment style
escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
keywordstyle=\color{blue}, % keyword style
stringstyle=\color{mymauve}\ttfamily, % string literal style
rulecolor=\color{black},
identifierstyle=\color{red},
language=python,
showtabs = false,
showstringspaces = false,
showspaces = false,
}
\usepackage{setspace} %行间距
\onehalfspacing
\addtolength{\parskip}{.4em} %段间距
\usepackage{fancyhdr} %页眉页脚
\pagestyle{fancy}
\lhead{Bullgo}
\chead{Valar Morghulis}
\rhead{19260817}
\lfoot{}
\cfoot{Valar Dohaeris}
\rfoot{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\headwidth}{\textwidth}
\renewcommand{\footrulewidth}{0pt}
\ctexset{section = {format = \raggedright\Large\bfseries,}} %标题左对齐
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{笔记模板}
\author{Bullgo}
\date{\today}
\begin{document}
\maketitle
\tableofcontents
\newpage
\section{一首诗}
\begin{center}
苟利国家生死以,岂因福祸避趋之。
\end{center}
\subsection{半首诗}
\begin{center}
岂因福祸避趋之?
\end{center}
\newpage
\section{又一首诗}
\begin{center}
如果天空是黑暗的,那就摸黑生存。
如果发出声音是危险的,那就保持沉默。
如果自觉无力发光的,那就蜷伏于墙角。
但不要习惯了黑暗就为黑暗辩护。
不要为自己的苟且而得意。
不要嘲讽那些比自己更勇敢热情的人们。
我们可以卑微如尘土。
不可以扭曲如蛆虫。
\end{center}
\subsection{又半首诗}
\begin{center}
我们可以卑微如尘土。
不可以扭曲如蛆虫。
\end{center}
% \begin{equation}
% Y=A \cdot X + b
% \end{equation}
% \begin{figure}[htbp]
% \centering
% \includegraphics{a.jpg}
% \caption{a}
% \label{fig:a}
% \end{figure}
% \begin{lstlisting}
% print(Hello,world!)
% \end{lstlisting}
\end{document}