-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmyNote.cls
More file actions
55 lines (42 loc) · 1.12 KB
/
myNote.cls
File metadata and controls
55 lines (42 loc) · 1.12 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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{myNote}[2018/02/15]
\LoadClass{article}
%\RequirePackage{at}
\RequirePackage{ctex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% geometry settings
%% 页面设定
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{geometry}
\geometry{
textwidth=138mm,
textheight=215mm,
left=27mm,
%% or
%% inner=23mm,
right=27mm,
%% or
%% outer=18mm,
top=25.4mm, bottom=25.4mm,
headheight=2.17cm,
headsep=4mm,
footskip=12mm,
heightrounded,
}
%----------------------------------------------------------------------
% PAGE HEADER
%----------------------------------------------------------------------
\RequirePackage{fancyhdr} % Needed to define custom headers/footers
\RequirePackage{lastpage} % Number of pages in the document
\pagestyle{fancy} % Enables the custom headers/footers
% Headers
\lhead{}%
\chead{}%
%\rhead{\small\sffamily\bfseries\@PaperTitle\ --- \thepage/\pageref{LastPage}}
\rhead{学习笔记}
% Footers
\lfoot{}%
\cfoot{}%
\rfoot{}%
\renewcommand{\headrulewidth}{1pt}
\renewcommand{\footrulewidth}{1pt}