由买买提看人间百态

topics

全部话题 - 话题: tempboxa
(共0页)
g*********r
发帖数: 124
1
来自主题: TeX版 - 怎样让table caption左对齐?
假设你用的是 article.cls,把下面的代码加入导言区
\makeatletter
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
\sbox\@tempboxa{#1: #2}%
\ifdim \wd\@tempboxa >\hsize
#1: #2\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
\makeatother
S********y
发帖数: 182
2
毕业论文要求figure caption要用single spacing. 对修改 .cls 文件一窍不通, 有高
人能帮忙看一下么?
\long\def\@makecaption#1#2{% Add space only if something is ...
\par\ifdim\prevdepth>-\p@ \vskip 10\p@\relax \fi % above the caption
\setbox\@tempboxa\hbox{\vbox to\topskip{}#1: #2\unskip\strut}%
\ifdim \wd\@tempboxa >\hsize % IF longer than one line:
{\ssp#1: #2\unskip\strut\par} % THEN set as ordinary paragraph.
\else % ELSE center.
\hbox to\hsize{\hfil\unhbox\@te
(共0页)