source: caseStudy_Huffmann/oldtran/bare_adv.tex @ 26

Last change on this file since 26 was 24, checked in by cecile, 13 years ago

plan du case study

  • Property svn:executable set to *
File size: 45.6 KB
Line 
1
2%% bare_adv.tex
3%% V1.3
4%% 2007/01/11
5%% by Michael Shell
6%% See:
7%% http://www.michaelshell.org/
8%% for current contact information.
9%%
10%% This is a skeleton file demonstrating the advanced use of IEEEtran.cls
11%% (requires IEEEtran.cls version 1.7 or later) with an IEEE Computer
12%% Society journal paper.
13%%
14%% Support sites:
15%% http://www.michaelshell.org/tex/ieeetran/
16%% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/
17%% and
18%% http://www.ieee.org/
19
20%%*************************************************************************
21%% Legal Notice:
22%% This code is offered as-is without any warranty either expressed or
23%% implied; without even the implied warranty of MERCHANTABILITY or
24%% FITNESS FOR A PARTICULAR PURPOSE!
25%% User assumes all risk.
26%% In no event shall IEEE or any contributor to this code be liable for
27%% any damages or losses, including, but not limited to, incidental,
28%% consequential, or any other damages, resulting from the use or misuse
29%% of any information contained here.
30%%
31%% All comments are the opinions of their respective authors and are not
32%% necessarily endorsed by the IEEE.
33%%
34%% This work is distributed under the LaTeX Project Public License (LPPL)
35%% ( http://www.latex-project.org/ ) version 1.3, and may be freely used,
36%% distributed and modified. A copy of the LPPL, version 1.3, is included
37%% in the base LaTeX documentation of all distributions of LaTeX released
38%% 2003/12/01 or later.
39%% Retain all contribution notices and credits.
40%% ** Modified files should be clearly indicated as such, including  **
41%% ** renaming them and changing author support contact information. **
42%%
43%% File list of work: IEEEtran.cls, IEEEtran_HOWTO.pdf, bare_adv.tex,
44%%                    bare_conf.tex, bare_jrnl.tex, bare_jrnl_compsoc.tex
45%%*************************************************************************
46
47% *** Authors should verify (and, if needed, correct) their LaTeX system  ***
48% *** with the testflow diagnostic prior to trusting their LaTeX platform ***
49% *** with production work. IEEE's font choices can trigger bugs that do  ***
50% *** not appear when using other class files.                            ***
51% The testflow support page is at:
52% http://www.michaelshell.org/tex/testflow/
53
54
55
56% IEEEtran V1.7 and later provides for these CLASSINPUT macros to allow the
57% user to reprogram some IEEEtran.cls defaults if needed. These settings
58% override the internal defaults of IEEEtran.cls regardless of which class
59% options are used. Do not use these unless you have good reason to do so as
60% they can result in nonIEEE compliant documents. User beware. ;)
61%
62%\newcommand{\CLASSINPUTbaselinestretch}{1.0} % baselinestretch
63%\newcommand{\CLASSINPUTinnersidemargin}{1in} % inner side margin
64%\newcommand{\CLASSINPUToutersidemargin}{1in} % outer side margin
65%\newcommand{\CLASSINPUTtoptextmargin}{1in}   % top text margin
66%\newcommand{\CLASSINPUTbottomtextmargin}{1in}% bottom text margin
67
68
69
70% Note that the a4paper option is mainly intended so that authors in
71% countries using A4 can easily print to A4 and see how their papers will
72% look in print - the typesetting of the document will not typically be
73% affected with changes in paper size (but the bottom and side margins will).
74% Use the testflow package mentioned above to verify correct handling of
75% both paper sizes by the user's LaTeX system.
76%
77% Also note that the "draftcls" or "draftclsnofoot", not "draft", option
78% should be used if it is desired that the figures are to be displayed in
79% draft mode.
80%
81\documentclass[12pt,journal,compsoc]{IEEEtran}
82% The Computer Society requires 12pt.
83% If IEEEtran.cls has not been installed into the LaTeX system files,
84% manually specify the path to it like:
85% \documentclass[10pt,journal,compsoc]{../sty/IEEEtran}
86
87
88% For Computer Society journals, IEEEtran defaults to the use of
89% Palatino/Palladio as is done in IEEE Computer Society journals.
90% To go back to Times Roman, you can use this code:
91%\renewcommand{\rmdefault}{ptm}\selectfont
92
93
94
95
96
97% Some very useful LaTeX packages include:
98% (uncomment the ones you want to load)
99
100
101
102% *** MISC UTILITY PACKAGES ***
103%
104%\usepackage{ifpdf}
105% Heiko Oberdiek's ifpdf.sty is very useful if you need conditional
106% compilation based on whether the output is pdf or dvi.
107% usage:
108% \ifpdf
109%   % pdf code
110% \else
111%   % dvi code
112% \fi
113% The latest version of ifpdf.sty can be obtained from:
114% http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/
115% Also, note that IEEEtran.cls V1.7 and later provides a builtin
116% \ifCLASSINFOpdf conditional that works the same way.
117% When switching from latex to pdflatex and vice-versa, the compiler may
118% have to be run twice to clear warning/error messages.
119
120
121
122
123
124
125% *** CITATION PACKAGES ***
126%
127\ifCLASSOPTIONcompsoc
128  % IEEE Computer Society needs nocompress option
129  % requires cite.sty v4.0 or later (November 2003)
130  % \usepackage[nocompress]{cite}
131\else
132  % normal IEEE
133  % \usepackage{cite}
134\fi
135% cite.sty was written by Donald Arseneau
136% V1.6 and later of IEEEtran pre-defines the format of the cite.sty package
137% \cite{} output to follow that of IEEE. Loading the cite package will
138% result in citation numbers being automatically sorted and properly
139% "compressed/ranged". e.g., [1], [9], [2], [7], [5], [6] without using
140% cite.sty will become [1], [2], [5]--[7], [9] using cite.sty. cite.sty's
141% \cite will automatically add leading space, if needed. Use cite.sty's
142% noadjust option (cite.sty V3.8 and later) if you want to turn this off.
143% cite.sty is already installed on most LaTeX systems. Be sure and use
144% version 4.0 (2003-05-27) and later if using hyperref.sty. cite.sty does
145% not currently provide for hyperlinked citations.
146% The latest version can be obtained at:
147% http://www.ctan.org/tex-archive/macros/latex/contrib/cite/
148% The documentation is contained in the cite.sty file itself.
149%
150% Note that some packages require special options to format as the Computer
151% Society requires. In particular, Computer Society  papers do not use
152% compressed citation ranges as is done in typical IEEE papers
153% (e.g., [1]-[4]). Instead, they list every citation separately in order
154% (e.g., [1], [2], [3], [4]). To get the latter we need to load the cite
155% package with the nocompress option which is supported by cite.sty v4.0
156% and later. Note also the use of a CLASSOPTION conditional provided by
157% IEEEtran.cls V1.7 and later.
158
159
160
161
162
163% *** GRAPHICS RELATED PACKAGES ***
164%
165\ifCLASSINFOpdf
166  % \usepackage[pdftex]{graphicx}
167  % declare the path(s) where your graphic files are
168  % \graphicspath{{../pdf/}{../jpeg/}}
169  % and their extensions so you won't have to specify these with
170  % every instance of \includegraphics
171  % \DeclareGraphicsExtensions{.pdf,.jpeg,.png}
172\else
173  % or other class option (dvipsone, dvipdf, if not using dvips). graphicx
174  % will default to the driver specified in the system graphics.cfg if no
175  % driver is specified.
176  % \usepackage[dvips]{graphicx}
177  % declare the path(s) where your graphic files are
178  % \graphicspath{{../eps/}}
179  % and their extensions so you won't have to specify these with
180  % every instance of \includegraphics
181  % \DeclareGraphicsExtensions{.eps}
182\fi
183% graphicx was written by David Carlisle and Sebastian Rahtz. It is
184% required if you want graphics, photos, etc. graphicx.sty is already
185% installed on most LaTeX systems. The latest version and documentation can
186% be obtained at:
187% http://www.ctan.org/tex-archive/macros/latex/required/graphics/
188% Another good source of documentation is "Using Imported Graphics in
189% LaTeX2e" by Keith Reckdahl which can be found as epslatex.ps or
190% epslatex.pdf at: http://www.ctan.org/tex-archive/info/
191%
192% latex, and pdflatex in dvi mode, support graphics in encapsulated
193% postscript (.eps) format. pdflatex in pdf mode supports graphics
194% in .pdf, .jpeg, .png and .mps (metapost) formats. Users should ensure
195% that all non-photo figures use a vector format (.eps, .pdf, .mps) and
196% not a bitmapped formats (.jpeg, .png). IEEE frowns on bitmapped formats
197% which can result in "jaggedy"/blurry rendering of lines and letters as
198% well as large increases in file sizes.
199%
200% You can find documentation about the pdfTeX application at:
201% http://www.tug.org/applications/pdftex
202
203
204
205%\usepackage{ps4pdf}
206% dvi->ps workflow is required to use such packages as psfrag.sty and
207% pstricks.sty. However, Rolf Niepraschk's ps4pdf.sty provides a way to
208% apply psfrag/pstricks effects to .eps figures and then get the resultant
209% figures in .pdf form. Thus, providing an easier way for migrating from
210% .eps to .pdf figures. After ps4pdf.sty loads, if:
211% 1. producing .dvi output: the output file will consist ONLY of the
212%    figures (or other constructs encased within \PSforPDF commands)
213% 2. producing .pdf output: pdflatex will look in the filename-pics.pdf
214%    file, where filename is the basename of the tex document, for the
215%    graphics (or other constructs encased within \PSforPDF commands).
216%    NOTE: If you ever change your figures, you must remember to remake
217%    the filename-pics.pdf file.
218%
219% This way you can do a:
220%
221% latex filename
222% dvips -Ppdf -o filename-pics.ps filename.dvi
223% ps2pdf filename-pics.ps filename-pics.pdf
224%
225% to produce a filename-pics.pdf graphics container that contains
226% .pdf versions of the graphics with psfrag, pstricks, etc. features.
227% Note that you will not typically be able to view the figures in
228% filename-pics.ps because of an offset. However, you will be able to
229% view them in filename-pics.pdf. Also, note that when ps4pdf is in effect
230% with .dvi output, you may get harmless over/under full box warnings -
231% ignore them.
232% Then, run pdflatex:
233%
234% pdflatex filename
235%
236% to use pdflatex to make PDF output, automatically using the figures in
237% filename-pics.pdf. Alternatively, you could use dvips -i option to
238% obtain separate .pdf files for each figure:
239%
240% dvips -Ppdf -i -E -o fig filename
241%
242% then convert each figure to pdf via a command such as epstopdf and then
243% use pdflatex with these pdf figures and then to dispense with ps4pdf.
244%
245% Remember to rerun through latex/dvips/ps2pdf if you ever change your
246% figures so that filename-pics.pdf gets updated.
247% ps4pdf requires David Kastrup's preview-latex and a recent LaTeX system
248% (circa 2001 or later). The ps4pdf package and documentation can be
249% obtained at: http://www.ctan.org/tex-archive/macros/latex/contrib/ps4pdf/
250% The preview-latex package and documentation can be obtained at:
251% http://www.ctan.org/tex-archive/macros/latex/contrib/preview/
252%
253% provide a bogus \PSforPDF, even when not loading pd4pdf. This way we can
254% stop loading ps4pdf.sty if we choose to make separate .pdf versions of
255% each of our figures.
256\providecommand{\PSforPDF}[1]{#1}
257% Note that in order for ps4pdf to work, all commands related to psfrag,
258% pstricks, etc. must be called within the PSforPDF command. This applies
259% even when *loading* via \usepackage psfrag.sty, etc.
260
261
262%\PSforPDF{\usepackage{psfrag}}
263% psfrag.sty was written by Craig Barratt, Michael C. Grant, and
264% David Carlisle. It allows you to substitute LaTeX commands for text in
265% imported EPS graphic files. In this way, LaTeX symbols can be placed into
266% graphics that have been generated by other applications. You must use
267% latex->dvips->ps2pdf workflow (not direct pdf output from pdflatex) if
268% you wish to use this capability because it works via some PostScript
269% tricks. Alternatively, the graphics could be processed as separate files
270% via psfrag and dvips, then converted to PDF for inclusion in the main file
271% which uses pdflatex. ps4pdf.sty (above) provides a way of doing this all
272% at once within the main file.
273% Docs are in "The PSfrag System" by Michael C. Grant and David Carlisle.
274% There is also some information about using psfrag in "Using Imported
275% Graphics in LaTeX2e" by Keith Reckdahl which documents the graphicx
276% package (see above). The psfrag package and documentation can be obtained
277% at: http://www.ctan.org/tex-archive/macros/latex/contrib/psfrag/
278%
279% Note that the current version of psfrag does not "turn itself off" when
280% running under pdf output. This will result in a harmless warning
281% about a non-PDF \special. However, to silence this, a bogus psfrag
282% command can be provided instead of loading psfrag.sty when PDF output
283% is being used. Thus, a more complex alternative conditional loading scheme
284% can be employed instead of the straightforword way above:
285%
286%\ifCLASSINFOpdf
287% if outputting PDF, do not use or load psfrag.sty as current versions
288% output a non-PDF special that generates a harmless, but annoying warning.
289% Instead, we provide a bogus \psfrag command that does nothing with
290% its arguments. This is a tad tricky because \psfrag can have up to six
291% arguments four of which are optional: \psfrag{}[][][][]{}
292% Code based on that in psfrag.sty
293%\makeatletter
294%\def\psfrag{\@ifstar{\@BOGUSpsfraga}{\@BOGUSpsfraga}}
295%\def\@BOGUSpsfraga{\begingroup
296%   \@makeother\"\@makeother\*\@makeother\!\@makeother\~%
297%   \@makeother\:\@makeother\\\@makeother\%\@makeother\#%
298%   \@makeother\ \@BOGUSpsfragb}
299%\def\@BOGUSpsfragb#1{\endgroup
300%                \@ifnextchar [{\@BOGUSpsfragc}%
301%                              {\@BOGUSpsfrag}}
302%\def\@BOGUSpsfragc[#1]{\@ifnextchar [{\@BOGUSpsfragd}%
303%                                     {\@BOGUSpsfrag}}
304%\def\@BOGUSpsfragd[#1]{\@ifnextchar [{\@BOGUSpsfrage}%
305%                                     {\@BOGUSpsfrag}}
306%\def\@BOGUSpsfrage[#1]{\@ifnextchar [{\@BOGUSpsfragf}%
307%                                     {\@BOGUSpsfrag}}
308%\def\@BOGUSpsfragf[#1]{\@BOGUSpsfrag}
309%\def\@BOGUSpsfrag#1{\ignorespaces}
310%\makeatother
311%\else
312% using dvi output, load psfrag, but funnel it through PSforPDF
313% as required by ps4pdf.sty
314%\PSforPDF{\usepackage{psfrag}}
315%\fi
316
317
318
319
320
321% *** MATH PACKAGES ***
322%
323%\usepackage[cmex10]{amsmath}
324% A popular package from the American Mathematical Society that provides
325% many useful and powerful commands for dealing with mathematics. If using
326% it, be sure to load this package with the cmex10 option to ensure that
327% only type 1 fonts will utilized at all point sizes. Without this option,
328% it is possible that some math symbols, particularly those within
329% footnotes, will be rendered in bitmap form which will result in a
330% document that can not be IEEE Xplore compliant!
331%
332% Also, note that the amsmath package sets \interdisplaylinepenalty to 10000
333% thus preventing page breaks from occurring within multiline equations. Use:
334%\interdisplaylinepenalty=2500
335% after loading amsmath to restore such page breaks as IEEEtran.cls normally
336% does. amsmath.sty is already installed on most LaTeX systems. The latest
337% version and documentation can be obtained at:
338% http://www.ctan.org/tex-archive/macros/latex/required/amslatex/math/
339
340
341
342
343
344% *** SPECIALIZED LIST PACKAGES ***
345%\usepackage{acronym}
346% acronym.sty was written by Tobias Oetiker. This package provides tools for
347% managing documents with large numbers of acronyms. (You don't *have* to
348% use this package - unless you have a lot of acronyms, you may feel that
349% such package management of them is bit of an overkill.)
350% Do note that the acronym environment (which lists acronyms) will have a
351% problem when used under IEEEtran.cls because acronym.sty relies on the
352% description list environment - which IEEEtran.cls has customized for
353% producing IEEE style lists. A workaround is to declared the longest
354% label width via the IEEEtran.cls \IEEEiedlistdecl global control:
355%
356% \renewcommand{\IEEEiedlistdecl}{\IEEEsetlabelwidth{SONET}}
357% \begin{acronym}
358%
359% \end{acronym}
360% \renewcommand{\IEEEiedlistdecl}{\relax}% remember to reset \IEEEiedlistdecl
361%
362% instead of using the acronym environment's optional argument.
363% The latest version and documentation can be obtained at:
364% http://www.ctan.org/tex-archive/macros/latex/contrib/acronym/
365
366
367%\usepackage{algorithmic}
368% algorithmic.sty was written by Peter Williams and Rogerio Brito.
369% This package provides an algorithmic environment fo describing algorithms.
370% You can use the algorithmic environment in-text or within a figure
371% environment to provide for a floating algorithm. Do NOT use the algorithm
372% floating environment provided by algorithm.sty (by the same authors) or
373% algorithm2e.sty (by Christophe Fiorio) as IEEE does not use dedicated
374% algorithm float types and packages that provide these will not provide
375% correct IEEE style captions. The latest version and documentation of
376% algorithmic.sty can be obtained at:
377% http://www.ctan.org/tex-archive/macros/latex/contrib/algorithms/
378% There is also a support site at:
379% http://algorithms.berlios.de/index.html
380% Also of interest may be the (relatively newer and more customizable)
381% algorithmicx.sty package by Szasz Janos:
382% http://www.ctan.org/tex-archive/macros/latex/contrib/algorithmicx/
383
384
385
386
387% *** ALIGNMENT PACKAGES ***
388%
389%\usepackage{array}
390% Frank Mittelbach's and David Carlisle's array.sty patches and improves
391% the standard LaTeX2e array and tabular environments to provide better
392% appearance and additional user controls. As the default LaTeX2e table
393% generation code is lacking to the point of almost being broken with
394% respect to the quality of the end results, all users are strongly
395% advised to use an enhanced (at the very least that provided by array.sty)
396% set of table tools. array.sty is already installed on most systems. The
397% latest version and documentation can be obtained at:
398% http://www.ctan.org/tex-archive/macros/latex/required/tools/
399
400
401%\usepackage{mdwmath}
402%\usepackage{mdwtab}
403% Also highly recommended is Mark Wooding's extremely powerful MDW tools,
404% especially mdwmath.sty and mdwtab.sty which are used to format equations
405% and tables, respectively. The MDWtools set is already installed on most
406% LaTeX systems. The lastest version and documentation is available at:
407% http://www.ctan.org/tex-archive/macros/latex/contrib/mdwtools/
408
409
410% IEEEtran contains the IEEEeqnarray family of commands that can be used to
411% generate multiline equations as well as matrices, tables, etc., of high
412% quality.
413
414
415%\usepackage{eqparbox}
416% Also of notable interest is Scott Pakin's eqparbox package for creating
417% (automatically sized) equal width boxes - aka "natural width parboxes".
418% Available at:
419% http://www.ctan.org/tex-archive/macros/latex/contrib/eqparbox/
420
421
422
423
424
425% *** SUBFIGURE PACKAGES ***
426%\ifCLASSOPTIONcompsoc
427%\usepackage[tight,normalsize,sf,SF]{subfigure}
428%\else
429%\usepackage[tight,footnotesize]{subfigure}
430%\fi
431% subfigure.sty was written by Steven Douglas Cochran. This package makes it
432% easy to put subfigures in your figures. e.g., "Figure 1a and 1b". For IEEE
433% work, it is a good idea to load it with the tight package option to reduce
434% the amount of white space around the subfigures. Computer Society papers
435% use a larger font and \sffamily font for their captions, hence the
436% additional options needed under compsoc mode. subfigure.sty is already
437% installed on most LaTeX systems. The latest version and documentation can
438% be obtained at:
439% http://www.ctan.org/tex-archive/obsolete/macros/latex/contrib/subfigure/
440% subfigure.sty has been superceeded by subfig.sty.
441
442
443%\ifCLASSOPTIONcompsoc
444%  \usepackage[caption=false]{caption}
445%  \usepackage[font=normalsize,labelfont=sf,textfont=sf]{subfig}
446%\else
447%  \usepackage[caption=false]{caption}
448%  \usepackage[font=footnotesize]{subfig}
449%\fi
450% subfig.sty, also written by Steven Douglas Cochran, is the modern
451% replacement for subfigure.sty. However, subfig.sty requires and
452% automatically loads Axel Sommerfeldt's caption.sty which will override
453% IEEEtran.cls handling of captions and this will result in nonIEEE style
454% figure/table captions. To prevent this problem, be sure and preload
455% caption.sty with its "caption=false" package option. This is will preserve
456% IEEEtran.cls handing of captions. Version 1.3 (2005/06/28) and later
457% (recommended due to many improvements over 1.2) of subfig.sty supports
458% the caption=false option directly:
459%\ifCLASSOPTIONcompsoc
460%  \usepackage[caption=false,font=normalsize,labelfont=sf,textfont=sf]{subfig}
461%\else
462%  \usepackage[caption=false,font=footnotesize]{subfig}
463%\fi
464%
465% The latest version and documentation can be obtained at:
466% http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/
467% The latest version and documentation of caption.sty can be obtained at:
468% http://www.ctan.org/tex-archive/macros/latex/contrib/caption/
469
470
471
472
473% *** FLOAT PACKAGES ***
474%
475%\usepackage{fixltx2e}
476% fixltx2e, the successor to the earlier fix2col.sty, was written by
477% Frank Mittelbach and David Carlisle. This package corrects a few problems
478% in the LaTeX2e kernel, the most notable of which is that in current
479% LaTeX2e releases, the ordering of single and double column floats is not
480% guaranteed to be preserved. Thus, an unpatched LaTeX2e can allow a
481% single column figure to be placed prior to an earlier double column
482% figure. The latest version and documentation can be found at:
483% http://www.ctan.org/tex-archive/macros/latex/base/
484
485
486%\usepackage{stfloats}
487% stfloats.sty was written by Sigitas Tolusis. This package gives LaTeX2e
488% the ability to do double column floats at the bottom of the page as well
489% as the top. (e.g., "\begin{figure*}[!b]" is not normally possible in
490% LaTeX2e). It also provides a command:
491%\fnbelowfloat
492% to enable the placement of footnotes below bottom floats (the standard
493% LaTeX2e kernel puts them above bottom floats). This is an invasive package
494% which rewrites many portions of the LaTeX2e float routines. It may not work
495% with other packages that modify the LaTeX2e float routines. The latest
496% version and documentation can be obtained at:
497% http://www.ctan.org/tex-archive/macros/latex/contrib/sttools/
498% Documentation is contained in the stfloats.sty comments as well as in the
499% presfull.pdf file. Do not use the stfloats baselinefloat ability as IEEE
500% does not allow \baselineskip to stretch. Authors submitting work to the
501% IEEE should note that IEEE rarely uses double column equations and
502% that authors should try to avoid such use. Do not be tempted to use the
503% cuted.sty or midfloat.sty packages (also by Sigitas Tolusis) as IEEE does
504% not format its papers in such ways.
505
506
507%\ifCLASSOPTIONcaptionsoff
508%  \usepackage[nomarkers]{endfloat}
509% \let\MYoriglatexcaption\caption
510% \renewcommand{\caption}[2][\relax]{\MYoriglatexcaption[#2]{#2}}
511%\fi
512% endfloat.sty was written by James Darrell McCauley and Jeff Goldberg.
513% This package may be useful when used in conjunction with IEEEtran.cls'
514% captionsoff option. Some IEEE journals/societies require that submissions
515% have lists of figures/tables at the end of the paper and that
516% figures/tables without any captions are placed on a page by themselves at
517% the end of the document. If needed, the draftcls IEEEtran class option or
518% \CLASSINPUTbaselinestretch interface can be used to increase the line
519% spacing as well. Be sure and use the nomarkers option of endfloat to
520% prevent endfloat from "marking" where the figures would have been placed
521% in the text. The two hack lines of code above are a slight modification of
522% that suggested by in the endfloat docs (section 8.3.1) to ensure that
523% the full captions always appear in the list of figures/tables - even if
524% the user used the short optional argument of \caption[]{}.
525% IEEE papers do not typically make use of \caption[]'s optional argument,
526% so this should not be an issue. A similar trick can be used to disable
527% captions of packages such as subfig.sty that lack options to turn off
528% the subcaptions:
529% For subfig.sty:
530% \let\MYorigsubfloat\subfloat
531% \renewcommand{\subfloat}[2][\relax]{\MYorigsubfloat[]{#2}}
532% For subfigure.sty:
533% \let\MYorigsubfigure\subfigure
534% \renewcommand{\subfigure}[2][\relax]{\MYorigsubfigure[]{#2}}
535% However, the above trick will not work if both optional arguments of
536% the \subfloat/subfig command are used. Furthermore, there needs to be a
537% description of each subfigure *somewhere* and endfloat does not add
538% subfigure captions to its list of figures. Thus, the best approach is to
539% avoid the use of subfigure captions (many IEEE journals avoid them anyway)
540% and instead reference/explain all the subfigures within the main caption.
541% The latest version of endfloat.sty and its documentation can obtained at:
542% http://www.ctan.org/tex-archive/macros/latex/contrib/endfloat/
543%
544% The IEEEtran \ifCLASSOPTIONcaptionsoff conditional can also be used
545% later in the document, say, to conditionally put the References on a
546% page by themselves.
547
548
549
550
551
552% *** PDF, URL AND HYPERLINK PACKAGES ***
553%
554%\usepackage{url}
555% url.sty was written by Donald Arseneau. It provides better support for
556% handling and breaking URLs. url.sty is already installed on most LaTeX
557% systems. The latest version can be obtained at:
558% http://www.ctan.org/tex-archive/macros/latex/contrib/misc/
559% Read the url.sty source comments for usage information. Basically,
560% \url{my_url_here}.
561
562
563% NOTE: PDF thumbnail features are not required in IEEE papers
564%       and their use requires extra complexity and work.
565%\ifCLASSINFOpdf
566%  \usepackage[pdftex]{thumbpdf}
567%\else
568%  \usepackage[dvips]{thumbpdf}
569%\fi
570% thumbpdf.sty and its companion Perl utility were written by Heiko Oberdiek.
571% It allows the user a way to produce PDF documents that contain fancy
572% thumbnail images of each of the pages (which tools like acrobat reader can
573% utilize). This is possible even when using dvi->ps->pdf workflow if the
574% correct thumbpdf driver options are used. thumbpdf.sty incorporates the
575% file containing the PDF thumbnail information (filename.tpm is used with
576% dvips, filename.tpt is used with pdftex, where filename is the base name of
577% your tex document) into the final ps or pdf output document. An external
578% utility, the thumbpdf *Perl script* is needed to make these .tpm or .tpt
579% thumbnail files from a .ps or .pdf version of the document (which obviously
580% does not yet contain pdf thumbnails). Thus, one does a:
581%
582% thumbpdf filename.pdf
583%
584% to make a filename.tpt, and:
585%
586% thumbpdf --mode dvips filename.ps
587%
588% to make a filename.tpm which will then be loaded into the document by
589% thumbpdf.sty the NEXT time the document is compiled (by pdflatex or
590% latex->dvips->ps2pdf). Users must be careful to regenerate the .tpt and/or
591% .tpm files if the main document changes and then to recompile the
592% document to incorporate the revised thumbnails to ensure that thumbnails
593% match the actual pages. It is easy to forget to do this!
594%
595% Unix systems come with a Perl interpreter. However, MS Windows users
596% will usually have to install a Perl interpreter so that the thumbpdf
597% script can be run. The Ghostscript PS/PDF interpreter is also required.
598% See the thumbpdf docs for details. The latest version and documentation
599% can be obtained at.
600% http://www.ctan.org/tex-archive/support/thumbpdf/
601% Be sure and use only version 3.8 (2005/07/06) or later of thumbpdf as
602% earlier versions will not work properly with recent versions of pdfTeX
603% (1.20a and later).
604
605
606% NOTE: PDF hyperlink and bookmark features are not required in IEEE
607%       papers and their use requires extra complexity and work.
608% *** IF USING HYPERREF BE SURE AND CHANGE THE EXAMPLE PDF ***
609% *** TITLE/SUBJECT/AUTHOR/KEYWORDS INFO BELOW!!           ***
610\newcommand\MYhyperrefoptions{bookmarks=true,bookmarksnumbered=true,
611pdfpagemode={UseOutlines},plainpages=false,pdfpagelabels=true,
612colorlinks=true,linkcolor={black},citecolor={black},pagecolor={black},
613urlcolor={black},
614pdftitle={Bare Demo of IEEEtran.cls for Computer Society Journals},%<!CHANGE!
615pdfsubject={Typesetting},%<!CHANGE!
616pdfauthor={Michael D. Shell},%<!CHANGE!
617pdfkeywords={Computer Society, IEEEtran, journal, LaTeX, paper,
618             template}}%<^!CHANGE!
619%\ifCLASSINFOpdf
620%\usepackage[\MYhyperrefoptions,pdftex]{hyperref}
621%\else
622%\usepackage[\MYhyperrefoptions,breaklinks=true,dvips]{hyperref}
623%\usepackage{breakurl}
624%\fi
625% One significant drawback of using hyperref under DVI output is that the
626% LaTeX compiler cannot break URLs across lines or pages as can be done
627% under pdfLaTeX's PDF output via the hyperref pdftex driver. This is
628% probably the single most important capability distinction between the
629% DVI and PDF output. Perhaps surprisingly, all the other PDF features
630% (PDF bookmarks, thumbnails, etc.) can be preserved in
631% .tex->.dvi->.ps->.pdf workflow if the respective packages/scripts are
632% loaded/invoked with the correct driver options (dvips, etc.).
633% As most IEEE papers use URLs sparingly (mainly in the references), this
634% may not be as big an issue as with other publications.
635%
636% That said, recently Vilar Camara Neto introduced his breakurl.sty
637% package which permits hyperref to easily break URLs even in dvi
638% mode. Note that breakurl, unlike most other packages, must be loaded
639% AFTER hyperref. The latest version of breakurl and its documentation can
640% be obtained at:
641% http://www.ctan.org/tex-archive/macros/latex/contrib/breakurl/
642% breakurl.sty is not for use under pdflatex pdf mode. Versions 1.10
643% (September 23, 2005) and later are recommened to avoid bugs in earlier
644% releases.
645%
646% The advanced features offer by hyperref.sty are not required for IEEE
647% submission, so users should weigh these features against the added
648% complexity of use. Users who wish to use hyperref *must* ensure that
649% their hyperref version is 6.72u or later *and* IEEEtran.cls is version
650% 1.6b or later.
651% The package options above demonstrate how to enable PDF bookmarks
652% (a type of table of contents viewable in Acrobat Reader) as well as
653% PDF document information (title, subject, author and keywords) that is
654% viewable in Acrobat reader's Document_Properties menu. PDF document
655% information is also used extensively to automate the cataloging of PDF
656% documents. The above set of options ensures that hyperlinks will not be
657% colored in the text and thus will not be visible in the printed page,
658% but will be active on "mouse over". USING COLORS OR OTHER HIGHLIGHTING
659% OF HYPERLINKS CAN RESULT IN DOCUMENT REJECTION BY THE IEEE, especially if
660% these appear on the "printed" page. IF IN DOUBT, ASK THE RELEVANT
661% SUBMISSION EDITOR. You may need to add the option hypertexnames=false if
662% you used duplicate equation numbers, etc., but this should not be needed
663% in normal IEEE work.
664% The latest version of hyperref and its documentation can be obtained at:
665% http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/
666
667
668
669
670
671% *** Do not adjust lengths that control margins, column widths, etc. ***
672% *** Do not use packages that alter fonts (such as pslatex).         ***
673% There should be no need to do such things with IEEEtran.cls V1.6 and later.
674% (Unless specifically asked to do so by the journal or conference you plan
675% to submit to, of course. )
676
677
678% correct bad hyphenation here
679\hyphenation{op-tical net-works semi-conduc-tor}
680
681
682\begin{document}
683%
684% paper title
685% can use linebreaks \\ within to get better formatting as desired
686\title{Bare Advanced Demo of IEEEtran.cls\\ for Computer Society Journals}
687%
688%
689% author names and IEEE memberships
690% note positions of commas and nonbreaking spaces ( ~ ) LaTeX will not break
691% a structure at a ~ so this keeps an author's name from being broken across
692% two lines.
693% use \thanks{} to gain access to the first footnote area
694% a separate \thanks must be used for each paragraph as LaTeX2e's \thanks
695% was not built to handle multiple paragraphs
696%
697%
698%\IEEEcompsocitemizethanks is a special \thanks that produces the bulleted
699% lists the Computer Society journals use for "first footnote" author
700% affiliations. Use \IEEEcompsocthanksitem which works much like \item
701% for each affiliation group. When not in compsoc mode,
702% \IEEEcompsocitemizethanks becomes like \thanks and
703% \IEEEcompsocthanksitem becomes a line break with idention. This
704% facilitates dual compilation, although admittedly the differences in the
705% desired content of \author between the different types of papers makes a
706% one-size-fits-all approach a daunting prospect. For instance, compsoc
707% journal papers have the author affiliations above the "Manuscript
708% received ..."  text while in non-compsoc journals this is reversed. Sigh.
709
710\author{Michael~Shell,~\IEEEmembership{Member,~IEEE,}
711        John~Doe,~\IEEEmembership{Fellow,~OSA,}
712        and~Jane~Doe,~\IEEEmembership{Life~Fellow,~IEEE}% <-this % stops a space
713\IEEEcompsocitemizethanks{\IEEEcompsocthanksitem M. Shell is with the Department
714of Electrical and Computer Engineering, Georgia Institute of Technology, Atlanta,
715GA, 30332.\protect\\
716% note need leading \protect in front of \\ to get a newline within \thanks as
717% \\ is fragile and will error, could use \hfil\break instead.
718E-mail: see http://www.michaelshell.org/contact.html
719\IEEEcompsocthanksitem J. Doe and J. Doe are with Anonymous University.}% <-this % stops a space
720\thanks{Manuscript received April 19, 2005; revised January 11, 2007.}}
721
722% note the % following the last \IEEEmembership and also \thanks -
723% these prevent an unwanted space from occurring between the last author name
724% and the end of the author line. i.e., if you had this:
725%
726% \author{....lastname \thanks{...} \thanks{...} }
727%                     ^------------^------------^----Do not want these spaces!
728%
729% a space would be appended to the last name and could cause every name on that
730% line to be shifted left slightly. This is one of those "LaTeX things". For
731% instance, "\textbf{A} \textbf{B}" will typeset as "A B" not "AB". To get
732% "AB" then you have to do: "\textbf{A}\textbf{B}"
733% \thanks is no different in this regard, so shield the last } of each \thanks
734% that ends a line with a % and do not let a space in before the next \thanks.
735% Spaces after \IEEEmembership other than the last one are OK (and needed) as
736% you are supposed to have spaces between the names. For what it is worth,
737% this is a minor point as most people would not even notice if the said evil
738% space somehow managed to creep in.
739
740
741
742% The paper headers
743\markboth{Journal of \LaTeX\ Class Files,~Vol.~6, No.~1, January~2007}%
744{Shell \MakeLowercase{\textit{et al.}}: Bare Advanced Demo of IEEEtran.cls for Journals}
745% The only time the second header will appear is for the odd numbered pages
746% after the title page when using the twoside option.
747%
748% *** Note that you probably will NOT want to include the author's ***
749% *** name in the headers of peer review papers.                   ***
750% You can use \ifCLASSOPTIONpeerreview for conditional compilation here if
751% you desire.
752
753
754
755% The publisher's ID mark at the bottom of the page is less important with
756% Computer Society journal papers as those publications place the marks
757% outside of the main text columns and, therefore, unlike regular IEEE
758% journals, the available text space is not reduced by their presence.
759% If you want to put a publisher's ID mark on the page you can do it like
760% this:
761%\IEEEpubid{0000--0000/00\$00.00~\copyright~2007 IEEE}
762% or like this to get the Computer Society new two part style.
763%\IEEEpubid{\makebox[\columnwidth]{\hfill 0000--0000/00/\$00.00~\copyright~2007 IEEE}%
764%\hspace{\columnsep}\makebox[\columnwidth]{Published by the IEEE Computer Society\hfill}}
765% Remember, if you use this you must call \IEEEpubidadjcol in the second
766% column for its text to clear the IEEEpubid mark (Computer Society jorunal
767% papers don't need this extra clearance.)
768
769
770
771% use for special paper notices
772%\IEEEspecialpapernotice{(Invited Paper)}
773
774
775
776% for Computer Society papers, we must declare the abstract and index terms
777% PRIOR to the title within the \IEEEcompsoctitleabstractindextext IEEEtran
778% command as these need to go into the title area created by \maketitle.
779\IEEEcompsoctitleabstractindextext{%
780\begin{abstract}
781%\boldmath
782The abstract goes here.
783\end{abstract}
784% IEEEtran.cls defaults to using nonbold math in the Abstract.
785% This preserves the distinction between vectors and scalars. However,
786% if the journal you are submitting to favors bold math in the abstract,
787% then you can use LaTeX's standard command \boldmath at the very start
788% of the abstract to achieve this. Many IEEE journals frown on math
789% in the abstract anyway. In particular, the Computer Society does
790% not want either math or citations to appear in the abstract.
791
792% Note that keywords are not normally used for peerreview papers.
793\begin{IEEEkeywords}
794Computer Society, IEEEtran, journal, \LaTeX, paper, template.
795\end{IEEEkeywords}}
796
797
798% make the title area
799\maketitle
800
801
802% To allow for easy dual compilation without having to reenter the
803% abstract/keywords data, the \IEEEcompsoctitleabstractindextext text will
804% not be used in maketitle, but will appear (i.e., to be "transported")
805% here as \IEEEdisplaynotcompsoctitleabstractindextext when compsoc mode
806% is not selected <OR> if conference mode is selected - because compsoc
807% conference papers position the abstract like regular (non-compsoc)
808% papers do!
809\IEEEdisplaynotcompsoctitleabstractindextext
810% \IEEEdisplaynotcompsoctitleabstractindextext has no effect when using
811% compsoc under a non-conference mode.
812
813
814% For peer review papers, you can put extra information on the cover
815% page as needed:
816% \ifCLASSOPTIONpeerreview
817% \begin{center} \bfseries EDICS Category: 3-BBND \end{center}
818% \fi
819%
820% For peerreview papers, this IEEEtran command inserts a page break and
821% creates the second title. It will be ignored for other modes.
822\IEEEpeerreviewmaketitle
823
824
825
826\section{Introduction}
827% Computer Society journal papers do something a tad strange with the very
828% first section heading (almost always called "Introduction"). They place it
829% ABOVE the main text! IEEEtran.cls currently does not do this for you.
830% However, You can achieve this effect by making LaTeX jump through some
831% hoops via something like:
832%
833%\ifCLASSOPTIONcompsoc
834%  \noindent\raisebox{2\baselineskip}[0pt][0pt]%
835%  {\parbox{\columnwidth}{\section{Introduction}\label{sec:introduction}%
836%  \global\everypar=\everypar}}%
837%  \vspace{-1\baselineskip}\vspace{-\parskip}\par
838%\else
839%  \section{Introduction}\label{sec:introduction}\par
840%\fi
841%
842% Admittedly, this is a hack and may well be fragile, but seems to do the
843% trick for me. Note the need to keep any \label that may be used right
844% after \section in the above as the hack puts \section within a raised box.
845
846
847
848% The very first letter is a 2 line initial drop letter followed
849% by the rest of the first word in caps (small caps for compsoc).
850%
851% form to use if the first word consists of a single letter:
852% \IEEEPARstart{A}{demo} file is ....
853%
854% form to use if you need the single drop letter followed by
855% normal text (unknown if ever used by IEEE):
856% \IEEEPARstart{A}{}demo file is ....
857%
858% Some journals put the first two words in caps:
859% \IEEEPARstart{T}{his demo} file is ....
860%
861% Here we have the typical use of a "T" for an initial drop letter
862% and "HIS" in caps to complete the first word.
863\IEEEPARstart{T}{his} demo file is intended to serve as a ``starter file''
864for IEEE Computer Society journal papers produced under \LaTeX\ using
865IEEEtran.cls version 1.7 and later.
866% You must have at least 2 lines in the paragraph with the drop letter
867% (should never be an issue)
868I wish you the best of success.
869
870\hfill mds
871 
872\hfill January 11, 2007
873
874\subsection{Subsection Heading Here}
875Subsection text here.
876
877% needed in second column of first page if using \IEEEpubid
878%\IEEEpubidadjcol
879
880\subsubsection{Subsubsection Heading Here}
881Subsubsection text here.
882
883
884% An example of a floating figure using the graphicx package.
885% Note that \label must occur AFTER (or within) \caption.
886% For figures, \caption should occur after the \includegraphics.
887% Note that IEEEtran v1.7 and later has special internal code that
888% is designed to preserve the operation of \label within \caption
889% even when the captionsoff option is in effect. However, because
890% of issues like this, it may be the safest practice to put all your
891% \label just after \caption rather than within \caption{}.
892%
893% Reminder: the "draftcls" or "draftclsnofoot", not "draft", class
894% option should be used if it is desired that the figures are to be
895% displayed while in draft mode.
896%
897%\begin{figure}[!t]
898%\centering
899%\includegraphics[width=2.5in]{myfigure}
900% where an .eps filename suffix will be assumed under latex,
901% and a .pdf suffix will be assumed for pdflatex; or what has been declared
902% via \DeclareGraphicsExtensions.
903%\caption{Simulation Results}
904%\label{fig_sim}
905%\end{figure}
906
907% Note that IEEE typically puts floats only at the top, even when this
908% results in a large percentage of a column being occupied by floats.
909% However, the Computer Society has been known to put floats at the bottom.
910
911
912% An example of a double column floating figure using two subfigures.
913% (The subfig.sty package must be loaded for this to work.)
914% The subfigure \label commands are set within each subfloat command, the
915% \label for the overall figure must come after \caption.
916% \hfil must be used as a separator to get equal spacing.
917% The subfigure.sty package works much the same way, except \subfigure is
918% used instead of \subfloat.
919%
920%\begin{figure*}[!t]
921%\centerline{\subfloat[Case I]\includegraphics[width=2.5in]{subfigcase1}%
922%\label{fig_first_case}}
923%\hfil
924%\subfloat[Case II]{\includegraphics[width=2.5in]{subfigcase2}%
925%\label{fig_second_case}}}
926%\caption{Simulation results}
927%\label{fig_sim}
928%\end{figure*}
929%
930% Note that often IEEE papers with subfigures do not employ subfigure
931% captions (using the optional argument to \subfloat), but instead will
932% reference/describe all of them (a), (b), etc., within the main caption.
933
934
935% An example of a floating table. Note that, for IEEE style tables, the
936% \caption command should come BEFORE the table. Table text will default to
937% \footnotesize as IEEE normally uses this smaller font for tables.
938% The \label must come after \caption as always.
939%
940%\begin{table}[!t]
941%% increase table row spacing, adjust to taste
942%\renewcommand{\arraystretch}{1.3}
943% if using array.sty, it might be a good idea to tweak the value of
944% \extrarowheight as needed to properly center the text within the cells
945%\caption{An Example of a Table}
946%\label{table_example}
947%\centering
948%% Some packages, such as MDW tools, offer better commands for making tables
949%% than the plain LaTeX2e tabular which is used here.
950%\begin{tabular}{|c||c|}
951%\hline
952%One & Two\\
953%\hline
954%Three & Four\\
955%\hline
956%\end{tabular}
957%\end{table}
958
959
960% Note that IEEE does not put floats in the very first column - or typically
961% anywhere on the first page for that matter. Also, in-text middle ("here")
962% positioning is not used. Most IEEE journals use top floats exclusively.
963% However, Computer Society journals sometimes do use bottom floats - bear
964% this in mind when choosing appropriate optional arguments for the
965% figure/table environments.
966% Note that, LaTeX2e, unlike IEEE journals, places footnotes above bottom
967% floats. This can be corrected via the \fnbelowfloat command of the
968% stfloats package.
969
970
971
972\section{Conclusion}
973The conclusion goes here.
974
975
976
977
978
979% if have a single appendix:
980%\appendix[Proof of the Zonklar Equations]
981% or
982%\appendix  % for no appendix heading
983% do not use \section anymore after \appendix, only \section*
984% is possibly needed
985
986% use appendices with more than one appendix
987% then use \section to start each appendix
988% you must declare a \section before using any
989% \subsection or using \label (\appendices by itself
990% starts a section numbered zero.)
991%
992
993
994\appendices
995\section{Proof of the First Zonklar Equation}
996Appendix one text goes here.
997
998% you can choose not to have a title for an appendix
999% if you want by leaving the argument blank
1000\section{}
1001Appendix two text goes here.
1002
1003
1004% use section* for acknowledgement
1005\ifCLASSOPTIONcompsoc
1006  % The Computer Society usually uses the plural form
1007  \section*{Acknowledgments}
1008\else
1009  % regular IEEE prefers the singular form
1010  \section*{Acknowledgment}
1011\fi
1012
1013
1014The authors would like to thank...
1015
1016
1017% Can use something like this to put references on a page
1018% by themselves when using endfloat and the captionsoff option.
1019\ifCLASSOPTIONcaptionsoff
1020  \newpage
1021\fi
1022
1023
1024
1025% trigger a \newpage just before the given reference
1026% number - used to balance the columns on the last page
1027% adjust value as needed - may need to be readjusted if
1028% the document is modified later
1029%\IEEEtriggeratref{8}
1030% The "triggered" command can be changed if desired:
1031%\IEEEtriggercmd{\enlargethispage{-5in}}
1032
1033% references section
1034
1035% can use a bibliography generated by BibTeX as a .bbl file
1036% BibTeX documentation can be easily obtained at:
1037% http://www.ctan.org/tex-archive/biblio/bibtex/contrib/doc/
1038% The IEEEtran BibTeX style support page is at:
1039% http://www.michaelshell.org/tex/ieeetran/bibtex/
1040%\bibliographystyle{IEEEtran}
1041% argument is your BibTeX string definitions and bibliography database(s)
1042%\bibliography{IEEEabrv,../bib/paper}
1043%
1044% <OR> manually copy in the resultant .bbl file
1045% set second argument of \begin to the number of references
1046% (used to reserve space for the reference number labels box)
1047\begin{thebibliography}{1}
1048
1049\bibitem{IEEEhowto:kopka}
1050H.~Kopka and P.~W. Daly, \emph{A Guide to {\LaTeX}}, 3rd~ed.\hskip 1em plus
1051  0.5em minus 0.4em\relax Harlow, England: Addison-Wesley, 1999.
1052
1053\end{thebibliography}
1054
1055% biography section
1056%
1057% If you have an EPS/PDF photo (graphicx package needed) extra braces are
1058% needed around the contents of the optional argument to biography to prevent
1059% the LaTeX parser from getting confused when it sees the complicated
1060% \includegraphics command within an optional argument. (You could create
1061% your own custom macro containing the \includegraphics command to make things
1062% simpler here.)
1063%\begin{biography}[{\includegraphics[width=1in,height=1.25in,clip,keepaspectratio]{mshell}}]{Michael Shell}
1064% or if you just want to reserve a space for a photo:
1065
1066\begin{IEEEbiography}{Michael Shell}
1067Biography text here.
1068\end{IEEEbiography}
1069
1070% if you will not have a photo at all:
1071\begin{IEEEbiographynophoto}{John Doe}
1072Biography text here.
1073\end{IEEEbiographynophoto}
1074
1075% insert where needed to balance the two columns on the last page with
1076% biographies
1077%\newpage
1078
1079\begin{IEEEbiographynophoto}{Jane Doe}
1080Biography text here.
1081\end{IEEEbiographynophoto}
1082
1083% You can push biographies down or up by placing
1084% a \vfill before or after them. The appropriate
1085% use of \vfill depends on what kind of text is
1086% on the last page and whether or not the columns
1087% are being equalized.
1088
1089%\vfill
1090
1091% Can be used to pull up biographies so that the bottom of the last one
1092% is flush with the other column.
1093%\enlargethispage{-5in}
1094
1095
1096
1097% that's all folks
1098\end{document}
1099
1100
Note: See TracBrowser for help on using the repository browser.