-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tex
85 lines (71 loc) · 1.92 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
\documentclass{ctexbook}
\usepackage[
paperwidth=185mm,
paperheight=260mm,
margin=25mm,
top=30mm]{geometry}
\usepackage{footnote}
\usepackage{graphicx}
\usepackage{mdframed}
\usepackage{enumitem}
\usepackage{tocloft}
\usepackage{fancyhdr}
\usepackage{hyperref}
\usepackage{xcolor}
\usepackage{pdfpages}
\usepackage{emptypage}
\usepackage{lecon-typographie}
% How to avoid footnote number restarts from 1 each chapter? : https://tex.stackexchange.com/questions/344846/how-to-avoid-footnote-number-restarts-from-1-each-chapter
\usepackage{remreset}
\makeatletter
\@removefromreset{footnote}{chapter}
\newcommand\footnoteref[1]{\protected@xdef\@thefnmark{\ref{#1}}\@footnotemark}
\makeatother
\hypersetup{
colorlinks = true,
linkcolor = brown,
urlcolor = brown
}
\newcommand{\link}[1]{{\href{#1}{\texttt{#1}}}}
\newcommand{\linkk}[2]{{\href{#1}{\texttt{#2}}}}
\CTEXsetup[number={\arabic{chapter}}]{chapter}
\setlength{\headheight}{13pt}
\pagestyle{fancyplain}
\renewcommand{\headrulewidth}{0pt}
\fancyhf{}
\fancyhead[LE, RO]{\thepage}
\fancyfoot{}
\fancypagestyle{plain}{
\fancyhead{}
\fancyfoot{}
}
\title{\lecon}
\author{雅克·安德烈(Jacques \textsc{André}) \enspace 著}
\date{\vfill\begin{flushright}
原书1990版—构建日期:\origindate\\
\href{http://jacques-andre.fr/faqtypo/lessons.pdf}{http://jacques-andre.fr/faqtypo/lessons.pdf}\\
~\\
计算机科学和随机系统研究所(IRISA)\\
\href{http://jacques-andre.fr/ed/}{Éditions du jobet}\\
~\\
翻译日期:\today
\end{flushright}}
\begin{document}
\cleardoublepage
\frontmatter
\includepdf{img/cover.pdf}
\maketitle
\input{chapters/a-note}
\input{chapters/avertissement}
\mainmatter
\input{chapters/chap1}
\input{chapters/chap2}
\input{chapters/chap3}
\input{chapters/chap4}
\input{chapters/chap5}
\input{chapters/chap6}
\input{chapters/chap7}
\input{chapters/chap8}
\backmatter
\input{chapters/sommaire}
\end{document}