forked from abolybook/aboly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ly.tex
58 lines (44 loc) · 1.28 KB
/
ly.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
\documentclass[a4paper, openany, oneside, 12pt]{book}
\input{style.tex}
\newtcolorbox[auto counter, number within=chapter]{lybaseblobraw}{
skin=enhanced jigsaw,
colback=white, colframe=black!42,
boxrule=0.5mm,
% after skip=1em,
phantom={\lyblobmark{\thetcbcounter}},
overlay unbroken and first ={
\node[anchor=north east, inner sep=0pt, outer sep=0pt] at ([xshift=-\marginparsep]frame.north west) {\tcbox[boxsep=0pt, left=1.8mm, right=1.8mm, top=1.8mm, bottom=1.8mm, colback=white, colframe=black!42]{\thetcbcounter}};
}
}
\newcommand{\lyblobraw}[1]{%
\begin{lybaseblobraw}
#1
\end{lybaseblobraw}}
\usepackage[
unicode,
bookmarks=true,
bookmarksnumbered=true,
pdfpagemode=UseOutlines,
pdfstartview=FitH,
pdfpagelayout=OneColumn,
colorlinks=true,
allcolors=black,
]{hyperref}
\hypersetup{
pdftitle=论语,
pdfauthor=孔子 著,[email protected] 制作,
pdfsubject=,
pdfkeywords={\versioninfoly},
pdfcreator=LaTeX with Python,
}
%============================================================
\begin{document}
\lyblobmark[0]{论语}
\input{coverly.tex}
\frontmatter
\lyblobmark[0]{目录}
\tableofcontents
\mainmatter
\renewcommand{\lyheaderimg}{chap\thechapter}
\include{autolybody}
\end{document}