24小时热门版块排行榜    

CyRhmU.jpeg
查看: 2597  |  回复: 0

lon91ong

木虫 (初入文坛)

[求助] 求助latex中目录引导符和页面前后距离的调整

从网上的一篇资料中找到了下面的参考说明:
目录的缺省设置
%连线和页码间的距离
\contentsmargin{1.2em}
\titlecontents{section}[4em]{\large}{\contentslabel{2.0em}}{\hspace*{-2.0em}}{\titlerule*[1pc]{.}\contentspage}[\vspace{1pt}]
%section 改变的名字section,chapter,subsection,figure,table等
%[4em] 整个目录左面的距离
%\large global属性设置
%\contentslabel{2.0em} 有label的目录项title body的位置
%\hspace*{-2.0em} 没有label的目录项title body的位置
%\titlerule*[1pc]{.}\contentspage 连线和页码
%[\vspace{1pt}] 最后的设置,可以指定目录项后的距离
\titlecontents{subsection}[4.5em]{\large}{\contentslabel{2.5em}}{\hspace*{-2.5em}}{\titlerule*[1pc]{.}\contentspage}[\vspace{1pt}]
而后我用了下面的代码
CODE:
{\contentsmargin{3pt}\hspace{0.3em}\titlerule*[3pt]{.}\contentspage}[\addvspace{3pt}]

生成了下图的效果
效果图中,页码是左对齐的,想要将页码右对齐得到word中类似下面的效果该如何调整呢?
回复此楼
[img]http://latex.codecogs.com/gif.latex?$\begin{eqnarray*} e^{\mathrm{i}x}=\cos x+\mathrm{i}\sin x\: \end{eqnarray*}$[/img]
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

找到一些相关的精华帖子,希望有用哦~

科研从小木虫开始,人人为我,我为人人
相关版块跳转 我要订阅楼主 lon91ong 的主题更新
信息提示
请填处理意见