555
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4702 lines
197 KiB

  1. %%
  2. %% IEEEtran.cls 2007/03/05 version V1.7a
  3. %%
  4. %%
  5. %% This is the official IEEE LaTeX class for authors of the Institute of
  6. %% Electrical and Electronics Engineers (IEEE) Transactions journals and
  7. %% conferences.
  8. %%
  9. %% Support sites:
  10. %% http://www.michaelshell.org/tex/ieeetran/
  11. %% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/
  12. %% and
  13. %% http://www.ieee.org/
  14. %%
  15. %% Based on the original 1993 IEEEtran.cls, but with many bug fixes
  16. %% and enhancements (from both JVH and MDS) over the 1996/7 version.
  17. %%
  18. %%
  19. %% Contributors:
  20. %% Gerry Murray (1993), Silvano Balemi (1993),
  21. %% Jon Dixon (1996), Peter N"uchter (1996),
  22. %% Juergen von Hagen (2000), and Michael Shell (2001-2007)
  23. %%
  24. %%
  25. %% Copyright (c) 1993-2000 by Gerry Murray, Silvano Balemi,
  26. %% Jon Dixon, Peter N"uchter,
  27. %% Juergen von Hagen
  28. %% and
  29. %% Copyright (c) 2001-2007 by Michael Shell
  30. %%
  31. %% Current maintainer (V1.3 to V1.7): Michael Shell
  32. %% See:
  33. %% http://www.michaelshell.org/
  34. %% for current contact information.
  35. %%
  36. %% Special thanks to Peter Wilson (CUA) and Donald Arseneau
  37. %% for allowing the inclusion of the \@ifmtarg command
  38. %% from their ifmtarg LaTeX package.
  39. %%
  40. %%*************************************************************************
  41. %% Legal Notice:
  42. %% This code is offered as-is without any warranty either expressed or
  43. %% implied; without even the implied warranty of MERCHANTABILITY or
  44. %% FITNESS FOR A PARTICULAR PURPOSE!
  45. %% User assumes all risk.
  46. %% In no event shall IEEE or any contributor to this code be liable for
  47. %% any damages or losses, including, but not limited to, incidental,
  48. %% consequential, or any other damages, resulting from the use or misuse
  49. %% of any information contained here.
  50. %%
  51. %% All comments are the opinions of their respective authors and are not
  52. %% necessarily endorsed by the IEEE.
  53. %%
  54. %% This work is distributed under the LaTeX Project Public License (LPPL)
  55. %% ( http://www.latex-project.org/ ) version 1.3, and may be freely used,
  56. %% distributed and modified. A copy of the LPPL, version 1.3, is included
  57. %% in the base LaTeX documentation of all distributions of LaTeX released
  58. %% 2003/12/01 or later.
  59. %% Retain all contribution notices and credits.
  60. %% ** Modified files should be clearly indicated as such, including **
  61. %% ** renaming them and changing author support contact information. **
  62. %%
  63. %% File list of work: IEEEtran.cls, IEEEtran_HOWTO.pdf, bare_adv.tex,
  64. %% bare_conf.tex, bare_jrnl.tex, bare_jrnl_compsoc.tex
  65. %%
  66. %% Major changes to the user interface should be indicated by an
  67. %% increase in the version numbers. If a version is a beta, it will
  68. %% be indicated with a BETA suffix, i.e., 1.4 BETA.
  69. %% Small changes can be indicated by appending letters to the version
  70. %% such as "IEEEtran_v14a.cls".
  71. %% In all cases, \Providesclass, any \typeout messages to the user,
  72. %% \IEEEtransversionmajor and \IEEEtransversionminor must reflect the
  73. %% correct version information.
  74. %% The changes should also be documented via source comments.
  75. %%*************************************************************************
  76. %%
  77. %
  78. % Available class options
  79. % e.g., \documentclass[10pt,conference]{IEEEtran}
  80. %
  81. % *** choose only one from each category ***
  82. %
  83. % 9pt, 10pt, 11pt, 12pt
  84. % Sets normal font size. The default is 10pt.
  85. %
  86. % conference, journal, technote, peerreview, peerreviewca
  87. % determines format mode - conference papers, journal papers,
  88. % correspondence papers (technotes), or peer review papers. The user
  89. % should also select 9pt when using technote. peerreview is like
  90. % journal mode, but provides for a single-column "cover" title page for
  91. % anonymous peer review. The paper title (without the author names) is
  92. % repeated at the top of the page after the cover page. For peer review
  93. % papers, the \IEEEpeerreviewmaketitle command must be executed (will
  94. % automatically be ignored for non-peerreview modes) at the place the
  95. % cover page is to end, usually just after the abstract (keywords are
  96. % not normally used with peer review papers). peerreviewca is like
  97. % peerreview, but allows the author names to be entered and formatted
  98. % as with conference mode so that author affiliation and contact
  99. % information can be easily seen on the cover page.
  100. % The default is journal.
  101. %
  102. % draft, draftcls, draftclsnofoot, final
  103. % determines if paper is formatted as a widely spaced draft (for
  104. % handwritten editor comments) or as a properly typeset final version.
  105. % draftcls restricts draft mode to the class file while all other LaTeX
  106. % packages (i.e., \usepackage{graphicx}) will behave as final - allows
  107. % for a draft paper with visible figures, etc. draftclsnofoot is like
  108. % draftcls, but does not display the date and the word "DRAFT" at the foot
  109. % of the pages. If using one of the draft modes, the user will probably
  110. % also want to select onecolumn.
  111. % The default is final.
  112. %
  113. % letterpaper, a4paper
  114. % determines paper size: 8.5in X 11in or 210mm X 297mm. CHANGING THE PAPER
  115. % SIZE WILL NOT ALTER THE TYPESETTING OF THE DOCUMENT - ONLY THE MARGINS
  116. % WILL BE AFFECTED. In particular, documents using the a4paper option will
  117. % have reduced side margins (A4 is narrower than US letter) and a longer
  118. % bottom margin (A4 is longer than US letter). For both cases, the top
  119. % margins will be the same and the text will be horizontally centered.
  120. % For final submission to IEEE, authors should use US letter (8.5 X 11in)
  121. % paper. Note that authors should ensure that all post-processing
  122. % (ps, pdf, etc.) uses the same paper specificiation as the .tex document.
  123. % Problems here are by far the number one reason for incorrect margins.
  124. % IEEEtran will automatically set the default paper size under pdflatex
  125. % (without requiring a change to pdftex.cfg), so this issue is more
  126. % important to dvips users. Fix config.ps, config.pdf, or ~/.dvipsrc for
  127. % dvips, or use the dvips -t papersize option instead as needed. See the
  128. % testflow documentation
  129. % http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/testflow
  130. % for more details on dvips paper size configuration.
  131. % The default is letterpaper.
  132. %
  133. % oneside, twoside
  134. % determines if layout follows single sided or two sided (duplex)
  135. % printing. The only notable change is with the headings at the top of
  136. % the pages.
  137. % The default is oneside.
  138. %
  139. % onecolumn, twocolumn
  140. % determines if text is organized into one or two columns per page. One
  141. % column mode is usually used only with draft papers.
  142. % The default is twocolumn.
  143. %
  144. % compsoc
  145. % Use the format of the IEEE Computer Society.
  146. %
  147. % romanappendices
  148. % Use the "Appendix I" convention when numbering appendices. IEEEtran.cls
  149. % now defaults to Alpha "Appendix A" convention - the opposite of what
  150. % v1.6b and earlier did.
  151. %
  152. % captionsoff
  153. % disables the display of the figure/table captions. Some IEEE journals
  154. % request that captions be removed and figures/tables be put on pages
  155. % of their own at the end of an initial paper submission. The endfloat
  156. % package can be used with this class option to achieve this format.
  157. %
  158. % nofonttune
  159. % turns off tuning of the font interword spacing. Maybe useful to those
  160. % not using the standard Times fonts or for those who have already "tuned"
  161. % their fonts.
  162. % The default is to enable IEEEtran to tune font parameters.
  163. %
  164. %
  165. %----------
  166. % Available CLASSINPUTs provided (all are macros unless otherwise noted):
  167. % \CLASSINPUTbaselinestretch
  168. % \CLASSINPUTinnersidemargin
  169. % \CLASSINPUToutersidemargin
  170. % \CLASSINPUTtoptextmargin
  171. % \CLASSINPUTbottomtextmargin
  172. %
  173. % Available CLASSINFOs provided:
  174. % \ifCLASSINFOpdf (TeX if conditional)
  175. % \CLASSINFOpaperwidth (macro)
  176. % \CLASSINFOpaperheight (macro)
  177. % \CLASSINFOnormalsizebaselineskip (length)
  178. % \CLASSINFOnormalsizeunitybaselineskip (length)
  179. %
  180. % Available CLASSOPTIONs provided:
  181. % all class option flags (TeX if conditionals) unless otherwise noted,
  182. % e.g., \ifCLASSOPTIONcaptionsoff
  183. % point size options provided as a single macro:
  184. % \CLASSOPTIONpt
  185. % which will be defined as 9, 10, 11, or 12 depending on the document's
  186. % normalsize point size.
  187. % also, class option peerreviewca implies the use of class option peerreview
  188. % and classoption draft implies the use of class option draftcls
  189. \ProvidesClass{IEEEtran}[2007/03/05 V1.7a by Michael Shell]
  190. \typeout{-- See the "IEEEtran_HOWTO" manual for usage information.}
  191. \typeout{-- http://www.michaelshell.org/tex/ieeetran/}
  192. \NeedsTeXFormat{LaTeX2e}
  193. % IEEEtran.cls version numbers, provided as of V1.3
  194. % These values serve as a way a .tex file can
  195. % determine if the new features are provided.
  196. % The version number of this IEEEtrans.cls can be obtained from
  197. % these values. i.e., V1.4
  198. % KEEP THESE AS INTEGERS! i.e., NO {4a} or anything like that-
  199. % (no need to enumerate "a" minor changes here)
  200. \def\IEEEtransversionmajor{1}
  201. \def\IEEEtransversionminor{7}
  202. % These do nothing, but provide them like in article.cls
  203. \newif\if@restonecol
  204. \newif\if@titlepage
  205. % class option conditionals
  206. \newif\ifCLASSOPTIONonecolumn \CLASSOPTIONonecolumnfalse
  207. \newif\ifCLASSOPTIONtwocolumn \CLASSOPTIONtwocolumntrue
  208. \newif\ifCLASSOPTIONoneside \CLASSOPTIONonesidetrue
  209. \newif\ifCLASSOPTIONtwoside \CLASSOPTIONtwosidefalse
  210. \newif\ifCLASSOPTIONfinal \CLASSOPTIONfinaltrue
  211. \newif\ifCLASSOPTIONdraft \CLASSOPTIONdraftfalse
  212. \newif\ifCLASSOPTIONdraftcls \CLASSOPTIONdraftclsfalse
  213. \newif\ifCLASSOPTIONdraftclsnofoot \CLASSOPTIONdraftclsnofootfalse
  214. \newif\ifCLASSOPTIONpeerreview \CLASSOPTIONpeerreviewfalse
  215. \newif\ifCLASSOPTIONpeerreviewca \CLASSOPTIONpeerreviewcafalse
  216. \newif\ifCLASSOPTIONjournal \CLASSOPTIONjournaltrue
  217. \newif\ifCLASSOPTIONconference \CLASSOPTIONconferencefalse
  218. \newif\ifCLASSOPTIONtechnote \CLASSOPTIONtechnotefalse
  219. \newif\ifCLASSOPTIONnofonttune \CLASSOPTIONnofonttunefalse
  220. \newif\ifCLASSOPTIONcaptionsoff \CLASSOPTIONcaptionsofffalse
  221. \newif\ifCLASSOPTIONcompsoc \CLASSOPTIONcompsocfalse
  222. \newif\ifCLASSOPTIONromanappendices \CLASSOPTIONromanappendicesfalse
  223. % class info conditionals
  224. % indicates if pdf (via pdflatex) output
  225. \newif\ifCLASSINFOpdf \CLASSINFOpdffalse
  226. % V1.6b internal flag to show if using a4paper
  227. \newif\if@IEEEusingAfourpaper \@IEEEusingAfourpaperfalse
  228. % IEEEtran class scratch pad registers
  229. % dimen
  230. \newdimen\@IEEEtrantmpdimenA
  231. \newdimen\@IEEEtrantmpdimenB
  232. % count
  233. \newcount\@IEEEtrantmpcountA
  234. \newcount\@IEEEtrantmpcountB
  235. % token list
  236. \newtoks\@IEEEtrantmptoksA
  237. % we use \CLASSOPTIONpt so that we can ID the point size (even for 9pt docs)
  238. % as well as LaTeX's \@ptsize to retain some compatability with some
  239. % external packages
  240. \def\@ptsize{0}
  241. % LaTeX does not support 9pt, so we set \@ptsize to 0 - same as that of 10pt
  242. \DeclareOption{9pt}{\def\CLASSOPTIONpt{9}\def\@ptsize{0}}
  243. \DeclareOption{10pt}{\def\CLASSOPTIONpt{10}\def\@ptsize{0}}
  244. \DeclareOption{11pt}{\def\CLASSOPTIONpt{11}\def\@ptsize{1}}
  245. \DeclareOption{12pt}{\def\CLASSOPTIONpt{12}\def\@ptsize{2}}
  246. \DeclareOption{letterpaper}{\setlength{\paperheight}{11in}%
  247. \setlength{\paperwidth}{8.5in}%
  248. \@IEEEusingAfourpaperfalse
  249. \def\CLASSOPTIONpaper{letter}%
  250. \def\CLASSINFOpaperwidth{8.5in}%
  251. \def\CLASSINFOpaperheight{11in}}
  252. \DeclareOption{a4paper}{\setlength{\paperheight}{297mm}%
  253. \setlength{\paperwidth}{210mm}%
  254. \@IEEEusingAfourpapertrue
  255. \def\CLASSOPTIONpaper{a4}%
  256. \def\CLASSINFOpaperwidth{210mm}%
  257. \def\CLASSINFOpaperheight{297mm}}
  258. \DeclareOption{oneside}{\@twosidefalse\@mparswitchfalse
  259. \CLASSOPTIONonesidetrue\CLASSOPTIONtwosidefalse}
  260. \DeclareOption{twoside}{\@twosidetrue\@mparswitchtrue
  261. \CLASSOPTIONtwosidetrue\CLASSOPTIONonesidefalse}
  262. \DeclareOption{onecolumn}{\CLASSOPTIONonecolumntrue\CLASSOPTIONtwocolumnfalse}
  263. \DeclareOption{twocolumn}{\CLASSOPTIONtwocolumntrue\CLASSOPTIONonecolumnfalse}
  264. % If the user selects draft, then this class AND any packages
  265. % will go into draft mode.
  266. \DeclareOption{draft}{\CLASSOPTIONdrafttrue\CLASSOPTIONdraftclstrue
  267. \CLASSOPTIONdraftclsnofootfalse}
  268. % draftcls is for a draft mode which will not affect any packages
  269. % used by the document.
  270. \DeclareOption{draftcls}{\CLASSOPTIONdraftfalse\CLASSOPTIONdraftclstrue
  271. \CLASSOPTIONdraftclsnofootfalse}
  272. % draftclsnofoot is like draftcls, but without the footer.
  273. \DeclareOption{draftclsnofoot}{\CLASSOPTIONdraftfalse\CLASSOPTIONdraftclstrue
  274. \CLASSOPTIONdraftclsnofoottrue}
  275. \DeclareOption{final}{\CLASSOPTIONdraftfalse\CLASSOPTIONdraftclsfalse
  276. \CLASSOPTIONdraftclsnofootfalse}
  277. \DeclareOption{journal}{\CLASSOPTIONpeerreviewfalse\CLASSOPTIONpeerreviewcafalse
  278. \CLASSOPTIONjournaltrue\CLASSOPTIONconferencefalse\CLASSOPTIONtechnotefalse}
  279. \DeclareOption{conference}{\CLASSOPTIONpeerreviewfalse\CLASSOPTIONpeerreviewcafalse
  280. \CLASSOPTIONjournalfalse\CLASSOPTIONconferencetrue\CLASSOPTIONtechnotefalse}
  281. \DeclareOption{technote}{\CLASSOPTIONpeerreviewfalse\CLASSOPTIONpeerreviewcafalse
  282. \CLASSOPTIONjournalfalse\CLASSOPTIONconferencefalse\CLASSOPTIONtechnotetrue}
  283. \DeclareOption{peerreview}{\CLASSOPTIONpeerreviewtrue\CLASSOPTIONpeerreviewcafalse
  284. \CLASSOPTIONjournalfalse\CLASSOPTIONconferencefalse\CLASSOPTIONtechnotefalse}
  285. \DeclareOption{peerreviewca}{\CLASSOPTIONpeerreviewtrue\CLASSOPTIONpeerreviewcatrue
  286. \CLASSOPTIONjournalfalse\CLASSOPTIONconferencefalse\CLASSOPTIONtechnotefalse}
  287. \DeclareOption{nofonttune}{\CLASSOPTIONnofonttunetrue}
  288. \DeclareOption{captionsoff}{\CLASSOPTIONcaptionsofftrue}
  289. \DeclareOption{compsoc}{\CLASSOPTIONcompsoctrue}
  290. \DeclareOption{romanappendices}{\CLASSOPTIONromanappendicestrue}
  291. % default to US letter paper, 10pt, twocolumn, one sided, final, journal
  292. \ExecuteOptions{letterpaper,10pt,twocolumn,oneside,final,journal}
  293. % overrride these defaults per user requests
  294. \ProcessOptions
  295. % Computer Society conditional execution command
  296. \long\def\@IEEEcompsoconly#1{\relax\ifCLASSOPTIONcompsoc\relax#1\relax\fi\relax}
  297. % inverse
  298. \long\def\@IEEEnotcompsoconly#1{\relax\ifCLASSOPTIONcompsoc\else\relax#1\relax\fi\relax}
  299. % compsoc conference
  300. \long\def\@IEEEcompsocconfonly#1{\relax\ifCLASSOPTIONcompsoc\ifCLASSOPTIONconference\relax#1\relax\fi\fi\relax}
  301. % compsoc not conference
  302. \long\def\@IEEEcompsocnotconfonly#1{\relax\ifCLASSOPTIONcompsoc\ifCLASSOPTIONconference\else\relax#1\relax\fi\fi\relax}
  303. % IEEE uses Times Roman font, so we'll default to Times.
  304. % These three commands make up the entire times.sty package.
  305. \renewcommand{\sfdefault}{phv}
  306. \renewcommand{\rmdefault}{ptm}
  307. \renewcommand{\ttdefault}{pcr}
  308. \@IEEEcompsoconly{\typeout{-- Using IEEE Computer Society mode.}}
  309. % V1.7 compsoc nonconference papers, use Palatino/Palladio as the main text font,
  310. % not Times Roman.
  311. \@IEEEcompsocnotconfonly{\renewcommand{\rmdefault}{ppl}}
  312. % enable Times/Palatino main text font
  313. \normalfont\selectfont
  314. % V1.7 conference notice message hook
  315. \def\@IEEEconsolenoticeconference{\typeout{}%
  316. \typeout{** Conference Paper **}%
  317. \typeout{Before submitting the final camera ready copy, remember to:}%
  318. \typeout{}%
  319. \typeout{ 1. Manually equalize the lengths of two columns on the last page}%
  320. \typeout{ of your paper;}%
  321. \typeout{}%
  322. \typeout{ 2. Ensure that any PostScript and/or PDF output post-processing}%
  323. \typeout{ uses only Type 1 fonts and that every step in the generation}%
  324. \typeout{ process uses the appropriate paper size.}%
  325. \typeout{}}
  326. % we can send console reminder messages to the user here
  327. \AtEndDocument{\ifCLASSOPTIONconference\@IEEEconsolenoticeconference\fi}
  328. % warn about the use of single column other than for draft mode
  329. \ifCLASSOPTIONtwocolumn\else%
  330. \ifCLASSOPTIONdraftcls\else%
  331. \typeout{** ATTENTION: Single column mode is not typically used with IEEE publications.}%
  332. \fi%
  333. \fi
  334. % V1.7 improved paper size setting code.
  335. % Set pdfpage and dvips paper sizes. Conditional tests are similar to that
  336. % of ifpdf.sty. Retain within {} to ensure tested macros are never altered,
  337. % even if only effect is to set them to \relax.
  338. % if \pdfoutput is undefined or equal to relax, output a dvips special
  339. {\@ifundefined{pdfoutput}{\AtBeginDvi{\special{papersize=\CLASSINFOpaperwidth,\CLASSINFOpaperheight}}}{%
  340. % pdfoutput is defined and not equal to \relax
  341. % check for pdfpageheight existence just in case someone sets pdfoutput
  342. % under non-pdflatex. If exists, set them regardless of value of \pdfoutput.
  343. \@ifundefined{pdfpageheight}{\relax}{\global\pdfpagewidth\paperwidth
  344. \global\pdfpageheight\paperheight}%
  345. % if using \pdfoutput=0 under pdflatex, send dvips papersize special
  346. \ifcase\pdfoutput
  347. \AtBeginDvi{\special{papersize=\CLASSINFOpaperwidth,\CLASSINFOpaperheight}}%
  348. \else
  349. % we are using pdf output, set CLASSINFOpdf flag
  350. \global\CLASSINFOpdftrue
  351. \fi}}
  352. % let the user know the selected papersize
  353. \typeout{-- Using \CLASSINFOpaperwidth\space x \CLASSINFOpaperheight\space
  354. (\CLASSOPTIONpaper)\space paper.}
  355. \ifCLASSINFOpdf
  356. \typeout{-- Using PDF output.}
  357. \else
  358. \typeout{-- Using DVI output.}
  359. \fi
  360. % The idea hinted here is for LaTeX to generate markleft{} and markright{}
  361. % automatically for you after you enter \author{}, \journal{},
  362. % \journaldate{}, journalvol{}, \journalnum{}, etc.
  363. % However, there may be some backward compatibility issues here as
  364. % well as some special applications for IEEEtran.cls and special issues
  365. % that may require the flexible \markleft{}, \markright{} and/or \markboth{}.
  366. % We'll leave this as an open future suggestion.
  367. %\newcommand{\journal}[1]{\def\@journal{#1}}
  368. %\def\@journal{}
  369. % pointsize values
  370. % used with ifx to determine the document's normal size
  371. \def\@IEEEptsizenine{9}
  372. \def\@IEEEptsizeten{10}
  373. \def\@IEEEptsizeeleven{11}
  374. \def\@IEEEptsizetwelve{12}
  375. % FONT DEFINITIONS (No sizexx.clo file needed)
  376. % V1.6 revised font sizes, displayskip values and
  377. % revised normalsize baselineskip to reduce underfull vbox problems
  378. % on the 58pc = 696pt = 9.5in text height we want
  379. % normalsize #lines/column baselineskip (aka leading)
  380. % 9pt 63 11.0476pt (truncated down)
  381. % 10pt 58 12pt (exact)
  382. % 11pt 52 13.3846pt (truncated down)
  383. % 12pt 50 13.92pt (exact)
  384. %
  385. % we need to store the nominal baselineskip for the given font size
  386. % in case baselinestretch ever changes.
  387. % this is a dimen, so it will not hold stretch or shrink
  388. \newdimen\@IEEEnormalsizeunitybaselineskip
  389. \@IEEEnormalsizeunitybaselineskip\baselineskip
  390. \ifx\CLASSOPTIONpt\@IEEEptsizenine
  391. \typeout{-- This is a 9 point document.}
  392. \def\normalsize{\@setfontsize{\normalsize}{9}{11.0476pt}}%
  393. \setlength{\@IEEEnormalsizeunitybaselineskip}{11.0476pt}%
  394. \normalsize
  395. \abovedisplayskip 1.5ex plus3pt minus1pt%
  396. \belowdisplayskip \abovedisplayskip%
  397. \abovedisplayshortskip 0pt plus3pt%
  398. \belowdisplayshortskip 1.5ex plus3pt minus1pt
  399. \def\small{\@setfontsize{\small}{8.5}{10pt}}
  400. \def\footnotesize{\@setfontsize{\footnotesize}{8}{9pt}}
  401. \def\scriptsize{\@setfontsize{\scriptsize}{7}{8pt}}
  402. \def\tiny{\@setfontsize{\tiny}{5}{6pt}}
  403. % sublargesize is the same as large - 10pt
  404. \def\sublargesize{\@setfontsize{\sublargesize}{10}{12pt}}
  405. \def\large{\@setfontsize{\large}{10}{12pt}}
  406. \def\Large{\@setfontsize{\Large}{12}{14pt}}
  407. \def\LARGE{\@setfontsize{\LARGE}{14}{17pt}}
  408. \def\huge{\@setfontsize{\huge}{17}{20pt}}
  409. \def\Huge{\@setfontsize{\Huge}{20}{24pt}}
  410. \fi
  411. % Check if we have selected 10 points
  412. \ifx\CLASSOPTIONpt\@IEEEptsizeten
  413. \typeout{-- This is a 10 point document.}
  414. \def\normalsize{\@setfontsize{\normalsize}{10}{12.00pt}}%
  415. \setlength{\@IEEEnormalsizeunitybaselineskip}{12pt}%
  416. \normalsize
  417. \abovedisplayskip 1.5ex plus4pt minus2pt%
  418. \belowdisplayskip \abovedisplayskip%
  419. \abovedisplayshortskip 0pt plus4pt%
  420. \belowdisplayshortskip 1.5ex plus4pt minus2pt
  421. \def\small{\@setfontsize{\small}{9}{10pt}}
  422. \def\footnotesize{\@setfontsize{\footnotesize}{8}{9pt}}
  423. \def\scriptsize{\@setfontsize{\scriptsize}{7}{8pt}}
  424. \def\tiny{\@setfontsize{\tiny}{5}{6pt}}
  425. % sublargesize is a tad smaller than large - 11pt
  426. \def\sublargesize{\@setfontsize{\sublargesize}{11}{13.4pt}}
  427. \def\large{\@setfontsize{\large}{12}{14pt}}
  428. \def\Large{\@setfontsize{\Large}{14}{17pt}}
  429. \def\LARGE{\@setfontsize{\LARGE}{17}{20pt}}
  430. \def\huge{\@setfontsize{\huge}{20}{24pt}}
  431. \def\Huge{\@setfontsize{\Huge}{24}{28pt}}
  432. \fi
  433. % Check if we have selected 11 points
  434. \ifx\CLASSOPTIONpt\@IEEEptsizeeleven
  435. \typeout{-- This is an 11 point document.}
  436. \def\normalsize{\@setfontsize{\normalsize}{11}{13.3846pt}}%
  437. \setlength{\@IEEEnormalsizeunitybaselineskip}{13.3846pt}%
  438. \normalsize
  439. \abovedisplayskip 1.5ex plus5pt minus3pt%
  440. \belowdisplayskip \abovedisplayskip%
  441. \abovedisplayshortskip 0pt plus5pt%
  442. \belowdisplayshortskip 1.5ex plus5pt minus3pt
  443. \def\small{\@setfontsize{\small}{10}{12pt}}
  444. \def\footnotesize{\@setfontsize{\footnotesize}{9}{10.5pt}}
  445. \def\scriptsize{\@setfontsize{\scriptsize}{8}{9pt}}
  446. \def\tiny{\@setfontsize{\tiny}{6}{7pt}}
  447. % sublargesize is the same as large - 12pt
  448. \def\sublargesize{\@setfontsize{\sublargesize}{12}{14pt}}
  449. \def\large{\@setfontsize{\large}{12}{14pt}}
  450. \def\Large{\@setfontsize{\Large}{14}{17pt}}
  451. \def\LARGE{\@setfontsize{\LARGE}{17}{20pt}}
  452. \def\huge{\@setfontsize{\huge}{20}{24pt}}
  453. \def\Huge{\@setfontsize{\Huge}{24}{28pt}}
  454. \fi
  455. % Check if we have selected 12 points
  456. \ifx\CLASSOPTIONpt\@IEEEptsizetwelve
  457. \typeout{-- This is a 12 point document.}
  458. \def\normalsize{\@setfontsize{\normalsize}{12}{13.92pt}}%
  459. \setlength{\@IEEEnormalsizeunitybaselineskip}{13.92pt}%
  460. \normalsize
  461. \abovedisplayskip 1.5ex plus6pt minus4pt%
  462. \belowdisplayskip \abovedisplayskip%
  463. \abovedisplayshortskip 0pt plus6pt%
  464. \belowdisplayshortskip 1.5ex plus6pt minus4pt
  465. \def\small{\@setfontsize{\small}{10}{12pt}}
  466. \def\footnotesize{\@setfontsize{\footnotesize}{9}{10.5pt}}
  467. \def\scriptsize{\@setfontsize{\scriptsize}{8}{9pt}}
  468. \def\tiny{\@setfontsize{\tiny}{6}{7pt}}
  469. % sublargesize is the same as large - 14pt
  470. \def\sublargesize{\@setfontsize{\sublargesize}{14}{17pt}}
  471. \def\large{\@setfontsize{\large}{14}{17pt}}
  472. \def\Large{\@setfontsize{\Large}{17}{20pt}}
  473. \def\LARGE{\@setfontsize{\LARGE}{20}{24pt}}
  474. \def\huge{\@setfontsize{\huge}{22}{26pt}}
  475. \def\Huge{\@setfontsize{\Huge}{24}{28pt}}
  476. \fi
  477. % V1.6 The Computer Modern Fonts will issue a substitution warning for
  478. % 24pt titles (24.88pt is used instead) increase the substitution
  479. % tolerance to turn off this warning
  480. \def\fontsubfuzz{.9pt}
  481. % However, the default (and correct) Times font will scale exactly as needed.
  482. % warn the user in case they forget to use the 9pt option with
  483. % technote
  484. \ifCLASSOPTIONtechnote%
  485. \ifx\CLASSOPTIONpt\@IEEEptsizenine\else%
  486. \typeout{** ATTENTION: Technotes are normally 9pt documents.}%
  487. \fi%
  488. \fi
  489. % V1.7
  490. % Improved \textunderscore to provide a much better fake _ when used with
  491. % OT1 encoding. Under OT1, detect use of pcr or cmtt \ttfamily and use
  492. % available true _ glyph for those two typewriter fonts.
  493. \def\@IEEEstringptm{ptm} % Times Roman family
  494. \def\@IEEEstringppl{ppl} % Palatino Roman family
  495. \def\@IEEEstringphv{phv} % Helvetica Sans Serif family
  496. \def\@IEEEstringpcr{pcr} % Courier typewriter family
  497. \def\@IEEEstringcmtt{cmtt} % Computer Modern typewriter family
  498. \DeclareTextCommandDefault{\textunderscore}{\leavevmode
  499. \ifx\f@family\@IEEEstringpcr\string_\else
  500. \ifx\f@family\@IEEEstringcmtt\string_\else
  501. \ifx\f@family\@IEEEstringptm\kern 0em\vbox{\hrule\@width 0.5em\@height 0.5pt\kern -0.3ex}\else
  502. \ifx\f@family\@IEEEstringppl\kern 0em\vbox{\hrule\@width 0.5em\@height 0.5pt\kern -0.3ex}\else
  503. \ifx\f@family\@IEEEstringphv\kern -0.03em\vbox{\hrule\@width 0.62em\@height 0.52pt\kern -0.33ex}\kern -0.03em\else
  504. \kern 0.09em\vbox{\hrule\@width 0.6em\@height 0.44pt\kern -0.63pt\kern -0.42ex}\kern 0.09em\fi\fi\fi\fi\fi\relax}
  505. % set the default \baselinestretch
  506. \def\baselinestretch{1}
  507. \ifCLASSOPTIONdraftcls
  508. \def\baselinestretch{1.5}% default baselinestretch for draft modes
  509. \fi
  510. % process CLASSINPUT baselinestretch
  511. \ifx\CLASSINPUTbaselinestretch\@IEEEundefined
  512. \else
  513. \edef\baselinestretch{\CLASSINPUTbaselinestretch} % user CLASSINPUT override
  514. \typeout{** ATTENTION: Overriding \string\baselinestretch\space to
  515. \baselinestretch\space via \string\CLASSINPUT.}
  516. \fi
  517. \normalsize % make \baselinestretch take affect
  518. % store the normalsize baselineskip
  519. \newdimen\CLASSINFOnormalsizebaselineskip
  520. \CLASSINFOnormalsizebaselineskip=\baselineskip\relax
  521. % and the normalsize unity (baselinestretch=1) baselineskip
  522. % we could save a register by giving the user access to
  523. % \@IEEEnormalsizeunitybaselineskip. However, let's protect
  524. % its read only internal status
  525. \newdimen\CLASSINFOnormalsizeunitybaselineskip
  526. \CLASSINFOnormalsizeunitybaselineskip=\@IEEEnormalsizeunitybaselineskip\relax
  527. % store the nominal value of jot
  528. \newdimen\IEEEnormaljot
  529. \IEEEnormaljot=0.25\baselineskip\relax
  530. % set \jot
  531. \jot=\IEEEnormaljot\relax
  532. % V1.6, we are now going to fine tune the interword spacing
  533. % The default interword glue for Times under TeX appears to use a
  534. % nominal interword spacing of 25% (relative to the font size, i.e., 1em)
  535. % a maximum of 40% and a minimum of 19%.
  536. % For example, 10pt text uses an interword glue of:
  537. %
  538. % 2.5pt plus 1.49998pt minus 0.59998pt
  539. %
  540. % However, IEEE allows for a more generous range which reduces the need
  541. % for hyphenation, especially for two column text. Furthermore, IEEE
  542. % tends to use a little bit more nominal space between the words.
  543. % IEEE's interword spacing percentages appear to be:
  544. % 35% nominal
  545. % 23% minimum
  546. % 50% maximum
  547. % (They may even be using a tad more for the largest fonts such as 24pt.)
  548. %
  549. % for bold text, IEEE increases the spacing a little more:
  550. % 37.5% nominal
  551. % 23% minimum
  552. % 55% maximum
  553. % here are the interword spacing ratios we'll use
  554. % for medium (normal weight)
  555. \def\@IEEEinterspaceratioM{0.35}
  556. \def\@IEEEinterspaceMINratioM{0.23}
  557. \def\@IEEEinterspaceMAXratioM{0.50}
  558. % for bold
  559. \def\@IEEEinterspaceratioB{0.375}
  560. \def\@IEEEinterspaceMINratioB{0.23}
  561. \def\@IEEEinterspaceMAXratioB{0.55}
  562. % command to revise the interword spacing for the current font under TeX:
  563. % \fontdimen2 = nominal interword space
  564. % \fontdimen3 = interword stretch
  565. % \fontdimen4 = interword shrink
  566. % since all changes to the \fontdimen are global, we can enclose these commands
  567. % in braces to confine any font attribute or length changes
  568. \def\@@@IEEEsetfontdimens#1#2#3{{%
  569. \setlength{\@IEEEtrantmpdimenB}{\f@size pt}% grab the font size in pt, could use 1em instead.
  570. \setlength{\@IEEEtrantmpdimenA}{#1\@IEEEtrantmpdimenB}%
  571. \fontdimen2\font=\@IEEEtrantmpdimenA\relax
  572. \addtolength{\@IEEEtrantmpdimenA}{-#2\@IEEEtrantmpdimenB}%
  573. \fontdimen3\font=-\@IEEEtrantmpdimenA\relax
  574. \setlength{\@IEEEtrantmpdimenA}{#1\@IEEEtrantmpdimenB}%
  575. \addtolength{\@IEEEtrantmpdimenA}{-#3\@IEEEtrantmpdimenB}%
  576. \fontdimen4\font=\@IEEEtrantmpdimenA\relax}}
  577. % revise the interword spacing for each font weight
  578. \def\@@IEEEsetfontdimens{{%
  579. \mdseries
  580. \@@@IEEEsetfontdimens{\@IEEEinterspaceratioM}{\@IEEEinterspaceMAXratioM}{\@IEEEinterspaceMINratioM}%
  581. \bfseries
  582. \@@@IEEEsetfontdimens{\@IEEEinterspaceratioB}{\@IEEEinterspaceMAXratioB}{\@IEEEinterspaceMINratioB}%
  583. }}
  584. % revise the interword spacing for each font shape
  585. % \slshape is not often used for IEEE work and is not altered here. The \scshape caps are
  586. % already a tad too large in the free LaTeX fonts (as compared to what IEEE uses) so we
  587. % won't alter these either.
  588. \def\@IEEEsetfontdimens{{%
  589. \normalfont
  590. \@@IEEEsetfontdimens
  591. \normalfont\itshape
  592. \@@IEEEsetfontdimens
  593. }}
  594. % command to revise the interword spacing for each font size (and shape
  595. % and weight). Only the \rmfamily is done here as \ttfamily uses a
  596. % fixed spacing and \sffamily is not used as the main text of IEEE papers.
  597. \def\@IEEEtunefonts{{\selectfont\rmfamily
  598. \tiny\@IEEEsetfontdimens
  599. \scriptsize\@IEEEsetfontdimens
  600. \footnotesize\@IEEEsetfontdimens
  601. \small\@IEEEsetfontdimens
  602. \normalsize\@IEEEsetfontdimens
  603. \sublargesize\@IEEEsetfontdimens
  604. \large\@IEEEsetfontdimens
  605. \LARGE\@IEEEsetfontdimens
  606. \huge\@IEEEsetfontdimens
  607. \Huge\@IEEEsetfontdimens}}
  608. % if the nofonttune class option is not given, revise the interword spacing
  609. % now - in case IEEEtran makes any default length measurements, and make
  610. % sure all the default fonts are loaded
  611. \ifCLASSOPTIONnofonttune\else
  612. \@IEEEtunefonts
  613. \fi
  614. % and again at the start of the document in case the user loaded different fonts
  615. \AtBeginDocument{\ifCLASSOPTIONnofonttune\else\@IEEEtunefonts\fi}
  616. % V1.6
  617. % LaTeX is a little to quick to use hyphenations
  618. % So, we increase the penalty for their use and raise
  619. % the badness level that triggers an underfull hbox
  620. % warning. The author may still have to tweak things,
  621. % but the appearance will be much better "right out
  622. % of the box" than that under V1.5 and prior.
  623. % TeX default is 50
  624. \hyphenpenalty=750
  625. % If we didn't adjust the interword spacing, 2200 might be better.
  626. % The TeX default is 1000
  627. \hbadness=1350
  628. % IEEE does not use extra spacing after punctuation
  629. \frenchspacing
  630. % V1.7 increase this a tad to discourage equation breaks
  631. \binoppenalty=1000 % default 700
  632. \relpenalty=800 % default 500
  633. % margin note stuff
  634. \marginparsep 10pt
  635. \marginparwidth 20pt
  636. \marginparpush 25pt
  637. % if things get too close, go ahead and let them touch
  638. \lineskip 0pt
  639. \normallineskip 0pt
  640. \lineskiplimit 0pt
  641. \normallineskiplimit 0pt
  642. % The distance from the lower edge of the text body to the
  643. % footline
  644. \footskip 0.4in
  645. % normally zero, should be relative to font height.
  646. % put in a little rubber to help stop some bad breaks (underfull vboxes)
  647. \parskip 0ex plus 0.2ex minus 0.1ex
  648. \parindent 1.0em
  649. \topmargin -49.0pt
  650. \headheight 12pt
  651. \headsep 0.25in
  652. % use the normal font baselineskip
  653. % so that \topskip is unaffected by changes in \baselinestretch
  654. \topskip=\@IEEEnormalsizeunitybaselineskip
  655. \textheight 58pc % 9.63in, 696pt
  656. % Tweak textheight to a perfect integer number of lines/page.
  657. % The normal baselineskip for each document point size is used
  658. % to determine these values.
  659. \ifx\CLASSOPTIONpt\@IEEEptsizenine\textheight=63\@IEEEnormalsizeunitybaselineskip\fi % 63 lines/page
  660. \ifx\CLASSOPTIONpt\@IEEEptsizeten\textheight=58\@IEEEnormalsizeunitybaselineskip\fi % 58 lines/page
  661. \ifx\CLASSOPTIONpt\@IEEEptsizeeleven\textheight=52\@IEEEnormalsizeunitybaselineskip\fi % 52 lines/page
  662. \ifx\CLASSOPTIONpt\@IEEEptsizetwelve\textheight=50\@IEEEnormalsizeunitybaselineskip\fi % 50 lines/page
  663. \columnsep 1pc
  664. \textwidth 43pc % 2 x 21pc + 1pc = 43pc
  665. % the default side margins are equal
  666. \if@IEEEusingAfourpaper
  667. \oddsidemargin 14.32mm
  668. \evensidemargin 14.32mm
  669. \else
  670. \oddsidemargin 0.680in
  671. \evensidemargin 0.680in
  672. \fi
  673. % compensate for LaTeX's 1in offset
  674. \addtolength{\oddsidemargin}{-1in}
  675. \addtolength{\evensidemargin}{-1in}
  676. % adjust margins for conference mode
  677. \ifCLASSOPTIONconference
  678. \topmargin -0.25in
  679. % we retain the reserved, but unused space for headers
  680. \addtolength{\topmargin}{-\headheight}
  681. \addtolength{\topmargin}{-\headsep}
  682. \textheight 9.25in % The standard for conferences (668.4975pt)
  683. % Tweak textheight to a perfect integer number of lines/page.
  684. \ifx\CLASSOPTIONpt\@IEEEptsizenine\textheight=61\@IEEEnormalsizeunitybaselineskip\fi % 61 lines/page
  685. \ifx\CLASSOPTIONpt\@IEEEptsizeten\textheight=56\@IEEEnormalsizeunitybaselineskip\fi % 56 lines/page
  686. \ifx\CLASSOPTIONpt\@IEEEptsizeeleven\textheight=50\@IEEEnormalsizeunitybaselineskip\fi % 50 lines/page
  687. \ifx\CLASSOPTIONpt\@IEEEptsizetwelve\textheight=48\@IEEEnormalsizeunitybaselineskip\fi % 48 lines/page
  688. \fi
  689. % compsoc conference
  690. \ifCLASSOPTIONcompsoc
  691. \ifCLASSOPTIONconference
  692. % compsoc conference use a larger value for columnsep
  693. \columnsep 0.375in
  694. % compsoc conferences want 1in top margin, 1.125in bottom margin
  695. \topmargin 0in
  696. \addtolength{\topmargin}{-6pt}% we tweak this a tad to better comply with top of line stuff
  697. % we retain the reserved, but unused space for headers
  698. \addtolength{\topmargin}{-\headheight}
  699. \addtolength{\topmargin}{-\headsep}
  700. \textheight 8.875in % (641.39625pt)
  701. % Tweak textheight to a perfect integer number of lines/page.
  702. \ifx\CLASSOPTIONpt\@IEEEptsizenine\textheight=58\@IEEEnormalsizeunitybaselineskip\fi % 58 lines/page
  703. \ifx\CLASSOPTIONpt\@IEEEptsizeten\textheight=53\@IEEEnormalsizeunitybaselineskip\fi % 53 lines/page
  704. \ifx\CLASSOPTIONpt\@IEEEptsizeeleven\textheight=48\@IEEEnormalsizeunitybaselineskip\fi % 48 lines/page
  705. \ifx\CLASSOPTIONpt\@IEEEptsizetwelve\textheight=46\@IEEEnormalsizeunitybaselineskip\fi % 46 lines/page
  706. \textwidth 6.5in
  707. % the default side margins are equal
  708. \if@IEEEusingAfourpaper
  709. \oddsidemargin 22.45mm
  710. \evensidemargin 22.45mm
  711. \else
  712. \oddsidemargin 1in
  713. \evensidemargin 1in
  714. \fi
  715. % compensate for LaTeX's 1in offset
  716. \addtolength{\oddsidemargin}{-1in}
  717. \addtolength{\evensidemargin}{-1in}
  718. \fi\fi
  719. % draft mode settings override that of all other modes
  720. % provides a nice 1in margin all around the paper and extra
  721. % space between the lines for editor's comments
  722. \ifCLASSOPTIONdraftcls
  723. % want 1in from top of paper to text
  724. \setlength{\topmargin}{-\headsep}%
  725. \addtolength{\topmargin}{-\headheight}%
  726. % we want 1in side margins regardless of paper type
  727. \oddsidemargin 0in
  728. \evensidemargin 0in
  729. % set the text width
  730. \setlength{\textwidth}{\paperwidth}%
  731. \addtolength{\textwidth}{-2.0in}%
  732. \setlength{\textheight}{\paperheight}%
  733. \addtolength{\textheight}{-2.0in}%
  734. % digitize textheight to be an integer number of lines.
  735. % this may cause the bottom margin to be off a tad
  736. \addtolength{\textheight}{-1\topskip}%
  737. \divide\textheight by \baselineskip%
  738. \multiply\textheight by \baselineskip%
  739. \addtolength{\textheight}{\topskip}%
  740. \fi
  741. % process CLASSINPUT inner/outer margin
  742. % if inner margin defined, but outer margin not, set outer to inner.
  743. \ifx\CLASSINPUTinnersidemargin\@IEEEundefined
  744. \else
  745. \ifx\CLASSINPUToutersidemargin\@IEEEundefined
  746. \edef\CLASSINPUToutersidemargin{\CLASSINPUTinnersidemargin}
  747. \fi
  748. \fi
  749. \ifx\CLASSINPUToutersidemargin\@IEEEundefined
  750. \else
  751. % if outer margin defined, but inner margin not, set inner to outer.
  752. \ifx\CLASSINPUTinnersidemargin\@IEEEundefined
  753. \edef\CLASSINPUTinnersidemargin{\CLASSINPUToutersidemargin}
  754. \fi
  755. \setlength{\oddsidemargin}{\CLASSINPUTinnersidemargin}
  756. \ifCLASSOPTIONtwoside
  757. \setlength{\evensidemargin}{\CLASSINPUToutersidemargin}
  758. \else
  759. \setlength{\evensidemargin}{\CLASSINPUTinnersidemargin}
  760. \fi
  761. \addtolength{\oddsidemargin}{-1in}
  762. \addtolength{\evensidemargin}{-1in}
  763. \setlength{\textwidth}{\paperwidth}
  764. \addtolength{\textwidth}{-\CLASSINPUTinnersidemargin}
  765. \addtolength{\textwidth}{-\CLASSINPUToutersidemargin}
  766. \typeout{** ATTENTION: Overriding inner side margin to \CLASSINPUTinnersidemargin\space and
  767. outer side margin to \CLASSINPUToutersidemargin\space via \string\CLASSINPUT.}
  768. \fi
  769. % process CLASSINPUT top/bottom text margin
  770. % if toptext margin defined, but bottomtext margin not, set bottomtext to toptext margin
  771. \ifx\CLASSINPUTtoptextmargin\@IEEEundefined
  772. \else
  773. \ifx\CLASSINPUTbottomtextmargin\@IEEEundefined
  774. \edef\CLASSINPUTbottomtextmargin{\CLASSINPUTtoptextmargin}
  775. \fi
  776. \fi
  777. \ifx\CLASSINPUTbottomtextmargin\@IEEEundefined
  778. \else
  779. % if bottomtext margin defined, but toptext margin not, set toptext to bottomtext margin
  780. \ifx\CLASSINPUTtoptextmargin\@IEEEundefined
  781. \edef\CLASSINPUTtoptextmargin{\CLASSINPUTbottomtextmargin}
  782. \fi
  783. \setlength{\topmargin}{\CLASSINPUTtoptextmargin}
  784. \addtolength{\topmargin}{-1in}
  785. \addtolength{\topmargin}{-\headheight}
  786. \addtolength{\topmargin}{-\headsep}
  787. \setlength{\textheight}{\paperheight}
  788. \addtolength{\textheight}{-\CLASSINPUTtoptextmargin}
  789. \addtolength{\textheight}{-\CLASSINPUTbottomtextmargin}
  790. % in the default format we use the normal baselineskip as topskip
  791. % we only need 0.7 of this to clear typical top text and we need
  792. % an extra 0.3 spacing at the bottom for descenders. This will
  793. % correct for both.
  794. \addtolength{\topmargin}{-0.3\@IEEEnormalsizeunitybaselineskip}
  795. \typeout{** ATTENTION: Overriding top text margin to \CLASSINPUTtoptextmargin\space and
  796. bottom text margin to \CLASSINPUTbottomtextmargin\space via \string\CLASSINPUT.}
  797. \fi
  798. % LIST SPACING CONTROLS
  799. % Controls the amount of EXTRA spacing
  800. % above and below \trivlist
  801. % Both \list and IED lists override this.
  802. % However, \trivlist will use this as will most
  803. % things built from \trivlist like the \center
  804. % environment.
  805. \topsep 0.5\baselineskip
  806. % Controls the additional spacing around lists preceded
  807. % or followed by blank lines. IEEE does not increase
  808. % spacing before or after paragraphs so it is set to zero.
  809. % \z@ is the same as zero, but faster.
  810. \partopsep \z@
  811. % Controls the spacing between paragraphs in lists.
  812. % IEEE does not increase spacing before or after paragraphs
  813. % so this is also zero.
  814. % With IEEEtran.cls, global changes to
  815. % this value DO affect lists (but not IED lists).
  816. \parsep \z@
  817. % Controls the extra spacing between list items.
  818. % IEEE does not put extra spacing between items.
  819. % With IEEEtran.cls, global changes to this value DO affect
  820. % lists (but not IED lists).
  821. \itemsep \z@
  822. % \itemindent is the amount to indent the FIRST line of a list
  823. % item. It is auto set to zero within the \list environment. To alter
  824. % it, you have to do so when you call the \list.
  825. % However, IEEE uses this for the theorem environment
  826. % There is an alternative value for this near \leftmargini below
  827. \itemindent -1em
  828. % \leftmargin, the spacing from the left margin of the main text to
  829. % the left of the main body of a list item is set by \list.
  830. % Hence this statement does nothing for lists.
  831. % But, quote and verse do use it for indention.
  832. \leftmargin 2em
  833. % we retain this stuff from the older IEEEtran.cls so that \list
  834. % will work the same way as before. However, itemize, enumerate and
  835. % description (IED) could care less about what these are as they
  836. % all are overridden.
  837. \leftmargini 2em
  838. %\itemindent 2em % Alternative values: sometimes used.
  839. %\leftmargini 0em
  840. \leftmarginii 1em
  841. \leftmarginiii 1.5em
  842. \leftmarginiv 1.5em
  843. \leftmarginv 1.0em
  844. \leftmarginvi 1.0em
  845. \labelsep 0.5em
  846. \labelwidth \z@
  847. % The old IEEEtran.cls behavior of \list is retained.
  848. % However, the new V1.3 IED list environments override all the
  849. % @list stuff (\@listX is called within \list for the
  850. % appropriate level just before the user's list_decl is called).
  851. % \topsep is now 2pt as IEEE puts a little extra space around
  852. % lists - used by those non-IED macros that depend on \list.
  853. % Note that \parsep and \itemsep are not redefined as in
  854. % the sizexx.clo \@listX (which article.cls uses) so global changes
  855. % of these values DO affect \list
  856. %
  857. \def\@listi{\leftmargin\leftmargini \topsep 2pt plus 1pt minus 1pt}
  858. \let\@listI\@listi
  859. \def\@listii{\leftmargin\leftmarginii\labelwidth\leftmarginii%
  860. \advance\labelwidth-\labelsep \topsep 2pt}
  861. \def\@listiii{\leftmargin\leftmarginiii\labelwidth\leftmarginiii%
  862. \advance\labelwidth-\labelsep \topsep 2pt}
  863. \def\@listiv{\leftmargin\leftmarginiv\labelwidth\leftmarginiv%
  864. \advance\labelwidth-\labelsep \topsep 2pt}
  865. \def\@listv{\leftmargin\leftmarginv\labelwidth\leftmarginv%
  866. \advance\labelwidth-\labelsep \topsep 2pt}
  867. \def\@listvi{\leftmargin\leftmarginvi\labelwidth\leftmarginvi%
  868. \advance\labelwidth-\labelsep \topsep 2pt}
  869. % IEEE uses 5) not 5.
  870. \def\labelenumi{\theenumi)} \def\theenumi{\arabic{enumi}}
  871. % IEEE uses a) not (a)
  872. \def\labelenumii{\theenumii)} \def\theenumii{\alph{enumii}}
  873. % IEEE uses iii) not iii.
  874. \def\labelenumiii{\theenumiii)} \def\theenumiii{\roman{enumiii}}
  875. % IEEE uses A) not A.
  876. \def\labelenumiv{\theenumiv)} \def\theenumiv{\Alph{enumiv}}
  877. % exactly the same as in article.cls
  878. \def\p@enumii{\theenumi}
  879. \def\p@enumiii{\theenumi(\theenumii)}
  880. \def\p@enumiv{\p@enumiii\theenumiii}
  881. % itemized list label styles
  882. \def\labelitemi{$\scriptstyle\bullet$}
  883. \def\labelitemii{\textbf{--}}
  884. \def\labelitemiii{$\ast$}
  885. \def\labelitemiv{$\cdot$}
  886. % **** V1.3 ENHANCEMENTS ****
  887. % Itemize, Enumerate and Description (IED) List Controls
  888. % ***************************
  889. %
  890. %
  891. % IEEE seems to use at least two different values by
  892. % which ITEMIZED list labels are indented to the right
  893. % For The Journal of Lightwave Technology (JLT) and The Journal
  894. % on Selected Areas in Communications (JSAC), they tend to use
  895. % an indention equal to \parindent. For Transactions on Communications
  896. % they tend to indent ITEMIZED lists a little more--- 1.3\parindent.
  897. % We'll provide both values here for you so that you can choose
  898. % which one you like in your document using a command such as:
  899. % setlength{\IEEEilabelindent}{\IEEEilabelindentB}
  900. \newdimen\IEEEilabelindentA
  901. \IEEEilabelindentA \parindent
  902. \newdimen\IEEEilabelindentB
  903. \IEEEilabelindentB 1.3\parindent
  904. % However, we'll default to using \parindent
  905. % which makes more sense to me
  906. \newdimen\IEEEilabelindent
  907. \IEEEilabelindent \IEEEilabelindentA
  908. % This controls the default amount the enumerated list labels
  909. % are indented to the right.
  910. % Normally, this is the same as the paragraph indention
  911. \newdimen\IEEEelabelindent
  912. \IEEEelabelindent \parindent
  913. % This controls the default amount the description list labels
  914. % are indented to the right.
  915. % Normally, this is the same as the paragraph indention
  916. \newdimen\IEEEdlabelindent
  917. \IEEEdlabelindent \parindent
  918. % This is the value actually used within the IED lists.
  919. % The IED environments automatically set its value to
  920. % one of the three values above, so global changes do
  921. % not have any effect
  922. \newdimen\IEEElabelindent
  923. \IEEElabelindent \parindent
  924. % The actual amount labels will be indented is
  925. % \IEEElabelindent multiplied by the factor below
  926. % corresponding to the level of nesting depth
  927. % This provides a means by which the user can
  928. % alter the effective \IEEElabelindent for deeper
  929. % levels
  930. % There may not be such a thing as correct "standard IEEE"
  931. % values. What IEEE actually does may depend on the specific
  932. % circumstances.
  933. % The first list level almost always has full indention.
  934. % The second levels I've seen have only 75% of the normal indentation
  935. % Three level or greater nestings are very rare. I am guessing
  936. % that they don't use any indentation.
  937. \def\IEEElabelindentfactori{1.0} % almost always one
  938. \def\IEEElabelindentfactorii{0.75} % 0.0 or 1.0 may be used in some cases
  939. \def\IEEElabelindentfactoriii{0.0} % 0.75? 0.5? 0.0?
  940. \def\IEEElabelindentfactoriv{0.0}
  941. \def\IEEElabelindentfactorv{0.0}
  942. \def\IEEElabelindentfactorvi{0.0}
  943. % value actually used within IED lists, it is auto
  944. % set to one of the 6 values above
  945. % global changes here have no effect
  946. \def\IEEElabelindentfactor{1.0}
  947. % This controls the default spacing between the end of the IED
  948. % list labels and the list text, when normal text is used for
  949. % the labels.
  950. \newdimen\IEEEiednormlabelsep
  951. \IEEEiednormlabelsep 0.6em
  952. % This controls the default spacing between the end of the IED
  953. % list labels and the list text, when math symbols are used for
  954. % the labels (nomenclature lists). IEEE usually increases the
  955. % spacing in these cases
  956. \newdimen\IEEEiedmathlabelsep
  957. \IEEEiedmathlabelsep 1.2em
  958. % This controls the extra vertical separation put above and
  959. % below each IED list. IEEE usually puts a little extra spacing
  960. % around each list. However, this spacing is barely noticeable.
  961. \newskip\IEEEiedtopsep
  962. \IEEEiedtopsep 2pt plus 1pt minus 1pt
  963. % This command is executed within each IED list environment
  964. % at the beginning of the list. You can use this to set the
  965. % parameters for some/all your IED list(s) without disturbing
  966. % global parameters that affect things other than lists.
  967. % i.e., renewcommand{\IEEEiedlistdecl}{\setlength{\labelsep}{5em}}
  968. % will alter the \labelsep for the next list(s) until
  969. % \IEEEiedlistdecl is redefined.
  970. \def\IEEEiedlistdecl{\relax}
  971. % This command provides an easy way to set \leftmargin based
  972. % on the \labelwidth, \labelsep and the argument \IEEElabelindent
  973. % Usage: \IEEEcalcleftmargin{width-to-indent-the-label}
  974. % output is in the \leftmargin variable, i.e., effectively:
  975. % \leftmargin = argument + \labelwidth + \labelsep
  976. % Note controlled spacing here, shield end of lines with %
  977. \def\IEEEcalcleftmargin#1{\setlength{\leftmargin}{#1}%
  978. \addtolength{\leftmargin}{\labelwidth}%
  979. \addtolength{\leftmargin}{\labelsep}}
  980. % This command provides an easy way to set \labelwidth to the
  981. % width of the given text. It is the same as
  982. % \settowidth{\labelwidth}{label-text}
  983. % and useful as a shorter alternative.
  984. % Typically used to set \labelwidth to be the width
  985. % of the longest label in the list
  986. \def\IEEEsetlabelwidth#1{\settowidth{\labelwidth}{#1}}
  987. % When this command is executed, IED lists will use the
  988. % IEEEiedmathlabelsep label separation rather than the normal
  989. % spacing. To have an effect, this command must be executed via
  990. % the \IEEEiedlistdecl or within the option of the IED list
  991. % environments.
  992. \def\IEEEusemathlabelsep{\setlength{\labelsep}{\IEEEiedmathlabelsep}}
  993. % A flag which controls whether the IED lists automatically
  994. % calculate \leftmargin from \IEEElabelindent, \labelwidth and \labelsep
  995. % Useful if you want to specify your own \leftmargin
  996. % This flag must be set (\IEEEnocalcleftmargintrue or \IEEEnocalcleftmarginfalse)
  997. % via the \IEEEiedlistdecl or within the option of the IED list
  998. % environments to have an effect.
  999. \newif\ifIEEEnocalcleftmargin
  1000. \IEEEnocalcleftmarginfalse
  1001. % A flag which controls whether \IEEElabelindent is multiplied by
  1002. % the \IEEElabelindentfactor for each list level.
  1003. % This flag must be set via the \IEEEiedlistdecl or within the option
  1004. % of the IED list environments to have an effect.
  1005. \newif\ifIEEEnolabelindentfactor
  1006. \IEEEnolabelindentfactorfalse
  1007. % internal variable to indicate type of IED label
  1008. % justification
  1009. % 0 - left; 1 - center; 2 - right
  1010. \def\@IEEEiedjustify{0}
  1011. % commands to allow the user to control IED
  1012. % label justifications. Use these commands within
  1013. % the IED environment option or in the \IEEEiedlistdecl
  1014. % Note that changing the normal list justifications
  1015. % is nonstandard and IEEE may not like it if you do so!
  1016. % I include these commands as they may be helpful to
  1017. % those who are using these enhanced list controls for
  1018. % other non-IEEE related LaTeX work.
  1019. % itemize and enumerate automatically default to right
  1020. % justification, description defaults to left.
  1021. \def\IEEEiedlabeljustifyl{\def\@IEEEiedjustify{0}}%left
  1022. \def\IEEEiedlabeljustifyc{\def\@IEEEiedjustify{1}}%center
  1023. \def\IEEEiedlabeljustifyr{\def\@IEEEiedjustify{2}}%right
  1024. % commands to save to and restore from the list parameter copies
  1025. % this allows us to set all the list parameters within
  1026. % the list_decl and prevent \list (and its \@list)
  1027. % from overriding any of our parameters
  1028. % V1.6 use \edefs instead of dimen's to conserve dimen registers
  1029. % Note controlled spacing here, shield end of lines with %
  1030. \def\@IEEEsavelistparams{\edef\@IEEEiedtopsep{\the\topsep}%
  1031. \edef\@IEEEiedlabelwidth{\the\labelwidth}%
  1032. \edef\@IEEEiedlabelsep{\the\labelsep}%
  1033. \edef\@IEEEiedleftmargin{\the\leftmargin}%
  1034. \edef\@IEEEiedpartopsep{\the\partopsep}%
  1035. \edef\@IEEEiedparsep{\the\parsep}%
  1036. \edef\@IEEEieditemsep{\the\itemsep}%
  1037. \edef\@IEEEiedrightmargin{\the\rightmargin}%
  1038. \edef\@IEEEiedlistparindent{\the\listparindent}%
  1039. \edef\@IEEEieditemindent{\the\itemindent}}
  1040. % Note controlled spacing here
  1041. \def\@IEEErestorelistparams{\topsep\@IEEEiedtopsep\relax%
  1042. \labelwidth\@IEEEiedlabelwidth\relax%
  1043. \labelsep\@IEEEiedlabelsep\relax%
  1044. \leftmargin\@IEEEiedleftmargin\relax%
  1045. \partopsep\@IEEEiedpartopsep\relax%
  1046. \parsep\@IEEEiedparsep\relax%
  1047. \itemsep\@IEEEieditemsep\relax%
  1048. \rightmargin\@IEEEiedrightmargin\relax%
  1049. \listparindent\@IEEEiedlistparindent\relax%
  1050. \itemindent\@IEEEieditemindent\relax}
  1051. % v1.6b provide original LaTeX IED list environments
  1052. % note that latex.ltx defines \itemize and \enumerate, but not \description
  1053. % which must be created by the base classes
  1054. % save original LaTeX itemize and enumerate
  1055. \let\LaTeXitemize\itemize
  1056. \let\endLaTeXitemize\enditemize
  1057. \let\LaTeXenumerate\enumerate
  1058. \let\endLaTeXenumerate\endenumerate
  1059. % provide original LaTeX description environment from article.cls
  1060. \newenvironment{LaTeXdescription}
  1061. {\list{}{\labelwidth\z@ \itemindent-\leftmargin
  1062. \let\makelabel\descriptionlabel}}
  1063. {\endlist}
  1064. \newcommand*\descriptionlabel[1]{\hspace\labelsep
  1065. \normalfont\bfseries #1}
  1066. % override LaTeX's default IED lists
  1067. \def\itemize{\@IEEEitemize}
  1068. \def\enditemize{\@endIEEEitemize}
  1069. \def\enumerate{\@IEEEenumerate}
  1070. \def\endenumerate{\@endIEEEenumerate}
  1071. \def\description{\@IEEEdescription}
  1072. \def\enddescription{\@endIEEEdescription}
  1073. % provide the user with aliases - may help those using packages that
  1074. % override itemize, enumerate, or description
  1075. \def\IEEEitemize{\@IEEEitemize}
  1076. \def\endIEEEitemize{\@endIEEEitemize}
  1077. \def\IEEEenumerate{\@IEEEenumerate}
  1078. \def\endIEEEenumerate{\@endIEEEenumerate}
  1079. \def\IEEEdescription{\@IEEEdescription}
  1080. \def\endIEEEdescription{\@endIEEEdescription}
  1081. % V1.6 we want to keep the IEEEtran IED list definitions as our own internal
  1082. % commands so they are protected against redefinition
  1083. \def\@IEEEitemize{\@ifnextchar[{\@@IEEEitemize}{\@@IEEEitemize[\relax]}}
  1084. \def\@IEEEenumerate{\@ifnextchar[{\@@IEEEenumerate}{\@@IEEEenumerate[\relax]}}
  1085. \def\@IEEEdescription{\@ifnextchar[{\@@IEEEdescription}{\@@IEEEdescription[\relax]}}
  1086. \def\@endIEEEitemize{\endlist}
  1087. \def\@endIEEEenumerate{\endlist}
  1088. \def\@endIEEEdescription{\endlist}
  1089. % DO NOT ALLOW BLANK LINES TO BE IN THESE IED ENVIRONMENTS
  1090. % AS THIS WILL FORCE NEW PARAGRAPHS AFTER THE IED LISTS
  1091. % IEEEtran itemized list MDS 1/2001
  1092. % Note controlled spacing here, shield end of lines with %
  1093. \def\@@IEEEitemize[#1]{%
  1094. \ifnum\@itemdepth>3\relax\@toodeep\else%
  1095. \ifnum\@listdepth>5\relax\@toodeep\else%
  1096. \advance\@itemdepth\@ne%
  1097. \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
  1098. % get the labelindentfactor for this level
  1099. \advance\@listdepth\@ne% we need to know what the level WILL be
  1100. \edef\IEEElabelindentfactor{\csname IEEElabelindentfactor\romannumeral\the\@listdepth\endcsname}%
  1101. \advance\@listdepth-\@ne% undo our increment
  1102. \def\@IEEEiedjustify{2}% right justified labels are default
  1103. % set other defaults
  1104. \IEEEnocalcleftmarginfalse%
  1105. \IEEEnolabelindentfactorfalse%
  1106. \topsep\IEEEiedtopsep%
  1107. \IEEElabelindent\IEEEilabelindent%
  1108. \labelsep\IEEEiednormlabelsep%
  1109. \partopsep 0ex%
  1110. \parsep 0ex%
  1111. \itemsep 0ex%
  1112. \rightmargin 0em%
  1113. \listparindent 0em%
  1114. \itemindent 0em%
  1115. % calculate the label width
  1116. % the user can override this later if
  1117. % they specified a \labelwidth
  1118. \settowidth{\labelwidth}{\csname labelitem\romannumeral\the\@itemdepth\endcsname}%
  1119. \@IEEEsavelistparams% save our list parameters
  1120. \list{\csname\@itemitem\endcsname}{%
  1121. \@IEEErestorelistparams% override any list{} changes
  1122. % to our globals
  1123. \let\makelabel\@IEEEiedmakelabel% v1.6b setup \makelabel
  1124. \IEEEiedlistdecl% let user alter parameters
  1125. #1\relax%
  1126. % If the user has requested not to use the
  1127. % labelindent factor, don't revise \labelindent
  1128. \ifIEEEnolabelindentfactor\relax%
  1129. \else\IEEElabelindent=\IEEElabelindentfactor\labelindent%
  1130. \fi%
  1131. % Unless the user has requested otherwise,
  1132. % calculate our left margin based
  1133. % on \IEEElabelindent, \labelwidth and
  1134. % \labelsep
  1135. \ifIEEEnocalcleftmargin\relax%
  1136. \else\IEEEcalcleftmargin{\IEEElabelindent}%
  1137. \fi}\fi\fi}%
  1138. % DO NOT ALLOW BLANK LINES TO BE IN THESE IED ENVIRONMENTS
  1139. % AS THIS WILL FORCE NEW PARAGRAPHS AFTER THE IED LISTS
  1140. % IEEEtran enumerate list MDS 1/2001
  1141. % Note controlled spacing here, shield end of lines with %
  1142. \def\@@IEEEenumerate[#1]{%
  1143. \ifnum\@enumdepth>3\relax\@toodeep\else%
  1144. \ifnum\@listdepth>5\relax\@toodeep\else%
  1145. \advance\@enumdepth\@ne%
  1146. \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
  1147. % get the labelindentfactor for this level
  1148. \advance\@listdepth\@ne% we need to know what the level WILL be
  1149. \edef\IEEElabelindentfactor{\csname IEEElabelindentfactor\romannumeral\the\@listdepth\endcsname}%
  1150. \advance\@listdepth-\@ne% undo our increment
  1151. \def\@IEEEiedjustify{2}% right justified labels are default
  1152. % set other defaults
  1153. \IEEEnocalcleftmarginfalse%
  1154. \IEEEnolabelindentfactorfalse%
  1155. \topsep\IEEEiedtopsep%
  1156. \IEEElabelindent\IEEEelabelindent%
  1157. \labelsep\IEEEiednormlabelsep%
  1158. \partopsep 0ex%
  1159. \parsep 0ex%
  1160. \itemsep 0ex%
  1161. \rightmargin 0em%
  1162. \listparindent 0em%
  1163. \itemindent 0em%
  1164. % calculate the label width
  1165. % We'll set it to the width suitable for all labels using
  1166. % normalfont 1) to 9)
  1167. % The user can override this later
  1168. \settowidth{\labelwidth}{9)}%
  1169. \@IEEEsavelistparams% save our list parameters
  1170. \list{\csname label\@enumctr\endcsname}{\usecounter{\@enumctr}%
  1171. \@IEEErestorelistparams% override any list{} changes
  1172. % to our globals
  1173. \let\makelabel\@IEEEiedmakelabel% v1.6b setup \makelabel
  1174. \IEEEiedlistdecl% let user alter parameters
  1175. #1\relax%
  1176. % If the user has requested not to use the
  1177. % IEEElabelindent factor, don't revise \IEEElabelindent
  1178. \ifIEEEnolabelindentfactor\relax%
  1179. \else\IEEElabelindent=\IEEElabelindentfactor\IEEElabelindent%
  1180. \fi%
  1181. % Unless the user has requested otherwise,
  1182. % calculate our left margin based
  1183. % on \IEEElabelindent, \labelwidth and
  1184. % \labelsep
  1185. \ifIEEEnocalcleftmargin\relax%
  1186. \else\IEEEcalcleftmargin{\IEEElabelindent}%
  1187. \fi}\fi\fi}%
  1188. % DO NOT ALLOW BLANK LINES TO BE IN THESE IED ENVIRONMENTS
  1189. % AS THIS WILL FORCE NEW PARAGRAPHS AFTER THE IED LISTS
  1190. % IEEEtran description list MDS 1/2001
  1191. % Note controlled spacing here, shield end of lines with %
  1192. \def\@@IEEEdescription[#1]{%
  1193. \ifnum\@listdepth>5\relax\@toodeep\else%
  1194. % get the labelindentfactor for this level
  1195. \advance\@listdepth\@ne% we need to know what the level WILL be
  1196. \edef\IEEElabelindentfactor{\csname IEEElabelindentfactor\romannumeral\the\@listdepth\endcsname}%
  1197. \advance\@listdepth-\@ne% undo our increment
  1198. \def\@IEEEiedjustify{0}% left justified labels are default
  1199. % set other defaults
  1200. \IEEEnocalcleftmarginfalse%
  1201. \IEEEnolabelindentfactorfalse%
  1202. \topsep\IEEEiedtopsep%
  1203. \IEEElabelindent\IEEEdlabelindent%
  1204. % assume normal labelsep
  1205. \labelsep\IEEEiednormlabelsep%
  1206. \partopsep 0ex%
  1207. \parsep 0ex%
  1208. \itemsep 0ex%
  1209. \rightmargin 0em%
  1210. \listparindent 0em%
  1211. \itemindent 0em%
  1212. % Bogus label width in case the user forgets
  1213. % to set it.
  1214. % TIP: If you want to see what a variable's width is you
  1215. % can use the TeX command \showthe\width-variable to
  1216. % display it on the screen during compilation
  1217. % (This might be helpful to know when you need to find out
  1218. % which label is the widest)
  1219. \settowidth{\labelwidth}{Hello}%
  1220. \@IEEEsavelistparams% save our list parameters
  1221. \list{}{\@IEEErestorelistparams% override any list{} changes
  1222. % to our globals
  1223. \let\makelabel\@IEEEiedmakelabel% v1.6b setup \makelabel
  1224. \IEEEiedlistdecl% let user alter parameters
  1225. #1\relax%
  1226. % If the user has requested not to use the
  1227. % labelindent factor, don't revise \IEEElabelindent
  1228. \ifIEEEnolabelindentfactor\relax%
  1229. \else\IEEElabelindent=\IEEElabelindentfactor\IEEElabelindent%
  1230. \fi%
  1231. % Unless the user has requested otherwise,
  1232. % calculate our left margin based
  1233. % on \IEEElabelindent, \labelwidth and
  1234. % \labelsep
  1235. \ifIEEEnocalcleftmargin\relax%
  1236. \else\IEEEcalcleftmargin{\IEEElabelindent}\relax%
  1237. \fi}\fi}
  1238. % v1.6b we use one makelabel that does justification as needed.
  1239. \def\@IEEEiedmakelabel#1{\relax\if\@IEEEiedjustify 0\relax
  1240. \makebox[\labelwidth][l]{\normalfont #1}\else
  1241. \if\@IEEEiedjustify 1\relax
  1242. \makebox[\labelwidth][c]{\normalfont #1}\else
  1243. \makebox[\labelwidth][r]{\normalfont #1}\fi\fi}
  1244. % VERSE and QUOTE
  1245. % V1.7 define environments with newenvironment
  1246. \newenvironment{verse}{\let\\=\@centercr
  1247. \list{}{\itemsep\z@ \itemindent -1.5em \listparindent \itemindent
  1248. \rightmargin\leftmargin\advance\leftmargin 1.5em}\item\relax}
  1249. {\endlist}
  1250. \newenvironment{quotation}{\list{}{\listparindent 1.5em \itemindent\listparindent
  1251. \rightmargin\leftmargin \parsep 0pt plus 1pt}\item\relax}
  1252. {\endlist}
  1253. \newenvironment{quote}{\list{}{\rightmargin\leftmargin}\item\relax}
  1254. {\endlist}
  1255. % \titlepage
  1256. % provided only for backward compatibility. \maketitle is the correct
  1257. % way to create the title page.
  1258. \newif\if@restonecol
  1259. \def\titlepage{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
  1260. \else \newpage \fi \thispagestyle{empty}\c@page\z@}
  1261. \def\endtitlepage{\if@restonecol\twocolumn \else \newpage \fi}
  1262. % standard values from article.cls
  1263. \arraycolsep 5pt
  1264. \arrayrulewidth .4pt
  1265. \doublerulesep 2pt
  1266. \tabcolsep 6pt
  1267. \tabbingsep 0.5em
  1268. %% FOOTNOTES
  1269. %
  1270. %\skip\footins 10pt plus 4pt minus 2pt
  1271. % V1.6 respond to changes in font size
  1272. % space added above the footnotes (if present)
  1273. \skip\footins 0.9\baselineskip plus 0.4\baselineskip minus 0.2\baselineskip
  1274. % V1.6, we need to make \footnotesep responsive to changes
  1275. % in \baselineskip or strange spacings will result when in
  1276. % draft mode. Here is a little LaTeX secret - \footnotesep
  1277. % determines the height of an invisible strut that is placed
  1278. % *above* the baseline of footnotes after the first. Since
  1279. % LaTeX considers the space for characters to be 0.7/baselineskip
  1280. % above the baseline and 0.3/baselineskip below it, we need to
  1281. % use 0.7/baselineskip as a \footnotesep to maintain equal spacing
  1282. % between all the lines of the footnotes. IEEE often uses a tad
  1283. % more, so use 0.8\baselineskip. This slightly larger value also helps
  1284. % the text to clear the footnote marks. Note that \thanks in IEEEtran
  1285. % uses its own value of \footnotesep which is set in \maketitle.
  1286. {\footnotesize
  1287. \global\footnotesep 0.8\baselineskip}
  1288. \skip\@mpfootins = \skip\footins
  1289. \fboxsep = 3pt
  1290. \fboxrule = .4pt
  1291. % V1.6 use 1em, then use LaTeX2e's \@makefnmark
  1292. % Note that IEEE normally *left* aligns the footnote marks, so we don't need
  1293. % box resizing tricks here.
  1294. \long\def\@makefntext#1{\parindent 1em\indent\hbox{\@makefnmark}#1}% V1.6 use 1em
  1295. % V1.7 compsoc does not use superscipts for footnote marks
  1296. \ifCLASSOPTIONcompsoc
  1297. \def\@IEEEcompsocmakefnmark{\hbox{\normalfont\@thefnmark.\ }}
  1298. \long\def\@makefntext#1{\parindent 1em\indent\hbox{\@IEEEcompsocmakefnmark}#1}
  1299. \fi
  1300. % IEEE does not use footnote rules
  1301. \def\footnoterule{}
  1302. % V1.7 for compsoc, IEEE uses a footnote rule only for \thanks. We devise a "one-shot"
  1303. % system to implement this.
  1304. \newif\if@IEEEenableoneshotfootnoterule
  1305. \@IEEEenableoneshotfootnoterulefalse
  1306. \ifCLASSOPTIONcompsoc
  1307. \def\footnoterule{\relax\if@IEEEenableoneshotfootnoterule
  1308. \kern-5pt
  1309. \hbox to \columnwidth{\hfill\vrule width 0.5\columnwidth height 0.4pt\hfill}
  1310. \kern4.6pt
  1311. \global\@IEEEenableoneshotfootnoterulefalse
  1312. \else
  1313. \relax
  1314. \fi}
  1315. \fi
  1316. % V1.6 do not allow LaTeX to break a footnote across multiple pages
  1317. \interfootnotelinepenalty=10000
  1318. % V1.6 discourage breaks within equations
  1319. % Note that amsmath normally sets this to 10000,
  1320. % but LaTeX2e normally uses 100.
  1321. \interdisplaylinepenalty=2500
  1322. % default allows section depth up to /paragraph
  1323. \setcounter{secnumdepth}{4}
  1324. % technotes do not allow /paragraph
  1325. \ifCLASSOPTIONtechnote
  1326. \setcounter{secnumdepth}{3}
  1327. \fi
  1328. % neither do compsoc conferences
  1329. \@IEEEcompsocconfonly{\setcounter{secnumdepth}{3}}
  1330. \newcounter{section}
  1331. \newcounter{subsection}[section]
  1332. \newcounter{subsubsection}[subsection]
  1333. \newcounter{paragraph}[subsubsection]
  1334. % used only by IEEEtran's IEEEeqnarray as other packages may
  1335. % have their own, different, implementations
  1336. \newcounter{IEEEsubequation}[equation]
  1337. % as shown when called by user from \ref, \label and in table of contents
  1338. \def\theequation{\arabic{equation}} % 1
  1339. \def\theIEEEsubequation{\theequation\alph{IEEEsubequation}} % 1a (used only by IEEEtran's IEEEeqnarray)
  1340. \ifCLASSOPTIONcompsoc
  1341. % compsoc is all arabic
  1342. \def\thesection{\arabic{section}}
  1343. \def\thesubsection{\thesection.\arabic{subsection}}
  1344. \def\thesubsubsection{\thesubsection.\arabic{subsubsection}}
  1345. \def\theparagraph{\thesubsubsection.\arabic{paragraph}}
  1346. \else
  1347. \def\thesection{\Roman{section}} % I
  1348. % V1.7, \mbox prevents breaks around -
  1349. \def\thesubsection{\mbox{\thesection-\Alph{subsection}}} % I-A
  1350. % V1.7 use I-A1 format used by IEEE rather than I-A.1
  1351. \def\thesubsubsection{\thesubsection\arabic{subsubsection}} % I-A1
  1352. \def\theparagraph{\thesubsubsection\alph{paragraph}} % I-A1a
  1353. \fi
  1354. % From Heiko Oberdiek. Because of the \mbox in \thesubsection, we need to
  1355. % tell hyperref to disable the \mbox command when making PDF bookmarks.
  1356. % This done already with hyperref.sty version 6.74o and later, but
  1357. % it will not hurt to do it here again for users of older versions.
  1358. \@ifundefined{pdfstringdefPreHook}{\let\pdfstringdefPreHook\@empty}{}%
  1359. \g@addto@macro\pdfstringdefPreHook{\let\mbox\relax}
  1360. % Main text forms (how shown in main text headings)
  1361. % V1.6, using \thesection in \thesectiondis allows changes
  1362. % in the former to automatically appear in the latter
  1363. \ifCLASSOPTIONcompsoc
  1364. \ifCLASSOPTIONconference% compsoc conference
  1365. \def\thesectiondis{\thesection.}
  1366. \def\thesubsectiondis{\thesectiondis\arabic{subsection}.}
  1367. \def\thesubsubsectiondis{\thesubsectiondis\arabic{subsubsection}.}
  1368. \def\theparagraphdis{\thesubsubsectiondis\arabic{paragraph}.}
  1369. \else% compsoc not conferencs
  1370. \def\thesectiondis{\thesection}
  1371. \def\thesubsectiondis{\thesectiondis.\arabic{subsection}}
  1372. \def\thesubsubsectiondis{\thesubsectiondis.\arabic{subsubsection}}
  1373. \def\theparagraphdis{\thesubsubsectiondis.\arabic{paragraph}}
  1374. \fi
  1375. \else% not compsoc
  1376. \def\thesectiondis{\thesection.} % I.
  1377. \def\thesubsectiondis{\Alph{subsection}.} % B.
  1378. \def\thesubsubsectiondis{\arabic{subsubsection})} % 3)
  1379. \def\theparagraphdis{\alph{paragraph})} % d)
  1380. \fi
  1381. % just like LaTeX2e's \@eqnnum
  1382. \def\theequationdis{{\normalfont \normalcolor (\theequation)}}% (1)
  1383. % IEEEsubequation used only by IEEEtran's IEEEeqnarray
  1384. \def\theIEEEsubequationdis{{\normalfont \normalcolor (\theIEEEsubequation)}}% (1a)
  1385. % redirect LaTeX2e's equation number display and all that depend on
  1386. % it, through IEEEtran's \theequationdis
  1387. \def\@eqnnum{\theequationdis}
  1388. % V1.7 provide string macros as article.cls does
  1389. \def\contentsname{Contents}
  1390. \def\listfigurename{List of Figures}
  1391. \def\listtablename{List of Tables}
  1392. \def\refname{References}
  1393. \def\indexname{Index}
  1394. \def\figurename{Fig.}
  1395. \def\tablename{TABLE}
  1396. \@IEEEcompsocconfonly{\def\figurename{Figure}\def\tablename{Table}}
  1397. \def\partname{Part}
  1398. \def\appendixname{Appendix}
  1399. \def\abstractname{Abstract}
  1400. % IEEE specific names
  1401. \def\IEEEkeywordsname{Index Terms}
  1402. \def\IEEEproofname{Proof}
  1403. % LIST OF FIGURES AND TABLES AND TABLE OF CONTENTS
  1404. %
  1405. \def\@pnumwidth{1.55em}
  1406. \def\@tocrmarg{2.55em}
  1407. \def\@dotsep{4.5}
  1408. \setcounter{tocdepth}{3}
  1409. % adjusted some spacings here so that section numbers will not easily
  1410. % collide with the section titles.
  1411. % VIII; VIII-A; and VIII-A.1 are usually the worst offenders.
  1412. % MDS 1/2001
  1413. \def\tableofcontents{\section*{\contentsname}\@starttoc{toc}}
  1414. \def\l@section#1#2{\addpenalty{\@secpenalty}\addvspace{1.0em plus 1pt}%
  1415. \@tempdima 2.75em \begingroup \parindent \z@ \rightskip \@pnumwidth%
  1416. \parfillskip-\@pnumwidth {\bfseries\leavevmode #1}\hfil\hbox to\@pnumwidth{\hss #2}\par%
  1417. \endgroup}
  1418. % argument format #1:level, #2:labelindent,#3:labelsep
  1419. \def\l@subsection{\@dottedtocline{2}{2.75em}{3.75em}}
  1420. \def\l@subsubsection{\@dottedtocline{3}{6.5em}{4.5em}}
  1421. % must provide \l@ defs for ALL sublevels EVEN if tocdepth
  1422. % is such as they will not appear in the table of contents
  1423. % these defs are how TOC knows what level these things are!
  1424. \def\l@paragraph{\@dottedtocline{4}{6.5em}{5.5em}}
  1425. \def\l@subparagraph{\@dottedtocline{5}{6.5em}{6.5em}}
  1426. \def\listoffigures{\section*{\listfigurename}\@starttoc{lof}}
  1427. \def\l@figure{\@dottedtocline{1}{0em}{2.75em}}
  1428. \def\listoftables{\section*{\listtablename}\@starttoc{lot}}
  1429. \let\l@table\l@figure
  1430. %% Definitions for floats
  1431. %%
  1432. %% Normal Floats
  1433. \floatsep 1\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip
  1434. \textfloatsep 1.7\baselineskip plus 0.2\baselineskip minus 0.4\baselineskip
  1435. \@fptop 0pt plus 1fil
  1436. \@fpsep 0.75\baselineskip plus 2fil
  1437. \@fpbot 0pt plus 1fil
  1438. \def\topfraction{0.9}
  1439. \def\bottomfraction{0.4}
  1440. \def\floatpagefraction{0.8}
  1441. % V1.7, let top floats approach 90% of page
  1442. \def\textfraction{0.1}
  1443. %% Double Column Floats
  1444. \dblfloatsep 1\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip
  1445. \dbltextfloatsep 1.7\baselineskip plus 0.2\baselineskip minus 0.4\baselineskip
  1446. % Note that it would be nice if the rubber here actually worked in LaTeX2e.
  1447. % There is a long standing limitation in LaTeX, first discovered (to the best
  1448. % of my knowledge) by Alan Jeffrey in 1992. LaTeX ignores the stretchable
  1449. % portion of \dbltextfloatsep, and as a result, double column figures can and
  1450. % do result in an non-integer number of lines in the main text columns with
  1451. % underfull vbox errors as a consequence. A post to comp.text.tex
  1452. % by Donald Arseneau confirms that this had not yet been fixed in 1998.
  1453. % IEEEtran V1.6 will fix this problem for you in the titles, but it doesn't
  1454. % protect you from other double floats. Happy vspace'ing.
  1455. \@dblfptop 0pt plus 1fil
  1456. \@dblfpsep 0.75\baselineskip plus 2fil
  1457. \@dblfpbot 0pt plus 1fil
  1458. \def\dbltopfraction{0.8}
  1459. \def\dblfloatpagefraction{0.8}
  1460. \setcounter{dbltopnumber}{4}
  1461. \intextsep 1\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip
  1462. \setcounter{topnumber}{2}
  1463. \setcounter{bottomnumber}{2}
  1464. \setcounter{totalnumber}{4}
  1465. % article class provides these, we should too.
  1466. \newlength\abovecaptionskip
  1467. \newlength\belowcaptionskip
  1468. % but only \abovecaptionskip is used above figure captions and *below* table
  1469. % captions
  1470. \setlength\abovecaptionskip{0.5\baselineskip}
  1471. \setlength\belowcaptionskip{0pt}
  1472. % V1.6 create hooks in case the caption spacing ever needs to be
  1473. % overridden by a user
  1474. \def\@IEEEfigurecaptionsepspace{\vskip\abovecaptionskip\relax}%
  1475. \def\@IEEEtablecaptionsepspace{\vskip\abovecaptionskip\relax}%
  1476. % 1.6b revise caption system so that \@makecaption uses two arguments
  1477. % as with LaTeX2e. Otherwise, there will be problems when using hyperref.
  1478. \def\@IEEEtablestring{table}
  1479. \ifCLASSOPTIONcompsoc
  1480. % V1.7 compsoc \@makecaption
  1481. \ifCLASSOPTIONconference% compsoc conference
  1482. \long\def\@makecaption#1#2{%
  1483. % test if is a for a figure or table
  1484. \ifx\@captype\@IEEEtablestring%
  1485. % if a table, do table caption
  1486. \normalsize\begin{center}{\normalfont\sffamily\normalsize {#1.}~ #2}\end{center}%
  1487. \@IEEEtablecaptionsepspace
  1488. % if not a table, format it as a figure
  1489. \else
  1490. \@IEEEfigurecaptionsepspace
  1491. \setbox\@tempboxa\hbox{\normalfont\sffamily\normalsize {#1.}~ #2}%
  1492. \ifdim \wd\@tempboxa >\hsize%
  1493. % if caption is longer than a line, let it wrap around
  1494. \setbox\@tempboxa\hbox{\normalfont\sffamily\normalsize {#1.}~ }%
  1495. \parbox[t]{\hsize}{\normalfont\sffamily\normalsize \noindent\unhbox\@tempboxa#2}%
  1496. % if caption is shorter than a line, center
  1497. \else%
  1498. \hbox to\hsize{\normalfont\sffamily\normalsize\hfil\box\@tempboxa\hfil}%
  1499. \fi\fi}
  1500. \else% nonconference compsoc
  1501. \long\def\@makecaption#1#2{%
  1502. % test if is a for a figure or table
  1503. \ifx\@captype\@IEEEtablestring%
  1504. % if a table, do table caption
  1505. \normalsize\begin{center}{\normalfont\sffamily\normalsize #1}\\{\normalfont\sffamily\normalsize #2}\end{center}%
  1506. \@IEEEtablecaptionsepspace
  1507. % if not a table, format it as a figure
  1508. \else
  1509. \@IEEEfigurecaptionsepspace
  1510. \setbox\@tempboxa\hbox{\normalfont\sffamily\normalsize {#1.}~ #2}%
  1511. \ifdim \wd\@tempboxa >\hsize%
  1512. % if caption is longer than a line, let it wrap around
  1513. \setbox\@tempboxa\hbox{\normalfont\sffamily\normalsize {#1.}~ }%
  1514. \parbox[t]{\hsize}{\normalfont\sffamily\normalsize \noindent\unhbox\@tempboxa#2}%
  1515. % if caption is shorter than a line, left justify
  1516. \else%
  1517. \hbox to\hsize{\normalfont\sffamily\normalsize\box\@tempboxa\hfil}%
  1518. \fi\fi}
  1519. \fi
  1520. \else% traditional noncompsoc \@makecaption
  1521. \long\def\@makecaption#1#2{%
  1522. % test if is a for a figure or table
  1523. \ifx\@captype\@IEEEtablestring%
  1524. % if a table, do table caption
  1525. \footnotesize\begin{center}{\normalfont\footnotesize #1}\\{\normalfont\footnotesize\scshape #2}\end{center}%
  1526. \@IEEEtablecaptionsepspace
  1527. % if not a table, format it as a figure
  1528. \else
  1529. \@IEEEfigurecaptionsepspace
  1530. % 3/2001 use footnotesize, not small; use two nonbreaking spaces, not one
  1531. \setbox\@tempboxa\hbox{\normalfont\footnotesize {#1.}~~ #2}%
  1532. \ifdim \wd\@tempboxa >\hsize%
  1533. % if caption is longer than a line, let it wrap around
  1534. \setbox\@tempboxa\hbox{\normalfont\footnotesize {#1.}~~ }%
  1535. \parbox[t]{\hsize}{\normalfont\footnotesize\noindent\unhbox\@tempboxa#2}%
  1536. % if caption is shorter than a line, center if conference, left justify otherwise
  1537. \else%
  1538. \ifCLASSOPTIONconference \hbox to\hsize{\normalfont\footnotesize\hfil\box\@tempboxa\hfil}%
  1539. \else \hbox to\hsize{\normalfont\footnotesize\box\@tempboxa\hfil}%
  1540. \fi\fi\fi}
  1541. \fi
  1542. % V1.7 disable captions class option, do so in a way that retains operation of \label
  1543. % within \caption
  1544. \ifCLASSOPTIONcaptionsoff
  1545. \long\def\@makecaption#1#2{\vspace*{2em}\footnotesize\begin{center}{\footnotesize #1}\end{center}%
  1546. \let\@IEEEtemporiglabeldefsave\label
  1547. \let\@IEEEtemplabelargsave\relax
  1548. \def\label##1{\gdef\@IEEEtemplabelargsave{##1}}%
  1549. \setbox\@tempboxa\hbox{#2}%
  1550. \let\label\@IEEEtemporiglabeldefsave
  1551. \ifx\@IEEEtemplabelargsave\relax\else\label{\@IEEEtemplabelargsave}\fi}
  1552. \fi
  1553. % V1.7 define end environments with \def not \let so as to work OK with
  1554. % preview-latex
  1555. \newcounter{figure}
  1556. \def\thefigure{\@arabic\c@figure}
  1557. \def\fps@figure{tbp}
  1558. \def\ftype@figure{1}
  1559. \def\ext@figure{lof}
  1560. \def\fnum@figure{\figurename~\thefigure}
  1561. \def\figure{\@float{figure}}
  1562. \def\endfigure{\end@float}
  1563. \@namedef{figure*}{\@dblfloat{figure}}
  1564. \@namedef{endfigure*}{\end@dblfloat}
  1565. \newcounter{table}
  1566. \ifCLASSOPTIONcompsoc
  1567. \def\thetable{\arabic{table}}
  1568. \else
  1569. \def\thetable{\@Roman\c@table}
  1570. \fi
  1571. \def\fps@table{tbp}
  1572. \def\ftype@table{2}
  1573. \def\ext@table{lot}
  1574. \def\fnum@table{\tablename~\thetable}
  1575. % V1.6 IEEE uses 8pt text for tables
  1576. % to default to footnotesize, we hack into LaTeX2e's \@floatboxreset and pray
  1577. \def\table{\def\@floatboxreset{\reset@font\footnotesize\@setminipage}\@float{table}}
  1578. \def\endtable{\end@float}
  1579. % v1.6b double column tables need to default to footnotesize as well.
  1580. \@namedef{table*}{\def\@floatboxreset{\reset@font\footnotesize\@setminipage}\@dblfloat{table}}
  1581. \@namedef{endtable*}{\end@dblfloat}
  1582. %%
  1583. %% START OF IEEEeqnarry DEFINITIONS
  1584. %%
  1585. %% Inspired by the concepts, examples, and previous works of LaTeX
  1586. %% coders and developers such as Donald Arseneau, Fred Bartlett,
  1587. %% David Carlisle, Tony Liu, Frank Mittelbach, Piet van Oostrum,
  1588. %% Roland Winkler and Mark Wooding.
  1589. %% I don't make the claim that my work here is even near their calibre. ;)
  1590. % hook to allow easy changeover to IEEEtran.cls/tools.sty error reporting
  1591. \def\@IEEEclspkgerror{\ClassError{IEEEtran}}
  1592. \newif\if@IEEEeqnarraystarform% flag to indicate if the environment was called as the star form
  1593. \@IEEEeqnarraystarformfalse
  1594. \newif\if@advanceIEEEeqncolcnt% tracks if the environment should advance the col counter
  1595. % allows a way to make an \IEEEeqnarraybox that can be used within an \IEEEeqnarray
  1596. % used by IEEEeqnarraymulticol so that it can work properly in both
  1597. \@advanceIEEEeqncolcnttrue
  1598. \newcount\@IEEEeqnnumcols % tracks how many IEEEeqnarray cols are defined
  1599. \newcount\@IEEEeqncolcnt % tracks how many IEEEeqnarray cols the user actually used
  1600. % The default math style used by the columns
  1601. \def\IEEEeqnarraymathstyle{\displaystyle}
  1602. % The default text style used by the columns
  1603. % default to using the current font
  1604. \def\IEEEeqnarraytextstyle{\relax}
  1605. % like the iedlistdecl but for \IEEEeqnarray
  1606. \def\IEEEeqnarraydecl{\relax}
  1607. \def\IEEEeqnarrayboxdecl{\relax}
  1608. % \yesnumber is the opposite of \nonumber
  1609. % a novel concept with the same def as the equationarray package
  1610. % However, we give IEEE versions too since some LaTeX packages such as
  1611. % the MDWtools mathenv.sty redefine \nonumber to something else.
  1612. \providecommand{\yesnumber}{\global\@eqnswtrue}
  1613. \def\IEEEyesnumber{\global\@eqnswtrue}
  1614. \def\IEEEnonumber{\global\@eqnswfalse}
  1615. \def\IEEEyessubnumber{\global\@IEEEissubequationtrue\global\@eqnswtrue%
  1616. \if@IEEEeqnarrayISinner% only do something inside an IEEEeqnarray
  1617. \if@IEEElastlinewassubequation\addtocounter{equation}{-1}\else\setcounter{IEEEsubequation}{1}\fi%
  1618. \def\@currentlabel{\p@IEEEsubequation\theIEEEsubequation}\fi}
  1619. % flag to indicate that an equation is a sub equation
  1620. \newif\if@IEEEissubequation%
  1621. \@IEEEissubequationfalse
  1622. % allows users to "push away" equations that get too close to the equation numbers
  1623. \def\IEEEeqnarraynumspace{\hphantom{\if@IEEEissubequation\theIEEEsubequationdis\else\theequationdis\fi}}
  1624. % provides a way to span multiple columns within IEEEeqnarray environments
  1625. % will consider \if@advanceIEEEeqncolcnt before globally advancing the
  1626. % column counter - so as to work within \IEEEeqnarraybox
  1627. % usage: \IEEEeqnarraymulticol{number cols. to span}{col type}{cell text}
  1628. \long\def\IEEEeqnarraymulticol#1#2#3{\multispan{#1}%
  1629. % check if column is defined
  1630. \relax\expandafter\ifx\csname @IEEEeqnarraycolDEF#2\endcsname\@IEEEeqnarraycolisdefined%
  1631. \csname @IEEEeqnarraycolPRE#2\endcsname#3\relax\relax\relax\relax\relax%
  1632. \relax\relax\relax\relax\relax\csname @IEEEeqnarraycolPOST#2\endcsname%
  1633. \else% if not, error and use default type
  1634. \@IEEEclspkgerror{Invalid column type "#2" in \string\IEEEeqnarraymulticol.\MessageBreak
  1635. Using a default centering column instead}%
  1636. {You must define IEEEeqnarray column types before use.}%
  1637. \csname @IEEEeqnarraycolPRE@IEEEdefault\endcsname#3\relax\relax\relax\relax\relax%
  1638. \relax\relax\relax\relax\relax\csname @IEEEeqnarraycolPOST@IEEEdefault\endcsname%
  1639. \fi%
  1640. % advance column counter only if the IEEEeqnarray environment wants it
  1641. \if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by #1\relax\fi}
  1642. % like \omit, but maintains track of the column counter for \IEEEeqnarray
  1643. \def\IEEEeqnarrayomit{\omit\if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by 1\relax\fi}
  1644. % provides a way to define a letter referenced column type
  1645. % usage: \IEEEeqnarraydefcol{col. type letter/name}{pre insertion text}{post insertion text}
  1646. \def\IEEEeqnarraydefcol#1#2#3{\expandafter\def\csname @IEEEeqnarraycolPRE#1\endcsname{#2}%
  1647. \expandafter\def\csname @IEEEeqnarraycolPOST#1\endcsname{#3}%
  1648. \expandafter\def\csname @IEEEeqnarraycolDEF#1\endcsname{1}}
  1649. % provides a way to define a numerically referenced inter-column glue types
  1650. % usage: \IEEEeqnarraydefcolsep{col. glue number}{glue definition}
  1651. \def\IEEEeqnarraydefcolsep#1#2{\expandafter\def\csname @IEEEeqnarraycolSEP\romannumeral #1\endcsname{#2}%
  1652. \expandafter\def\csname @IEEEeqnarraycolSEPDEF\romannumeral #1\endcsname{1}}
  1653. \def\@IEEEeqnarraycolisdefined{1}% just a macro for 1, used for checking undefined column types
  1654. % expands and appends the given argument to the \@IEEEtrantmptoksA token list
  1655. % used to build up the \halign preamble
  1656. \def\@IEEEappendtoksA#1{\edef\@@IEEEappendtoksA{\@IEEEtrantmptoksA={\the\@IEEEtrantmptoksA #1}}%
  1657. \@@IEEEappendtoksA}
  1658. % also appends to \@IEEEtrantmptoksA, but does not expand the argument
  1659. % uses \toks8 as a scratchpad register
  1660. \def\@IEEEappendNOEXPANDtoksA#1{\toks8={#1}%
  1661. \edef\@@IEEEappendNOEXPANDtoksA{\@IEEEtrantmptoksA={\the\@IEEEtrantmptoksA\the\toks8}}%
  1662. \@@IEEEappendNOEXPANDtoksA}
  1663. % define some common column types for the user
  1664. % math
  1665. \IEEEeqnarraydefcol{l}{$\IEEEeqnarraymathstyle}{$\hfil}
  1666. \IEEEeqnarraydefcol{c}{\hfil$\IEEEeqnarraymathstyle}{$\hfil}
  1667. \IEEEeqnarraydefcol{r}{\hfil$\IEEEeqnarraymathstyle}{$}
  1668. \IEEEeqnarraydefcol{L}{$\IEEEeqnarraymathstyle{}}{{}$\hfil}
  1669. \IEEEeqnarraydefcol{C}{\hfil$\IEEEeqnarraymathstyle{}}{{}$\hfil}
  1670. \IEEEeqnarraydefcol{R}{\hfil$\IEEEeqnarraymathstyle{}}{{}$}
  1671. % text
  1672. \IEEEeqnarraydefcol{s}{\IEEEeqnarraytextstyle}{\hfil}
  1673. \IEEEeqnarraydefcol{t}{\hfil\IEEEeqnarraytextstyle}{\hfil}
  1674. \IEEEeqnarraydefcol{u}{\hfil\IEEEeqnarraytextstyle}{}
  1675. % vertical rules
  1676. \IEEEeqnarraydefcol{v}{}{\vrule width\arrayrulewidth}
  1677. \IEEEeqnarraydefcol{vv}{\vrule width\arrayrulewidth\hfil}{\hfil\vrule width\arrayrulewidth}
  1678. \IEEEeqnarraydefcol{V}{}{\vrule width\arrayrulewidth\hskip\doublerulesep\vrule width\arrayrulewidth}
  1679. \IEEEeqnarraydefcol{VV}{\vrule width\arrayrulewidth\hskip\doublerulesep\vrule width\arrayrulewidth\hfil}%
  1680. {\hfil\vrule width\arrayrulewidth\hskip\doublerulesep\vrule width\arrayrulewidth}
  1681. % horizontal rules
  1682. \IEEEeqnarraydefcol{h}{}{\leaders\hrule height\arrayrulewidth\hfil}
  1683. \IEEEeqnarraydefcol{H}{}{\leaders\vbox{\hrule width\arrayrulewidth\vskip\doublerulesep\hrule width\arrayrulewidth}\hfil}
  1684. % plain
  1685. \IEEEeqnarraydefcol{x}{}{}
  1686. \IEEEeqnarraydefcol{X}{$}{$}
  1687. % the default column type to use in the event a column type is not defined
  1688. \IEEEeqnarraydefcol{@IEEEdefault}{\hfil$\IEEEeqnarraymathstyle}{$\hfil}
  1689. % a zero tabskip (used for "-" col types)
  1690. \def\@IEEEeqnarraycolSEPzero{0pt plus 0pt minus 0pt}
  1691. % a centering tabskip (used for "+" col types)
  1692. \def\@IEEEeqnarraycolSEPcenter{1000pt plus 0pt minus 1000pt}
  1693. % top level default tabskip glues for the start, end, and inter-column
  1694. % may be reset within environments not always at the top level, e.g., \IEEEeqnarraybox
  1695. \edef\@IEEEeqnarraycolSEPdefaultstart{\@IEEEeqnarraycolSEPcenter}% default start glue
  1696. \edef\@IEEEeqnarraycolSEPdefaultend{\@IEEEeqnarraycolSEPcenter}% default end glue
  1697. \edef\@IEEEeqnarraycolSEPdefaultmid{\@IEEEeqnarraycolSEPzero}% default inter-column glue
  1698. % creates a vertical rule that extends from the bottom to the top a a cell
  1699. % Provided in case other packages redefine \vline some other way.
  1700. % usage: \IEEEeqnarrayvrule[rule thickness]
  1701. % If no argument is provided, \arrayrulewidth will be used for the rule thickness.
  1702. \newcommand\IEEEeqnarrayvrule[1][\arrayrulewidth]{\vrule\@width#1\relax}
  1703. % creates a blank separator row
  1704. % usage: \IEEEeqnarrayseprow[separation length][font size commands]
  1705. % default is \IEEEeqnarrayseprow[0.25\normalbaselineskip][\relax]
  1706. % blank arguments inherit the default values
  1707. % uses \skip5 as a scratch register - calls \@IEEEeqnarraystrutsize which uses more scratch registers
  1708. \def\IEEEeqnarrayseprow{\relax\@ifnextchar[{\@IEEEeqnarrayseprow}{\@IEEEeqnarrayseprow[0.25\normalbaselineskip]}}
  1709. \def\@IEEEeqnarrayseprow[#1]{\relax\@ifnextchar[{\@@IEEEeqnarrayseprow[#1]}{\@@IEEEeqnarrayseprow[#1][\relax]}}
  1710. \def\@@IEEEeqnarrayseprow[#1][#2]{\def\@IEEEeqnarrayseprowARGONE{#1}%
  1711. \ifx\@IEEEeqnarrayseprowARGONE\@empty%
  1712. % get the skip value, based on the font commands
  1713. % use skip5 because \IEEEeqnarraystrutsize uses \skip0, \skip2, \skip3
  1714. % assign within a bogus box to confine the font changes
  1715. {\setbox0=\hbox{#2\relax\global\skip5=0.25\normalbaselineskip}}%
  1716. \else%
  1717. {\setbox0=\hbox{#2\relax\global\skip5=#1}}%
  1718. \fi%
  1719. \@IEEEeqnarrayhoptolastcolumn\IEEEeqnarraystrutsize{\skip5}{0pt}[\relax]\relax}
  1720. % creates a blank separator row, but omits all the column templates
  1721. % usage: \IEEEeqnarrayseprowcut[separation length][font size commands]
  1722. % default is \IEEEeqnarrayseprowcut[0.25\normalbaselineskip][\relax]
  1723. % blank arguments inherit the default values
  1724. % uses \skip5 as a scratch register - calls \@IEEEeqnarraystrutsize which uses more scratch registers
  1725. \def\IEEEeqnarrayseprowcut{\multispan{\@IEEEeqnnumcols}\relax% span all the cols
  1726. % advance column counter only if the IEEEeqnarray environment wants it
  1727. \if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi%
  1728. \@ifnextchar[{\@IEEEeqnarrayseprowcut}{\@IEEEeqnarrayseprowcut[0.25\normalbaselineskip]}}
  1729. \def\@IEEEeqnarrayseprowcut[#1]{\relax\@ifnextchar[{\@@IEEEeqnarrayseprowcut[#1]}{\@@IEEEeqnarrayseprowcut[#1][\relax]}}
  1730. \def\@@IEEEeqnarrayseprowcut[#1][#2]{\def\@IEEEeqnarrayseprowARGONE{#1}%
  1731. \ifx\@IEEEeqnarrayseprowARGONE\@empty%
  1732. % get the skip value, based on the font commands
  1733. % use skip5 because \IEEEeqnarraystrutsize uses \skip0, \skip2, \skip3
  1734. % assign within a bogus box to confine the font changes
  1735. {\setbox0=\hbox{#2\relax\global\skip5=0.25\normalbaselineskip}}%
  1736. \else%
  1737. {\setbox0=\hbox{#2\relax\global\skip5=#1}}%
  1738. \fi%
  1739. \IEEEeqnarraystrutsize{\skip5}{0pt}[\relax]\relax}
  1740. % draws a single rule across all the columns optional
  1741. % argument determines the rule width, \arrayrulewidth is the default
  1742. % updates column counter as needed and turns off struts
  1743. % usage: \IEEEeqnarrayrulerow[rule line thickness]
  1744. \def\IEEEeqnarrayrulerow{\multispan{\@IEEEeqnnumcols}\relax% span all the cols
  1745. % advance column counter only if the IEEEeqnarray environment wants it
  1746. \if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi%
  1747. \@ifnextchar[{\@IEEEeqnarrayrulerow}{\@IEEEeqnarrayrulerow[\arrayrulewidth]}}
  1748. \def\@IEEEeqnarrayrulerow[#1]{\leaders\hrule height#1\hfil\relax% put in our rule
  1749. % turn off any struts
  1750. \IEEEeqnarraystrutsize{0pt}{0pt}[\relax]\relax}
  1751. % draws a double rule by using a single rule row, a separator row, and then
  1752. % another single rule row
  1753. % first optional argument determines the rule thicknesses, \arrayrulewidth is the default
  1754. % second optional argument determines the rule spacing, \doublerulesep is the default
  1755. % usage: \IEEEeqnarraydblrulerow[rule line thickness][rule spacing]
  1756. \def\IEEEeqnarraydblrulerow{\multispan{\@IEEEeqnnumcols}\relax% span all the cols
  1757. % advance column counter only if the IEEEeqnarray environment wants it
  1758. \if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi%
  1759. \@ifnextchar[{\@IEEEeqnarraydblrulerow}{\@IEEEeqnarraydblrulerow[\arrayrulewidth]}}
  1760. \def\@IEEEeqnarraydblrulerow[#1]{\relax\@ifnextchar[{\@@IEEEeqnarraydblrulerow[#1]}%
  1761. {\@@IEEEeqnarraydblrulerow[#1][\doublerulesep]}}
  1762. \def\@@IEEEeqnarraydblrulerow[#1][#2]{\def\@IEEEeqnarraydblrulerowARG{#1}%
  1763. % we allow the user to say \IEEEeqnarraydblrulerow[][]
  1764. \ifx\@IEEEeqnarraydblrulerowARG\@empty%
  1765. \@IEEEeqnarrayrulerow[\arrayrulewidth]%
  1766. \else%
  1767. \@IEEEeqnarrayrulerow[#1]\relax%
  1768. \fi%
  1769. \def\@IEEEeqnarraydblrulerowARG{#2}%
  1770. \ifx\@IEEEeqnarraydblrulerowARG\@empty%
  1771. \\\IEEEeqnarrayseprow[\doublerulesep][\relax]%
  1772. \else%
  1773. \\\IEEEeqnarrayseprow[#2][\relax]%
  1774. \fi%
  1775. \\\multispan{\@IEEEeqnnumcols}%
  1776. % advance column counter only if the IEEEeqnarray environment wants it
  1777. \if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi%
  1778. \def\@IEEEeqnarraydblrulerowARG{#1}%
  1779. \ifx\@IEEEeqnarraydblrulerowARG\@empty%
  1780. \@IEEEeqnarrayrulerow[\arrayrulewidth]%
  1781. \else%
  1782. \@IEEEeqnarrayrulerow[#1]%
  1783. \fi%
  1784. }
  1785. % draws a double rule by using a single rule row, a separator (cutting) row, and then
  1786. % another single rule row
  1787. % first optional argument determines the rule thicknesses, \arrayrulewidth is the default
  1788. % second optional argument determines the rule spacing, \doublerulesep is the default
  1789. % usage: \IEEEeqnarraydblrulerow[rule line thickness][rule spacing]
  1790. \def\IEEEeqnarraydblrulerowcut{\multispan{\@IEEEeqnnumcols}\relax% span all the cols
  1791. % advance column counter only if the IEEEeqnarray environment wants it
  1792. \if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi%
  1793. \@ifnextchar[{\@IEEEeqnarraydblrulerowcut}{\@IEEEeqnarraydblrulerowcut[\arrayrulewidth]}}
  1794. \def\@IEEEeqnarraydblrulerowcut[#1]{\relax\@ifnextchar[{\@@IEEEeqnarraydblrulerowcut[#1]}%
  1795. {\@@IEEEeqnarraydblrulerowcut[#1][\doublerulesep]}}
  1796. \def\@@IEEEeqnarraydblrulerowcut[#1][#2]{\def\@IEEEeqnarraydblrulerowARG{#1}%
  1797. % we allow the user to say \IEEEeqnarraydblrulerow[][]
  1798. \ifx\@IEEEeqnarraydblrulerowARG\@empty%
  1799. \@IEEEeqnarrayrulerow[\arrayrulewidth]%
  1800. \else%
  1801. \@IEEEeqnarrayrulerow[#1]%
  1802. \fi%
  1803. \def\@IEEEeqnarraydblrulerowARG{#2}%
  1804. \ifx\@IEEEeqnarraydblrulerowARG\@empty%
  1805. \\\IEEEeqnarrayseprowcut[\doublerulesep][\relax]%
  1806. \else%
  1807. \\\IEEEeqnarrayseprowcut[#2][\relax]%
  1808. \fi%
  1809. \\\multispan{\@IEEEeqnnumcols}%
  1810. % advance column counter only if the IEEEeqnarray environment wants it
  1811. \if@advanceIEEEeqncolcnt\global\advance\@IEEEeqncolcnt by \@IEEEeqnnumcols\relax\fi%
  1812. \def\@IEEEeqnarraydblrulerowARG{#1}%
  1813. \ifx\@IEEEeqnarraydblrulerowARG\@empty%
  1814. \@IEEEeqnarrayrulerow[\arrayrulewidth]%
  1815. \else%
  1816. \@IEEEeqnarrayrulerow[#1]%
  1817. \fi%
  1818. }
  1819. % inserts a full row's worth of &'s
  1820. % relies on \@IEEEeqnnumcols to provide the correct number of columns
  1821. % uses \@IEEEtrantmptoksA, \count0 as scratch registers
  1822. \def\@IEEEeqnarrayhoptolastcolumn{\@IEEEtrantmptoksA={}\count0=1\relax%
  1823. \loop% add cols if the user did not use them all
  1824. \ifnum\count0<\@IEEEeqnnumcols\relax%
  1825. \@IEEEappendtoksA{&}%
  1826. \advance\count0 by 1\relax% update the col count
  1827. \repeat%
  1828. \the\@IEEEtrantmptoksA%execute the &'s
  1829. }
  1830. \newif\if@IEEEeqnarrayISinner % flag to indicate if we are within the lines
  1831. \@IEEEeqnarrayISinnerfalse % of an IEEEeqnarray - after the IEEEeqnarraydecl
  1832. \edef\@IEEEeqnarrayTHEstrutheight{0pt} % height and depth of IEEEeqnarray struts
  1833. \edef\@IEEEeqnarrayTHEstrutdepth{0pt}
  1834. \edef\@IEEEeqnarrayTHEmasterstrutheight{0pt} % default height and depth of
  1835. \edef\@IEEEeqnarrayTHEmasterstrutdepth{0pt} % struts within an IEEEeqnarray
  1836. \edef\@IEEEeqnarrayTHEmasterstrutHSAVE{0pt} % saved master strut height
  1837. \edef\@IEEEeqnarrayTHEmasterstrutDSAVE{0pt} % and depth
  1838. \newif\if@IEEEeqnarrayusemasterstrut % flag to indicate that the master strut value
  1839. \@IEEEeqnarrayusemasterstruttrue % is to be used
  1840. % saves the strut height and depth of the master strut
  1841. \def\@IEEEeqnarraymasterstrutsave{\relax%
  1842. \expandafter\skip0=\@IEEEeqnarrayTHEmasterstrutheight\relax%
  1843. \expandafter\skip2=\@IEEEeqnarrayTHEmasterstrutdepth\relax%
  1844. % remove stretchability
  1845. \dimen0\skip0\relax%
  1846. \dimen2\skip2\relax%
  1847. % save values
  1848. \edef\@IEEEeqnarrayTHEmasterstrutHSAVE{\the\dimen0}%
  1849. \edef\@IEEEeqnarrayTHEmasterstrutDSAVE{\the\dimen2}}
  1850. % restores the strut height and depth of the master strut
  1851. \def\@IEEEeqnarraymasterstrutrestore{\relax%
  1852. \expandafter\skip0=\@IEEEeqnarrayTHEmasterstrutHSAVE\relax%
  1853. \expandafter\skip2=\@IEEEeqnarrayTHEmasterstrutDSAVE\relax%
  1854. % remove stretchability
  1855. \dimen0\skip0\relax%
  1856. \dimen2\skip2\relax%
  1857. % restore values
  1858. \edef\@IEEEeqnarrayTHEmasterstrutheight{\the\dimen0}%
  1859. \edef\@IEEEeqnarrayTHEmasterstrutdepth{\the\dimen2}}
  1860. % globally restores the strut height and depth to the
  1861. % master values and sets the master strut flag to true
  1862. \def\@IEEEeqnarraystrutreset{\relax%
  1863. \expandafter\skip0=\@IEEEeqnarrayTHEmasterstrutheight\relax%
  1864. \expandafter\skip2=\@IEEEeqnarrayTHEmasterstrutdepth\relax%
  1865. % remove stretchability
  1866. \dimen0\skip0\relax%
  1867. \dimen2\skip2\relax%
  1868. % restore values
  1869. \xdef\@IEEEeqnarrayTHEstrutheight{\the\dimen0}%
  1870. \xdef\@IEEEeqnarrayTHEstrutdepth{\the\dimen2}%
  1871. \global\@IEEEeqnarrayusemasterstruttrue}
  1872. % if the master strut is not to be used, make the current
  1873. % values of \@IEEEeqnarrayTHEstrutheight, \@IEEEeqnarrayTHEstrutdepth
  1874. % and the use master strut flag, global
  1875. % this allows user strut commands issued in the last column to be carried
  1876. % into the isolation/strut column
  1877. \def\@IEEEeqnarrayglobalizestrutstatus{\relax%
  1878. \if@IEEEeqnarrayusemasterstrut\else%
  1879. \xdef\@IEEEeqnarrayTHEstrutheight{\@IEEEeqnarrayTHEstrutheight}%
  1880. \xdef\@IEEEeqnarrayTHEstrutdepth{\@IEEEeqnarrayTHEstrutdepth}%
  1881. \global\@IEEEeqnarrayusemasterstrutfalse%
  1882. \fi}
  1883. % usage: \IEEEeqnarraystrutsize{height}{depth}[font size commands]
  1884. % If called outside the lines of an IEEEeqnarray, sets the height
  1885. % and depth of both the master and local struts. If called inside
  1886. % an IEEEeqnarray line, sets the height and depth of the local strut
  1887. % only and sets the flag to indicate the use of the local strut
  1888. % values. If the height or depth is left blank, 0.7\normalbaselineskip
  1889. % and 0.3\normalbaselineskip will be used, respectively.
  1890. % The optional argument can be used to evaluate the lengths under
  1891. % a different font size and styles. If none is specified, the current
  1892. % font is used.
  1893. % uses scratch registers \skip0, \skip2, \skip3, \dimen0, \dimen2
  1894. \def\IEEEeqnarraystrutsize#1#2{\relax\@ifnextchar[{\@IEEEeqnarraystrutsize{#1}{#2}}{\@IEEEeqnarraystrutsize{#1}{#2}[\relax]}}
  1895. \def\@IEEEeqnarraystrutsize#1#2[#3]{\def\@IEEEeqnarraystrutsizeARG{#1}%
  1896. \ifx\@IEEEeqnarraystrutsizeARG\@empty%
  1897. {\setbox0=\hbox{#3\relax\global\skip3=0.7\normalbaselineskip}}%
  1898. \skip0=\skip3\relax%
  1899. \else% arg one present
  1900. {\setbox0=\hbox{#3\relax\global\skip3=#1\relax}}%
  1901. \skip0=\skip3\relax%
  1902. \fi% if null arg
  1903. \def\@IEEEeqnarraystrutsizeARG{#2}%
  1904. \ifx\@IEEEeqnarraystrutsizeARG\@empty%
  1905. {\setbox0=\hbox{#3\relax\global\skip3=0.3\normalbaselineskip}}%
  1906. \skip2=\skip3\relax%
  1907. \else% arg two present
  1908. {\setbox0=\hbox{#3\relax\global\skip3=#2\relax}}%
  1909. \skip2=\skip3\relax%
  1910. \fi% if null arg
  1911. % remove stretchability, just to be safe
  1912. \dimen0\skip0\relax%
  1913. \dimen2\skip2\relax%
  1914. % dimen0 = height, dimen2 = depth
  1915. \if@IEEEeqnarrayISinner% inner does not touch master strut size
  1916. \edef\@IEEEeqnarrayTHEstrutheight{\the\dimen0}%
  1917. \edef\@IEEEeqnarrayTHEstrutdepth{\the\dimen2}%
  1918. \@IEEEeqnarrayusemasterstrutfalse% do not use master
  1919. \else% outer, have to set master strut too
  1920. \edef\@IEEEeqnarrayTHEmasterstrutheight{\the\dimen0}%
  1921. \edef\@IEEEeqnarrayTHEmasterstrutdepth{\the\dimen2}%
  1922. \edef\@IEEEeqnarrayTHEstrutheight{\the\dimen0}%
  1923. \edef\@IEEEeqnarrayTHEstrutdepth{\the\dimen2}%
  1924. \@IEEEeqnarrayusemasterstruttrue% use master strut
  1925. \fi}
  1926. % usage: \IEEEeqnarraystrutsizeadd{added height}{added depth}[font size commands]
  1927. % If called outside the lines of an IEEEeqnarray, adds the given height
  1928. % and depth to both the master and local struts.
  1929. % If called inside an IEEEeqnarray line, adds the given height and depth
  1930. % to the local strut only and sets the flag to indicate the use
  1931. % of the local strut values.
  1932. % In both cases, if a height or depth is left blank, 0pt is used instead.
  1933. % The optional argument can be used to evaluate the lengths under
  1934. % a different font size and styles. If none is specified, the current
  1935. % font is used.
  1936. % uses scratch registers \skip0, \skip2, \skip3, \dimen0, \dimen2
  1937. \def\IEEEeqnarraystrutsizeadd#1#2{\relax\@ifnextchar[{\@IEEEeqnarraystrutsizeadd{#1}{#2}}{\@IEEEeqnarraystrutsizeadd{#1}{#2}[\relax]}}
  1938. \def\@IEEEeqnarraystrutsizeadd#1#2[#3]{\def\@IEEEeqnarraystrutsizearg{#1}%
  1939. \ifx\@IEEEeqnarraystrutsizearg\@empty%
  1940. \skip0=0pt\relax%
  1941. \else% arg one present
  1942. {\setbox0=\hbox{#3\relax\global\skip3=#1}}%
  1943. \skip0=\skip3\relax%
  1944. \fi% if null arg
  1945. \def\@IEEEeqnarraystrutsizearg{#2}%
  1946. \ifx\@IEEEeqnarraystrutsizearg\@empty%
  1947. \skip2=0pt\relax%
  1948. \else% arg two present
  1949. {\setbox0=\hbox{#3\relax\global\skip3=#2}}%
  1950. \skip2=\skip3\relax%
  1951. \fi% if null arg
  1952. % remove stretchability, just to be safe
  1953. \dimen0\skip0\relax%
  1954. \dimen2\skip2\relax%
  1955. % dimen0 = height, dimen2 = depth
  1956. \if@IEEEeqnarrayISinner% inner does not touch master strut size
  1957. % get local strut size
  1958. \expandafter\skip0=\@IEEEeqnarrayTHEstrutheight\relax%
  1959. \expandafter\skip2=\@IEEEeqnarrayTHEstrutdepth\relax%
  1960. % add it to the user supplied values
  1961. \advance\dimen0 by \skip0\relax%
  1962. \advance\dimen2 by \skip2\relax%
  1963. % update the local strut size
  1964. \edef\@IEEEeqnarrayTHEstrutheight{\the\dimen0}%
  1965. \edef\@IEEEeqnarrayTHEstrutdepth{\the\dimen2}%
  1966. \@IEEEeqnarrayusemasterstrutfalse% do not use master
  1967. \else% outer, have to set master strut too
  1968. % get master strut size
  1969. \expandafter\skip0=\@IEEEeqnarrayTHEmasterstrutheight\relax%
  1970. \expandafter\skip2=\@IEEEeqnarrayTHEmasterstrutdepth\relax%
  1971. % add it to the user supplied values
  1972. \advance\dimen0 by \skip0\relax%
  1973. \advance\dimen2 by \skip2\relax%
  1974. % update the local and master strut sizes
  1975. \edef\@IEEEeqnarrayTHEmasterstrutheight{\the\dimen0}%
  1976. \edef\@IEEEeqnarrayTHEmasterstrutdepth{\the\dimen2}%
  1977. \edef\@IEEEeqnarrayTHEstrutheight{\the\dimen0}%
  1978. \edef\@IEEEeqnarrayTHEstrutdepth{\the\dimen2}%
  1979. \@IEEEeqnarrayusemasterstruttrue% use master strut
  1980. \fi}
  1981. % allow user a way to see the struts
  1982. \newif\ifIEEEvisiblestruts
  1983. \IEEEvisiblestrutsfalse
  1984. % inserts an invisible strut using the master or local strut values
  1985. % uses scratch registers \skip0, \skip2, \dimen0, \dimen2
  1986. \def\@IEEEeqnarrayinsertstrut{\relax%
  1987. \if@IEEEeqnarrayusemasterstrut
  1988. % get master strut size
  1989. \expandafter\skip0=\@IEEEeqnarrayTHEmasterstrutheight\relax%
  1990. \expandafter\skip2=\@IEEEeqnarrayTHEmasterstrutdepth\relax%
  1991. \else%
  1992. % get local strut size
  1993. \expandafter\skip0=\@IEEEeqnarrayTHEstrutheight\relax%
  1994. \expandafter\skip2=\@IEEEeqnarrayTHEstrutdepth\relax%
  1995. \fi%
  1996. % remove stretchability, probably not needed
  1997. \dimen0\skip0\relax%
  1998. \dimen2\skip2\relax%
  1999. % dimen0 = height, dimen2 = depth
  2000. % allow user to see struts if desired
  2001. \ifIEEEvisiblestruts%
  2002. \vrule width0.2pt height\dimen0 depth\dimen2\relax%
  2003. \else%
  2004. \vrule width0pt height\dimen0 depth\dimen2\relax\fi}
  2005. % creates an invisible strut, useable even outside \IEEEeqnarray
  2006. % if \IEEEvisiblestrutstrue, the strut will be visible and 0.2pt wide.
  2007. % usage: \IEEEstrut[height][depth][font size commands]
  2008. % default is \IEEEstrut[0.7\normalbaselineskip][0.3\normalbaselineskip][\relax]
  2009. % blank arguments inherit the default values
  2010. % uses \dimen0, \dimen2, \skip0, \skip2
  2011. \def\IEEEstrut{\relax\@ifnextchar[{\@IEEEstrut}{\@IEEEstrut[0.7\normalbaselineskip]}}
  2012. \def\@IEEEstrut[#1]{\relax\@ifnextchar[{\@@IEEEstrut[#1]}{\@@IEEEstrut[#1][0.3\normalbaselineskip]}}
  2013. \def\@@IEEEstrut[#1][#2]{\relax\@ifnextchar[{\@@@IEEEstrut[#1][#2]}{\@@@IEEEstrut[#1][#2][\relax]}}
  2014. \def\@@@IEEEstrut[#1][#2][#3]{\mbox{#3\relax%
  2015. \def\@IEEEstrutARG{#1}%
  2016. \ifx\@IEEEstrutARG\@empty%
  2017. \skip0=0.7\normalbaselineskip\relax%
  2018. \else%
  2019. \skip0=#1\relax%
  2020. \fi%
  2021. \def\@IEEEstrutARG{#2}%
  2022. \ifx\@IEEEstrutARG\@empty%
  2023. \skip2=0.3\normalbaselineskip\relax%
  2024. \else%
  2025. \skip2=#2\relax%
  2026. \fi%
  2027. % remove stretchability, probably not needed
  2028. \dimen0\skip0\relax%
  2029. \dimen2\skip2\relax%
  2030. \ifIEEEvisiblestruts%
  2031. \vrule width0.2pt height\dimen0 depth\dimen2\relax%
  2032. \else%
  2033. \vrule width0.0pt height\dimen0 depth\dimen2\relax\fi}}
  2034. % enables strut mode by setting a default strut size and then zeroing the
  2035. % \baselineskip, \lineskip, \lineskiplimit and \jot
  2036. \def\IEEEeqnarraystrutmode{\IEEEeqnarraystrutsize{0.7\normalbaselineskip}{0.3\normalbaselineskip}[\relax]%
  2037. \baselineskip=0pt\lineskip=0pt\lineskiplimit=0pt\jot=0pt}
  2038. \def\IEEEeqnarray{\@IEEEeqnarraystarformfalse\@IEEEeqnarray}
  2039. \def\endIEEEeqnarray{\end@IEEEeqnarray}
  2040. \@namedef{IEEEeqnarray*}{\@IEEEeqnarraystarformtrue\@IEEEeqnarray}
  2041. \@namedef{endIEEEeqnarray*}{\end@IEEEeqnarray}
  2042. % \IEEEeqnarray is an enhanced \eqnarray.
  2043. % The star form defaults to not putting equation numbers at the end of each row.
  2044. % usage: \IEEEeqnarray[decl]{cols}
  2045. \def\@IEEEeqnarray{\relax\@ifnextchar[{\@@IEEEeqnarray}{\@@IEEEeqnarray[\relax]}}
  2046. \def\@@IEEEeqnarray[#1]#2{%
  2047. % default to showing the equation number or not based on whether or not
  2048. % the star form was involked
  2049. \if@IEEEeqnarraystarform\global\@eqnswfalse
  2050. \else% not the star form
  2051. \global\@eqnswtrue
  2052. \fi% if star form
  2053. \@IEEEissubequationfalse% default to no subequations
  2054. \@IEEElastlinewassubequationfalse% assume last line is not a sub equation
  2055. \@IEEEeqnarrayISinnerfalse% not yet within the lines of the halign
  2056. \@IEEEeqnarraystrutsize{0pt}{0pt}[\relax]% turn off struts by default
  2057. \@IEEEeqnarrayusemasterstruttrue% use master strut till user asks otherwise
  2058. \IEEEvisiblestrutsfalse% diagnostic mode defaults to off
  2059. % no extra space unless the user specifically requests it
  2060. \lineskip=0pt\relax
  2061. \lineskiplimit=0pt\relax
  2062. \baselineskip=\normalbaselineskip\relax%
  2063. \jot=\IEEEnormaljot\relax%
  2064. \mathsurround\z@\relax% no extra spacing around math
  2065. \@advanceIEEEeqncolcnttrue% advance the col counter for each col the user uses,
  2066. % used in \IEEEeqnarraymulticol and in the preamble build
  2067. \stepcounter{equation}% advance equation counter before first line
  2068. \setcounter{IEEEsubequation}{0}% no subequation yet
  2069. \def\@currentlabel{\p@equation\theequation}% redefine the ref label
  2070. \IEEEeqnarraydecl\relax% allow a way for the user to make global overrides
  2071. #1\relax% allow user to override defaults
  2072. \let\\\@IEEEeqnarraycr% replace newline with one that can put in eqn. numbers
  2073. \global\@IEEEeqncolcnt\z@% col. count = 0 for first line
  2074. \@IEEEbuildpreamble #2\end\relax% build the preamble and put it into \@IEEEtrantmptoksA
  2075. % put in the column for the equation number
  2076. \ifnum\@IEEEeqnnumcols>0\relax\@IEEEappendtoksA{&}\fi% col separator for those after the first
  2077. \toks0={##}%
  2078. % advance the \@IEEEeqncolcnt for the isolation col, this helps with error checking
  2079. \@IEEEappendtoksA{\global\advance\@IEEEeqncolcnt by 1\relax}%
  2080. % add the isolation column
  2081. \@IEEEappendtoksA{\tabskip\z@skip\bgroup\the\toks0\egroup}%
  2082. % advance the \@IEEEeqncolcnt for the equation number col, this helps with error checking
  2083. \@IEEEappendtoksA{&\global\advance\@IEEEeqncolcnt by 1\relax}%
  2084. % add the equation number col to the preamble
  2085. \@IEEEappendtoksA{\tabskip\z@skip\hb@xt@\z@\bgroup\hss\the\toks0\egroup}%
  2086. % note \@IEEEeqnnumcols does not count the equation col or isolation col
  2087. % set the starting tabskip glue as determined by the preamble build
  2088. \tabskip=\@IEEEBPstartglue\relax
  2089. % begin the display alignment
  2090. \@IEEEeqnarrayISinnertrue% commands are now within the lines
  2091. $$\everycr{}\halign to\displaywidth\bgroup
  2092. % "exspand" the preamble
  2093. \span\the\@IEEEtrantmptoksA\cr}
  2094. % enter isolation/strut column (or the next column if the user did not use
  2095. % every column), record the strut status, complete the columns, do the strut if needed,
  2096. % restore counters to correct values and exit
  2097. \def\end@IEEEeqnarray{\@IEEEeqnarrayglobalizestrutstatus&\@@IEEEeqnarraycr\egroup%
  2098. \if@IEEElastlinewassubequation\global\advance\c@IEEEsubequation\m@ne\fi%
  2099. \global\advance\c@equation\m@ne%
  2100. $$\@ignoretrue}
  2101. % need a way to remember if last line is a subequation
  2102. \newif\if@IEEElastlinewassubequation%
  2103. \@IEEElastlinewassubequationfalse
  2104. % IEEEeqnarray uses a modifed \\ instead of the plain \cr to
  2105. % end rows. This allows for things like \\*[vskip amount]
  2106. % This "cr" macros are modified versions those for LaTeX2e's eqnarray
  2107. % the {\ifnum0=`} braces must be kept away from the last column to avoid
  2108. % altering spacing of its math, so we use & to advance to the next column
  2109. % as there is an isolation/strut column after the user's columns
  2110. \def\@IEEEeqnarraycr{\@IEEEeqnarrayglobalizestrutstatus&% save strut status and advance to next column
  2111. {\ifnum0=`}\fi
  2112. \@ifstar{%
  2113. \global\@eqpen\@M\@IEEEeqnarrayYCR
  2114. }{%
  2115. \global\@eqpen\interdisplaylinepenalty \@IEEEeqnarrayYCR
  2116. }%
  2117. }
  2118. \def\@IEEEeqnarrayYCR{\@testopt\@IEEEeqnarrayXCR\z@skip}
  2119. \def\@IEEEeqnarrayXCR[#1]{%
  2120. \ifnum0=`{\fi}%
  2121. \@@IEEEeqnarraycr
  2122. \noalign{\penalty\@eqpen\vskip\jot\vskip #1\relax}}%
  2123. \def\@@IEEEeqnarraycr{\@IEEEtrantmptoksA={}% clear token register
  2124. \advance\@IEEEeqncolcnt by -1\relax% adjust col count because of the isolation column
  2125. \ifnum\@IEEEeqncolcnt>\@IEEEeqnnumcols\relax
  2126. \@IEEEclspkgerror{Too many columns within the IEEEeqnarray\MessageBreak
  2127. environment}%
  2128. {Use fewer \string &'s or put more columns in the IEEEeqnarry column\MessageBreak
  2129. specifications.}\relax%
  2130. \else
  2131. \loop% add cols if the user did not use them all
  2132. \ifnum\@IEEEeqncolcnt<\@IEEEeqnnumcols\relax
  2133. \@IEEEappendtoksA{&}%
  2134. \advance\@IEEEeqncolcnt by 1\relax% update the col count
  2135. \repeat
  2136. % this number of &'s will take us the the isolation column
  2137. \fi
  2138. % execute the &'s
  2139. \the\@IEEEtrantmptoksA%
  2140. % handle the strut/isolation column
  2141. \@IEEEeqnarrayinsertstrut% do the strut if needed
  2142. \@IEEEeqnarraystrutreset% reset the strut system for next line or IEEEeqnarray
  2143. &% and enter the equation number column
  2144. % is this line needs an equation number, display it and advance the
  2145. % (sub)equation counters, record what type this line was
  2146. \if@eqnsw%
  2147. \if@IEEEissubequation\theIEEEsubequationdis\addtocounter{equation}{1}\stepcounter{IEEEsubequation}%
  2148. \global\@IEEElastlinewassubequationtrue%
  2149. \else% display a standard equation number, initialize the IEEEsubequation counter
  2150. \theequationdis\stepcounter{equation}\setcounter{IEEEsubequation}{0}%
  2151. \global\@IEEElastlinewassubequationfalse\fi%
  2152. \fi%
  2153. % reset the eqnsw flag to indicate default preference of the display of equation numbers
  2154. \if@IEEEeqnarraystarform\global\@eqnswfalse\else\global\@eqnswtrue\fi
  2155. \global\@IEEEissubequationfalse% reset the subequation flag
  2156. % reset the number of columns the user actually used
  2157. \global\@IEEEeqncolcnt\z@\relax
  2158. % the real end of the line
  2159. \cr}
  2160. % \IEEEeqnarraybox is like \IEEEeqnarray except the box form puts everything
  2161. % inside a vtop, vbox, or vcenter box depending on the letter in the second
  2162. % optional argument (t,b,c). Vbox is the default. Unlike \IEEEeqnarray,
  2163. % equation numbers are not displayed and \IEEEeqnarraybox can be nested.
  2164. % \IEEEeqnarrayboxm is for math mode (like \array) and does not put the vbox
  2165. % within an hbox.
  2166. % \IEEEeqnarrayboxt is for text mode (like \tabular) and puts the vbox within
  2167. % a \hbox{$ $} construct.
  2168. % \IEEEeqnarraybox will auto detect whether to use \IEEEeqnarrayboxm or
  2169. % \IEEEeqnarrayboxt depending on the math mode.
  2170. % The third optional argument specifies the width this box is to be set to -
  2171. % natural width is the default.
  2172. % The * forms do not add \jot line spacing
  2173. % usage: \IEEEeqnarraybox[decl][pos][width]{cols}
  2174. \def\IEEEeqnarrayboxm{\@IEEEeqnarraystarformfalse\@IEEEeqnarrayboxHBOXSWfalse\@IEEEeqnarraybox}
  2175. \def\endIEEEeqnarrayboxm{\end@IEEEeqnarraybox}
  2176. \@namedef{IEEEeqnarrayboxm*}{\@IEEEeqnarraystarformtrue\@IEEEeqnarrayboxHBOXSWfalse\@IEEEeqnarraybox}
  2177. \@namedef{endIEEEeqnarrayboxm*}{\end@IEEEeqnarraybox}
  2178. \def\IEEEeqnarrayboxt{\@IEEEeqnarraystarformfalse\@IEEEeqnarrayboxHBOXSWtrue\@IEEEeqnarraybox}
  2179. \def\endIEEEeqnarrayboxt{\end@IEEEeqnarraybox}
  2180. \@namedef{IEEEeqnarrayboxt*}{\@IEEEeqnarraystarformtrue\@IEEEeqnarrayboxHBOXSWtrue\@IEEEeqnarraybox}
  2181. \@namedef{endIEEEeqnarrayboxt*}{\end@IEEEeqnarraybox}
  2182. \def\IEEEeqnarraybox{\@IEEEeqnarraystarformfalse\ifmmode\@IEEEeqnarrayboxHBOXSWfalse\else\@IEEEeqnarrayboxHBOXSWtrue\fi%
  2183. \@IEEEeqnarraybox}
  2184. \def\endIEEEeqnarraybox{\end@IEEEeqnarraybox}
  2185. \@namedef{IEEEeqnarraybox*}{\@IEEEeqnarraystarformtrue\ifmmode\@IEEEeqnarrayboxHBOXSWfalse\else\@IEEEeqnarrayboxHBOXSWtrue\fi%
  2186. \@IEEEeqnarraybox}
  2187. \@namedef{endIEEEeqnarraybox*}{\end@IEEEeqnarraybox}
  2188. % flag to indicate if the \IEEEeqnarraybox needs to put things into an hbox{$ $}
  2189. % for \vcenter in non-math mode
  2190. \newif\if@IEEEeqnarrayboxHBOXSW%
  2191. \@IEEEeqnarrayboxHBOXSWfalse
  2192. \def\@IEEEeqnarraybox{\relax\@ifnextchar[{\@@IEEEeqnarraybox}{\@@IEEEeqnarraybox[\relax]}}
  2193. \def\@@IEEEeqnarraybox[#1]{\relax\@ifnextchar[{\@@@IEEEeqnarraybox[#1]}{\@@@IEEEeqnarraybox[#1][b]}}
  2194. \def\@@@IEEEeqnarraybox[#1][#2]{\relax\@ifnextchar[{\@@@@IEEEeqnarraybox[#1][#2]}{\@@@@IEEEeqnarraybox[#1][#2][\relax]}}
  2195. % #1 = decl; #2 = t,b,c; #3 = width, #4 = col specs
  2196. \def\@@@@IEEEeqnarraybox[#1][#2][#3]#4{\@IEEEeqnarrayISinnerfalse % not yet within the lines of the halign
  2197. \@IEEEeqnarraymasterstrutsave% save current master strut values
  2198. \@IEEEeqnarraystrutsize{0pt}{0pt}[\relax]% turn off struts by default
  2199. \@IEEEeqnarrayusemasterstruttrue% use master strut till user asks otherwise
  2200. \IEEEvisiblestrutsfalse% diagnostic mode defaults to off
  2201. % no extra space unless the user specifically requests it
  2202. \lineskip=0pt\relax%
  2203. \lineskiplimit=0pt\relax%
  2204. \baselineskip=\normalbaselineskip\relax%
  2205. \jot=\IEEEnormaljot\relax%
  2206. \mathsurround\z@\relax% no extra spacing around math
  2207. % the default end glues are zero for an \IEEEeqnarraybox
  2208. \edef\@IEEEeqnarraycolSEPdefaultstart{\@IEEEeqnarraycolSEPzero}% default start glue
  2209. \edef\@IEEEeqnarraycolSEPdefaultend{\@IEEEeqnarraycolSEPzero}% default end glue
  2210. \edef\@IEEEeqnarraycolSEPdefaultmid{\@IEEEeqnarraycolSEPzero}% default inter-column glue
  2211. \@advanceIEEEeqncolcntfalse% do not advance the col counter for each col the user uses,
  2212. % used in \IEEEeqnarraymulticol and in the preamble build
  2213. \IEEEeqnarrayboxdecl\relax% allow a way for the user to make global overrides
  2214. #1\relax% allow user to override defaults
  2215. \let\\\@IEEEeqnarrayboxcr% replace newline with one that allows optional spacing
  2216. \@IEEEbuildpreamble #4\end\relax% build the preamble and put it into \@IEEEtrantmptoksA
  2217. % add an isolation column to the preamble to stop \\'s {} from getting into the last col
  2218. \ifnum\@IEEEeqnnumcols>0\relax\@IEEEappendtoksA{&}\fi% col separator for those after the first
  2219. \toks0={##}%
  2220. % add the isolation column to the preamble
  2221. \@IEEEappendtoksA{\tabskip\z@skip\bgroup\the\toks0\egroup}%
  2222. % set the starting tabskip glue as determined by the preamble build
  2223. \tabskip=\@IEEEBPstartglue\relax
  2224. % begin the alignment
  2225. \everycr{}%
  2226. % use only the very first token to determine the positioning
  2227. % this stops some problems when the user uses more than one letter,
  2228. % but is probably not worth the effort
  2229. % \noindent is used as a delimiter
  2230. \def\@IEEEgrabfirstoken##1##2\noindent{\let\@IEEEgrabbedfirstoken=##1}%
  2231. \@IEEEgrabfirstoken#2\relax\relax\noindent
  2232. % \@IEEEgrabbedfirstoken has the first token, the rest are discarded
  2233. % if we need to put things into and hbox and go into math mode, do so now
  2234. \if@IEEEeqnarrayboxHBOXSW \leavevmode \hbox \bgroup $\fi%
  2235. % use the appropriate vbox type
  2236. \if\@IEEEgrabbedfirstoken t\relax\vtop\else\if\@IEEEgrabbedfirstoken c\relax%
  2237. \vcenter\else\vbox\fi\fi\bgroup%
  2238. \@IEEEeqnarrayISinnertrue% commands are now within the lines
  2239. \ifx#3\relax\halign\else\halign to #3\relax\fi%
  2240. \bgroup
  2241. % "exspand" the preamble
  2242. \span\the\@IEEEtrantmptoksA\cr}
  2243. % carry strut status and enter the isolation/strut column,
  2244. % exit from math mode if needed, and exit
  2245. \def\end@IEEEeqnarraybox{\@IEEEeqnarrayglobalizestrutstatus% carry strut status
  2246. &% enter isolation/strut column
  2247. \@IEEEeqnarrayinsertstrut% do strut if needed
  2248. \@IEEEeqnarraymasterstrutrestore% restore the previous master strut values
  2249. % reset the strut system for next IEEEeqnarray
  2250. % (sets local strut values back to previous master strut values)
  2251. \@IEEEeqnarraystrutreset%
  2252. % ensure last line, exit from halign, close vbox
  2253. \crcr\egroup\egroup%
  2254. % exit from math mode and close hbox if needed
  2255. \if@IEEEeqnarrayboxHBOXSW $\egroup\fi}
  2256. % IEEEeqnarraybox uses a modifed \\ instead of the plain \cr to
  2257. % end rows. This allows for things like \\[vskip amount]
  2258. % This "cr" macros are modified versions those for LaTeX2e's eqnarray
  2259. % For IEEEeqnarraybox, \\* is the same as \\
  2260. % the {\ifnum0=`} braces must be kept away from the last column to avoid
  2261. % altering spacing of its math, so we use & to advance to the isolation/strut column
  2262. % carry strut status into isolation/strut column
  2263. \def\@IEEEeqnarrayboxcr{\@IEEEeqnarrayglobalizestrutstatus% carry strut status
  2264. &% enter isolation/strut column
  2265. \@IEEEeqnarrayinsertstrut% do strut if needed
  2266. % reset the strut system for next line or IEEEeqnarray
  2267. \@IEEEeqnarraystrutreset%
  2268. {\ifnum0=`}\fi%
  2269. \@ifstar{\@IEEEeqnarrayboxYCR}{\@IEEEeqnarrayboxYCR}}
  2270. % test and setup the optional argument to \\[]
  2271. \def\@IEEEeqnarrayboxYCR{\@testopt\@IEEEeqnarrayboxXCR\z@skip}
  2272. % IEEEeqnarraybox does not automatically increase line spacing by \jot
  2273. \def\@IEEEeqnarrayboxXCR[#1]{\ifnum0=`{\fi}%
  2274. \cr\noalign{\if@IEEEeqnarraystarform\else\vskip\jot\fi\vskip#1\relax}}
  2275. % starts the halign preamble build
  2276. \def\@IEEEbuildpreamble{\@IEEEtrantmptoksA={}% clear token register
  2277. \let\@IEEEBPcurtype=u%current column type is not yet known
  2278. \let\@IEEEBPprevtype=s%the previous column type was the start
  2279. \let\@IEEEBPnexttype=u%next column type is not yet known
  2280. % ensure these are valid
  2281. \def\@IEEEBPcurglue={0pt plus 0pt minus 0pt}%
  2282. \def\@IEEEBPcurcolname{@IEEEdefault}% name of current column definition
  2283. % currently acquired numerically referenced glue
  2284. % use a name that is easier to remember
  2285. \let\@IEEEBPcurnum=\@IEEEtrantmpcountA%
  2286. \@IEEEBPcurnum=0%
  2287. % tracks number of columns in the preamble
  2288. \@IEEEeqnnumcols=0%
  2289. % record the default end glues
  2290. \edef\@IEEEBPstartglue{\@IEEEeqnarraycolSEPdefaultstart}%
  2291. \edef\@IEEEBPendglue{\@IEEEeqnarraycolSEPdefaultend}%
  2292. % now parse the user's column specifications
  2293. \@@IEEEbuildpreamble}
  2294. % parses and builds the halign preamble
  2295. \def\@@IEEEbuildpreamble#1#2{\let\@@nextIEEEbuildpreamble=\@@IEEEbuildpreamble%
  2296. % use only the very first token to check the end
  2297. % \noindent is used as a delimiter as \end can be present here
  2298. \def\@IEEEgrabfirstoken##1##2\noindent{\let\@IEEEgrabbedfirstoken=##1}%
  2299. \@IEEEgrabfirstoken#1\relax\relax\noindent
  2300. \ifx\@IEEEgrabbedfirstoken\end\let\@@nextIEEEbuildpreamble=\@@IEEEfinishpreamble\else%
  2301. % identify current and next token type
  2302. \@IEEEgetcoltype{#1}{\@IEEEBPcurtype}{1}% current, error on invalid
  2303. \@IEEEgetcoltype{#2}{\@IEEEBPnexttype}{0}% next, no error on invalid next
  2304. % if curtype is a glue, get the glue def
  2305. \if\@IEEEBPcurtype g\@IEEEgetcurglue{#1}{\@IEEEBPcurglue}\fi%
  2306. % if curtype is a column, get the column def and set the current column name
  2307. \if\@IEEEBPcurtype c\@IEEEgetcurcol{#1}\fi%
  2308. % if curtype is a numeral, acquire the user defined glue
  2309. \if\@IEEEBPcurtype n\@IEEEprocessNcol{#1}\fi%
  2310. % process the acquired glue
  2311. \if\@IEEEBPcurtype g\@IEEEprocessGcol\fi%
  2312. % process the acquired col
  2313. \if\@IEEEBPcurtype c\@IEEEprocessCcol\fi%
  2314. % ready prevtype for next col spec.
  2315. \let\@IEEEBPprevtype=\@IEEEBPcurtype%
  2316. % be sure and put back the future token(s) as a group
  2317. \fi\@@nextIEEEbuildpreamble{#2}}
  2318. % executed just after preamble build is completed
  2319. % warn about zero cols, and if prevtype type = u, put in end tabskip glue
  2320. \def\@@IEEEfinishpreamble#1{\ifnum\@IEEEeqnnumcols<1\relax
  2321. \@IEEEclspkgerror{No column specifiers declared for IEEEeqnarray}%
  2322. {At least one column type must be declared for each IEEEeqnarray.}%
  2323. \fi%num cols less than 1
  2324. %if last type undefined, set default end tabskip glue
  2325. \if\@IEEEBPprevtype u\@IEEEappendtoksA{\tabskip=\@IEEEBPendglue}\fi}
  2326. % Identify and return the column specifier's type code
  2327. \def\@IEEEgetcoltype#1#2#3{%
  2328. % use only the very first token to determine the type
  2329. % \noindent is used as a delimiter as \end can be present here
  2330. \def\@IEEEgrabfirstoken##1##2\noindent{\let\@IEEEgrabbedfirstoken=##1}%
  2331. \@IEEEgrabfirstoken#1\relax\relax\noindent
  2332. % \@IEEEgrabfirstoken has the first token, the rest are discarded
  2333. % n = number
  2334. % g = glue (any other char in catagory 12)
  2335. % c = letter
  2336. % e = \end
  2337. % u = undefined
  2338. % third argument: 0 = no error message, 1 = error on invalid char
  2339. \let#2=u\relax% assume invalid until know otherwise
  2340. \ifx\@IEEEgrabbedfirstoken\end\let#2=e\else
  2341. \ifcat\@IEEEgrabbedfirstoken\relax\else% screen out control sequences
  2342. \if0\@IEEEgrabbedfirstoken\let#2=n\else
  2343. \if1\@IEEEgrabbedfirstoken\let#2=n\else
  2344. \if2\@IEEEgrabbedfirstoken\let#2=n\else
  2345. \if3\@IEEEgrabbedfirstoken\let#2=n\else
  2346. \if4\@IEEEgrabbedfirstoken\let#2=n\else
  2347. \if5\@IEEEgrabbedfirstoken\let#2=n\else
  2348. \if6\@IEEEgrabbedfirstoken\let#2=n\else
  2349. \if7\@IEEEgrabbedfirstoken\let#2=n\else
  2350. \if8\@IEEEgrabbedfirstoken\let#2=n\else
  2351. \if9\@IEEEgrabbedfirstoken\let#2=n\else
  2352. \ifcat,\@IEEEgrabbedfirstoken\let#2=g\relax
  2353. \else\ifcat a\@IEEEgrabbedfirstoken\let#2=c\relax\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
  2354. \if#2u\relax
  2355. \if0\noexpand#3\relax\else\@IEEEclspkgerror{Invalid character in column specifications}%
  2356. {Only letters, numerals and certain other symbols are allowed \MessageBreak
  2357. as IEEEeqnarray column specifiers.}\fi\fi}
  2358. % identify the current letter referenced column
  2359. % if invalid, use a default column
  2360. \def\@IEEEgetcurcol#1{\expandafter\ifx\csname @IEEEeqnarraycolDEF#1\endcsname\@IEEEeqnarraycolisdefined%
  2361. \def\@IEEEBPcurcolname{#1}\else% invalid column name
  2362. \@IEEEclspkgerror{Invalid column type "#1" in column specifications.\MessageBreak
  2363. Using a default centering column instead}%
  2364. {You must define IEEEeqnarray column types before use.}%
  2365. \def\@IEEEBPcurcolname{@IEEEdefault}\fi}
  2366. % identify and return the predefined (punctuation) glue value
  2367. \def\@IEEEgetcurglue#1#2{%
  2368. % ! = \! (neg small) -0.16667em (-3/18 em)
  2369. % , = \, (small) 0.16667em ( 3/18 em)
  2370. % : = \: (med) 0.22222em ( 4/18 em)
  2371. % ; = \; (large) 0.27778em ( 5/18 em)
  2372. % ' = \quad 1em
  2373. % " = \qquad 2em
  2374. % . = 0.5\arraycolsep
  2375. % / = \arraycolsep
  2376. % ? = 2\arraycolsep
  2377. % * = 1fil
  2378. % + = \@IEEEeqnarraycolSEPcenter
  2379. % - = \@IEEEeqnarraycolSEPzero
  2380. % Note that all em values are referenced to the math font (textfont2) fontdimen6
  2381. % value for 1em.
  2382. %
  2383. % use only the very first token to determine the type
  2384. % this prevents errant tokens from getting in the main text
  2385. % \noindent is used as a delimiter here
  2386. \def\@IEEEgrabfirstoken##1##2\noindent{\let\@IEEEgrabbedfirstoken=##1}%
  2387. \@IEEEgrabfirstoken#1\relax\relax\noindent
  2388. % get the math font 1em value
  2389. % LaTeX2e's NFSS2 does not preload the fonts, but \IEEEeqnarray needs
  2390. % to gain access to the math (\textfont2) font's spacing parameters.
  2391. % So we create a bogus box here that uses the math font to ensure
  2392. % that \textfont2 is loaded and ready. If this is not done,
  2393. % the \textfont2 stuff here may not work.
  2394. % Thanks to Bernd Raichle for his 1997 post on this topic.
  2395. {\setbox0=\hbox{$\displaystyle\relax$}}%
  2396. % fontdimen6 has the width of 1em (a quad).
  2397. \@IEEEtrantmpdimenA=\fontdimen6\textfont2\relax%
  2398. % identify the glue value based on the first token
  2399. % we discard anything after the first
  2400. \if!\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=-0.16667\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else
  2401. \if,\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=0.16667\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else
  2402. \if:\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=0.22222\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else
  2403. \if;\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=0.27778\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else
  2404. \if'\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=1\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else
  2405. \if"\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=2\@IEEEtrantmpdimenA\edef#2{\the\@IEEEtrantmpdimenA}\else
  2406. \if.\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=0.5\arraycolsep\edef#2{\the\@IEEEtrantmpdimenA}\else
  2407. \if/\@IEEEgrabbedfirstoken\edef#2{\the\arraycolsep}\else
  2408. \if?\@IEEEgrabbedfirstoken\@IEEEtrantmpdimenA=2\arraycolsep\edef#2{\the\@IEEEtrantmpdimenA}\else
  2409. \if *\@IEEEgrabbedfirstoken\edef#2{0pt plus 1fil minus 0pt}\else
  2410. \if+\@IEEEgrabbedfirstoken\edef#2{\@IEEEeqnarraycolSEPcenter}\else
  2411. \if-\@IEEEgrabbedfirstoken\edef#2{\@IEEEeqnarraycolSEPzero}\else
  2412. \edef#2{\@IEEEeqnarraycolSEPzero}%
  2413. \@IEEEclspkgerror{Invalid predefined inter-column glue type "#1" in\MessageBreak
  2414. column specifications. Using a default value of\MessageBreak
  2415. 0pt instead}%
  2416. {Only !,:;'"./?*+ and - are valid predefined glue types in the\MessageBreak
  2417. IEEEeqnarray column specifications.}\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}
  2418. % process a numerical digit from the column specification
  2419. % and look up the corresponding user defined glue value
  2420. % can transform current type from n to g or a as the user defined glue is acquired
  2421. \def\@IEEEprocessNcol#1{\if\@IEEEBPprevtype g%
  2422. \@IEEEclspkgerror{Back-to-back inter-column glue specifiers in column\MessageBreak
  2423. specifications. Ignoring consecutive glue specifiers\MessageBreak
  2424. after the first}%
  2425. {You cannot have two or more glue types next to each other\MessageBreak
  2426. in the IEEEeqnarray column specifications.}%
  2427. \let\@IEEEBPcurtype=a% abort this glue, future digits will be discarded
  2428. \@IEEEBPcurnum=0\relax%
  2429. \else% if we previously aborted a glue
  2430. \if\@IEEEBPprevtype a\@IEEEBPcurnum=0\let\@IEEEBPcurtype=a%maintain digit abortion
  2431. \else%acquire this number
  2432. % save the previous type before the numerical digits started
  2433. \if\@IEEEBPprevtype n\else\let\@IEEEBPprevsavedtype=\@IEEEBPprevtype\fi%
  2434. \multiply\@IEEEBPcurnum by 10\relax%
  2435. \advance\@IEEEBPcurnum by #1\relax% add in number, \relax is needed to stop TeX's number scan
  2436. \if\@IEEEBPnexttype n\else%close acquisition
  2437. \expandafter\ifx\csname @IEEEeqnarraycolSEPDEF\expandafter\romannumeral\number\@IEEEBPcurnum\endcsname\@IEEEeqnarraycolisdefined%
  2438. \edef\@IEEEBPcurglue{\csname @IEEEeqnarraycolSEP\expandafter\romannumeral\number\@IEEEBPcurnum\endcsname}%
  2439. \else%user glue not defined
  2440. \@IEEEclspkgerror{Invalid user defined inter-column glue type "\number\@IEEEBPcurnum" in\MessageBreak
  2441. column specifications. Using a default value of\MessageBreak
  2442. 0pt instead}%
  2443. {You must define all IEEEeqnarray numerical inter-column glue types via\MessageBreak
  2444. \string\IEEEeqnarraydefcolsep \space before they are used in column specifications.}%
  2445. \edef\@IEEEBPcurglue{\@IEEEeqnarraycolSEPzero}%
  2446. \fi% glue defined or not
  2447. \let\@IEEEBPcurtype=g% change the type to reflect the acquired glue
  2448. \let\@IEEEBPprevtype=\@IEEEBPprevsavedtype% restore the prev type before this number glue
  2449. \@IEEEBPcurnum=0\relax%ready for next acquisition
  2450. \fi%close acquisition, get glue
  2451. \fi%discard or acquire number
  2452. \fi%prevtype glue or not
  2453. }
  2454. % process an acquired glue
  2455. % add any acquired column/glue pair to the preamble
  2456. \def\@IEEEprocessGcol{\if\@IEEEBPprevtype a\let\@IEEEBPcurtype=a%maintain previous glue abortions
  2457. \else
  2458. % if this is the start glue, save it, but do nothing else
  2459. % as this is not used in the preamble, but before
  2460. \if\@IEEEBPprevtype s\edef\@IEEEBPstartglue{\@IEEEBPcurglue}%
  2461. \else%not the start glue
  2462. \if\@IEEEBPprevtype g%ignore if back to back glues
  2463. \@IEEEclspkgerror{Back-to-back inter-column glue specifiers in column\MessageBreak
  2464. specifications. Ignoring consecutive glue specifiers\MessageBreak
  2465. after the first}%
  2466. {You cannot have two or more glue types next to each other\MessageBreak
  2467. in the IEEEeqnarray column specifications.}%
  2468. \let\@IEEEBPcurtype=a% abort this glue
  2469. \else% not a back to back glue
  2470. \if\@IEEEBPprevtype c\relax% if the previoustype was a col, add column/glue pair to preamble
  2471. \ifnum\@IEEEeqnnumcols>0\relax\@IEEEappendtoksA{&}\fi
  2472. \toks0={##}%
  2473. % make preamble advance col counter if this environment needs this
  2474. \if@advanceIEEEeqncolcnt\@IEEEappendtoksA{\global\advance\@IEEEeqncolcnt by 1\relax}\fi
  2475. % insert the column defintion into the preamble, being careful not to expand
  2476. % the column definition
  2477. \@IEEEappendtoksA{\tabskip=\@IEEEBPcurglue}%
  2478. \@IEEEappendNOEXPANDtoksA{\begingroup\csname @IEEEeqnarraycolPRE}%
  2479. \@IEEEappendtoksA{\@IEEEBPcurcolname}%
  2480. \@IEEEappendNOEXPANDtoksA{\endcsname}%
  2481. \@IEEEappendtoksA{\the\toks0}%
  2482. \@IEEEappendNOEXPANDtoksA{\relax\relax\relax\relax\relax%
  2483. \relax\relax\relax\relax\relax\csname @IEEEeqnarraycolPOST}%
  2484. \@IEEEappendtoksA{\@IEEEBPcurcolname}%
  2485. \@IEEEappendNOEXPANDtoksA{\endcsname\relax\relax\relax\relax\relax%
  2486. \relax\relax\relax\relax\relax\endgroup}%
  2487. \advance\@IEEEeqnnumcols by 1\relax%one more column in the preamble
  2488. \else% error: non-start glue with no pending column
  2489. \@IEEEclspkgerror{Inter-column glue specifier without a prior column\MessageBreak
  2490. type in the column specifications. Ignoring this glue\MessageBreak
  2491. specifier}%
  2492. {Except for the first and last positions, glue can be placed only\MessageBreak
  2493. between column types.}%
  2494. \let\@IEEEBPcurtype=a% abort this glue
  2495. \fi% previous was a column
  2496. \fi% back-to-back glues
  2497. \fi% is start column glue
  2498. \fi% prev type not a
  2499. }
  2500. % process an acquired letter referenced column and, if necessary, add it to the preamble
  2501. \def\@IEEEprocessCcol{\if\@IEEEBPnexttype g\else
  2502. \if\@IEEEBPnexttype n\else
  2503. % we have a column followed by something other than a glue (or numeral glue)
  2504. % so we must add this column to the preamble now
  2505. \ifnum\@IEEEeqnnumcols>0\relax\@IEEEappendtoksA{&}\fi%col separator for those after the first
  2506. \if\@IEEEBPnexttype e\@IEEEappendtoksA{\tabskip=\@IEEEBPendglue\relax}\else%put in end glue
  2507. \@IEEEappendtoksA{\tabskip=\@IEEEeqnarraycolSEPdefaultmid\relax}\fi% or default mid glue
  2508. \toks0={##}%
  2509. % make preamble advance col counter if this environment needs this
  2510. \if@advanceIEEEeqncolcnt\@IEEEappendtoksA{\global\advance\@IEEEeqncolcnt by 1\relax}\fi
  2511. % insert the column definition into the preamble, being careful not to expand
  2512. % the column definition
  2513. \@IEEEappendNOEXPANDtoksA{\begingroup\csname @IEEEeqnarraycolPRE}%
  2514. \@IEEEappendtoksA{\@IEEEBPcurcolname}%
  2515. \@IEEEappendNOEXPANDtoksA{\endcsname}%
  2516. \@IEEEappendtoksA{\the\toks0}%
  2517. \@IEEEappendNOEXPANDtoksA{\relax\relax\relax\relax\relax%
  2518. \relax\relax\relax\relax\relax\csname @IEEEeqnarraycolPOST}%
  2519. \@IEEEappendtoksA{\@IEEEBPcurcolname}%
  2520. \@IEEEappendNOEXPANDtoksA{\endcsname\relax\relax\relax\relax\relax%
  2521. \relax\relax\relax\relax\relax\endgroup}%
  2522. \advance\@IEEEeqnnumcols by 1\relax%one more column in the preamble
  2523. \fi%next type not numeral
  2524. \fi%next type not glue
  2525. }
  2526. %%
  2527. %% END OF IEEEeqnarry DEFINITIONS
  2528. %%
  2529. % set up the running headings, this complex because of all the different
  2530. % modes IEEEtran supports
  2531. \if@twoside
  2532. \ifCLASSOPTIONtechnote
  2533. \def\ps@headings{%
  2534. \def\@oddhead{\hbox{}\scriptsize\leftmark \hfil \thepage}
  2535. \def\@evenhead{\scriptsize\thepage \hfil \leftmark\hbox{}}
  2536. \ifCLASSOPTIONdraftcls
  2537. \ifCLASSOPTIONdraftclsnofoot
  2538. \def\@oddfoot{}\def\@evenfoot{}%
  2539. \else
  2540. \def\@oddfoot{\scriptsize\@date\hfil DRAFT}
  2541. \def\@evenfoot{\scriptsize DRAFT\hfil\@date}
  2542. \fi
  2543. \else
  2544. \def\@oddfoot{}\def\@evenfoot{}
  2545. \fi}
  2546. \else % not a technote
  2547. \def\ps@headings{%
  2548. \ifCLASSOPTIONconference
  2549. \def\@oddhead{}
  2550. \def\@evenhead{}
  2551. \else
  2552. \def\@oddhead{\hbox{}\scriptsize\rightmark \hfil \thepage}
  2553. \def\@evenhead{\scriptsize\thepage \hfil \leftmark\hbox{}}
  2554. \fi
  2555. \ifCLASSOPTIONdraftcls
  2556. \def\@oddhead{\hbox{}\scriptsize\rightmark \hfil \thepage}
  2557. \def\@evenhead{\scriptsize\thepage \hfil \leftmark\hbox{}}
  2558. \ifCLASSOPTIONdraftclsnofoot
  2559. \def\@oddfoot{}\def\@evenfoot{}%
  2560. \else
  2561. \def\@oddfoot{\scriptsize\@date\hfil DRAFT}
  2562. \def\@evenfoot{\scriptsize DRAFT\hfil\@date}
  2563. \fi
  2564. \else
  2565. \def\@oddfoot{}\def\@evenfoot{}%
  2566. \fi}
  2567. \fi
  2568. \else % single side
  2569. \def\ps@headings{%
  2570. \ifCLASSOPTIONconference
  2571. \def\@oddhead{}
  2572. \def\@evenhead{}
  2573. \else
  2574. \def\@oddhead{\hbox{}\scriptsize\leftmark \hfil \thepage}
  2575. \def\@evenhead{}
  2576. \fi
  2577. \ifCLASSOPTIONdraftcls
  2578. \def\@oddhead{\hbox{}\scriptsize\leftmark \hfil \thepage}
  2579. \def\@evenhead{}
  2580. \ifCLASSOPTIONdraftclsnofoot
  2581. \def\@oddfoot{}
  2582. \else
  2583. \def\@oddfoot{\scriptsize \@date \hfil DRAFT}
  2584. \fi
  2585. \else
  2586. \def\@oddfoot{}
  2587. \fi
  2588. \def\@evenfoot{}}
  2589. \fi
  2590. % title page style
  2591. \def\ps@IEEEtitlepagestyle{\def\@oddfoot{}\def\@evenfoot{}%
  2592. \ifCLASSOPTIONconference
  2593. \def\@oddhead{}%
  2594. \def\@evenhead{}%
  2595. \else
  2596. \def\@oddhead{\hbox{}\scriptsize\leftmark \hfil \thepage}%
  2597. \def\@evenhead{\scriptsize\thepage \hfil \leftmark\hbox{}}%
  2598. \fi
  2599. \ifCLASSOPTIONdraftcls
  2600. \def\@oddhead{\hbox{}\scriptsize\leftmark \hfil \thepage}%
  2601. \def\@evenhead{\scriptsize\thepage \hfil \leftmark\hbox{}}%
  2602. \ifCLASSOPTIONdraftclsnofoot\else
  2603. \def\@oddfoot{\scriptsize \@date\hfil DRAFT}%
  2604. \def\@evenfoot{\scriptsize DRAFT\hfil \@date}%
  2605. \fi
  2606. \else
  2607. % all non-draft mode footers
  2608. \if@IEEEusingpubid
  2609. % for title pages that are using a pubid
  2610. % do not repeat pubid if using peer review option
  2611. \ifCLASSOPTIONpeerreview
  2612. \else
  2613. \footskip 0pt%
  2614. \ifCLASSOPTIONcompsoc
  2615. \def\@oddfoot{\hss\normalfont\scriptsize\raisebox{-1.5\@IEEEnormalsizeunitybaselineskip}[0ex][0ex]{\@IEEEpubid}\hss}%
  2616. \def\@evenfoot{\hss\normalfont\scriptsize\raisebox{-1.5\@IEEEnormalsizeunitybaselineskip}[0ex][0ex]{\@IEEEpubid}\hss}%
  2617. \else
  2618. \def\@oddfoot{\hss\normalfont\footnotesize\raisebox{1.5ex}[1.5ex]{\@IEEEpubid}\hss}%
  2619. \def\@evenfoot{\hss\normalfont\footnotesize\raisebox{1.5ex}[1.5ex]{\@IEEEpubid}\hss}%
  2620. \fi
  2621. \fi
  2622. \fi
  2623. \fi}
  2624. % peer review cover page style
  2625. \def\ps@IEEEpeerreviewcoverpagestyle{%
  2626. \def\@oddhead{}\def\@evenhead{}%
  2627. \def\@oddfoot{}\def\@evenfoot{}%
  2628. \ifCLASSOPTIONdraftcls
  2629. \ifCLASSOPTIONdraftclsnofoot\else
  2630. \def\@oddfoot{\scriptsize \@date\hfil DRAFT}%
  2631. \def\@evenfoot{\scriptsize DRAFT\hfil \@date}%
  2632. \fi
  2633. \else
  2634. % non-draft mode footers
  2635. \if@IEEEusingpubid
  2636. \footskip 0pt%
  2637. \ifCLASSOPTIONcompsoc
  2638. \def\@oddfoot{\hss\normalfont\scriptsize\raisebox{-1.5\@IEEEnormalsizeunitybaselineskip}[0ex][0ex]{\@IEEEpubid}\hss}%
  2639. \def\@evenfoot{\hss\normalfont\scriptsize\raisebox{-1.5\@IEEEnormalsizeunitybaselineskip}[0ex][0ex]{\@IEEEpubid}\hss}%
  2640. \else
  2641. \def\@oddfoot{\hss\normalfont\footnotesize\raisebox{1.5ex}[1.5ex]{\@IEEEpubid}\hss}%
  2642. \def\@evenfoot{\hss\normalfont\footnotesize\raisebox{1.5ex}[1.5ex]{\@IEEEpubid}\hss}%
  2643. \fi
  2644. \fi
  2645. \fi}
  2646. % start with empty headings
  2647. \def\rightmark{}\def\leftmark{}
  2648. %% Defines the command for putting the header. \footernote{TEXT} is the same
  2649. %% as \markboth{TEXT}{TEXT}.
  2650. %% Note that all the text is forced into uppercase, if you have some text
  2651. %% that needs to be in lower case, for instance et. al., then either manually
  2652. %% set \leftmark and \rightmark or use \MakeLowercase{et. al.} within the
  2653. %% arguments to \markboth.
  2654. \def\markboth#1#2{\def\leftmark{\@IEEEcompsoconly{\sffamily}\MakeUppercase{#1}}%
  2655. \def\rightmark{\@IEEEcompsoconly{\sffamily}\MakeUppercase{#2}}}
  2656. \def\footernote#1{\markboth{#1}{#1}}
  2657. \def\today{\ifcase\month\or
  2658. January\or February\or March\or April\or May\or June\or
  2659. July\or August\or September\or October\or November\or December\fi
  2660. \space\number\day, \number\year}
  2661. %% CITATION AND BIBLIOGRAPHY COMMANDS
  2662. %%
  2663. %% V1.6 no longer supports the older, nonstandard \shortcite and \citename setup stuff
  2664. %
  2665. %
  2666. % Modify Latex2e \@citex to separate citations with "], ["
  2667. \def\@citex[#1]#2{%
  2668. \let\@citea\@empty
  2669. \@cite{\@for\@citeb:=#2\do
  2670. {\@citea\def\@citea{], [}%
  2671. \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
  2672. \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
  2673. \@ifundefined{b@\@citeb}{\mbox{\reset@font\bfseries ?}%
  2674. \G@refundefinedtrue
  2675. \@latex@warning
  2676. {Citation `\@citeb' on page \thepage \space undefined}}%
  2677. {\hbox{\csname b@\@citeb\endcsname}}}}{#1}}
  2678. % V1.6 we create hooks for the optional use of Donald Arseneau's
  2679. % cite.sty package. cite.sty is "smart" and will notice that the
  2680. % following format controls are already defined and will not
  2681. % redefine them. The result will be the proper sorting of the
  2682. % citation numbers and auto detection of 3 or more entry "ranges" -
  2683. % all in IEEE style: [1], [2], [5]--[7], [12]
  2684. % This also allows for an optional note, i.e., \cite[mynote]{..}.
  2685. % If the \cite with note has more than one reference, the note will
  2686. % be applied to the last of the listed references. It is generally
  2687. % desired that if a note is given, only one reference is listed in
  2688. % that \cite.
  2689. % Thanks to Mr. Arseneau for providing the required format arguments
  2690. % to produce the IEEE style.
  2691. \def\citepunct{], [}
  2692. \def\citedash{]--[}
  2693. % V1.7 default to using same font for urls made by url.sty
  2694. \AtBeginDocument{\csname url@samestyle\endcsname}
  2695. % V1.6 class files should always provide these
  2696. \def\newblock{\hskip .11em\@plus.33em\@minus.07em}
  2697. \let\@openbib@code\@empty
  2698. % Provide support for the control entries of IEEEtran.bst V1.00 and later.
  2699. % V1.7 optional argument allows for a different aux file to be specified in
  2700. % order to handle multiple bibliographies. For example, with multibib.sty:
  2701. % \newcites{sec}{Secondary Literature}
  2702. % \bstctlcite[@auxoutsec]{BSTcontrolhak}
  2703. \def\bstctlcite{\@ifnextchar[{\@bstctlcite}{\@bstctlcite[@auxout]}}
  2704. \def\@bstctlcite[#1]#2{\@bsphack
  2705. \@for\@citeb:=#2\do{%
  2706. \edef\@citeb{\expandafter\@firstofone\@citeb}%
  2707. \if@filesw\immediate\write\csname #1\endcsname{\string\citation{\@citeb}}\fi}%
  2708. \@esphack}
  2709. % V1.6 provide a way for a user to execute a command just before
  2710. % a given reference number - used to insert a \newpage to balance
  2711. % the columns on the last page
  2712. \edef\@IEEEtriggerrefnum{0} % the default of zero means that
  2713. % the command is not executed
  2714. \def\@IEEEtriggercmd{\newpage}
  2715. % allow the user to alter the triggered command
  2716. \long\def\IEEEtriggercmd#1{\long\def\@IEEEtriggercmd{#1}}
  2717. % allow user a way to specify the reference number just before the
  2718. % command is executed
  2719. \def\IEEEtriggeratref#1{\@IEEEtrantmpcountA=#1%
  2720. \edef\@IEEEtriggerrefnum{\the\@IEEEtrantmpcountA}}%
  2721. % trigger command at the given reference
  2722. \def\@IEEEbibitemprefix{\@IEEEtrantmpcountA=\@IEEEtriggerrefnum\relax%
  2723. \advance\@IEEEtrantmpcountA by -1\relax%
  2724. \ifnum\c@enumiv=\@IEEEtrantmpcountA\relax\@IEEEtriggercmd\relax\fi}
  2725. \def\@biblabel#1{[#1]}
  2726. % compsoc journals left align the reference numbers
  2727. \@IEEEcompsocnotconfonly{\def\@biblabel#1{[#1]\hfill}}
  2728. % controls bib item spacing
  2729. \def\IEEEbibitemsep{0pt plus .5pt}
  2730. \@IEEEcompsocconfonly{\def\IEEEbibitemsep{1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}}
  2731. \def\thebibliography#1{\section*{\refname}%
  2732. \addcontentsline{toc}{section}{\refname}%
  2733. % V1.6 add some rubber space here and provide a command trigger
  2734. \footnotesize\@IEEEcompsocconfonly{\small}\vskip 0.3\baselineskip plus 0.1\baselineskip minus 0.1\baselineskip%
  2735. \list{\@biblabel{\@arabic\c@enumiv}}%
  2736. {\settowidth\labelwidth{\@biblabel{#1}}%
  2737. \leftmargin\labelwidth
  2738. \advance\leftmargin\labelsep\relax
  2739. \itemsep \IEEEbibitemsep\relax
  2740. \usecounter{enumiv}%
  2741. \let\p@enumiv\@empty
  2742. \renewcommand\theenumiv{\@arabic\c@enumiv}}%
  2743. \let\@IEEElatexbibitem\bibitem%
  2744. \def\bibitem{\@IEEEbibitemprefix\@IEEElatexbibitem}%
  2745. \def\newblock{\hskip .11em plus .33em minus .07em}%
  2746. % originally:
  2747. % \sloppy\clubpenalty4000\widowpenalty4000%
  2748. % by adding the \interlinepenalty here, we make it more
  2749. % difficult, but not impossible, for LaTeX to break within a reference.
  2750. % IEEE almost never breaks a reference (but they do it more often with
  2751. % technotes). You may get an underfull vbox warning around the bibliography,
  2752. % but the final result will be much more like what IEEE will publish.
  2753. % MDS 11/2000
  2754. \ifCLASSOPTIONtechnote\sloppy\clubpenalty4000\widowpenalty4000\interlinepenalty100%
  2755. \else\sloppy\clubpenalty4000\widowpenalty4000\interlinepenalty500\fi%
  2756. \sfcode`\.=1000\relax}
  2757. \let\endthebibliography=\endlist
  2758. % TITLE PAGE COMMANDS
  2759. %
  2760. %
  2761. % \IEEEmembership is used to produce the sublargesize italic font used to indicate author
  2762. % IEEE membership. compsoc uses a large size sans slant font
  2763. \def\IEEEmembership#1{{\@IEEEnotcompsoconly{\sublargesize}\normalfont\@IEEEcompsoconly{\sffamily}\textit{#1}}}
  2764. % \IEEEauthorrefmark{} produces a footnote type symbol to indicate author affiliation.
  2765. % When given an argument of 1 to 9, \IEEEauthorrefmark{} follows the standard LaTeX footnote
  2766. % symbol sequence convention. However, for arguments 10 and above, \IEEEauthorrefmark{}
  2767. % reverts to using lower case roman numerals, so it cannot overflow. Do note that you
  2768. % cannot use \footnotemark[] in place of \IEEEauthorrefmark{} within \author as the footnote
  2769. % symbols will have been turned off to prevent \thanks from creating footnote marks.
  2770. % \IEEEauthorrefmark{} produces a symbol that appears to LaTeX as having zero vertical
  2771. % height - this allows for a more compact line packing, but the user must ensure that
  2772. % the interline spacing is large enough to prevent \IEEEauthorrefmark{} from colliding
  2773. % with the text above.
  2774. % V1.7 make this a robust command
  2775. \DeclareRobustCommand*{\IEEEauthorrefmark}[1]{\raisebox{0pt}[0pt][0pt]{\textsuperscript{\footnotesize\ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or%
  2776. \mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger%
  2777. \or \ddagger\ddagger \else\textsuperscript{\expandafter\romannumeral#1}\fi}}}}
  2778. % FONT CONTROLS AND SPACINGS FOR CONFERENCE MODE AUTHOR NAME AND AFFILIATION BLOCKS
  2779. %
  2780. % The default font styles for the author name and affiliation blocks (confmode)
  2781. \def\@IEEEauthorblockNstyle{\normalfont\@IEEEcompsocnotconfonly{\sffamily}\sublargesize\@IEEEcompsocconfonly{\large}}
  2782. \def\@IEEEauthorblockAstyle{\normalfont\@IEEEcompsocnotconfonly{\sffamily}\@IEEEcompsocconfonly{\itshape}\normalsize\@IEEEcompsocconfonly{\large}}
  2783. % The default if the user does not use an author block
  2784. \def\@IEEEauthordefaulttextstyle{\normalfont\@IEEEcompsocnotconfonly{\sffamily}\sublargesize}
  2785. % spacing from title (or special paper notice) to author name blocks (confmode)
  2786. % can be negative
  2787. \def\@IEEEauthorblockconfadjspace{-0.25em}
  2788. % compsoc conferences need more space here
  2789. \@IEEEcompsocconfonly{\def\@IEEEauthorblockconfadjspace{0.75\@IEEEnormalsizeunitybaselineskip}}
  2790. % spacing between name and affiliation blocks (confmode)
  2791. % This can be negative.
  2792. % IEEE doesn't want any added spacing here, but I will leave these
  2793. % controls in place in case they ever change their mind.
  2794. % Personally, I like 0.75ex.
  2795. %\def\@IEEEauthorblockNtopspace{0.75ex}
  2796. %\def\@IEEEauthorblockAtopspace{0.75ex}
  2797. \def\@IEEEauthorblockNtopspace{0.0ex}
  2798. \def\@IEEEauthorblockAtopspace{0.0ex}
  2799. % baseline spacing within name and affiliation blocks (confmode)
  2800. % must be positive, spacings below certain values will make
  2801. % the position of line of text sensitive to the contents of the
  2802. % line above it i.e., whether or not the prior line has descenders,
  2803. % subscripts, etc. For this reason it is a good idea to keep
  2804. % these above 2.6ex
  2805. \def\@IEEEauthorblockNinterlinespace{2.6ex}
  2806. \def\@IEEEauthorblockAinterlinespace{2.75ex}
  2807. % This tracks the required strut size.
  2808. % See the \@IEEEauthorhalign command for the actual default value used.
  2809. \def\@IEEEauthorblockXinterlinespace{2.7ex}
  2810. % variables to retain font size and style across groups
  2811. % values given here have no effect as they will be overwritten later
  2812. \gdef\@IEEESAVESTATEfontsize{10}
  2813. \gdef\@IEEESAVESTATEfontbaselineskip{12}
  2814. \gdef\@IEEESAVESTATEfontencoding{OT1}
  2815. \gdef\@IEEESAVESTATEfontfamily{ptm}
  2816. \gdef\@IEEESAVESTATEfontseries{m}
  2817. \gdef\@IEEESAVESTATEfontshape{n}
  2818. % saves the current font attributes
  2819. \def\@IEEEcurfontSAVE{\global\let\@IEEESAVESTATEfontsize\f@size%
  2820. \global\let\@IEEESAVESTATEfontbaselineskip\f@baselineskip%
  2821. \global\let\@IEEESAVESTATEfontencoding\f@encoding%
  2822. \global\let\@IEEESAVESTATEfontfamily\f@family%
  2823. \global\let\@IEEESAVESTATEfontseries\f@series%
  2824. \global\let\@IEEESAVESTATEfontshape\f@shape}
  2825. % restores the saved font attributes
  2826. \def\@IEEEcurfontRESTORE{\fontsize{\@IEEESAVESTATEfontsize}{\@IEEESAVESTATEfontbaselineskip}%
  2827. \fontencoding{\@IEEESAVESTATEfontencoding}%
  2828. \fontfamily{\@IEEESAVESTATEfontfamily}%
  2829. \fontseries{\@IEEESAVESTATEfontseries}%
  2830. \fontshape{\@IEEESAVESTATEfontshape}%
  2831. \selectfont}
  2832. % variable to indicate if the current block is the first block in the column
  2833. \newif\if@IEEEprevauthorblockincol \@IEEEprevauthorblockincolfalse
  2834. % the command places a strut with height and depth = \@IEEEauthorblockXinterlinespace
  2835. % we use this technique to have complete manual control over the spacing of the lines
  2836. % within the halign environment.
  2837. % We set the below baseline portion at 30%, the above
  2838. % baseline portion at 70% of the total length.
  2839. % Responds to changes in the document's \baselinestretch
  2840. \def\@IEEEauthorstrutrule{\@IEEEtrantmpdimenA\@IEEEauthorblockXinterlinespace%
  2841. \@IEEEtrantmpdimenA=\baselinestretch\@IEEEtrantmpdimenA%
  2842. \rule[-0.3\@IEEEtrantmpdimenA]{0pt}{\@IEEEtrantmpdimenA}}
  2843. % blocks to hold the authors' names and affilations.
  2844. % Makes formatting easy for conferences
  2845. %
  2846. % use real definitions in conference mode
  2847. % name block
  2848. \def\IEEEauthorblockN#1{\relax\@IEEEauthorblockNstyle% set the default text style
  2849. \gdef\@IEEEauthorblockXinterlinespace{0pt}% disable strut for spacer row
  2850. % the \expandafter hides the \cr in conditional tex, see the array.sty docs
  2851. % for details, probably not needed here as the \cr is in a macro
  2852. % do a spacer row if needed
  2853. \if@IEEEprevauthorblockincol\expandafter\@IEEEauthorblockNtopspaceline\fi
  2854. \global\@IEEEprevauthorblockincoltrue% we now have a block in this column
  2855. %restore the correct strut value
  2856. \gdef\@IEEEauthorblockXinterlinespace{\@IEEEauthorblockNinterlinespace}%
  2857. % input the author names
  2858. #1%
  2859. % end the row if the user did not already
  2860. \crcr}
  2861. % spacer row for names
  2862. \def\@IEEEauthorblockNtopspaceline{\cr\noalign{\vskip\@IEEEauthorblockNtopspace}}
  2863. %
  2864. % affiliation block
  2865. \def\IEEEauthorblockA#1{\relax\@IEEEauthorblockAstyle% set the default text style
  2866. \gdef\@IEEEauthorblockXinterlinespace{0pt}%disable strut for spacer row
  2867. % the \expandafter hides the \cr in conditional tex, see the array.sty docs
  2868. % for details, probably not needed here as the \cr is in a macro
  2869. % do a spacer row if needed
  2870. \if@IEEEprevauthorblockincol\expandafter\@IEEEauthorblockAtopspaceline\fi
  2871. \global\@IEEEprevauthorblockincoltrue% we now have a block in this column
  2872. %restore the correct strut value
  2873. \gdef\@IEEEauthorblockXinterlinespace{\@IEEEauthorblockAinterlinespace}%
  2874. % input the author affiliations
  2875. #1%
  2876. % end the row if the user did not already
  2877. \crcr}
  2878. % spacer row for affiliations
  2879. \def\@IEEEauthorblockAtopspaceline{\cr\noalign{\vskip\@IEEEauthorblockAtopspace}}
  2880. % allow papers to compile even if author blocks are used in modes other
  2881. % than conference or peerreviewca. For such cases, we provide dummy blocks.
  2882. \ifCLASSOPTIONconference
  2883. \else
  2884. \ifCLASSOPTIONpeerreviewca\else
  2885. % not conference or peerreviewca mode
  2886. \def\IEEEauthorblockN#1{#1}%
  2887. \def\IEEEauthorblockA#1{#1}%
  2888. \fi
  2889. \fi
  2890. % we provide our own halign so as not to have to depend on tabular
  2891. \def\@IEEEauthorhalign{\@IEEEauthordefaulttextstyle% default text style
  2892. \lineskip=0pt\relax% disable line spacing
  2893. \lineskiplimit=0pt\relax%
  2894. \baselineskip=0pt\relax%
  2895. \@IEEEcurfontSAVE% save the current font
  2896. \mathsurround\z@\relax% no extra spacing around math
  2897. \let\\\@IEEEauthorhaligncr% replace newline with halign friendly one
  2898. \tabskip=0pt\relax% no column spacing
  2899. \everycr{}% ensure no problems here
  2900. \@IEEEprevauthorblockincolfalse% no author blocks yet
  2901. \def\@IEEEauthorblockXinterlinespace{2.7ex}% default interline space
  2902. \vtop\bgroup%vtop box
  2903. \halign\bgroup&\relax\hfil\@IEEEcurfontRESTORE\relax ##\relax
  2904. \hfil\@IEEEcurfontSAVE\@IEEEauthorstrutrule\cr}
  2905. % ensure last line, exit from halign, close vbox
  2906. \def\end@IEEEauthorhalign{\crcr\egroup\egroup}
  2907. % handle bogus star form
  2908. \def\@IEEEauthorhaligncr{{\ifnum0=`}\fi\@ifstar{\@@IEEEauthorhaligncr}{\@@IEEEauthorhaligncr}}
  2909. % test and setup the optional argument to \\[]
  2910. \def\@@IEEEauthorhaligncr{\@testopt\@@@IEEEauthorhaligncr\z@skip}
  2911. % end the line and do the optional spacer
  2912. \def\@@@IEEEauthorhaligncr[#1]{\ifnum0=`{\fi}\cr\noalign{\vskip#1\relax}}
  2913. % flag to prevent multiple \and warning messages
  2914. \newif\if@IEEEWARNand
  2915. \@IEEEWARNandtrue
  2916. % if in conference or peerreviewca modes, we support the use of \and as \author is a
  2917. % tabular environment, otherwise we warn the user that \and is invalid
  2918. % outside of conference or peerreviewca modes.
  2919. \def\and{\relax} % provide a bogus \and that we will then override
  2920. \renewcommand{\and}[1][\relax]{\if@IEEEWARNand\typeout{** WARNING: \noexpand\and is valid only
  2921. when in conference or peerreviewca}\typeout{modes (line \the\inputlineno).}\fi\global\@IEEEWARNandfalse}
  2922. \ifCLASSOPTIONconference%
  2923. \renewcommand{\and}[1][\hfill]{\end{@IEEEauthorhalign}#1\begin{@IEEEauthorhalign}}%
  2924. \fi
  2925. \ifCLASSOPTIONpeerreviewca
  2926. \renewcommand{\and}[1][\hfill]{\end{@IEEEauthorhalign}#1\begin{@IEEEauthorhalign}}%
  2927. \fi
  2928. % page clearing command
  2929. % based on LaTeX2e's \cleardoublepage, but allows different page styles
  2930. % for the inserted blank pages
  2931. \def\@IEEEcleardoublepage#1{\clearpage\if@twoside\ifodd\c@page\else
  2932. \hbox{}\thispagestyle{#1}\newpage\if@twocolumn\hbox{}\thispagestyle{#1}\newpage\fi\fi\fi}
  2933. % user command to invoke the title page
  2934. \def\maketitle{\par%
  2935. \begingroup%
  2936. \normalfont%
  2937. \def\thefootnote{}% the \thanks{} mark type is empty
  2938. \def\footnotemark{}% and kill space from \thanks within author
  2939. \let\@makefnmark\relax% V1.7, must *really* kill footnotemark to remove all \textsuperscript spacing as well.
  2940. \footnotesize% equal spacing between thanks lines
  2941. \footnotesep 0.7\baselineskip%see global setting of \footnotesep for more info
  2942. % V1.7 disable \thanks note indention for compsoc
  2943. \@IEEEcompsoconly{\long\def\@makefntext##1{\parindent 1em\noindent\hbox{\@makefnmark}##1}}%
  2944. \normalsize%
  2945. \ifCLASSOPTIONpeerreview
  2946. \newpage\global\@topnum\z@ \@maketitle\@IEEEstatictitlevskip\@IEEEaftertitletext%
  2947. \thispagestyle{IEEEpeerreviewcoverpagestyle}\@thanks%
  2948. \else
  2949. \if@twocolumn%
  2950. \ifCLASSOPTIONtechnote%
  2951. \newpage\global\@topnum\z@ \@maketitle\@IEEEstatictitlevskip\@IEEEaftertitletext%
  2952. \else
  2953. \twocolumn[\@maketitle\@IEEEdynamictitlevspace\@IEEEaftertitletext]%
  2954. \fi
  2955. \else
  2956. \newpage\global\@topnum\z@ \@maketitle\@IEEEstatictitlevskip\@IEEEaftertitletext%
  2957. \fi
  2958. \thispagestyle{IEEEtitlepagestyle}\@thanks%
  2959. \fi
  2960. % pullup page for pubid if used.
  2961. \if@IEEEusingpubid
  2962. \enlargethispage{-\@IEEEpubidpullup}%
  2963. \fi
  2964. \endgroup
  2965. \setcounter{footnote}{0}\let\maketitle\relax\let\@maketitle\relax
  2966. \gdef\@thanks{}%
  2967. % v1.6b do not clear these as we will need the title again for peer review papers
  2968. % \gdef\@author{}\gdef\@title{}%
  2969. \let\thanks\relax}
  2970. % V1.7 parbox to format \@IEEEcompsoctitleabstractindextext
  2971. \long\def\@IEEEcompsoctitleabstractindextextbox#1{\parbox{0.915\textwidth}{#1}}
  2972. % formats the Title, authors names, affiliations and special paper notice
  2973. % THIS IS A CONTROLLED SPACING COMMAND! Do not allow blank lines or unintentional
  2974. % spaces to enter the definition - use % at the end of each line
  2975. \def\@maketitle{\newpage
  2976. \begin{center}%
  2977. \ifCLASSOPTIONtechnote% technotes
  2978. {\bfseries\large\@IEEEcompsoconly{\sffamily}\@title\par}\vskip 1.3em{\lineskip .5em\@IEEEcompsoconly{\sffamily}\@author
  2979. \@IEEEspecialpapernotice\par{\@IEEEcompsoconly{\vskip 1.5em\relax
  2980. \@IEEEcompsoctitleabstractindextextbox{\@IEEEcompsoctitleabstractindextext}\par
  2981. \hfill\@IEEEcompsocdiamondline\hfill\hbox{}\par}}}\relax
  2982. \else% not a technote
  2983. \vskip0.2em{\Huge\@IEEEcompsoconly{\sffamily}\@IEEEcompsocconfonly{\normalfont\normalsize\vskip 2\@IEEEnormalsizeunitybaselineskip
  2984. \bfseries\Large}\@title\par}\vskip1.0em\par%
  2985. % V1.6 handle \author differently if in conference mode
  2986. \ifCLASSOPTIONconference%
  2987. {\@IEEEspecialpapernotice\mbox{}\vskip\@IEEEauthorblockconfadjspace%
  2988. \mbox{}\hfill\begin{@IEEEauthorhalign}\@author\end{@IEEEauthorhalign}\hfill\mbox{}\par}\relax
  2989. \else% peerreviewca, peerreview or journal
  2990. \ifCLASSOPTIONpeerreviewca
  2991. % peerreviewca handles author names just like conference mode
  2992. {\@IEEEcompsoconly{\sffamily}\@IEEEspecialpapernotice\mbox{}\vskip\@IEEEauthorblockconfadjspace%
  2993. \mbox{}\hfill\begin{@IEEEauthorhalign}\@author\end{@IEEEauthorhalign}\hfill\mbox{}\par
  2994. {\@IEEEcompsoconly{\vskip 1.5em\relax
  2995. \@IEEEcompsoctitleabstractindextextbox{\@IEEEcompsoctitleabstractindextext}\par\hfill
  2996. \@IEEEcompsocdiamondline\hfill\hbox{}\par}}}\relax
  2997. \else% journal or peerreview
  2998. {\lineskip.5em\@IEEEcompsoconly{\sffamily}\sublargesize\@author\@IEEEspecialpapernotice\par
  2999. {\@IEEEcompsoconly{\vskip 1.5em\relax
  3000. \@IEEEcompsoctitleabstractindextextbox{\@IEEEcompsoctitleabstractindextext}\par\hfill
  3001. \@IEEEcompsocdiamondline\hfill\hbox{}\par}}}\relax
  3002. \fi
  3003. \fi
  3004. \fi\end{center}}
  3005. % V1.7 Computer Society "diamond line" which follows index terms for nonconference papers
  3006. \def\@IEEEcompsocdiamondline{\vrule depth 0pt height 0.5pt width 4cm\hspace{7.5pt}%
  3007. \raisebox{-3.5pt}{\fontfamily{pzd}\fontencoding{U}\fontseries{m}\fontshape{n}\fontsize{11}{12}\selectfont\char70}%
  3008. \hspace{7.5pt}\vrule depth 0pt height 0.5pt width 4cm\relax}
  3009. % V1.7 standard LateX2e \thanks, but with \itshape under compsoc. Also make it a \long\def
  3010. % We also need to trigger the one-shot footnote rule
  3011. \def\@IEEEtriggeroneshotfootnoterule{\global\@IEEEenableoneshotfootnoteruletrue}
  3012. \long\def\thanks#1{\footnotemark
  3013. \protected@xdef\@thanks{\@thanks
  3014. \protect\footnotetext[\the\c@footnote]{\@IEEEcompsoconly{\itshape
  3015. \protect\@IEEEtriggeroneshotfootnoterule\relax}\ignorespaces#1}}}
  3016. \let\@thanks\@empty
  3017. % V1.7 allow \author to contain \par's. This is needed to allow \thanks to contain \par.
  3018. \long\def\author#1{\gdef\@author{#1}}
  3019. % in addition to setting up IEEEitemize, we need to remove a baselineskip space above and
  3020. % below it because \list's \pars introduce blank lines because of the footnote struts.
  3021. \def\@IEEEsetupcompsocitemizelist{\def\labelitemi{$\bullet$}%
  3022. \setlength{\IEEElabelindent}{0pt}\setlength{\parskip}{0pt}%
  3023. \setlength{\partopsep}{0pt}\setlength{\topsep}{0.5\baselineskip}\vspace{-1\baselineskip}\relax}
  3024. % flag for fake non-compsoc \IEEEcompsocthanksitem - prevents line break on very first item
  3025. \newif\if@IEEEbreakcompsocthanksitem \@IEEEbreakcompsocthanksitemfalse
  3026. \ifCLASSOPTIONcompsoc
  3027. % V1.7 compsoc bullet item \thanks
  3028. % also, we need to redefine this to destroy the argument in \@IEEEdynamictitlevspace
  3029. \long\def\IEEEcompsocitemizethanks#1{\relax\@IEEEbreakcompsocthanksitemfalse\footnotemark
  3030. \protected@xdef\@thanks{\@thanks
  3031. \protect\footnotetext[\the\c@footnote]{\itshape\protect\@IEEEtriggeroneshotfootnoterule
  3032. {\let\IEEEiedlistdecl\relax\protect\begin{IEEEitemize}[\protect\@IEEEsetupcompsocitemizelist]\ignorespaces#1\relax
  3033. \protect\end{IEEEitemize}}\protect\vspace{-1\baselineskip}}}}
  3034. \DeclareRobustCommand*{\IEEEcompsocthanksitem}{\item}
  3035. \else
  3036. % non-compsoc, allow for dual compilation via rerouting to normal \thanks
  3037. \long\def\IEEEcompsocitemizethanks#1{\thanks{#1}}
  3038. % redirect to "pseudo-par" \hfil\break\indent after swallowing [] from \IEEEcompsocthanksitem[]
  3039. \DeclareRobustCommand{\IEEEcompsocthanksitem}{\@ifnextchar [{\@IEEEthanksswallowoptionalarg}%
  3040. {\@IEEEthanksswallowoptionalarg[\relax]}}
  3041. % be sure and break only after first item, be sure and ignore spaces after optional argument
  3042. \def\@IEEEthanksswallowoptionalarg[#1]{\relax\if@IEEEbreakcompsocthanksitem\hfil\break
  3043. \indent\fi\@IEEEbreakcompsocthanksitemtrue\ignorespaces}
  3044. \fi
  3045. % V1.6b define the \IEEEpeerreviewmaketitle as needed
  3046. \ifCLASSOPTIONpeerreview
  3047. \def\IEEEpeerreviewmaketitle{\@IEEEcleardoublepage{empty}%
  3048. \ifCLASSOPTIONtwocolumn
  3049. \twocolumn[\@IEEEpeerreviewmaketitle\@IEEEdynamictitlevspace]
  3050. \else
  3051. \newpage\@IEEEpeerreviewmaketitle\@IEEEstatictitlevskip
  3052. \fi
  3053. \thispagestyle{IEEEtitlepagestyle}}
  3054. \else
  3055. % \IEEEpeerreviewmaketitle does nothing if peer review option has not been selected
  3056. \def\IEEEpeerreviewmaketitle{\relax}
  3057. \fi
  3058. % peerreview formats the repeated title like the title in journal papers.
  3059. \def\@IEEEpeerreviewmaketitle{\begin{center}\@IEEEcompsoconly{\sffamily}%
  3060. \normalfont\normalsize\vskip0.2em{\Huge\@title\par}\vskip1.0em\par
  3061. \end{center}}
  3062. % V1.6
  3063. % this is a static rubber spacer between the title/authors and the main text
  3064. % used for single column text, or when the title appears in the first column
  3065. % of two column text (technotes).
  3066. \def\@IEEEstatictitlevskip{{\normalfont\normalsize
  3067. % adjust spacing to next text
  3068. % v1.6b handle peer review papers
  3069. \ifCLASSOPTIONpeerreview
  3070. % for peer review papers, the same value is used for both title pages
  3071. % regardless of the other paper modes
  3072. \vskip 1\baselineskip plus 0.375\baselineskip minus 0.1875\baselineskip
  3073. \else
  3074. \ifCLASSOPTIONconference% conference
  3075. \vskip 1\baselineskip plus 0.375\baselineskip minus 0.1875\baselineskip%
  3076. \else%
  3077. \ifCLASSOPTIONtechnote% technote
  3078. \vskip 1\baselineskip plus 0.375\baselineskip minus 0.1875\baselineskip%
  3079. \else% journal uses more space
  3080. \vskip 2.5\baselineskip plus 0.75\baselineskip minus 0.375\baselineskip%
  3081. \fi
  3082. \fi
  3083. \fi}}
  3084. % V1.6
  3085. % This is a dynamically determined rigid spacer between the title/authors
  3086. % and the main text. This is used only for single column titles over two
  3087. % column text (most common)
  3088. % This is bit tricky because we have to ensure that the textheight of the
  3089. % main text is an integer multiple of \baselineskip
  3090. % otherwise underfull vbox problems may develop in the second column of the
  3091. % text on the titlepage
  3092. % The possible use of \IEEEpubid must also be taken into account.
  3093. \def\@IEEEdynamictitlevspace{{%
  3094. % we run within a group so that all the macros can be forgotten when we are done
  3095. \long\def\thanks##1{\relax}%don't allow \thanks to run when we evaluate the vbox height
  3096. \long\def\IEEEcompsocitemizethanks##1{\relax}%don't allow \IEEEcompsocitemizethanks to run when we evaluate the vbox height
  3097. \normalfont\normalsize% we declare more descriptive variable names
  3098. \let\@IEEEmaintextheight=\@IEEEtrantmpdimenA%height of the main text columns
  3099. \let\@IEEEINTmaintextheight=\@IEEEtrantmpdimenB%height of the main text columns with integer # lines
  3100. % set the nominal and minimum values for the title spacer
  3101. % the dynamic algorithm will not allow the spacer size to
  3102. % become less than \@IEEEMINtitlevspace - instead it will be
  3103. % lengthened
  3104. % default to journal values
  3105. \def\@IEEENORMtitlevspace{2.5\baselineskip}%
  3106. \def\@IEEEMINtitlevspace{2\baselineskip}%
  3107. % conferences and technotes need tighter spacing
  3108. \ifCLASSOPTIONconference%conference
  3109. \def\@IEEENORMtitlevspace{1\baselineskip}%
  3110. \def\@IEEEMINtitlevspace{0.75\baselineskip}%
  3111. \fi
  3112. \ifCLASSOPTIONtechnote%technote
  3113. \def\@IEEENORMtitlevspace{1\baselineskip}%
  3114. \def\@IEEEMINtitlevspace{0.75\baselineskip}%
  3115. \fi%
  3116. % get the height that the title will take up
  3117. \ifCLASSOPTIONpeerreview
  3118. \settoheight{\@IEEEmaintextheight}{\vbox{\hsize\textwidth \@IEEEpeerreviewmaketitle}}%
  3119. \else
  3120. \settoheight{\@IEEEmaintextheight}{\vbox{\hsize\textwidth \@maketitle}}%
  3121. \fi
  3122. \@IEEEmaintextheight=-\@IEEEmaintextheight% title takes away from maintext, so reverse sign
  3123. % add the height of the page textheight
  3124. \advance\@IEEEmaintextheight by \textheight%
  3125. % correct for title pages using pubid
  3126. \ifCLASSOPTIONpeerreview\else
  3127. % peerreview papers use the pubid on the cover page only.
  3128. % And the cover page uses a static spacer.
  3129. \if@IEEEusingpubid\advance\@IEEEmaintextheight by -\@IEEEpubidpullup\fi
  3130. \fi%
  3131. % subtract off the nominal value of the title bottom spacer
  3132. \advance\@IEEEmaintextheight by -\@IEEENORMtitlevspace%
  3133. % \topskip takes away some too
  3134. \advance\@IEEEmaintextheight by -\topskip%
  3135. % calculate the column height of the main text for lines
  3136. % now we calculate the main text height as if holding
  3137. % an integer number of \normalsize lines after the first
  3138. % and discard any excess fractional remainder
  3139. % we subtracted the first line, because the first line
  3140. % is placed \topskip into the maintext, not \baselineskip like the
  3141. % rest of the lines.
  3142. \@IEEEINTmaintextheight=\@IEEEmaintextheight%
  3143. \divide\@IEEEINTmaintextheight by \baselineskip%
  3144. \multiply\@IEEEINTmaintextheight by \baselineskip%
  3145. % now we calculate how much the title spacer height will
  3146. % have to be reduced from nominal (\@IEEEREDUCEmaintextheight is always
  3147. % a positive value) so that the maintext area will contain an integer
  3148. % number of normal size lines
  3149. % we change variable names here (to avoid confusion) as we no longer
  3150. % need \@IEEEINTmaintextheight and can reuse its dimen register
  3151. \let\@IEEEREDUCEmaintextheight=\@IEEEINTmaintextheight%
  3152. \advance\@IEEEREDUCEmaintextheight by -\@IEEEmaintextheight%
  3153. \advance\@IEEEREDUCEmaintextheight by \baselineskip%
  3154. % this is the calculated height of the spacer
  3155. % we change variable names here (to avoid confusion) as we no longer
  3156. % need \@IEEEmaintextheight and can reuse its dimen register
  3157. \let\@IEEECOMPENSATElen=\@IEEEmaintextheight%
  3158. \@IEEECOMPENSATElen=\@IEEENORMtitlevspace% set the nominal value
  3159. % we go with the reduced length if it is smaller than an increase
  3160. \ifdim\@IEEEREDUCEmaintextheight < 0.5\baselineskip\relax%
  3161. \advance\@IEEECOMPENSATElen by -\@IEEEREDUCEmaintextheight%
  3162. % if the resulting spacer is too small back out and go with an increase instead
  3163. \ifdim\@IEEECOMPENSATElen<\@IEEEMINtitlevspace\relax%
  3164. \advance\@IEEECOMPENSATElen by \baselineskip%
  3165. \fi%
  3166. \else%
  3167. % go with an increase because it is closer to the nominal than a decrease
  3168. \advance\@IEEECOMPENSATElen by -\@IEEEREDUCEmaintextheight%
  3169. \advance\@IEEECOMPENSATElen by \baselineskip%
  3170. \fi%
  3171. % set the calculated rigid spacer
  3172. \vspace{\@IEEECOMPENSATElen}}}
  3173. % V1.6
  3174. % we allow the user access to the last part of the title area
  3175. % useful in emergencies such as when a different spacing is needed
  3176. % This text is NOT compensated for in the dynamic sizer.
  3177. \let\@IEEEaftertitletext=\relax
  3178. \long\def\IEEEaftertitletext#1{\def\@IEEEaftertitletext{#1}}
  3179. % V1.7 provide a way for users to enter abstract and keywords
  3180. % into the onecolumn title are. This text is compensated for
  3181. % in the dynamic sizer.
  3182. \let\@IEEEcompsoctitleabstractindextext=\relax
  3183. \long\def\IEEEcompsoctitleabstractindextext#1{\def\@IEEEcompsoctitleabstractindextext{#1}}
  3184. % V1.7 provide a way for users to get the \@IEEEcompsoctitleabstractindextext if
  3185. % not in compsoc journal mode - this way abstract and keywords can be placed
  3186. % in their conventional position if not in compsoc mode.
  3187. \def\IEEEdisplaynotcompsoctitleabstractindextext{%
  3188. \ifCLASSOPTIONcompsoc% display if compsoc conf
  3189. \ifCLASSOPTIONconference\@IEEEcompsoctitleabstractindextext\fi
  3190. \else% or if not compsoc
  3191. \@IEEEcompsoctitleabstractindextext\fi}
  3192. % command to allow alteration of baselinestretch, but only if the current
  3193. % baselineskip is unity. Used to tweak the compsoc abstract and keywords line spacing.
  3194. \def\@IEEEtweakunitybaselinestretch#1{{\def\baselinestretch{1}\selectfont
  3195. \global\@tempskipa\baselineskip}\ifnum\@tempskipa=\baselineskip%
  3196. \def\baselinestretch{#1}\selectfont\fi\relax}
  3197. % abstract and keywords are in \small, except
  3198. % for 9pt docs in which they are in \footnotesize
  3199. % Because 9pt docs use an 8pt footnotesize, \small
  3200. % becomes a rather awkward 8.5pt
  3201. \def\@IEEEabskeysecsize{\small}
  3202. \ifx\CLASSOPTIONpt\@IEEEptsizenine
  3203. \def\@IEEEabskeysecsize{\footnotesize}
  3204. \fi
  3205. % compsoc journals use \footnotesize, compsoc conferences use normalsize
  3206. \@IEEEcompsoconly{\def\@IEEEabskeysecsize{\footnotesize}}
  3207. \@IEEEcompsocconfonly{\def\@IEEEabskeysecsize{\normalsize}}
  3208. % V1.6 have abstract and keywords strip leading spaces, pars and newlines
  3209. % so that spacing is more tightly controlled.
  3210. \def\abstract{\normalfont
  3211. \if@twocolumn
  3212. \@IEEEabskeysecsize\bfseries\textit{\abstractname}---\relax
  3213. \else
  3214. \begin{center}\vspace{-1.78ex}\@IEEEabskeysecsize\textbf{\abstractname}\end{center}\quotation\@IEEEabskeysecsize
  3215. \fi\@IEEEgobbleleadPARNLSP}
  3216. % V1.6 IEEE wants only 1 pica from end of abstract to introduction heading when in
  3217. % conference mode (the heading already has this much above it)
  3218. \def\endabstract{\relax\ifCLASSOPTIONconference\vspace{0ex}\else\vspace{1.34ex}\fi\par\if@twocolumn\else\endquotation\fi
  3219. \normalfont\normalsize}
  3220. \def\IEEEkeywords{\normalfont
  3221. \if@twocolumn
  3222. \@IEEEabskeysecsize\bfseries\textit{\IEEEkeywordsname}---\relax
  3223. \else
  3224. \begin{center}\@IEEEabskeysecsize\textbf{\IEEEkeywordsname}\end{center}\quotation\@IEEEabskeysecsize
  3225. \fi\@IEEEgobbleleadPARNLSP}
  3226. \def\endIEEEkeywords{\relax\ifCLASSOPTIONtechnote\vspace{1.34ex}\else\vspace{0.67ex}\fi
  3227. \par\if@twocolumn\else\endquotation\fi%
  3228. \normalfont\normalsize}
  3229. % V1.7 compsoc keywords index terms
  3230. \ifCLASSOPTIONcompsoc
  3231. \ifCLASSOPTIONconference% compsoc conference
  3232. \def\abstract{\normalfont
  3233. \begin{center}\@IEEEabskeysecsize\textbf{\large\abstractname}\end{center}\vskip 0.5\baselineskip plus 0.1\baselineskip minus 0.1\baselineskip
  3234. \if@twocolumn\else\quotation\fi\itshape\@IEEEabskeysecsize%
  3235. \par\@IEEEgobbleleadPARNLSP}
  3236. \def\IEEEkeywords{\normalfont\vskip 1.5\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip
  3237. \begin{center}\@IEEEabskeysecsize\textbf{\large\IEEEkeywordsname}\end{center}\vskip 0.5\baselineskip plus 0.1\baselineskip minus 0.1\baselineskip
  3238. \if@twocolumn\else\quotation\fi\itshape\@IEEEabskeysecsize%
  3239. \par\@IEEEgobbleleadPARNLSP}
  3240. \else% compsoc not conference
  3241. \def\abstract{\normalfont\@IEEEtweakunitybaselinestretch{1.15}\sffamily
  3242. \if@twocolumn
  3243. \@IEEEabskeysecsize\noindent\textbf{\abstractname}---\relax
  3244. \else
  3245. \begin{center}\vspace{-1.78ex}\@IEEEabskeysecsize\textbf{\abstractname}\end{center}\quotation\@IEEEabskeysecsize%
  3246. \fi\@IEEEgobbleleadPARNLSP}
  3247. \def\IEEEkeywords{\normalfont\@IEEEtweakunitybaselinestretch{1.15}\sffamily
  3248. \if@twocolumn
  3249. \@IEEEabskeysecsize\vskip 0.5\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip\noindent
  3250. \textbf{\IEEEkeywordsname}---\relax
  3251. \else
  3252. \begin{center}\@IEEEabskeysecsize\textbf{\IEEEkeywordsname}\end{center}\quotation\@IEEEabskeysecsize%
  3253. \fi\@IEEEgobbleleadPARNLSP}
  3254. \fi
  3255. \fi
  3256. % gobbles all leading \, \\ and \par, upon finding first token that
  3257. % is not a \ , \\ or a \par, it ceases and returns that token
  3258. %
  3259. % used to strip leading \, \\ and \par from the input
  3260. % so that such things in the beginning of an environment will not
  3261. % affect the formatting of the text
  3262. \long\def\@IEEEgobbleleadPARNLSP#1{\let\@IEEEswallowthistoken=0%
  3263. \let\@IEEEgobbleleadPARNLSPtoken#1%
  3264. \let\@IEEEgobbleleadPARtoken=\par%
  3265. \let\@IEEEgobbleleadNLtoken=\\%
  3266. \let\@IEEEgobbleleadSPtoken=\ %
  3267. \def\@IEEEgobbleleadSPMACRO{\ }%
  3268. \ifx\@IEEEgobbleleadPARNLSPtoken\@IEEEgobbleleadPARtoken%
  3269. \let\@IEEEswallowthistoken=1%
  3270. \fi%
  3271. \ifx\@IEEEgobbleleadPARNLSPtoken\@IEEEgobbleleadNLtoken%
  3272. \let\@IEEEswallowthistoken=1%
  3273. \fi%
  3274. \ifx\@IEEEgobbleleadPARNLSPtoken\@IEEEgobbleleadSPtoken%
  3275. \let\@IEEEswallowthistoken=1%
  3276. \fi%
  3277. % a control space will come in as a macro
  3278. % when it is the last one on a line
  3279. \ifx\@IEEEgobbleleadPARNLSPtoken\@IEEEgobbleleadSPMACRO%
  3280. \let\@IEEEswallowthistoken=1%
  3281. \fi%
  3282. % if we have to swallow this token, do so and taste the next one
  3283. % else spit it out and stop gobbling
  3284. \ifx\@IEEEswallowthistoken 1\let\@IEEEnextgobbleleadPARNLSP=\@IEEEgobbleleadPARNLSP\else%
  3285. \let\@IEEEnextgobbleleadPARNLSP=#1\fi%
  3286. \@IEEEnextgobbleleadPARNLSP}%
  3287. % TITLING OF SECTIONS
  3288. \def\@IEEEsectpunct{:\ \,} % Punctuation after run-in section heading (headings which are
  3289. % part of the paragraphs), need little bit more than a single space
  3290. % spacing from section number to title
  3291. % compsoc conferences use regular period/space punctuation
  3292. \ifCLASSOPTIONcompsoc
  3293. \ifCLASSOPTIONconference
  3294. \def\@IEEEsectpunct{.\ }
  3295. \fi\fi
  3296. \def\@seccntformat#1{\csname the#1dis\endcsname\hskip 0.5em\relax}
  3297. \ifCLASSOPTIONcompsoc
  3298. % compsoc journals need extra spacing
  3299. \ifCLASSOPTIONconference\else
  3300. \def\@seccntformat#1{\csname the#1dis\endcsname\hskip 1em\relax}
  3301. \fi\fi
  3302. %v1.7 put {} after #6 to allow for some types of user font control
  3303. %and use \@@par rather than \par
  3304. \def\@sect#1#2#3#4#5#6[#7]#8{%
  3305. \ifnum #2>\c@secnumdepth
  3306. \let\@svsec\@empty
  3307. \else
  3308. \refstepcounter{#1}%
  3309. % load section label and spacer into \@svsec
  3310. \protected@edef\@svsec{\@seccntformat{#1}\relax}%
  3311. \fi%
  3312. \@tempskipa #5\relax
  3313. \ifdim \@tempskipa>\z@% tempskipa determines whether is treated as a high
  3314. \begingroup #6{\relax% or low level heading
  3315. \noindent % subsections are NOT indented
  3316. % print top level headings. \@svsec is label, #8 is heading title
  3317. % IEEE does not block indent the section title text, it flows like normal
  3318. {\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\@@par}}%
  3319. \endgroup
  3320. \addcontentsline{toc}{#1}{\ifnum #2>\c@secnumdepth\relax\else
  3321. \protect\numberline{\csname the#1\endcsname}\fi#7}%
  3322. \else % printout low level headings
  3323. % svsechd seems to swallow the trailing space, protect it with \mbox{}
  3324. % got rid of sectionmark stuff
  3325. \def\@svsechd{#6{\hskip #3\relax\@svsec #8\@IEEEsectpunct\mbox{}}%
  3326. \addcontentsline{toc}{#1}{\ifnum #2>\c@secnumdepth\relax\else
  3327. \protect\numberline{\csname the#1\endcsname}\fi#7}}%
  3328. \fi%skip down
  3329. \@xsect{#5}}
  3330. % section* handler
  3331. %v1.7 put {} after #4 to allow for some types of user font control
  3332. %and use \@@par rather than \par
  3333. \def\@ssect#1#2#3#4#5{\@tempskipa #3\relax
  3334. \ifdim \@tempskipa>\z@
  3335. %\begingroup #4\@hangfrom{\hskip #1}{\interlinepenalty \@M #5\par}\endgroup
  3336. % IEEE does not block indent the section title text, it flows like normal
  3337. \begingroup \noindent #4{\relax{\hskip #1}{\interlinepenalty \@M #5\@@par}}\endgroup
  3338. % svsechd swallows the trailing space, protect it with \mbox{}
  3339. \else \def\@svsechd{#4{\hskip #1\relax #5\@IEEEsectpunct\mbox{}}}\fi
  3340. \@xsect{#3}}
  3341. %% SECTION heading spacing and font
  3342. %%
  3343. % arguments are: #1 - sectiontype name
  3344. % (for \@sect) #2 - section level
  3345. % #3 - section heading indent
  3346. % #4 - top separation (absolute value used, neg indicates not to indent main text)
  3347. % If negative, make stretch parts negative too!
  3348. % #5 - (absolute value used) positive: bottom separation after heading,
  3349. % negative: amount to indent main text after heading
  3350. % Both #4 and #5 negative means to indent main text and use negative top separation
  3351. % #6 - font control
  3352. % You've got to have \normalfont\normalsize in the font specs below to prevent
  3353. % trouble when you do something like:
  3354. % \section{Note}{\ttfamily TT-TEXT} is known to ...
  3355. % IEEE sometimes REALLY stretches the area before a section
  3356. % heading by up to about 0.5in. However, it may not be a good
  3357. % idea to let LaTeX have quite this much rubber.
  3358. \ifCLASSOPTIONconference%
  3359. % IEEE wants section heading spacing to decrease for conference mode
  3360. \def\section{\@startsection{section}{1}{\z@}{1.5ex plus 1.5ex minus 0.5ex}%
  3361. {0.7ex plus 1ex minus 0ex}{\normalfont\normalsize\centering\scshape}}%
  3362. \def\subsection{\@startsection{subsection}{2}{\z@}{1.5ex plus 1.5ex minus 0.5ex}%
  3363. {0.7ex plus .5ex minus 0ex}{\normalfont\normalsize\itshape}}%
  3364. \else % for journals
  3365. \def\section{\@startsection{section}{1}{\z@}{3.0ex plus 1.5ex minus 1.5ex}% V1.6 3.0ex from 3.5ex
  3366. {0.7ex plus 1ex minus 0ex}{\normalfont\normalsize\centering\scshape}}%
  3367. \def\subsection{\@startsection{subsection}{2}{\z@}{3.5ex plus 1.5ex minus 1.5ex}%
  3368. {0.7ex plus .5ex minus 0ex}{\normalfont\normalsize\itshape}}%
  3369. \fi
  3370. % for both journals and conferences
  3371. % decided to put in a little rubber above the section, might help somebody
  3372. \def\subsubsection{\@startsection{subsubsection}{3}{\parindent}{0ex plus 0.1ex minus 0.1ex}%
  3373. {0ex}{\normalfont\normalsize\itshape}}%
  3374. \def\paragraph{\@startsection{paragraph}{4}{2\parindent}{0ex plus 0.1ex minus 0.1ex}%
  3375. {0ex}{\normalfont\normalsize\itshape}}%
  3376. % compsoc
  3377. \ifCLASSOPTIONcompsoc
  3378. \ifCLASSOPTIONconference
  3379. % compsoc conference
  3380. \def\section{\@startsection{section}{1}{\z@}{1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}%
  3381. {1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}{\normalfont\large\bfseries}}%
  3382. \def\subsection{\@startsection{subsection}{2}{\z@}{1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}%
  3383. {1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}{\normalfont\sublargesize\bfseries}}%
  3384. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{1\baselineskip plus 0.25\baselineskip minus 0.25\baselineskip}%
  3385. {0ex}{\normalfont\normalsize\bfseries}}%
  3386. \def\paragraph{\@startsection{paragraph}{4}{2\parindent}{0ex plus 0.1ex minus 0.1ex}%
  3387. {0ex}{\normalfont\normalsize}}%
  3388. \else% compsoc journals
  3389. % use negative top separation as compsoc journals do not indent paragraphs after section titles
  3390. \def\section{\@startsection{section}{1}{\z@}{-3ex plus -2ex minus -1.5ex}%
  3391. {0.7ex plus 1ex minus 0ex}{\normalfont\large\sffamily\bfseries\scshape}}%
  3392. % Note that subsection and smaller may not be correct for the Computer Society,
  3393. % I have to look up an example.
  3394. \def\subsection{\@startsection{subsection}{2}{\z@}{-3.5ex plus -1.5ex minus -1.5ex}%
  3395. {0.7ex plus .5ex minus 0ex}{\normalfont\normalsize\sffamily\bfseries}}%
  3396. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-2.5ex plus -1ex minus -1ex}%
  3397. {0.5ex plus 0.5ex minus 0ex}{\normalfont\normalsize\sffamily\itshape}}%
  3398. \def\paragraph{\@startsection{paragraph}{4}{2\parindent}{-0ex plus -0.1ex minus -0.1ex}%
  3399. {0ex}{\normalfont\normalsize}}%
  3400. \fi\fi
  3401. %% ENVIRONMENTS
  3402. % "box" symbols at end of proofs
  3403. \def\IEEEQEDclosed{\mbox{\rule[0pt]{1.3ex}{1.3ex}}} % for a filled box
  3404. % V1.6 some journals use an open box instead that will just fit around a closed one
  3405. \def\IEEEQEDopen{{\setlength{\fboxsep}{0pt}\setlength{\fboxrule}{0.2pt}\fbox{\rule[0pt]{0pt}{1.3ex}\rule[0pt]{1.3ex}{0pt}}}}
  3406. \ifCLASSOPTIONcompsoc
  3407. \def\IEEEQED{\IEEEQEDopen} % default to open for compsoc
  3408. \else
  3409. \def\IEEEQED{\IEEEQEDclosed} % otherwise default to closed
  3410. \fi
  3411. % v1.7 name change to avoid namespace collision with amsthm. Also add support
  3412. % for an optional argument.
  3413. \def\IEEEproof{\@ifnextchar[{\@IEEEproof}{\@IEEEproof[\IEEEproofname]}}
  3414. \def\@IEEEproof[#1]{\par\noindent\hspace{2em}{\itshape #1: }}
  3415. \def\endIEEEproof{\hspace*{\fill}~\IEEEQED\par}
  3416. %\itemindent is set to \z@ by list, so define new temporary variable
  3417. \newdimen\@IEEEtmpitemindent
  3418. \def\@begintheorem#1#2{\@IEEEtmpitemindent\itemindent\topsep 0pt\rmfamily\trivlist%
  3419. \item[\hskip \labelsep{\indent\itshape #1\ #2:}]\itemindent\@IEEEtmpitemindent}
  3420. \def\@opargbegintheorem#1#2#3{\@IEEEtmpitemindent\itemindent\topsep 0pt\rmfamily \trivlist%
  3421. % V1.6 IEEE is back to using () around theorem names which are also in italics
  3422. % Thanks to Christian Peel for reporting this.
  3423. \item[\hskip\labelsep{\indent\itshape #1\ #2\ (#3):}]\itemindent\@IEEEtmpitemindent}
  3424. % V1.7 remove bogus \unskip that caused equations in theorems to collide with
  3425. % lines below.
  3426. \def\@endtheorem{\endtrivlist}
  3427. % V1.6
  3428. % display command for the section the theorem is in - so that \thesection
  3429. % is not used as this will be in Roman numerals when we want arabic.
  3430. % LaTeX2e uses \def\@thmcounter#1{\noexpand\arabic{#1}} for the theorem number
  3431. % (second part) display and \def\@thmcountersep{.} as a separator.
  3432. % V1.7 intercept calls to the section counter and reroute to \@IEEEthmcounterinsection
  3433. % to allow \appendix(ices} to override as needed.
  3434. %
  3435. % special handler for sections, allows appendix(ices) to override
  3436. \gdef\@IEEEthmcounterinsection#1{\arabic{#1}}
  3437. % string macro
  3438. \edef\@IEEEstringsection{section}
  3439. % redefine the #1#2[#3] form of newtheorem to use a hook to \@IEEEthmcounterinsection
  3440. % if section in_counter is used
  3441. \def\@xnthm#1#2[#3]{%
  3442. \expandafter\@ifdefinable\csname #1\endcsname
  3443. {\@definecounter{#1}\@newctr{#1}[#3]%
  3444. \edef\@IEEEstringtmp{#3}
  3445. \ifx\@IEEEstringtmp\@IEEEstringsection
  3446. \expandafter\xdef\csname the#1\endcsname{%
  3447. \noexpand\@IEEEthmcounterinsection{#3}\@thmcountersep
  3448. \@thmcounter{#1}}%
  3449. \else
  3450. \expandafter\xdef\csname the#1\endcsname{%
  3451. \expandafter\noexpand\csname the#3\endcsname \@thmcountersep
  3452. \@thmcounter{#1}}%
  3453. \fi
  3454. \global\@namedef{#1}{\@thm{#1}{#2}}%
  3455. \global\@namedef{end#1}{\@endtheorem}}}
  3456. %% SET UP THE DEFAULT PAGESTYLE
  3457. \ps@headings
  3458. \pagenumbering{arabic}
  3459. % normally the page counter starts at 1
  3460. \setcounter{page}{1}
  3461. % however, for peerreview the cover sheet is page 0 or page -1
  3462. % (for duplex printing)
  3463. \ifCLASSOPTIONpeerreview
  3464. \if@twoside
  3465. \setcounter{page}{-1}
  3466. \else
  3467. \setcounter{page}{0}
  3468. \fi
  3469. \fi
  3470. % standard book class behavior - let bottom line float up and down as
  3471. % needed when single sided
  3472. \ifCLASSOPTIONtwoside\else\raggedbottom\fi
  3473. % if two column - turn on twocolumn, allow word spacings to stretch more and
  3474. % enforce a rigid position for the last lines
  3475. \ifCLASSOPTIONtwocolumn
  3476. % the peer review option delays invoking twocolumn
  3477. \ifCLASSOPTIONpeerreview\else
  3478. \twocolumn
  3479. \fi
  3480. \sloppy
  3481. \flushbottom
  3482. \fi
  3483. % \APPENDIX and \APPENDICES definitions
  3484. % This is the \@ifmtarg command from the LaTeX ifmtarg package
  3485. % by Peter Wilson (CUA) and Donald Arseneau
  3486. % \@ifmtarg is used to determine if an argument to a command
  3487. % is present or not.
  3488. % For instance:
  3489. % \@ifmtarg{#1}{\typeout{empty}}{\typeout{has something}}
  3490. % \@ifmtarg is used with our redefined \section command if
  3491. % \appendices is invoked.
  3492. % The command \section will behave slightly differently depending
  3493. % on whether the user specifies a title:
  3494. % \section{My appendix title}
  3495. % or not:
  3496. % \section{}
  3497. % This way, we can eliminate the blank lines where the title
  3498. % would be, and the unneeded : after Appendix in the table of
  3499. % contents
  3500. \begingroup
  3501. \catcode`\Q=3
  3502. \long\gdef\@ifmtarg#1{\@xifmtarg#1QQ\@secondoftwo\@firstoftwo\@nil}
  3503. \long\gdef\@xifmtarg#1#2Q#3#4#5\@nil{#4}
  3504. \endgroup
  3505. % end of \@ifmtarg defs
  3506. % V1.7
  3507. % command that allows the one time saving of the original definition
  3508. % of section to \@IEEEappendixsavesection for \appendix or \appendices
  3509. % we don't save \section here as it may be redefined later by other
  3510. % packages (hyperref.sty, etc.)
  3511. \def\@IEEEsaveoriginalsectiononce{\let\@IEEEappendixsavesection\section
  3512. \let\@IEEEsaveoriginalsectiononce\relax}
  3513. % neat trick to grab and process the argument from \section{argument}
  3514. % we process differently if the user invoked \section{} with no
  3515. % argument (title)
  3516. % note we reroute the call to the old \section*
  3517. \def\@IEEEprocessthesectionargument#1{%
  3518. \@ifmtarg{#1}{%
  3519. \@IEEEappendixsavesection*{\appendixname~\thesectiondis}%
  3520. \addcontentsline{toc}{section}{\appendixname~\thesection}}{%
  3521. \@IEEEappendixsavesection*{\appendixname~\thesectiondis \\* #1}%
  3522. \addcontentsline{toc}{section}{\appendixname~\thesection: #1}}}
  3523. % we use this if the user calls \section{} after
  3524. % \appendix-- which has no meaning. So, we ignore the
  3525. % command and its argument. Then, warn the user.
  3526. \def\@IEEEdestroythesectionargument#1{\typeout{** WARNING: Ignoring useless
  3527. \protect\section\space in Appendix (line \the\inputlineno).}}
  3528. % remember \thesection forms will be displayed in \ref calls
  3529. % and in the Table of Contents.
  3530. % The \sectiondis form is used in the actual heading itself
  3531. % appendix command for one single appendix
  3532. % normally has no heading. However, if you want a
  3533. % heading, you can do so via the optional argument:
  3534. % \appendix[Optional Heading]
  3535. \def\appendix{\relax}
  3536. \renewcommand{\appendix}[1][]{\@IEEEsaveoriginalsectiononce\par
  3537. % v1.6 keep hyperref's identifiers unique
  3538. \gdef\theHsection{Appendix.A}%
  3539. % v1.6 adjust hyperref's string name for the section
  3540. \xdef\Hy@chapapp{appendix}%
  3541. \setcounter{section}{0}%
  3542. \setcounter{subsection}{0}%
  3543. \setcounter{subsubsection}{0}%
  3544. \setcounter{paragraph}{0}%
  3545. \gdef\thesection{A}%
  3546. \gdef\thesectiondis{}%
  3547. \gdef\thesubsection{\Alph{subsection}}%
  3548. \gdef\@IEEEthmcounterinsection##1{A}
  3549. \refstepcounter{section}% update the \ref counter
  3550. \@ifmtarg{#1}{\@IEEEappendixsavesection*{\appendixname}%
  3551. \addcontentsline{toc}{section}{\appendixname}}{%
  3552. \@IEEEappendixsavesection*{\appendixname~\\* #1}%
  3553. \addcontentsline{toc}{section}{\appendixname: #1}}%
  3554. % redefine \section command for appendix
  3555. % leave \section* as is
  3556. \def\section{\@ifstar{\@IEEEappendixsavesection*}{%
  3557. \@IEEEdestroythesectionargument}}% throw out the argument
  3558. % of the normal form
  3559. }
  3560. % appendices command for multiple appendices
  3561. % user then calls \section with an argument (possibly empty) to
  3562. % declare the individual appendices
  3563. \def\appendices{\@IEEEsaveoriginalsectiononce\par
  3564. % v1.6 keep hyperref's identifiers unique
  3565. \gdef\theHsection{Appendix.\Alph{section}}%
  3566. % v1.6 adjust hyperref's string name for the section
  3567. \xdef\Hy@chapapp{appendix}%
  3568. \setcounter{section}{-1}% we want \refstepcounter to use section 0
  3569. \setcounter{subsection}{0}%
  3570. \setcounter{subsubsection}{0}%
  3571. \setcounter{paragraph}{0}%
  3572. \ifCLASSOPTIONromanappendices%
  3573. \gdef\thesection{\Roman{section}}%
  3574. \gdef\thesectiondis{\Roman{section}}%
  3575. \@IEEEcompsocconfonly{\gdef\thesectiondis{\Roman{section}.}}%
  3576. \gdef\@IEEEthmcounterinsection##1{A\arabic{##1}}
  3577. \else%
  3578. \gdef\thesection{\Alph{section}}%
  3579. \gdef\thesectiondis{\Alph{section}}%
  3580. \@IEEEcompsocconfonly{\gdef\thesectiondis{\Alph{section}.}}%
  3581. \gdef\@IEEEthmcounterinsection##1{\Alph{##1}}
  3582. \fi%
  3583. \refstepcounter{section}% update the \ref counter
  3584. \setcounter{section}{0}% NEXT \section will be the FIRST appendix
  3585. % redefine \section command for appendices
  3586. % leave \section* as is
  3587. \def\section{\@ifstar{\@IEEEappendixsavesection*}{% process the *-form
  3588. \refstepcounter{section}% or is a new section so,
  3589. \@IEEEprocessthesectionargument}}% process the argument
  3590. % of the normal form
  3591. }
  3592. % \IEEEPARstart
  3593. % Definition for the big two line drop cap letter at the beginning of the
  3594. % first paragraph of journal papers. The first argument is the first letter
  3595. % of the first word, the second argument is the remaining letters of the
  3596. % first word which will be rendered in upper case.
  3597. % In V1.6 this has been completely rewritten to:
  3598. %
  3599. % 1. no longer have problems when the user begins an environment
  3600. % within the paragraph that uses \IEEEPARstart.
  3601. % 2. auto-detect and use the current font family
  3602. % 3. revise handling of the space at the end of the first word so that
  3603. % interword glue will now work as normal.
  3604. % 4. produce correctly aligned edges for the (two) indented lines.
  3605. %
  3606. % We generalize things via control macros - playing with these is fun too.
  3607. %
  3608. % V1.7 added more control macros to make it easy for IEEEtrantools.sty users
  3609. % to change the font style.
  3610. %
  3611. % the number of lines that are indented to clear it
  3612. % may need to increase if using decenders
  3613. \def\@IEEEPARstartDROPLINES{2}
  3614. % minimum number of lines left on a page to allow a \@IEEEPARstart
  3615. % Does not take into consideration rubber shrink, so it tends to
  3616. % be overly cautious
  3617. \def\@IEEEPARstartMINPAGELINES{2}
  3618. % V1.7 the height of the drop cap is adjusted to match the height of this text
  3619. % in the current font (when \IEEEPARstart is called).
  3620. \def\@IEEEPARstartHEIGHTTEXT{T}
  3621. % the depth the letter is lowered below the baseline
  3622. % the height (and size) of the letter is determined by the sum
  3623. % of this value and the height of the \@IEEEPARstartHEIGHTTEXT in the current
  3624. % font. It is a good idea to set this value in terms of the baselineskip
  3625. % so that it can respond to changes therein.
  3626. \def\@IEEEPARstartDROPDEPTH{1.1\baselineskip}
  3627. % V1.7 the font the drop cap will be rendered in,
  3628. % can take zero or one argument.
  3629. \def\@IEEEPARstartFONTSTYLE{\bfseries}
  3630. % V1.7 any additional, non-font related commands needed to modify
  3631. % the drop cap letter, can take zero or one argument.
  3632. \def\@IEEEPARstartCAPSTYLE{\MakeUppercase}
  3633. % V1.7 the font that will be used to render the rest of the word,
  3634. % can take zero or one argument.
  3635. \def\@IEEEPARstartWORDFONTSTYLE{\relax}
  3636. % V1.7 any additional, non-font related commands needed to modify
  3637. % the rest of the word, can take zero or one argument.
  3638. \def\@IEEEPARstartWORDCAPSTYLE{\MakeUppercase}
  3639. % This is the horizontal separation distance from the drop letter to the main text.
  3640. % Lengths that depend on the font (e.g., ex, em, etc.) will be referenced
  3641. % to the font that is active when \IEEEPARstart is called.
  3642. \def\@IEEEPARstartSEP{0.15em}
  3643. % V1.7 horizontal offset applied to the left of the drop cap.
  3644. \def\@IEEEPARstartHOFFSET{0em}
  3645. % V1.7 Italic correction command applied at the end of the drop cap.
  3646. \def\@IEEEPARstartITLCORRECT{\/}
  3647. % V1.7 compoc uses nonbold drop cap and small caps word style
  3648. \ifCLASSOPTIONcompsoc
  3649. \def\@IEEEPARstartFONTSTYLE{\mdseries}
  3650. \def\@IEEEPARstartWORDFONTSTYLE{\scshape}
  3651. \def\@IEEEPARstartWORDCAPSTYLE{\relax}
  3652. \fi
  3653. % definition of \IEEEPARstart
  3654. % THIS IS A CONTROLLED SPACING AREA, DO NOT ALLOW SPACES WITHIN THESE LINES
  3655. %
  3656. % The token \@IEEEPARstartfont will be globally defined after the first use
  3657. % of \IEEEPARstart and will be a font command which creates the big letter
  3658. % The first argument is the first letter of the first word and the second
  3659. % argument is the rest of the first word(s).
  3660. \def\IEEEPARstart#1#2{\par{%
  3661. % if this page does not have enough space, break it and lets start
  3662. % on a new one
  3663. \@IEEEtranneedspace{\@IEEEPARstartMINPAGELINES\baselineskip}{\relax}%
  3664. % V1.7 move this up here in case user uses \textbf for \@IEEEPARstartFONTSTYLE
  3665. % which uses command \leavevmode which causes an unwanted \indent to be issued
  3666. \noindent
  3667. % calculate the desired height of the big letter
  3668. % it extends from the top of \@IEEEPARstartHEIGHTTEXT in the current font
  3669. % down to \@IEEEPARstartDROPDEPTH below the current baseline
  3670. \settoheight{\@IEEEtrantmpdimenA}{\@IEEEPARstartHEIGHTTEXT}%
  3671. \addtolength{\@IEEEtrantmpdimenA}{\@IEEEPARstartDROPDEPTH}%
  3672. % extract the name of the current font in bold
  3673. % and place it in \@IEEEPARstartFONTNAME
  3674. \def\@IEEEPARstartGETFIRSTWORD##1 ##2\relax{##1}%
  3675. {\@IEEEPARstartFONTSTYLE{\selectfont\edef\@IEEEPARstartFONTNAMESPACE{\fontname\font\space}%
  3676. \xdef\@IEEEPARstartFONTNAME{\expandafter\@IEEEPARstartGETFIRSTWORD\@IEEEPARstartFONTNAMESPACE\relax}}}%
  3677. % define a font based on this name with a point size equal to the desired
  3678. % height of the drop letter
  3679. \font\@IEEEPARstartsubfont\@IEEEPARstartFONTNAME\space at \@IEEEtrantmpdimenA\relax%
  3680. % save this value as a counter (integer) value (sp points)
  3681. \@IEEEtrantmpcountA=\@IEEEtrantmpdimenA%
  3682. % now get the height of the actual letter produced by this font size
  3683. \settoheight{\@IEEEtrantmpdimenB}{\@IEEEPARstartsubfont\@IEEEPARstartCAPSTYLE{#1}}%
  3684. % If something bogus happens like the first argument is empty or the
  3685. % current font is strange, do not allow a zero height.
  3686. \ifdim\@IEEEtrantmpdimenB=0pt\relax%
  3687. \typeout{** WARNING: IEEEPARstart drop letter has zero height! (line \the\inputlineno)}%
  3688. \typeout{ Forcing the drop letter font size to 10pt.}%
  3689. \@IEEEtrantmpdimenB=10pt%
  3690. \fi%
  3691. % and store it as a counter
  3692. \@IEEEtrantmpcountB=\@IEEEtrantmpdimenB%
  3693. % Since a font size doesn't exactly correspond to the height of the capital
  3694. % letters in that font, the actual height of the letter, \@IEEEtrantmpcountB,
  3695. % will be less than that desired, \@IEEEtrantmpcountA
  3696. % we need to raise the font size, \@IEEEtrantmpdimenA
  3697. % by \@IEEEtrantmpcountA / \@IEEEtrantmpcountB
  3698. % But, TeX doesn't have floating point division, so we have to use integer
  3699. % division. Hence the use of the counters.
  3700. % We need to reduce the denominator so that the loss of the remainder will
  3701. % have minimal affect on the accuracy of the result
  3702. \divide\@IEEEtrantmpcountB by 200%
  3703. \divide\@IEEEtrantmpcountA by \@IEEEtrantmpcountB%
  3704. % Then reequalize things when we use TeX's ability to multiply by
  3705. % floating point values
  3706. \@IEEEtrantmpdimenB=0.005\@IEEEtrantmpdimenA%
  3707. \multiply\@IEEEtrantmpdimenB by \@IEEEtrantmpcountA%
  3708. % \@IEEEPARstartfont is globaly set to the calculated font of the big letter
  3709. % We need to carry this out of the local calculation area to to create the
  3710. % big letter.
  3711. \global\font\@IEEEPARstartfont\@IEEEPARstartFONTNAME\space at \@IEEEtrantmpdimenB%
  3712. % Now set \@IEEEtrantmpdimenA to the width of the big letter
  3713. % We need to carry this out of the local calculation area to set the
  3714. % hanging indent
  3715. \settowidth{\global\@IEEEtrantmpdimenA}{\@IEEEPARstartfont
  3716. \@IEEEPARstartCAPSTYLE{#1\@IEEEPARstartITLCORRECT}}}%
  3717. % end of the isolated calculation environment
  3718. % add in the extra clearance we want
  3719. \advance\@IEEEtrantmpdimenA by \@IEEEPARstartSEP\relax%
  3720. % add in the optional offset
  3721. \advance\@IEEEtrantmpdimenA by \@IEEEPARstartHOFFSET\relax%
  3722. % V1.7 don't allow negative offsets to produce negative hanging indents
  3723. \@IEEEtrantmpdimenB\@IEEEtrantmpdimenA
  3724. \ifnum\@IEEEtrantmpdimenB < 0 \@IEEEtrantmpdimenB 0pt\fi
  3725. % \@IEEEtrantmpdimenA has the width of the big letter plus the
  3726. % separation space and \@IEEEPARstartfont is the font we need to use
  3727. % Now, we make the letter and issue the hanging indent command
  3728. % The letter is placed in a box of zero width and height so that other
  3729. % text won't be displaced by it.
  3730. \hangindent\@IEEEtrantmpdimenB\hangafter=-\@IEEEPARstartDROPLINES%
  3731. \makebox[0pt][l]{\hspace{-\@IEEEtrantmpdimenA}%
  3732. \raisebox{-\@IEEEPARstartDROPDEPTH}[0pt][0pt]{\hspace{\@IEEEPARstartHOFFSET}%
  3733. \@IEEEPARstartfont\@IEEEPARstartCAPSTYLE{#1\@IEEEPARstartITLCORRECT}%
  3734. \hspace{\@IEEEPARstartSEP}}}%
  3735. {\@IEEEPARstartWORDFONTSTYLE{\@IEEEPARstartWORDCAPSTYLE{\selectfont#2}}}}
  3736. % determines if the space remaining on a given page is equal to or greater
  3737. % than the specified space of argument one
  3738. % if not, execute argument two (only if the remaining space is greater than zero)
  3739. % and issue a \newpage
  3740. %
  3741. % example: \@IEEEtranneedspace{2in}{\vfill}
  3742. %
  3743. % Does not take into consideration rubber shrinkage, so it tends to
  3744. % be overly cautious
  3745. % Based on an example posted by Donald Arseneau
  3746. % Note this macro uses \@IEEEtrantmpdimenB internally for calculations,
  3747. % so DO NOT PASS \@IEEEtrantmpdimenB to this routine
  3748. % if you need a dimen register, import with \@IEEEtrantmpdimenA instead
  3749. \def\@IEEEtranneedspace#1#2{\penalty-100\begingroup%shield temp variable
  3750. \@IEEEtrantmpdimenB\pagegoal\advance\@IEEEtrantmpdimenB-\pagetotal% space left
  3751. \ifdim #1>\@IEEEtrantmpdimenB\relax% not enough space left
  3752. \ifdim\@IEEEtrantmpdimenB>\z@\relax #2\fi%
  3753. \newpage%
  3754. \fi\endgroup}
  3755. % IEEEbiography ENVIRONMENT
  3756. % Allows user to enter biography leaving place for picture (adapts to font size)
  3757. % As of V1.5, a new optional argument allows you to have a real graphic!
  3758. % V1.5 and later also fixes the "colliding biographies" which could happen when a
  3759. % biography's text was shorter than the space for the photo.
  3760. % MDS 7/2001
  3761. % V1.6 prevent multiple biographies from making multiple TOC entries
  3762. \newif\if@IEEEbiographyTOCentrynotmade
  3763. \global\@IEEEbiographyTOCentrynotmadetrue
  3764. % biography counter so hyperref can jump directly to the biographies
  3765. % and not just the previous section
  3766. \newcounter{IEEEbiography}
  3767. \setcounter{IEEEbiography}{0}
  3768. % photo area size
  3769. \def\@IEEEBIOphotowidth{1.0in} % width of the biography photo area
  3770. \def\@IEEEBIOphotodepth{1.25in} % depth (height) of the biography photo area
  3771. % area cleared for photo
  3772. \def\@IEEEBIOhangwidth{1.14in} % width cleared for the biography photo area
  3773. \def\@IEEEBIOhangdepth{1.25in} % depth cleared for the biography photo area
  3774. % actual depth will be a multiple of
  3775. % \baselineskip, rounded up
  3776. \def\@IEEEBIOskipN{4\baselineskip}% nominal value of the vskip above the biography
  3777. \newenvironment{IEEEbiography}[2][]{\normalfont\@IEEEcompsoconly{\sffamily}\footnotesize%
  3778. \unitlength 1in\parskip=0pt\par\parindent 1em\interlinepenalty500%
  3779. % we need enough space to support the hanging indent
  3780. % the nominal value of the spacer
  3781. % and one extra line for good measure
  3782. \@IEEEtrantmpdimenA=\@IEEEBIOhangdepth%
  3783. \advance\@IEEEtrantmpdimenA by \@IEEEBIOskipN%
  3784. \advance\@IEEEtrantmpdimenA by 1\baselineskip%
  3785. % if this page does not have enough space, break it and lets start
  3786. % with a new one
  3787. \@IEEEtranneedspace{\@IEEEtrantmpdimenA}{\relax}%
  3788. % nominal spacer can strech, not shrink use 1fil so user can out stretch with \vfill
  3789. \vskip \@IEEEBIOskipN plus 1fil minus 0\baselineskip%
  3790. % the default box for where the photo goes
  3791. \def\@IEEEtempbiographybox{{\setlength{\fboxsep}{0pt}\framebox{%
  3792. \begin{minipage}[b][\@IEEEBIOphotodepth][c]{\@IEEEBIOphotowidth}\centering PLACE\\ PHOTO\\ HERE \end{minipage}}}}%
  3793. %
  3794. % detect if the optional argument was supplied, this requires the
  3795. % \@ifmtarg command as defined in the appendix section above
  3796. % and if so, override the default box with what they want
  3797. \@ifmtarg{#1}{\relax}{\def\@IEEEtempbiographybox{\mbox{\begin{minipage}[b][\@IEEEBIOphotodepth][c]{\@IEEEBIOphotowidth}%
  3798. \centering%
  3799. #1%
  3800. \end{minipage}}}}% end if optional argument supplied
  3801. % Make an entry into the table of contents only if we have not done so before
  3802. \if@IEEEbiographyTOCentrynotmade%
  3803. % link labels to the biography counter so hyperref will jump
  3804. % to the biography, not the previous section
  3805. \setcounter{IEEEbiography}{-1}%
  3806. \refstepcounter{IEEEbiography}%
  3807. \addcontentsline{toc}{section}{Biographies}%
  3808. \global\@IEEEbiographyTOCentrynotmadefalse%
  3809. \fi%
  3810. % one more biography
  3811. \refstepcounter{IEEEbiography}%
  3812. % Make an entry for this name into the table of contents
  3813. \addcontentsline{toc}{subsection}{#2}%
  3814. % V1.6 properly handle if a new paragraph should occur while the
  3815. % hanging indent is still active. Do this by redefining \par so
  3816. % that it will not start a new paragraph. (But it will appear to the
  3817. % user as if it did.) Also, strip any leading pars, newlines, or spaces.
  3818. \let\@IEEEBIOORGparCMD=\par% save the original \par command
  3819. \edef\par{\hfil\break\indent}% the new \par will not be a "real" \par
  3820. \settoheight{\@IEEEtrantmpdimenA}{\@IEEEtempbiographybox}% get height of biography box
  3821. \@IEEEtrantmpdimenB=\@IEEEBIOhangdepth%
  3822. \@IEEEtrantmpcountA=\@IEEEtrantmpdimenB% countA has the hang depth
  3823. \divide\@IEEEtrantmpcountA by \baselineskip% calculates lines needed to produce the hang depth
  3824. \advance\@IEEEtrantmpcountA by 1% ensure we overestimate
  3825. % set the hanging indent
  3826. \hangindent\@IEEEBIOhangwidth%
  3827. \hangafter-\@IEEEtrantmpcountA%
  3828. % reference the top of the photo area to the top of a capital T
  3829. \settoheight{\@IEEEtrantmpdimenB}{\mbox{T}}%
  3830. % set the photo box, give it zero width and height so as not to disturb anything
  3831. \noindent\makebox[0pt][l]{\hspace{-\@IEEEBIOhangwidth}\raisebox{\@IEEEtrantmpdimenB}[0pt][0pt]{%
  3832. \raisebox{-\@IEEEBIOphotodepth}[0pt][0pt]{\@IEEEtempbiographybox}}}%
  3833. % now place the author name and begin the bio text
  3834. \noindent\textbf{#2\ }\@IEEEgobbleleadPARNLSP}{\relax\let\par=\@IEEEBIOORGparCMD\par%
  3835. % 7/2001 V1.5 detect when the biography text is shorter than the photo area
  3836. % and pad the unused area - preventing a collision from the next biography entry
  3837. % MDS
  3838. \ifnum \prevgraf <\@IEEEtrantmpcountA\relax% detect when the biography text is shorter than the photo
  3839. \advance\@IEEEtrantmpcountA by -\prevgraf% calculate how many lines we need to pad
  3840. \advance\@IEEEtrantmpcountA by -1\relax% we compensate for the fact that we indented an extra line
  3841. \@IEEEtrantmpdimenA=\baselineskip% calculate the length of the padding
  3842. \multiply\@IEEEtrantmpdimenA by \@IEEEtrantmpcountA%
  3843. \noindent\rule{0pt}{\@IEEEtrantmpdimenA}% insert an invisible support strut
  3844. \fi%
  3845. \par\normalfont}
  3846. % V1.6
  3847. % added biography without a photo environment
  3848. \newenvironment{IEEEbiographynophoto}[1]{%
  3849. % Make an entry into the table of contents only if we have not done so before
  3850. \if@IEEEbiographyTOCentrynotmade%
  3851. % link labels to the biography counter so hyperref will jump
  3852. % to the biography, not the previous section
  3853. \setcounter{IEEEbiography}{-1}%
  3854. \refstepcounter{IEEEbiography}%
  3855. \addcontentsline{toc}{section}{Biographies}%
  3856. \global\@IEEEbiographyTOCentrynotmadefalse%
  3857. \fi%
  3858. % one more biography
  3859. \refstepcounter{IEEEbiography}%
  3860. % Make an entry for this name into the table of contents
  3861. \addcontentsline{toc}{subsection}{#1}%
  3862. \normalfont\@IEEEcompsoconly{\sffamily}\footnotesize\interlinepenalty500%
  3863. \vskip 4\baselineskip plus 1fil minus 0\baselineskip%
  3864. \parskip=0pt\par%
  3865. \noindent\textbf{#1\ }\@IEEEgobbleleadPARNLSP}{\relax\par\normalfont}
  3866. % provide the user with some old font commands
  3867. % got this from article.cls
  3868. \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
  3869. \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
  3870. \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
  3871. \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
  3872. \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
  3873. \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
  3874. \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
  3875. \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
  3876. \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
  3877. % SPECIAL PAPER NOTICE COMMANDS
  3878. %
  3879. % holds the special notice text
  3880. \def\@IEEEspecialpapernotice{\relax}
  3881. % for special papers, like invited papers, the user can do:
  3882. % \IEEEspecialpapernotice{(Invited Paper)} before \maketitle
  3883. \def\IEEEspecialpapernotice#1{\ifCLASSOPTIONconference%
  3884. \def\@IEEEspecialpapernotice{{\sublargesize\textit{#1}\vspace*{1em}}}%
  3885. \else%
  3886. \def\@IEEEspecialpapernotice{{\\*[1.5ex]\sublargesize\textit{#1}}\vspace*{-2ex}}%
  3887. \fi}
  3888. % PUBLISHER ID COMMANDS
  3889. % to insert a publisher's ID footer
  3890. % V1.6 \IEEEpubid has been changed so that the change in page size and style
  3891. % occurs in \maketitle. \IEEEpubid must now be issued prior to \maketitle
  3892. % use \IEEEpubidadjcol as before - in the second column of the title page
  3893. % These changes allow \maketitle to take the reduced page height into
  3894. % consideration when dynamically setting the space between the author
  3895. % names and the maintext.
  3896. %
  3897. % the amount the main text is pulled up to make room for the
  3898. % publisher's ID footer
  3899. % IEEE uses about 1.3\baselineskip for journals,
  3900. % dynamic title spacing will clean up the fraction
  3901. \def\@IEEEpubidpullup{1.3\baselineskip}
  3902. \ifCLASSOPTIONtechnote
  3903. % for technotes it must be an integer of baselineskip as there can be no
  3904. % dynamic title spacing for two column mode technotes (the title is in the
  3905. % in first column) and we should maintain an integer number of lines in the
  3906. % second column
  3907. % There are some examples (such as older issues of "Transactions on
  3908. % Information Theory") in which IEEE really pulls the text off the ID for
  3909. % technotes - about 0.55in (or 4\baselineskip). We'll use 2\baselineskip
  3910. % and call it even.
  3911. \def\@IEEEpubidpullup{2\baselineskip}
  3912. \fi
  3913. % V1.7 compsoc does not use a pullup
  3914. \ifCLASSOPTIONcompsoc
  3915. \def\@IEEEpubidpullup{0pt}
  3916. \fi
  3917. % holds the ID text
  3918. \def\@IEEEpubid{\relax}
  3919. % flag so \maketitle can tell if \IEEEpubid was called
  3920. \newif\if@IEEEusingpubid
  3921. \global\@IEEEusingpubidfalse
  3922. % issue this command in the page to have the ID at the bottom
  3923. % V1.6 use before \maketitle
  3924. \def\IEEEpubid#1{\def\@IEEEpubid{#1}\global\@IEEEusingpubidtrue}
  3925. % command which will pull up (shorten) the column it is executed in
  3926. % to make room for the publisher ID. Place in the second column of
  3927. % the title page when using \IEEEpubid
  3928. % Is smart enough not to do anything when in single column text or
  3929. % if the user hasn't called \IEEEpubid
  3930. % currently needed in for the second column of a page with the
  3931. % publisher ID. If not needed in future releases, please provide this
  3932. % command and define it as \relax for backward compatibility
  3933. % v1.6b do not allow command to operate if the peer review option has been
  3934. % selected because \IEEEpubidadjcol will not be on the cover page.
  3935. % V1.7 do nothing if compsoc
  3936. \def\IEEEpubidadjcol{\ifCLASSOPTIONcompsoc\else\ifCLASSOPTIONpeerreview\else
  3937. \if@twocolumn\if@IEEEusingpubid\enlargethispage{-\@IEEEpubidpullup}\fi\fi\fi\fi}
  3938. % Special thanks to Peter Wilson, Daniel Luecking, and the other
  3939. % gurus at comp.text.tex, for helping me to understand how best to
  3940. % implement the IEEEpubid command in LaTeX.
  3941. %% Lockout some commands under various conditions
  3942. % general purpose bit bucket
  3943. \newsavebox{\@IEEEtranrubishbin}
  3944. % flags to prevent multiple warning messages
  3945. \newif\if@IEEEWARNthanks
  3946. \newif\if@IEEEWARNIEEEPARstart
  3947. \newif\if@IEEEWARNIEEEbiography
  3948. \newif\if@IEEEWARNIEEEbiographynophoto
  3949. \newif\if@IEEEWARNIEEEpubid
  3950. \newif\if@IEEEWARNIEEEpubidadjcol
  3951. \newif\if@IEEEWARNIEEEmembership
  3952. \newif\if@IEEEWARNIEEEaftertitletext
  3953. \@IEEEWARNthankstrue
  3954. \@IEEEWARNIEEEPARstarttrue
  3955. \@IEEEWARNIEEEbiographytrue
  3956. \@IEEEWARNIEEEbiographynophototrue
  3957. \@IEEEWARNIEEEpubidtrue
  3958. \@IEEEWARNIEEEpubidadjcoltrue
  3959. \@IEEEWARNIEEEmembershiptrue
  3960. \@IEEEWARNIEEEaftertitletexttrue
  3961. %% Lockout some commands when in various modes, but allow them to be restored if needed
  3962. %%
  3963. % save commands which might be locked out
  3964. % so that the user can later restore them if needed
  3965. \let\@IEEESAVECMDthanks\thanks
  3966. \let\@IEEESAVECMDIEEEPARstart\IEEEPARstart
  3967. \let\@IEEESAVECMDIEEEbiography\IEEEbiography
  3968. \let\@IEEESAVECMDendIEEEbiography\endIEEEbiography
  3969. \let\@IEEESAVECMDIEEEbiographynophoto\IEEEbiographynophoto
  3970. \let\@IEEESAVECMDendIEEEbiographynophoto\endIEEEbiographynophoto
  3971. \let\@IEEESAVECMDIEEEpubid\IEEEpubid
  3972. \let\@IEEESAVECMDIEEEpubidadjcol\IEEEpubidadjcol
  3973. \let\@IEEESAVECMDIEEEmembership\IEEEmembership
  3974. \let\@IEEESAVECMDIEEEaftertitletext\IEEEaftertitletext
  3975. % disable \IEEEPARstart when in draft mode
  3976. % This may have originally been done because the pre-V1.6 drop letter
  3977. % algorithm had problems with a non-unity baselinestretch
  3978. % At any rate, it seems too formal to have a drop letter in a draft
  3979. % paper.
  3980. \ifCLASSOPTIONdraftcls
  3981. \def\IEEEPARstart#1#2{#1#2\if@IEEEWARNIEEEPARstart\typeout{** ATTENTION: \noexpand\IEEEPARstart
  3982. is disabled in draft mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEPARstartfalse}
  3983. \fi
  3984. % and for technotes
  3985. \ifCLASSOPTIONtechnote
  3986. \def\IEEEPARstart#1#2{#1#2\if@IEEEWARNIEEEPARstart\typeout{** WARNING: \noexpand\IEEEPARstart
  3987. is locked out for technotes (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEPARstartfalse}
  3988. \fi
  3989. % lockout unneeded commands when in conference mode
  3990. \ifCLASSOPTIONconference
  3991. % when locked out, \thanks, \IEEEbiography, \IEEEbiographynophoto, \IEEEpubid,
  3992. % \IEEEmembership and \IEEEaftertitletext will all swallow their given text.
  3993. % \IEEEPARstart will output a normal character instead
  3994. % warn the user about these commands only once to prevent the console screen
  3995. % from filling up with redundant messages
  3996. \def\thanks#1{\if@IEEEWARNthanks\typeout{** WARNING: \noexpand\thanks
  3997. is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNthanksfalse}
  3998. \def\IEEEPARstart#1#2{#1#2\if@IEEEWARNIEEEPARstart\typeout{** WARNING: \noexpand\IEEEPARstart
  3999. is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEPARstartfalse}
  4000. % LaTeX treats environments and commands with optional arguments differently.
  4001. % the actual ("internal") command is stored as \\commandname
  4002. % (accessed via \csname\string\commandname\endcsname )
  4003. % the "external" command \commandname is a macro with code to determine
  4004. % whether or not the optional argument is presented and to provide the
  4005. % default if it is absent. So, in order to save and restore such a command
  4006. % we would have to save and restore \\commandname as well. But, if LaTeX
  4007. % ever changes the way it names the internal names, the trick would break.
  4008. % Instead let us just define a new environment so that the internal
  4009. % name can be left undisturbed.
  4010. \newenvironment{@IEEEbogusbiography}[2][]{\if@IEEEWARNIEEEbiography\typeout{** WARNING: \noexpand\IEEEbiography
  4011. is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEbiographyfalse%
  4012. \setbox\@IEEEtranrubishbin\vbox\bgroup}{\egroup\relax}
  4013. % and make biography point to our bogus biography
  4014. \let\IEEEbiography=\@IEEEbogusbiography
  4015. \let\endIEEEbiography=\end@IEEEbogusbiography
  4016. \renewenvironment{IEEEbiographynophoto}[1]{\if@IEEEWARNIEEEbiographynophoto\typeout{** WARNING: \noexpand\IEEEbiographynophoto
  4017. is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEbiographynophotofalse%
  4018. \setbox\@IEEEtranrubishbin\vbox\bgroup}{\egroup\relax}
  4019. \def\IEEEpubid#1{\if@IEEEWARNIEEEpubid\typeout{** WARNING: \noexpand\IEEEpubid
  4020. is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEpubidfalse}
  4021. \def\IEEEpubidadjcol{\if@IEEEWARNIEEEpubidadjcol\typeout{** WARNING: \noexpand\IEEEpubidadjcol
  4022. is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEpubidadjcolfalse}
  4023. \def\IEEEmembership#1{\if@IEEEWARNIEEEmembership\typeout{** WARNING: \noexpand\IEEEmembership
  4024. is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEmembershipfalse}
  4025. \def\IEEEaftertitletext#1{\if@IEEEWARNIEEEaftertitletext\typeout{** WARNING: \noexpand\IEEEaftertitletext
  4026. is locked out when in conference mode (line \the\inputlineno).}\fi\global\@IEEEWARNIEEEaftertitletextfalse}
  4027. \fi
  4028. % provide a way to restore the commands that are locked out
  4029. \def\IEEEoverridecommandlockouts{%
  4030. \typeout{** ATTENTION: Overriding command lockouts (line \the\inputlineno).}%
  4031. \let\thanks\@IEEESAVECMDthanks%
  4032. \let\IEEEPARstart\@IEEESAVECMDIEEEPARstart%
  4033. \let\IEEEbiography\@IEEESAVECMDIEEEbiography%
  4034. \let\endIEEEbiography\@IEEESAVECMDendIEEEbiography%
  4035. \let\IEEEbiographynophoto\@IEEESAVECMDIEEEbiographynophoto%
  4036. \let\endIEEEbiographynophoto\@IEEESAVECMDendIEEEbiographynophoto%
  4037. \let\IEEEpubid\@IEEESAVECMDIEEEpubid%
  4038. \let\IEEEpubidadjcol\@IEEESAVECMDIEEEpubidadjcol%
  4039. \let\IEEEmembership\@IEEESAVECMDIEEEmembership%
  4040. \let\IEEEaftertitletext\@IEEESAVECMDIEEEaftertitletext}
  4041. % need a backslash character for typeout output
  4042. {\catcode`\|=0 \catcode`\\=12
  4043. |xdef|@IEEEbackslash{\}}
  4044. % hook to allow easy disabling of all legacy warnings
  4045. \def\@IEEElegacywarn#1#2{\typeout{** ATTENTION: \@IEEEbackslash #1 is deprecated (line \the\inputlineno).
  4046. Use \@IEEEbackslash #2 instead.}}
  4047. % provide for legacy commands
  4048. \def\authorblockA{\@IEEElegacywarn{authorblockA}{IEEEauthorblockA}\IEEEauthorblockA}
  4049. \def\authorblockN{\@IEEElegacywarn{authorblockN}{IEEEauthorblockN}\IEEEauthorblockN}
  4050. \def\authorrefmark{\@IEEElegacywarn{authorrefmark}{IEEEauthorrefmark}\IEEEauthorrefmark}
  4051. \def\PARstart{\@IEEElegacywarn{PARstart}{IEEEPARstart}\IEEEPARstart}
  4052. \def\pubid{\@IEEElegacywarn{pubid}{IEEEpubid}\IEEEpubid}
  4053. \def\pubidadjcol{\@IEEElegacywarn{pubidadjcol}{IEEEpubidadjcol}\IEEEpubidadjcol}
  4054. \def\QED{\@IEEElegacywarn{QED}{IEEEQED}\IEEEQED}
  4055. \def\QEDclosed{\@IEEElegacywarn{QEDclosed}{IEEEQEDclosed}\IEEEQEDclosed}
  4056. \def\QEDopen{\@IEEElegacywarn{QEDopen}{IEEEQEDopen}\IEEEQEDopen}
  4057. \def\specialpapernotice{\@IEEElegacywarn{specialpapernotice}{IEEEspecialpapernotice}\IEEEspecialpapernotice}
  4058. % provide for legacy environments
  4059. \def\biography{\@IEEElegacywarn{biography}{IEEEbiography}\IEEEbiography}
  4060. \def\biographynophoto{\@IEEElegacywarn{biographynophoto}{IEEEbiographynophoto}\IEEEbiographynophoto}
  4061. \def\keywords{\@IEEElegacywarn{keywords}{IEEEkeywords}\IEEEkeywords}
  4062. \def\endbiography{\endIEEEbiography}
  4063. \def\endbiographynophoto{\endIEEEbiographynophoto}
  4064. \def\endkeywords{\endIEEEkeywords}
  4065. % provide for legacy IED commands/lengths when possible
  4066. \let\labelindent\IEEElabelindent
  4067. \def\calcleftmargin{\@IEEElegacywarn{calcleftmargin}{IEEEcalcleftmargin}\IEEEcalcleftmargin}
  4068. \def\setlabelwidth{\@IEEElegacywarn{setlabelwidth}{IEEEsetlabelwidth}\IEEEsetlabelwidth}
  4069. \def\usemathlabelsep{\@IEEElegacywarn{usemathlabelsep}{IEEEusemathlabelsep}\IEEEusemathlabelsep}
  4070. \def\iedlabeljustifyc{\@IEEElegacywarn{iedlabeljustifyc}{IEEEiedlabeljustifyc}\IEEEiedlabeljustifyc}
  4071. \def\iedlabeljustifyl{\@IEEElegacywarn{iedlabeljustifyl}{IEEEiedlabeljustifyl}\IEEEiedlabeljustifyl}
  4072. \def\iedlabeljustifyr{\@IEEElegacywarn{iedlabeljustifyr}{IEEEiedlabeljustifyr}\IEEEiedlabeljustifyr}
  4073. % let \proof use the IEEEtran version even after amsthm is loaded
  4074. % \proof is now deprecated in favor of \IEEEproof
  4075. \AtBeginDocument{\def\proof{\@IEEElegacywarn{proof}{IEEEproof}\IEEEproof}\def\endproof{\endIEEEproof}}
  4076. % V1.7 \overrideIEEEmargins is no longer supported.
  4077. \def\overrideIEEEmargins{%
  4078. \typeout{** WARNING: \string\overrideIEEEmargins \space no longer supported (line \the\inputlineno).}%
  4079. \typeout{** Use the \string\CLASSINPUTinnersidemargin, \string\CLASSINPUToutersidemargin \space controls instead.}}
  4080. \endinput
  4081. %%%%%%%%%%%%%%%%%%%%%%%%%%%%% End of IEEEtran.cls %%%%%%%%%%%%%%%%%%%%%%%%%%%%
  4082. % That's all folks!