This page is READ-ONLY. It is generated from the old site.
All timestamps are relative to 2013 (when this page is generated).
If you are looking for TeX support, please go to VietTUG.org

Gói titletoc: ví dụ 100

 1 \documentclass{report}
 2 
 3 \usepackage{titletoc}
 4 
 5 % \usepackage{hka_fancy_dotted_toc_line}
 6 
 7 % Nếu dùng gói hka_fancy_dotted_toc_line thì bỏ qua hai dòng bên dưới
 8 % \dottedcontents{section}[1.5em]{}{2.3em}{1pc}
 9 % \dottedcontents{subsection}[3.8em]{}{3.2em}{1pc}
10 
11 \titlecontents{chapter}
12   [0pt]
13   {\addvspace{1em}}
14   {%
15     \contentsmargin{0pt}
16     \large%
17     \bfseries%
18     \hskip-1.5em
19     \chaptername\space\thecontentspage\enspace
20   }
21   {\contentsmargin{0pt}\large\bfseries}%
22   {%
23     \titlerule*[0pc]{}
24     \bfseries\contentspage}
25   [\addvspace{.5em}]
26 
27 % In ra ví dụ
28 \def\test{
29   \chapter{test}
30     \section{test}
31     \section{test}
32     \section{test}
33     \section{test}
34 }
35 
36 \begin{document}
37 \tableofcontents
38 
39 \test\test\test
40 \test\test\test
41 \test\test\test
42 \test\test\test
43 
44 \end{document}
45