作者QQrzQQ (QQ)
看板LaTeX
标题Re: [问题] 怎麽让label显现自己想要的字
时间Wed May 5 14:38:25 2010
※ 引述《killyou (xxx)》之铭言:
: ===============CODE================
: \appendix %附录开始
: \section{name of 1st appendix}\label{app:a} %会自动用A,B,C,...编号
: \section{2nd}
: ...
: when use ref will appear Appendix \ref{app:a}
: ===============RESULT==============
: A name of 1st appendix
: B 2nd
: ...
: when use ref will appear Appendix A
: Wish it helps you.
首先先谢谢您 提供的方法
上面的方法 可以解决我提到的问题
可是因为我的Appendix标题要很大 = =+
可能是
Appendix A
内文...........
所以在我采用的模板 (元智大学老师提供)
\appendix
%%% 每一个附录 (附录甲、附录乙、...) 都要复制此段附录编排码做为起头
%%% 附录编排码 begin >>>
\newpage
\chapter*{Appendix A} % 修改附录编号与你的附录名
\label{app:a} %%% 我加的部分
\phantomsection % for hyperref to register this
\addcontentsline{toc}{chapter}{Appendix A} %建议此内容应与上行相同
%\setcounter{chapter}{0} %如果用的是 TeXLive2007 则打开此行以避免错误
\setcounter{equation}{0}
\setcounter{figure}{0}
\setcounter{footnote}{0}
\setcounter{section}{0}
\setcounter{subsection}{0}
\setcounter{subsubsection}{0}
\setcounter{table}{0}
\renewcommand{\thechapter}{A} % 如果是附录乙,则内容应为{乙}
%%% <<< 附录编排码 end
原本应该把label加在\chapter*後面
可是因为*会让chapter隐藏不显示
好像也会造成label编号会接续前面的章节...
当我把\chapter*{Appendix A} 改成 \chapter{Appendix A}
就会变成
Chapter A Appendix A
内文.......
但是label就可以正确显示
但是会多一个标题
所以现在还是不知道要怎麽样
才能排到想要的样子....
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.116.187.146
1F:→ killyou:问题是counter? \setcount{chapter}{n} 下一章从n+1起跳 05/06 11:03
2F:→ killyou:\alph{counter},\Alph{counter},\arabic{counter}编号种类 05/06 11:06
3F:→ QQrzQQ:改counter好像行不通~~ 05/08 08:54