-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path明朝那些事儿 · 当年明月 (A4).tex
70 lines (63 loc) · 2.56 KB
/
明朝那些事儿 · 当年明月 (A4).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
% !TeX root
% !TEX encoding = UTF-8 Unicode
% !TeX program = xelatex -synctex=1 -interaction=nonstopmode --output-driver="xdvipdfmx -q -E -V 7" %.tex
\input{./Layouts/Preamble_A4}
\special{pdf:encrypt ownerpw (Ming) userpw () length 128 perm 2048} % 2052 for print, 2048 for all disabled
% -S: Enable PDF encryption.
% -K number :Set encryption key length. The default value is 40.
% -P number: Set permission flags for PDF encryption. The numbers a 32-bit unsigned integer representing permission flags. MSB
% Bit Position: Meaning
% 3: (Revision 2) Print the document. / (Revision 3 or greater) Print the document. Print quality depending on bit 12.
% 4: Modify the contents of the document by operations other than those controlled by bits 6, 9, and 11.
% 5: Copy or extract text and graphics from the document.
% 6: Add or modify text annotations, fill in interactive form fields. Creation and modification of interactive form field is also allowed if bit 4 is set.
% 9: (Revision 3 or greater) Fill in existing interactive form fields (including signature fields), even if bit 6 is clear.
% 10: Deprecated in PDF 2.0 (Revision 3 or greater) Extract text and graphics (in support of accessibility to users with disabilities or for other purposes).
% 11: (Revision 3 or greater) Assemble the document (insert, rotate, or delete pages and create document outline items or thumbnail images), even if bit 4 is clear.
% 12: (Revision 3 or greater) High-quality printing. When this bit is clear (and bit 3 is set), printing shall be limited to a low-level, possibly of degraded quality
\usepackage{geometry}
\geometry{left=3cm,right=3cm,top=4cm,bottom=3cm,foot=4cm}
\newcounter{paracolNo}
\newcounter{kindle}
\setcounter{paracolNo}{2}
\setcounter{kindle}{0}
\begin{document}
\frontmatter
\begin{figure}[ht]
\centering
\includepdf[width=\paperwidth, height=\paperheight]{./Images/Frontmatter.jpg}
\end{figure}
\phantom {placeholder}
\vspace{160mm}
\begin{figure}[!h]
\centering
\includegraphics[width=12cm]{./Images/Title.png}
\end{figure}
\newpage
{\color{TEXTColor}
\ifnum\theparacolNo=2
\begin{multicols}{\theparacolNo}
\fi
\tableofcontents
\ifnum\theparacolNo=2
\end{multicols}
\fi
\newpage
\mainmatter
\include{./Chapters/00}
\include{./Chapters/01}
\include{./Chapters/02}
\include{./Chapters/03}
\include{./Chapters/04}
\include{./Chapters/05}
\include{./Chapters/06}
\include{./Chapters/07}
\include{./Chapters/010}
\backmatter
{\color{TEXTColor}
\begin{figure}[ht]
\begin{center}
\includepdf[height=\paperheight]{./Images/Backmatter.jpg}
\end{center}
\end{figure}
\end{document}