caption.dtx.svn-base
来自「moses开源的机器翻译系统」· SVN-BASE 代码 · 共 1,916 行 · 第 1/5 页
SVN-BASE
1,916 行
% \end{picture}}% \iffalse% \captionsetup{labelfont=bf}% \fi% \caption[]{A small example with the caption beside the figure.}% \end{SCfigure}% \captionsetup{labelfont=default}% % \fi% % \iffalse% --------------------------------------------------------------------------- %% \fi% % \subsection{The \package{supertabular} package}% \label{supertabular}% % The \package{supertabular} package\cite{supertabular} offers the environment% |supertabular| which is quite similar to the |longtable| environment provided% by the \package{longtable} package. Both offers the typesetting of tables% which can span multiple pages. For a detailed discussion about the% differences between these powerful packages please take a look at% The \LaTeX\ Companion\cite{companion}.% % \iffalse% --------------------------------------------------------------------------- %% \fi% % \subsection{Known incompatibilities}% % \NEWdescription{v3.0b}% Using the \thispackage\ package together with one of the following packages% is not recommended; usually this would cause unwanted side effects or even% errors:% \begin{quote}% \package{ccaption}, \package{ftcap}, \package{hvfloat}, and% \package{nonfloat}% \end{quote}%% \iffalse% --------------------------------------------------------------------------- %% \fi% % \section{Compatibility to older versions}% \label{compatibility}% % \subsection{The \thispackage\ package version $1.x$}% % This version of the \thispackage\ package still supports the old options% and commands provided by the version $1.x$ of this package. So there% shouldn't occur any problems compiling old documents, but please don't mix% old options and commands with the new ones. This isn't supported and can% yield to ugly side effects.% % Here comes a short oversight of the obsolete options and commands and how% they have been replaced within this version of the \thispackage\ package:% % {\small\begin{longtable}{ll}% \thispackage\ \version{1.x} & \thispackage\ \version{3.x}\\% \hline% \endhead% |normal| & |format=plain|\\% |hang| & |format=hang|\\% |isu| & |format=hang|\\% |center| & |justification=centering|\\% |centerlast| & |justification=centerlast|\\% \iffalse% |anne| & |justification=centerlast|\\% \fi% |nooneline| & |singlelinecheck=off|\\% |scriptsize| & |font=scriptsize|\\% |footnotesize| & |font=footnotesize|\\% |small| & |font=small|\\% |normalsize| & |font=normalsize|\\% |large| & |font=large|\\% |Large| & |font=Large|\\% |up| & |labelfont=up|\\% |it| & |labelfont=it|\\% |sl| & |labelfont=sl|\\% |sc| & |labelfont=sc|\\% |md| & |labelfont=md|\\% |bf| & |labelfont=bf|\\% |rm| & |labelfont=rm|\\% |sf| & |labelfont=sf|\\% |tt| & |labelfont=tt|\\% \end{longtable}}% % Beside the options for setting up the desired font there were also% the commands |\captionsize| resp.~|\captionfont| and |\captionlabelfont|% who could be redefined with |\renewcommand| and allowed an alternate and% more flexible way to change the font used for captions.% This mechanism was replaced by the commands% \begin{minipage}\linewidth\begin{quote}% |\DeclareCaptionFont{|\ldots|}{|\ldots|}|\qquad and\\% |\captionsetup{font=|\ldots|,labelfont=|\ldots|}|\qquad.% \end{quote}\SeeUserDefined\strut\end{minipage}% % Setting the margin for captions was done in \version{1.x} with% \begin{quote}% |\setlength{\captionmargin}{|\ldots|}|\quad.% \end{quote}% This was replaced by% \begin{quote}% |\captionsetup{margin=|\ldots|}|\qquad.% \end{quote}% \See{\Section{margins}{Margins and further paragraph options}}% % For example the old-style code% \begin{quote}% |\usepackage[hang,bf]{caption}|\\% |\renewcommand\captionfont{\small\sffamily}|\\% |\setlength\captionmargin{10pt}|% \end{quote}% should now be written as% \begin{quote}% |\usepackage[format=hang,labelfont=bf,font={small,sf},|\\% | margin=10pt]{caption}|% \end{quote}% or% \begin{quote}% |\usepackage{caption}|\\% |\captionsetup{format=hang,labelfont=bf,font={small,sf},|\\% | margin=10pt}|\qquad.% \end{quote}% % The quite exotic option |ruled| who allowed a partial usage of% the caption settings for |ruled| floats defined with the% \package{float} package will be emulated by this version of the% caption package, too.% But using this option is not recommended anymore since this% version of the \thispackage\ package offers a more flexible way% for changing the captions of these floating environments:% \begin{quote}% |\DeclareCaptionStyle{ruled}{|\ldots|}|% \end{quote}% resp.% \begin{quote}% |\captionsetup[ruled]{|\ldots|}|\qquad.% \end{quote}% \SeeUserDefined[, \Section*{misc}{Useful stuff}, and% \Section*{float}{The \package{float} package}]% % \subsection{The \package{caption2} package version $2.x$}% % Although they do very similar stuff the packages \package{caption} and% its experimental and now obsolete variant \package{caption2} have a% very different implementation design.% Therefore a full compatibility could not be offered.% For that reason you will still find a file called |caption2.sty| in% this package distribution, so old documents using the \package{caption2}% package will still compile fine.% % Newly created documents should use the actual version of the% \thispackage\ package instead. In most cases it's sufficient to replace% the command% \begin{quote}% |\usepackage[...]{caption2}|% \end{quote}% by% \begin{quote}% |\usepackage[...]{caption}|\qquad.% \end{quote}% But some options and commands will not be emulated, so you can get% error messages afterwards. This section will help you removing% these errors. If you have problems migrating from \package{caption2}% to \package{caption} please don't hesitate to send me an e-mail.% % In addition to the obsolete options shown in the last section% these ones will be emulated, too:% % {\small\begin{longtable}{ll}% \package{caption2} \version{2.x} & \thispackage\ \version{3.x}\\% \hline% \endhead% |flushleft| & |justification=raggedright|\\% |flushright| & |justification=raggedleft|\\% |oneline| & |singlelinecheck=on|\\% \end{longtable}}% % Setting the margin for captions was done in \version{2.x} with% \begin{quote}\leavevmode\hbox{%% |\setcaptionmargin{|\ldots|}| resp.% |\setcaptionwidth{|\ldots|}|\quad.% }\end{quote}% This was replaced by% \begin{quote}\leavevmode\hbox{%% |\captionsetup{margin=|\ldots|}| resp.% |\captionsetup{width=|\ldots|}|\quad.% }\end{quote}% \See{\Section{margins}{Margins and further paragraph options}}% % The so-called single-line-check was controlled by the commands% |\oneline|\-|captions|\-|false| (for switching the check off) and% |\oneline|\-|captions|\-|true| (for switching the check on).% This was replaced by% |\captionsetup{|\discretionary{}{}{}|singlelinecheck=|\discretionary{}{}{}|off}|% resp.% |\captionsetup{|\discretionary{}{}{}|singlelinecheck=|\discretionary{}{}{}|on}|.% \See{\Section{justification}{Justification}}% % The commands% \begin{quote}% |\captionstyle|, |\captionlabeldelim|, |\captionlabelsep|,\\% |\captionindent|, |\captionlabelfalse|, |\defcaptionstyle|,\\% |\newcaptionstyle|, and |\renewcaptionstyle|% \end{quote}% do not have a simple replacement and therefore will not be emulated% by this version of the \thispackage\ package. (So using them will% yield to error messages.) Rewriting such code is not always easy and% straight-ahead, but by conscientious reading of this manual you should% find appropriate options and commands instead.% % \iffalse% ... (some examples)% \fi% % The \version{2.x} option |ignoreLTcapwidth| do not have a replacement, too.% But in most cases you could simply drop using that option because% in this version of the \thispackage\ package the value of |\LTcapwidth|% will be ignored anyway (unless you set it to a different value than the% default one).% \See{\Section{longtable}{The \package{longtable} package}}% % \iffalse% --------------------------------------------------------------------------- %% \fi% % \pagebreak[3]% \section{Further reading}% % I recommend the following documents for further reading:% % \begin{itemize}% \item% The \TeX\ FAQ - Frequently asked questions about \TeX\ and \LaTeX :% \begin{quote}\url{http://faq.tug.org/}\end{quote}%% \item% A French FAQ can be found at% \begin{quote}\url{http://www.grappa.univ-lille3.fr/FAQ-LaTeX/}\end{quote}% % \item% \textsf{epslatex} from Keith Reckdahl contains many tips around% including graphics in \LaTeXe\ documents.% You will find this document in the directory% \begin{quote}\url{ftp://ftp.ctan.org/pub/tex/info/epslatex/}\end{quote}% \end{itemize}% % \iffalse% --------------------------------------------------------------------------- %% \fi% % \section{Thanks}% % I would like to thank Katja Melzner,% Steven D. Cochran, Frank Mittelbach,% David Carlisle, Carsten Hinz, Olga Lapko, and Keith Reckdahl.% Thanks a lot for all your help, ideas, patience, spirit, and support!% % Also I would like to thank% Harald Harders,% Peter L\"offler,% Peng Yu,% Alexander Zimmermann,% Matthias Pospiech,% J\"urgen Wieferink,% Christoph Bartoschek,% Uwe St\"ohr,% Ralf Stubner,% Geoff Vallis,% Florian Keiler,% J\"urgen G\"obel,% and% Uwe Siart% who all helped to make this package a better one.% % \iffalse% --------------------------------------------------------------------------- %% \fi% % \StopEventually{\begin{thebibliography}{9}% \bibitem{companion}% Frank Mittelbach and Michel Goossens:% \newblock {\em The {\LaTeX} Companion (2nd.~Ed.)},% \newblock Addison-Wesley, 2004.% % \bibitem{float}% Anselm Lingnau:% \emph{An Improved Environment for Floats},% 2001/11/08% % \bibitem{floatrow}% Olga Lapko:% \emph{The floatrow package documentation},% 2005/05/22%% \bibitem{hyperref}% Sebastian Rahtz:% \emph{Hypertext marks in \LaTeX},% 2003/11/30%% \bibitem{hypcap}% Heiko Oberdiek:% \emph{The hypcap package -- Adjusting anchors of captions}% 2001/08/27%% \bibitem{listings}% Carsten Heinz:% \emph{The Listings Package},% 2004/02/13% % \bibitem{longtable}% David Carlisle:% \emph{The longtable package},% 2000/10/22% % \bibitem{rotating}% Sebastian Rahtz and Leonor Barroca:% \emph{A style option for rotated objects in \LaTeX},% 1997/09/26% % \bibitem{sidecap}% Rolf Niepraschk und Hubert G\"a\ss lein:% \emph{The sidecap package},% 2003/06/06% % \bibitem{subfig}% Steven D. Cochran:% \emph{The subfig package},% 2005/07/05% % \bibitem{supertabular}% Johannes Braams und Theo Jurriens:% \emph{The supertabular environment},% 2002/07/19%% \bibitem{Anne}% Anne Br\"uggemann-Klein:% \emph{Einf\"uhrung in die Dokumentverarbeitung},% B.G. Teubner, Stuttgart, 1989% \end{thebibliography}}%% \iffalse% --------------------------------------------------------------------------- %% \fi% % \DoNotIndex{\\,\_,\ ,\@@par}% \DoNotIndex{\@classoptionslist,\@currext,\@currname}% \DoNotIndex{\@ehc,\@ehd,\@empty,\@expandtwoargs}% \DoNotIndex{\@for,\@firstofone,\@firstoftwo}% \DoNotIndex{\@gobble,\@gobblefour,\@gobbletwo,\@hangfrom}% \DoNotIndex{\@ifnextchar,\@ifstar,\@ifundefined,\@latex@error}% \DoNotIndex{\@namedef,\@nameuse}% \DoNotIndex{\@onlypreamble,\@parboxrestore,\@plus,\@ptionlist}% \DoNotIndex{\@removeelement,\@restorepar,\@secondoftwo,\@setpar}% \DoNotIndex{\@tempa,\@tempboxa,\@tempdima,\@tempdimb,\@tempdimc,\@tempb,\@tempc}% \DoNotIndex{\@undefined,\@unprocessedoptions,\@unusedoptionlist}% \DoNotIndex{\p@,\z@}% \DoNotIndex{\active,\addtocounter,\addtolength,\advance}% \DoNotIndex{\baselineskip,\begin,\begingroup,\bfseries,\box}% \DoNotIndex{\catcode,\centering,\changes,\csname,\def,\divide,\do,\downarrow}% \DoNotIndex{\edef,\else,\empty,\end,\endcsname,\endgraf,\endgroup,\expandafter}% \DoNotIndex{\fi,\footnotesize,\global}% \DoNotIndex{\hangindent,\hbox,\hfil,\hsize,\hskip,\hspace,\hss}% \DoNotIndex{\ifcase,\ifdim,\ifnum,\ifodd,\ifvoid,\ifvmode}% \DoNotIndex{\ifx,\ignorespaces,\itshape}% \DoNotIndex{\Large,\large,\leavevmode,\leftmargini,\leftskip,\let,\linewidth}% \DoNotIndex{\llap,\long,\m@ne,\margin,\mdseries,\message}% \DoNotIndex{\newcommand,\newdimen,\newlength,\newline,\newif,\newsavebox}% \DoNotIndex{\next,\nobreak,\nobreakspace,\noexpand,\noindent,\numberline}% \DoNotIndex{\normalsize,\or,\par,\parbox,\parfillskip}% \DoNotIndex{\parindent,\parskip,\prevdepth,\protect,\protected@edef,\providecommand}% \DoNotIndex{\quad}% \DoNotIndex{\raggedleft,\raggedright,\relax,\renewcommand,\RequirePackage}% \DoNotIndex{\rightskip,\rmfamily}% \DoNotIndex{\sbox,\scriptsize,\scshape,\setbox,\setlength,\sffamily,\slshape}% \DoNotIndex{\small,\string,\space,\strut}% \DoNotIndex{\textheight,\the,\toks@,\typeout,\ttfamily}% \DoNotIndex{\unvbox,\uparrow,\upshape,\usebox,\usepackage}% \DoNotIndex{\value,\v
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?