; TeX output 1996.03.05:1454soDtGGcmr17The7tGGcmss17captionpacqkage!", cmsy10 XQ cmr12HaraldAxelSommerfeldt2axel@hp1.ang-phrysik.uni-kiel.de)37 1995/04/051!Kt : cmbx9Abstractэoo cmr9Theow cmss9captionpac9k|rageprovidesmanywaystocustomisethecaptionsin b oating/Ten9vironmentssuchߤN cmtt9figureandtable.jqThe\rotcaptioncommandband thesidewaysfigureandsidewaystableen9vironments providedbythebrotatinggpac9k|rageFfromS.RahtzandL.BarroAcaarealsosupported.FThebcaption]Lpac9k|ragealsocoAoperates]Lwiththe oatpack|ragewrittenbyA.LingnaubandTthesub gurepac9k|ragewrittenbyS.D.CoAchran.$čI Nff cmbx121aLTheffuserinterfaceIK`y cmr10T*oUUusethispackqagejusttypGeb!IHere's`Canexample gurewhichwasproGducedwiththefollowingcoGdeinthepream-IbleUUofthisdoGcument:b\usepackage[hang,small,bf]{caption}b\setlength{\captionmargin}{20pt}= @˗EXAMPLEUUFIGURE]Figure1:ThisMisanexamplecaptionwithasmallfon9tandasansseriflabAel. TheQhangoptionw9asused.oThereisaleftandrightmarginof20pt.'I3aLTheffcos3deI3.1gIdenti cationuTLsٓRcmr71S\NeedsTeXFormat{LaTeX2e}[1994/06/01] Ls2S\ProvidesPackage{caption}[1995/04/05v1.4bcaptionpackage(HS)]Ls3S\typeout{Package:captionv1.4b<1995/04/05>(HaraldSommerfeldt)}1I3.2gInitialco`deuTb\captionfont t\captionlabelfont 6\captionmarginI\captionsizeUUisde nedforbackwardUUcompatibilitywithv1.3ofthispackqage. #Ls4S\newcommand{\captionsize}{}Ls5S\newcommand{\captionfont}{\captionsize}Ls6S\newcommand{\captionlabelfont}{}Ls7S\newlength{\captionmargin}jIHereUUarethedi erentbasictypGesofcaptionsimplemented:Ft\as@normalcaptionITheUU`normal'captionLs8S\newcommand{\as@normalcaption}[2]{%Ls9]#1#2\par}j 6\as@isucaptionIThe,l`iso'or`hang'caption;thiscoGdewastakenfromTheL5ffA͉TU>'ExXCompanion[3, Ip155]UUandmoGdi edI10S\newcommand{\as@isucaption}[2]{%I11]\sbox{\as@captionbox}{#1\space}%3soI12]\addtolength{\as@captionwidth}{-\wd\as@captionbox}% I13]\usebox{\as@captionbox}\parbox[t]{\as@captionwidth}{\leavevmode#2}}t\as@centercaptionITheUU`center'captionI14S\newcommand{\as@centercaption}[2]{%I15]\parbox[t]{\as@captionwidth}{{\centering#1#2\par}}}f\as@annecaptionITheA`centerlast'caption;MtheideahowtodothiswastakenfromBrGuggemann- IKlein[4],UUitisalsomentionedinKopkqa[5,p227]I16S\newcommand{\as@annecaption}[2]{%I17]\addtolength{\leftskip}{0ptplus1fil}%I18]\addtolength{\rightskip}{0ptplus-1fil}%I19]\setlength{\parfillskip}{0ptplus2fil}%I20]#1#2\par} \as@shortcaptionIShortUUcaptionsarecenteredbydefaultI21S\let\as@shortcaption\as@centercaption6I3.3gDetectionofthesub gurepack@ageuT 6\as@subcapsize 6\@thesubfigure \@thesubtableIIf8thesub gurepackqageisloaded,qalittlemessagewillbGetypGeoutand\as@subcapsize I{whichsetsthesizeofthesubGcaptions{willbede ned.-Also\@thesubfigureIand]\@thesubtablewillbGerede nedheretosupportthe\captionlabelfontIinsubGcaptions,Wtoo(thankstoKevinRulandforthisidea!).#gIfyoudon'tlikeIthisbbGehaviour,ejustloadthecaptionpackqageaftervthesubfigurepackqage(andIeventuallyjrede nethe\subcapsizebyyourself)orrede ne\@thesubfigureandI\@thesubtableXafterloadingthecaptionpackqageasshowninthedoGcumentationIofUUthesub gurepackqage.I22S\ifx\thesubfigure\undefined I23]\newcommand{\as@subcapsize}[1]{}I24S\else%I25]\typeout{\space\space\space\space\space\space\space\space\spaceI26 `subfigure'packagedetected}I27]\let\as@subcapsize\subcapsizeI28]\renewcommand{\@thesubfigure}{{\captionlabelfont\thesubfigure}\space}I29]\renewcommand{\@thesubtable}{{\captionlabelfont\thesubtable}\space}I30S\fi6I3.4gDeclarationofoptionsuTIThere*arefourdi erenttypGesofcaptionssupported:Qnormal,_Kisu,center*and Icenterlast.qhangUUisexactlythesameasisu.I31S\DeclareOption{normal}{\let\as@caption\as@normalcaption}I32S\DeclareOption{isu}{\let\as@caption\as@isucaption}I33S\DeclareOption{hang}{\ExecuteOptions{isu}}I34S\DeclareOption{center}{\let\as@caption\as@centercaption}I35S\DeclareOption{anne}{\let\as@caption\as@annecaption}I36S\DeclareOption{centerlast}{\ExecuteOptions{anne}}IIfUUoptionnoonelineisset,only-one-linecaptionswillbGehaveUUlikenormalones.I37S\DeclareOption{nooneline}{\AtBeginDocument{\let\as@shortcaption\as@caption}}4 soIThere: areoptionsforsixdi erentfontsizesavqailable,6theyalsorede nethe I\subcapsizeUUprovidedbythesub gurepackqage(ifdetected).I38S\DeclareOption{scriptsize}{% I39]\renewcommand{\captionsize}{\scriptsize}I40]\as@subcapsize{\scriptsize}}I41S\DeclareOption{footnotesize}{%I42]\renewcommand{\captionsize}{\footnotesize}I43]\as@subcapsize{\scriptsize}}I44S\DeclareOption{small}{%I45]\renewcommand{\captionsize}{\small}I46]\as@subcapsize{\footnotesize}}I47S\DeclareOption{normalsize}{%I48]\renewcommand{\captionsize}{\normalsize}I49]\as@subcapsize{\footnotesize}}I50S\DeclareOption{large}{%I51]\renewcommand{\captionsize}{\large}I52]\as@subcapsize{\normalsize}}I53S\DeclareOption{Large}{%I54]\renewcommand{\captionsize}{\Large}I55]\as@subcapsize{\large}}IThereUUarenineoptionsavqailabletosetthefontattributesofthecaptionlabGels.I56S\DeclareOption{up}{\renewcommand{\captionlabelfont}{\upshape}}I57S\DeclareOption{it}{\renewcommand{\captionlabelfont}{\itshape}}I58S\DeclareOption{sl}{\renewcommand{\captionlabelfont}{\slshape}}I59S\DeclareOption{sc}{\renewcommand{\captionlabelfont}{\scshape}}I60S\DeclareOption{md}{\renewcommand{\captionlabelfont}{\mdseries}}I61S\DeclareOption{bf}{\renewcommand{\captionlabelfont}{\bfseries}}I62S\DeclareOption{rm}{\renewcommand{\captionlabelfont}{\rmfamily}}I63S\DeclareOption{sf}{\renewcommand{\captionlabelfont}{\sffamily}}I64S\DeclareOption{tt}{\renewcommand{\captionlabelfont}{\ttfamily}}IIftheoptionruledisset,ʑthecaptionsofruled oatsprovidedbythe oatpackqage IwillUUalsobGesupported.I65S\DeclareOption{ruled}{\newcommand\as@ruled{}}6I3.5gExecutionofoptionsuTITheUU`normal'typGeofcaptionispreselected.I66S\ExecuteOptions{normal}I67S\ProcessOptions6I3.6gMainco`deuT 6\as@captionbox \as@captionwidth f\as@makecaption \@makecaptionIAndUUnow...it'sUU...theUUnew\@makecaptioncoGde!I68S\newsavebox{\as@captionbox}I69S\newlength{\as@captionwidth}I70S\newcommand{\as@makecaption}[2]{%I71]\setlength{\leftskip}{\captionmargin}%I72]\setlength{\rightskip}{\captionmargin}%I73]\addtolength{\as@captionwidth}{-2\captionmargin}%I74]\captionfont%I75]\sbox{\as@captionbox}{{\captionlabelfont#1:}#2}%5-VsoI76]\ifdim\wd\as@captionbox>\as@captionwidth I77f\as@caption{{\captionlabelfont#1:}}{#2}%I78]\else%I79f\as@shortcaption{{\captionlabelfont#1:}}{#2}%I80]\fi}I81S\renewcommand{\@makecaption}[2]{%I82]\vskip\abovecaptionskip%I83]\setlength{\as@captionwidth}{\linewidth}%I84]\as@makecaption{#1}{#2}%I85]\vskip\belowcaptionskip}6I3.7gSupp`ortoftherotatingpack@ageuT 6\@makercaption \@makerotcaptionIIftherotatingPpackqageisloaded,"thecommand\@makerotcaption(forsuppGort IofRI\rotcaption)willbGerede nedhere.hThecodewastakenfromtherotatingIpackqageUU[1]itselfandadapted.I86S\ifx\@makerotcaption\undefined I87S\elseI88]\typeout{\space\space\space\space\space\space\space\space\spaceI89 `rotating'packagedetected}I90S%\let\@makercaption\undefinedI91]\renewcommand{\@makerotcaption}[2]{%I92f\captionfont%I93f\sbox{\as@captionbox}{{\captionlabelfont#1:}#2}%I94f\ifdim\wd\as@captionbox>.8\vsizeI95p2\rotatebox{90}{%I96yw^\setlength{\as@captionwidth}{.8\textheight}%I97yw^\begin{minipage}{\as@captionwidth}%I98\as@caption{{\captionlabelfont#1:}}{#2}%I99yw^\end{minipage}}\parE100f\else%E101p2\rotatebox{90}{\usebox{\as@captionbox}}%E102f\fiE103f\hspace{12pt}}E104S\fiI3.8gSupp`ortofthe oatpack@ageuT\floatc@plain \floatc@ruledIIf3the oatpackqageisloaded,thecommand\floatc@plain(andthecommand I\floatc@ruledUUiftheoptionruledisgiven)willbGerede nedhere.E105S\ifx\floatc@plain\undefinedE106S\elseE107]\typeout{\space\space\space\space\space\space\space\space\spaceE108 `float'packagedetected}E109]\renewcommand\floatc@plain[2]{%E110f\setlength{\as@captionwidth}{\linewidth}%E111f\as@makecaption{#1}{#2}}E112]\ifx\as@ruled\undefinedE113]\elseE114f\renewcommand\floatc@ruled[2]{%E115p2\setlength{\as@captionwidth}{\linewidth}%E116p2\captionfont%E117p2\as@caption{{\captionlabelfont#1:}}{#2}}69soE118]\fi E119S\fi!čIReferencesI[1]X;SebastianRahtzandLeonorBarroGca:Astyleoptionforr}'otatedobjectsin X;L雍Q&t}\cmti7ATKß'E-X,UU1994/10/02I[2]X;AnselmUULingnau:qAnImpr}'ovedEnvironmentforFloats,UU1995/03/25I[3]X;MichelGoGossens,F*rankMittelbachandAlexanderSamarin:The7XL雍QATKß'E-XCom-X;p}'anion,nAddison-W*esley,UUReading,Massachusetts,UU1994.I[4]X;AnneBrGuggemann-Klein: Einf uhrung XindieDokumentver}'arbeitung,B.G.X;T*eubner,UUStuttgart,1989I[5]X;HelmutKopkqa:nL雍QATKß'E-X{SErweiterungsmoglichkeiten,=3.ubGerarbeiteteAuflage,X;Addison-W*esley,UUBonn,19917C;&t}\cmti7%R6 cmss12$N cmbx12#m#R cmss10"': cmti10!