g*********r 发帖数: 124 | 1 把下面代码加入导言区
\makeatletter
\def\@dottedtocline#1#2#3#4#5{%
\ifnum #1>\c@tocdepth \else
\vskip \z@ \@plus.2\p@
{\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
\parindent #2\relax\@afterindenttrue
\interlinepenalty\@M
\leavevmode
\@tempdima #3\relax
\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
{#4}\nobreak
\leaders\hbox{$\m@th
\mkern \@dotsep mu\hbox{.}\mkern \@dotsep
mu$}\hfill
\nobreak
\hb@xt@\ |
|
D**o 发帖数: 2653 | 2 多谢,太厉害了,这个的确很好,比原来要对title调整好
但也还有个问题,多数情况下下边距要比上边距宽出一点点,用example还行
把p换成b就很明显,而且毕竟出现g,q,j,y,p这几个单词的几率小。
不过这个应该是LaTex的问题,我打算把这两个都保存,换着用。
能否说说leftskip=1.75em,sep=0.75em和原来的leftskip=2.5em有啥不同? |
|
T*******n 发帖数: 493 | 3 The fix I showed you should ensure that whether you type "AAA." or
"ttt." or "(...)" or "xxx." or "ggg.", the periods will always be in the
same vertical position.
You had leftskip=2.5em, but relied on using \vskip to add spaces
above and below the title. I used sep=0.75em to add spaces all around
the title text, so the new leftskip is (2.5-0.75)=1.75em.
In your original code, the first \vskip would be added directly above
the tallest letter on the first line, so if the first line had only lett |
|
g*********r 发帖数: 124 | 4 把下面的代码加入导言区
\makeatletter
\renewcommand\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
\makeatother |
|
i*i 发帖数: 918 | 5 {\leftskip 1in
your
paragraphs
} |
|
D**o 发帖数: 2653 | 6 这个我说的类似banner的code如下
\begin{beamercolorbox}[leftskip=2.5em,wd=\paperwidth]{talktitle}{\vspace{.
1em}\\{\LARGE #1}\\\vspace{.7em}}\end{beamercolorbox}
在正文的document里面关于talktitle的部分
\titlepage{题目} |
|
T*******n 发帖数: 493 | 7 This fixed the problem.
\begin{beamercolorbox}%
[leftskip=1.75em,sep=0.75em,wd=\paperwidth]{talktitle}%
{\LARGE\strut#1\strut\par}%
\end{beamercolorbox} |
|