作者ambush (阿龙)
看板LaTeX
标题Re: [问题] 目录问题
时间Tue Nov 15 13:27:36 2011
※ 引述《ambush (阿龙)》之铭言:
: 感谢大大的指教~但因为软体不同所以不给执行
: 我用的是LATEX,TEXMAKER介面(网路抓得乱灌的)
: 我把程式全PO好了..
: \documentclass[12pt,a4paper]{report}
: \linespread{1.36}
: \usepackage[margin=2cm,noheadfoot]{geometry}
: \columnwidth 7.75cm
: \pagestyle{empty}
: \usepackage{CJK,CJKnumb}
: \usepackage{indentfirst}
: \usepackage{titletoc}
: \usepackage[bf,small,center,indentafter,pagestyles]{titlesec}
: \usepackage{amsthm,amssymb,amsmath}
: \begin{document}
: \begin{CJK}{UTF8}{cwmc}
: \CJKindent
: \newcommand{\Mynumber}[1]
: {\ifcase#1\or壹\or贰\or参\or肆\or伍\or陆\or柒\or捌\or玖\or拾\fi}
: \renewcommand{\contentsname}{目~录~}
: \titleformat{\chapter}[hang]{\bf\Huge}{\Mynumber{\arabic{chapter}}、}{1em }{}
: \titleformat{\section}{\bf\Large}{\CJKnumber{\arabic{section}}}{1em}{}
: \titlecontents{chapter}
: [0em]
: {}
: {\Mynumber{\thecontentslabel}~~}
: {}{\titlerule*{.}\contentspage}
: \titlecontents{section}
: [32pt]
: {}
: {\CJKnumber{\thecontentslabel}\quad}
: {}{\hspace{.5em}\titlerule*[6pt]{.}\contentspage}
: \titlecontents{subsection}
: [48pt]
: {}
: {\Mynumber{\thecontentslabel}、}
: {}{\hspace{.5em}\titlerule*[6pt]{.}\contentspage}
: \tableofcontents
: \thispagestyle{empty}
: \newpage
: \setcounter{page}{1}
: \chapter{壹}
: \chapter{贰}
: \section{一}
: \section{二}
: \section{三}
: \section{四}
: \end{CJK}
: \end{document}
: 我希望目录是
: 壹 壹........1
: 贰 贰........2
: 一.一...2
: 二.二...3
: 三.三...3
: 四.四...3
: 我用上面跑出来的目录(节) 一二三四~都变成贰 请问大大们要怎改啊才能正确啊感恩
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.133.12.195