÷ƒ’À;è TeX output 1996.10.01:1503‹ÿÿÿÿ «‹'� ýutÙ l‹'� ýã[C�‘:¼1óDÓítG®G®cmr17ºL�Ÿüdú�‘úKGóX«Q cmr12»AŽŽ‘¹”ºT�‘ý[™Ÿ¸-EŽ‘;gX-P�Œqaragraphs–7tFloating“around“FiguresŽŸlÏ�����’¦i“󛻈@ 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}Ž¡©™š�¹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.ޤR…��ó%ÂÖ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.ŽŸ"€A��Ë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%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�‘û#×ó&2Ç@Écmbx8ÑAŽŽ�~/Ð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:ަ�‘>þÌ\edef\oldoutput{\the\output}%ޤ ™š�‘>þ\output={\the\outputpretest\ifoutput\oldoutput\fi}Ž¡�‘>þ\outputpretest={\outputtrue}Ž¡ŽŸ�’ÌBë¹2ŽŽŒ‹ q «‹'� ýutÙ l‹'� ý·tÙ�¹If–âàa“Floating“Figure“is“requested,‘ñþthe“con•²!ten“t–âàof“the“Ì\outputpretest“¹tok�²!en“register“isŽ© ™š�prepared–¦fto“decide:ޤ™š����‘ b%1.ŽŽŽ‘`if–¦fthere“is“enough“v�²!ertical“space“to“set“the“Floating“Figure,Ž¡����‘ 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).Ž¡����‘ 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.ŽŸR…��Ð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ަ�vš²!ersion–“‡there“is“already“a“mo�MÞdi ed“Ì\output“¹routine“whic˜h“decides“if“a“certain“ gureŽŽŸ�’ÌBë3ŽŽŒ‹m «‹'� ýutÙ l‹'� ý·tÙ�¹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:Ž©™š�‘>þÌ\ifodd\count0‘¿ª%Ž¡�‘"}ü\hbox–¿ªto“\hsize{\hss\copy\figbox}%Ž¡�‘"}ü\global\oddpagestrueŽ¡�‘þ¨\else%‘¿ªleftsettingŽ¡�‘"}ü\hbox–¿ªto“\hsize{\copy\figbox\hss}%Ž¡�‘"}ü\global\oddpagesfalseŽ¡�‘þ¨\fi%‘¿ª\ifodd\count0Ž¡ŸR…��Ð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.ŽŸ"€A��Ë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.��Ÿü¾À1ŽŽŽ¡�‘¹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¹.ŽŸR…��Ð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.ŽŸff‰ff¥˜ºŸ LÍ����‘ {ºŸü-=ó¹Aa¨cmr6Á1ŽŽŽ‘¦aÇThis–Tis“not“needed“with�“L�Ÿýó5�‘ü«‡ÁAŽŽ‘© ÇT�‘þuAŸïÿEŽ‘˜ŸX‘c.2�Ÿÿÿó'5ùž" cmmi9Ò"ŽŽ‘%‹Ç.‘p/MDŽŽŸ�’ÌBë¹4ŽŽŒ‹ «‹'� ýutÙ l‹'� ý·tÙ�‘¹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.ŽŸR…��Ð5.1Ž‘ÀNote–€b� y“Mats“DahlgrenŽŸ«ÿ�¹Sev�²!eral–‹¶features“describšMÞed“in“this“do˜cumenš²!t“still“apply“to“the�“L�Ÿýûó�‘üÙÀAŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X‘¤v2�Ÿ¤zÎ"ŽŽ‘/ÑëÌfloatflt“¹pac˜k-Ž¡�age,‘ðwhereas–®{others“do“not.‘öPlease“run“L�Ÿýûó�‘üÙÀAŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“on“Ìfloatflt.dtx“¹t�²!wice“and“read“theŽ¡�resulting–a›došMÞcumen�²!tation“b˜efore“yš²!ou“use“the“pac˜k‘ÿdDage.‘Æï(This“note“w˜as“added“on“Octob�MÞerŽ¡�20,–¦f1994;“cš²!hanged“on“Decem˜b�MÞer“27,“1994.)ŽŽŸ�’ÌBë5ŽŽŒø)#ƒ’À;è«‹'�ÿpó'5ùž" cmmi9ó&2Ç@Écmbx8ó%ÂÖN  cmbx12ó#  b> ó3 cmmi10ó"ò"V ó3 cmbx10ó!ßê