÷ƒ’À;è TeX output 1996.04.29:0906‹ÿÿÿÿ ¢•^� ý„j¢ ]•^� ýòQ �‘:¼1ó>DÓítG®G®cmr17éL�Ÿüdú�‘úKGó0X«Q cmr12ÛAŽŽ‘¹”éT�‘ý[™Ÿ¸-EŽ‘;gX-P�Œqaragraphs–7tFloating“around“FiguresŽŸlÏ�����’¦i“ó3›»ˆ@ cmti12ÞThomas‘35KneserŽŽŸ��‘7 óo´‹Ç cmr9ÅGesellscš¾9haft–Tf�AÇ‘û;ur“wissensc˜haftlic˜he“Daten˜v˜erarb�AÇeitung“m˜bH“G‘û`ottingen,“FR˜GŽŽŽŽŽŸ&Yž�’¥Z­ÛAugust–ê¨20,“1990ŽŸ(lÏ�’¸ÿ“ó#ò"V cmbx10ÎAbstractŽŸ@�‘`óKñ`y cmr10²F‘ÿ*ªrequenš¸ãtly–^ž gures“do“not“ ll“the“full“pagewidth.‘�£If“the“width“of“suc˜h“ gures“isޤ �‘`only–£ half“of“the“pagewidth“or“ev�¸ãen“less,‘·3textlines“should“bšGe“set“b˜eside“the“ gures,Ž¡�‘`or–X×{“from“another“p�Goin�¸ãt“of“view“{“ gures“should“` oat'“in“paragraphs.‘|MThis“articleŽ¡�‘`presenš¸ãts–¦Ûthe“L�Ÿýó5�‘üffóÙ“ Rcmr7±AŽŽ‘͉²T�‘þU>Ÿ'EŽ‘ãxX“st˜yle“option“ó$ßêŸ'EŽ‘ãxX's“standard“ gures.Ž©"€A��ó<ÂÖN ff cmbx12ç1Ž‘LËThe–ffname“of“the“gameŽŸq‹�ó'Kñ`y ó3 cmr10ÒThe–ëzmacros“whicš²!h“mak˜e“up“the“ó-ßêþØ\documentstyle[floatfig]{article}ޤ ™š�‘>þ\begin{document}Ž¡�‘>þ\initfloatingfigsŽ¡�‘?þ\begin{floatingfigure}{5.6cm}Ž¡�‘>þ\vspace{6.cm}Ž¡�‘>þ\caption{Intermolecular–¿ªpotential“K-Xe}%“optional“!Ž¡�‘>þ\end{floatingfigure}Ž¡�‘?þ\end{document}Ž¡Ÿbé�Òwhere–{Ø5.6cm“ÒspšMÞeci es“the“width“of“the“ gure“space.‘[ÁA‘zÑFloating“Figure“ma�²!y“only“b˜eŽ¡�requested–¦fin“v�²!ertical“mošMÞde,“that“is“b˜et•²!w“een‘¦fparagraphs.Ž¡�‘A‘õ¹Floating–õæFigure“will“bšMÞe“set“as“so˜on“as“p˜ossible“after“its“request“has“b˜e“encoun�²!teredŽ¡�bš²!y–á¨T�‘þ,³Ÿ[wEŽ‘B X.‘�¤That“means,‘ðyit“will“b�MÞe“tested“if“there“is“enough“v˜ertical“space“on“the“curren˜tŽ¡�page;–¦fotherwise“the“ gure“mo•²!v“es–¦fto“the“next“page.Ž¡�‘Floating–�+Figures“are“set“×alternatingÒ,‘ˆ�that“is“on“the“righ�²!t“hand“side“on“o�MÞdd“and“onŽ¡�the–¦fleft“hand“side“on“evš²!en“n˜um˜b�MÞered“pages.Ž©ç§��ó5ÂÖN  cmbx12à2.1Ž‘ÀRestrictionsŽŸ«ÿ����‘ b%Ò1.ŽŽŽ‘`The–ÅÝØFLOATFIG‘ŤÒstš²!yle“option“ma˜y“not“b�MÞe“com˜bined“with“the“ØTWOCOLUMN‘ŤÒst˜yle“option,ޤ¶ì����‘ b%2.ŽŽŽ‘`a–&¢Floating“Figure“will“nevš²!er“app�MÞear“in“a“paragraph“whic˜h“b�MÞegins“on“top“of“a“page.ŽŸ"c��ç3Ž‘LËAb�s3out–ffthe“in�ŒÌternalsŽŸq‹�ÒW‘ÿee›¦fha•²!v“e˜extended˜the˜macros˜designed˜b“y˜Th.˜Reid˜with˜regard˜to:ŽŸbè����‘ b%1.ŽŽŽ‘`implan•²!tation›¦fin“to˜the˜L�Ÿýûó�‘üÙÀAŽŽ‘ÈGÒT�‘þ,³Ÿ[wEŽ‘B X˜con“text,Ž¡����‘ b%2.ŽŽŽ‘`alternating–¦fsetting“of“Floating“Figures“as“explained“ab�MÞo•²!v“e,Ž¡����‘ b%3.ŽŽŽ‘`generation–¦fof“wš²!arning“messages“for“`collisions'“of“t˜w˜o“Floating“Figures.ަ��à3.1Ž‘ÀImplan• tation›€in“to˜the˜L�ŸýAl�‘û#×óO2Ç@Écmbx8ëOAŽŽ�~/àT�‘ý¿áŸªªEŽ‘ìSX˜con“textŽŸ«ÿ�ÒThe–I‹PLAIN-T�‘þ,³Ÿ[wEŽ‘B X“implemenš²!tation“b˜y“Th.“Reid“is“based“on“a“rede ned“Ø\output“Òroutine:ŽŸbé�‘>þØ\edef\oldoutput{\the\output}%ޤ ™š�‘>þ\output={\the\outputpretest\ifoutput\oldoutput\fi}Ž¡�‘>þ\outputpretest={\outputtrue}Ž¡ŽŸ�’ÌBëÒ2ŽŽŒ‹ q ¢•^� ý„j¢ ]•^� ýÆj¢�ÒIf–âàa“Floating“Figure“is“requested,‘ñþthe“con•²!ten“t–âàof“the“Ø\outputpretest“Òtok�²!en“register“isŽŸ ™š�prepared–¦fto“decide:Ž©i����‘ b%1.ŽŽŽ‘`if–¦fthere“is“enough“v�²!ertical“space“to“set“the“Floating“Figure,ޤ†2����‘ b%2.ŽŽŽ‘`if–¦fsetting“of“a“Floating“Figure“is“in“progress“orŽ¡����‘ b%3.ŽŽŽ‘`if–¦findeed“the“currenš²!t“page“has“to“b�MÞe“sen˜t“to“the“D˜VI“ le.ަ�In–“fgeneral,‘—3T�‘þ,³Ÿ[wEŽ‘B X“has“to“deal“with“more“than“one“paragraph“un�²!til“a“Floating“Figure“willޤ ™š�bšMÞe–5¥completely“pro˜cessed.‘¸GDuring“this“pro˜cess“the“rede ned“Ø\output“Òroutine“is“called“atŽ¡�the–ý”b�MÞegin“of“×ev�¦tery“Òparagraph;‘5Ûthis“is“done“indirectly“bš²!y“expanding“the“con˜trol“sequenceŽ¡�Ø\tryfigÒ.‘”²Therefore,‘]?the–8­Ø\everypar“Òtokš²!en“list“is“prepared“b˜y“the“follo˜wing“commandŽ¡�sequence:ަ�‘>þØ\edef\oldeverypar{\the\everypar}Ž¡�‘>þ\everypar={\tryfig\oldeverypar}Ž¡¦�ÒNoš²!w–A`Ø\tryfig“Òtriggers“the“(mo�MÞdi ed)“Ø\output“Òroutine,‘hwhic˜h“then“do�MÞes“the“decisionsŽ¡�and–¦factions“menš²!tioned“ab�MÞo˜v˜e.Ž¡�‘Adopting–^this“concept“when“using“the“macros“in“the“L�Ÿýûó�‘üÙÀAŽŽ‘ÈGÒT�‘þ,³Ÿ[wEŽ‘B X“con•²!text,‘Œ„w“e–^are“facedŽ¡�with–¦fthe“follo�²!wing“problems:ަ����‘ b%1.ŽŽŽ‘`A�²!t–óthe“time�“ØFLOATFIG.STYŽ‘MÞÒis“read“in,‘,Öthe“Ø\output“Òroutine“is“still“unde ned;‘G¹itsŽ¡�‘`de nition–Ç�is“retarded“un�²!til“Ø\begin{document}“Òwill“b�MÞe“expanded;‘X so“the“rede -Ž¡�‘`nition–þCof“the“Ø\output“Òroutine“has“to“b�MÞe“done“after“Ø\begin{document}“Òb�²!y“theŽ¡�‘`command–¦fØ\initfloatingfigs“Ò(see“section“`Knoš²!wn“Problems'“b�MÞelo˜w).ŽŸ†2����‘ b%2.ŽŽŽ‘`There–Í·are“situations“where“L�Ÿýûó�‘üÙÀAŽŽ‘ÈGÒT�‘þ,³Ÿ[wEŽ‘B X“decides“to“rede ne“the“Ø\everypar“Òtok�²!en“listŽ¡�‘`without–­´saš²!ving“of“the“former“con˜ten˜t;‘1[this“o�MÞccurs“for“instance“when“expandingŽ¡�‘`a–ôÜØ\section“Òconš²!trol“sequence.‘É>W‘ÿee“o˜v˜ercome“this“b˜y“rede ning“Ø\everypar“Òwhen-Ž¡�‘`evš²!er–Cûthe“Ø\floatingfigure“Òen˜vironmen˜t“is“en˜tered.‘¶œHence“to“a˜v˜oid“problems,‘k`aŽ¡�‘`Floating–YdFigure“should“bšMÞe“requested“early“enough“b˜efore“anš²!y“sectioning“con˜trolŽ¡�‘`sequence–¦f(see“also“subsection“`Misleading“collision“w�²!arnings').Ž¡�‘`F‘ÿeurthermore,‘ó¶the–Ç concurrenš²!t“de nitions“of“Ø\everypar“Òare“the“reason“wh˜y“FloatingŽ¡�‘`Figures–¦fcannot“mo•²!v“e–¦facross“section“b�MÞoundaries.ŽŸI^��à3.2Ž‘ÀAlternating–€ gure“settingŽŸ«ÿ�ÒThe–uÌproblem“to“bšMÞe“solv�²!ed“is“to“decide“if“a“certain“ gure“has“to“b˜e“set“left-“or“righ�²!tjusti ed.Ž¡�This–…Qdecision“has“to“made“according“to“the“v‘ÿdDalue“of“the“pagecounš²!t“(left“if“ev˜en,‘‹ïrigh˜t“ifŽ¡�o�MÞdd).‘Æ{That–`@is“wš²!e“are“dealing“with“the“w˜ellkno˜wn“problem“to“asso�MÞciate“a“certain“part“ofŽ¡�input–¦ftext“with“the“n•²!um“bšMÞer–¦fof“the“page“on“whic�²!h“it“will“b˜e“set“ nally‘ÿe.Ž¡�‘As–Hdp�MÞoinš²!ted“out“b˜y“D.E.“Kn˜uth“in“`The“T�‘þ,³Ÿ[wEŽ‘B Xb•MÞo“ok'–Hdthis“assošMÞciation“is“done“not“b˜eforeŽ¡�Ø\output–©èÒroutine“time.‘èbBut“the“problem“is“not“so“hard“to“solv�²!e,‘êÇsince“in“Th.“Reid'sŽŽŸ�’ÌBë3ŽŽŒ‹w ¢•^� ý„j¢ ]•^� ýÆj¢�Òvš²!ersion–“‡there“is“already“a“mo�MÞdi ed“Ø\output“Òroutine“whic˜h“decides“if“a“certain“ gureޤ ™š�will–= t“on“the“currenš²!t“page.‘ ¡éAs“a“b˜y-pro�MÞduct“of“this“decision“one“easily“gains“theŽ¡�information–+`o�MÞdd'“or“`evš²!en'“for“the“pagecoun˜t“of“the“curren˜t“page.‘ E-So“our“problemŽ¡�reduces–¦fto“the“follo�²!wing“simple“decision:Ž©˜7�‘>þØ\ifodd\count0‘¿ª%Ž¡�‘"}ü\hbox–¿ªto“\hsize{\hss\copy\figbox}%Ž¡�‘"}ü\global\oddpagestrueŽ¡�‘þ¨\else%‘¿ªleftsettingŽ¡�‘"}ü\hbox–¿ªto“\hsize{\copy\figbox\hss}%Ž¡�‘"}ü\global\oddpagesfalseŽ¡�‘þ¨\fi%‘¿ª\ifodd\count0Ž¡ŸRB��à3.3Ž‘ÀCollisions–€of“Floating“FiguresŽŸ«ÿ�ÒW‘ÿee–¦fde ne“a“collision“as“a“situation“where:ަ����‘ b%1.ŽŽŽ‘`a–¦fFloating“Figure“is“requested“bšMÞefore“the“predecessor“has“b˜een“ nished,ŽŸ™ ����‘ b%2.ŽŽŽ‘`some–¦fsectioning“is“requested“bšMÞefore“a“Floating“Figure“has“b˜een“ nished.ަ�‘While–îLthe“ØFLOATFIG‘îÒstš²!yle“option“cannot“a˜v˜oid“suc˜h“collisions,‘it“will“recognize“them.Ž¡�F‘ÿeor–Bdiagnostic“purp�MÞoses“wš²!e“ha˜v˜e“therefore“de ned“the“switc˜h“Ø\iffigprocessing“ÒandŽ¡�another–wQcounš²!t“register“called“Ø\ffigcountÒ.‘ PŸThis“coun˜t“register“is“used“to“attac˜h“aŽ¡�sequence›ÇŠn•²!um“b�MÞer˜to˜eac“h˜Floating˜Figure,‘Òso˜they˜can˜b�MÞe˜iden“ti ed˜uniquely˜withinŽ¡�collision–,îwš²!arning“messages.‘qtThese“sequence“n˜um˜bšMÞers“are“not“to“b˜e“confused“with“theŽ¡� gure–¦fcounš²!t“main˜tained“b˜y“standard“L�Ÿýûó�‘üÙÀAŽŽ‘ÈGÒT�‘þ,³Ÿ[wEŽ‘B X.ŽŸ"þ��ç4Ž‘LËKno�ŒÌwn‘ffProblemsŽŸ×ñ��à4.1Ž‘ÀNeed–€of“InitializationŽ©«ÿ�ÒThe–f[presenš²!t“v˜ersion“of“the“st˜yle“option“needs“to“b�MÞe“initialized“b˜y“con˜trol“sequenceŽ¡�Ø\initfloatingfigs–¦fÒas“menš²!tioned“ab�MÞo˜v˜e.Ž¡�‘W‘ÿee–©ðhop�MÞe“a“later“v�²!ersion“will“initialize“itself,‘êÒwhen“the“ rst“request“to“a“FloatingŽ¡�Figure–y§is“encounš²!tered.‘ÎóOne“problem“with“suc˜h“an“automatic“initialization“seems“to“b�MÞe,Ž¡�that–´wš²!e“are“group�MÞed“do˜wn“since“w˜e“are“inside“a“L�Ÿýûó�‘üÙÀAŽŽ‘ÈGÒT�‘þ,³Ÿ[wEŽ‘B X“en˜vironmen˜t.‘ýOur“ rst“attemptŽ¡�failed–¦fto“makš²!e“the“resp�MÞectiv˜e“settings“Ø\globalÒ.ŽŸRB��à4.2Ž‘ÀMisleading–€collision“w� arningsަ�ÒAs–Tmenš²!tioned“ab�MÞo˜v˜e,‘_ŽFloating“Figures“do“not“mo˜v˜e“across“section“b�MÞoundaries.‘ ¦If“aŽ¡�Floating–ÈFigure“is“requested“near“a“section“end,›Ñthe“ gure“will“b�MÞe“truncated,˜if“it“do�MÞesŽ¡�not–¦f t“in“the“curren�²!t“section.ŽŽŸ�’ÌBë4ŽŽŒ‹Ë ¢•^� ý„j¢ ]•^� ýÆj¢�‘ÒIf–rythis“ošMÞccurs“for“instance“with“ oating“ gure“n•²!um“b˜er–ry4,‘|Ûa“collision“will“b˜e“rep˜ortedޤ ™š�when–Zthe“request“for“ oating“ gure“n•²!um“bšMÞer–Z5“is“encoun�²!tered;‘sˆso“the“resp˜ectivš²!e“w˜arningŽ¡�message–œimaš²!y“b�MÞe“substan˜tially“retarded.‘Ú‰In“fact,‘žithe“message“will“tell“us“that“there“is“aŽ¡�problem–ðÝwith“ gure“4,‘+but“there“will“b�MÞe“no“further“hinš²!t.‘¡ZSo“one“has“to“analyze“`b˜y“hand'Ž¡�that–.Ýthe“problem“is“×not“Òcaused“b�²!y“collision“with“ gure“5“but“with“a“section“heading;Ž¡�ev•²!en›¦fw“orse:‘ÝÝif˜there˜is˜no˜ oating˜ gure˜5,˜one˜gets˜no˜w“arning˜message˜at˜all.Ž¡�‘F‘ÿeurthermore,‘m^w�²!arning–_messages“will“b�MÞe“generated“if“a“Floating“Figure“ends“in“para-Ž¡�graph–d®ó(  b> ó3 cmmi10Ón“Òand“the“next“one“b�MÞegins“with“paragraph“Ón–ë|Ò+“1.‘ÇõThese–d®w�²!arning“messages“are“toŽ¡�b�MÞe–¦fignored;“they“are“due“to“some“retardation“caused“bš²!y“the“Ø\everypar“Òmec˜hanism.ŽŸ"€A��ç5Ž‘LËConclusionsŽŸq‹�ÒW‘ÿeorking–vwon“ØFLOATFIG.STY‘vBÒwš²!e“had“some“unexp�MÞected“problems“whic˜h“w˜ere“caused“b˜yŽ¡�L�Ÿýûó�‘üÙÀAŽŽ‘ÈGÒT�‘þ,³Ÿ[wEŽ‘B X's–ê€somewhat“unsafe“assignmenš²!ts“to“the“Ø\everypar“Òtok˜en“list.‘ª*This“is“due“to“theŽ¡�fact–×�that“the“use“of“this“tokš²!en“list“is“fundamen˜tal“to“the“algorithm“designed“b˜y“Th.“Reid.Ž¡�On–Nthe“other“hand“w�²!e“did“exp�MÞect“problems“to“couple“the“Floating“Figures“with“L�Ÿýûó�‘üÙÀAŽŽ‘ÈGÒT�‘þ,³Ÿ[wEŽ‘B X'sŽ¡� gure–Qñcaption“adminstration,‘|Ôthat“is“to“ac•²!hiev“e–Qña“single“ gure“caption“n•²!um“b�MÞering‘QñforŽ¡�the–g»standard“ gures“and“the“Floating“Figures“and“to“get“bšMÞoth“t�²!yp˜es“listed“b�²!y“theŽ¡�Ø\listoffigures–XÖÒconš²!trol“sequence.‘õ-But“these“problems“could“easily“b�MÞe“solv˜ed“b˜y“theŽ¡�folloš²!wing–¦flo�MÞcal“de niton“within“the“ØFLOATFIG“Òen˜vironmen˜t:Ž©™š�‘>þØ\def\@captype{figure}Ž¡¦�ÒOb�²!viously–Ínthis“is“due“to“the“fact“that“L�Ÿýûó�‘üÙÀAŽŽ‘ÈGÒT�‘þ,³Ÿ[wEŽ‘B X's“caption“apparatus“is“thoroughly“param-Ž¡�eterized.Ž¡�‘The–¦fØFLOATFIG.STY“Ò le“is“stored“in“the“ØEARN/BITNET“Òlistserv�²!er“in“Heidelb�MÞerg;Ž¡�ØVM/CMS–¦fÒusers“should“en�²!ter“the“commands:ަ�‘>þØTELL–¿ªLISTSERV“AT“DHDURZ1“GET“LATEXSTY“INDEXŽ¡�‘>þTELL–¿ªLISTSERV“AT“DHDURZ1“GET“LATEXSTY“READMEŽ¡�‘>þTELL–¿ªLISTSERV“AT“DHDURZ1“GET“LATEXSTY“FILELISTŽ¡�‘>þTELL–¿ªLISTSERV“AT“DHDURZ1“GET“FLOATFIG“ZOOUUE“LATEXSTYŽ¡¦�Òto–¦fobtain“information“ab�MÞout“hoš²!w“to“obtain“the“st˜yle“option“ le.ŽŽŸ�’ÌBë5ŽŽŒø(€ƒ’À;袕^�ÿpóO2Ç@Écmbx8ó>DÓítG®G®cmr17ó<ÂÖN ff cmbx12ó5ÂÖN  cmbx12ó3›»ˆ@ cmti12ó0X«Q cmr12ó-ßê ó3 cmmi10ó'Kñ`y ó3 cmr10ó$ßê