texstyles 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +50 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +34 -0
- data/Rakefile +10 -0
- data/lib/texstyles.rb +26 -0
- data/lib/texstyles/style.rb +38 -0
- data/styles/a0poster-landscape.tex.erb +84 -0
- data/styles/a0poster-portrait.tex.erb +84 -0
- data/styles/aa.tex.erb +46 -0
- data/styles/aa_onecolumn.tex.erb +45 -0
- data/styles/aa_twocolumn.tex.erb +47 -0
- data/styles/aaai.tex.erb +29 -0
- data/styles/abnt.tex.erb +141 -0
- data/styles/acl.tex.erb +46 -0
- data/styles/acm.tex.erb +77 -0
- data/styles/acm_large.tex.erb +82 -0
- data/styles/acm_sig_alternate.tex.erb +116 -0
- data/styles/acm_sig_strict.tex.erb +90 -0
- data/styles/acs.tex.erb +76 -0
- data/styles/agu.tex.erb +211 -0
- data/styles/aiaa.tex.erb +84 -0
- data/styles/aip_preprint.tex.erb +65 -0
- data/styles/aip_reprint.tex.erb +67 -0
- data/styles/aisb2008.tex.erb +31 -0
- data/styles/aj_manuscript.tex.erb +76 -0
- data/styles/aj_preprint.tex.erb +78 -0
- data/styles/ajps.tex.erb +69 -0
- data/styles/alma.tex.erb +53 -0
- data/styles/ams_one.tex.erb +115 -0
- data/styles/ams_two.tex.erb +119 -0
- data/styles/apa_doc.tex.erb +21 -0
- data/styles/apj_emulate.tex.erb +104 -0
- data/styles/apj_manuscript.tex.erb +76 -0
- data/styles/aps.tex.erb +79 -0
- data/styles/aps_preprint.tex.erb +79 -0
- data/styles/article.tex.erb +28 -0
- data/styles/asp.tex.erb +26 -0
- data/styles/authorea-double-numbered.tex.erb +65 -0
- data/styles/authorea-double.tex.erb +62 -0
- data/styles/authorea-numbered.tex.erb +62 -0
- data/styles/authorea.tex.erb +59 -0
- data/styles/biogeosciences.tex.erb +71 -0
- data/styles/bioinformatics.tex.erb +34 -0
- data/styles/bmc.tex.erb +212 -0
- data/styles/book.tex.erb +22 -0
- data/styles/cernatsnote.tex.erb +28 -0
- data/styles/cernyrep.tex.erb +28 -0
- data/styles/chandra.tex.erb +182 -0
- data/styles/cogsci.tex.erb +43 -0
- data/styles/cornell.tex.erb +75 -0
- data/styles/cv.tex.erb +30 -0
- data/styles/development.tex.erb +55 -0
- data/styles/dfgproposal.tex.erb +103 -0
- data/styles/dod.tex.erb +221 -0
- data/styles/doe.tex.erb +62 -0
- data/styles/econf.tex.erb +174 -0
- data/styles/egu.tex.erb +73 -0
- data/styles/elsevier.tex.erb +138 -0
- data/styles/elsevier_review.tex.erb +140 -0
- data/styles/elsevier_softwarex.tex.erb +132 -0
- data/styles/elsevier_twocolumn.tex.erb +148 -0
- data/styles/empty.tex.erb +29 -0
- data/styles/epjc.tex.erb +78 -0
- data/styles/f1000.tex.erb +38 -0
- data/styles/frontiersENG.tex.erb +66 -0
- data/styles/frontiersFPHY.tex.erb +67 -0
- data/styles/frontiersMED.tex.erb +66 -0
- data/styles/frontiersSCNS.tex.erb +66 -0
- data/styles/g3.tex.erb +57 -0
- data/styles/geophysics.tex.erb +38 -0
- data/styles/gji.tex.erb +51 -0
- data/styles/hess.tex.erb +71 -0
- data/styles/hst.tex.erb +37 -0
- data/styles/iclr.tex.erb +35 -0
- data/styles/ieee_bare_conf.tex.erb +316 -0
- data/styles/ieee_bare_jrnl.tex.erb +459 -0
- data/styles/ieee_bare_jrnl_compsoc.tex.erb +530 -0
- data/styles/ifac.tex.erb +36 -0
- data/styles/ijcai.tex.erb +60 -0
- data/styles/imsart_aas.tex.erb +82 -0
- data/styles/imsart_as.tex.erb +82 -0
- data/styles/iop.tex.erb +93 -0
- data/styles/iram_proposal.tex.erb +93 -0
- data/styles/jacow.tex.erb +77 -0
- data/styles/jfm.tex.erb +43 -0
- data/styles/jhep.tex.erb +57 -0
- data/styles/jinst.tex.erb +46 -0
- data/styles/jrss.tex.erb +32 -0
- data/styles/jxb.tex.erb +56 -0
- data/styles/lncs.tex.erb +75 -0
- data/styles/mdpi.tex.erb +122 -0
- data/styles/mit.tex.erb +186 -0
- data/styles/mnras.tex.erb +41 -0
- data/styles/nasa.tex.erb +111 -0
- data/styles/nature.tex.erb +34 -0
- data/styles/nature_scirep.tex.erb +36 -0
- data/styles/nih.tex.erb +223 -0
- data/styles/nime.tex.erb +82 -0
- data/styles/nips.tex.erb +26 -0
- data/styles/nsf.tex.erb +66 -0
- data/styles/osaexpress.tex.erb +73 -0
- data/styles/osaletters.tex.erb +54 -0
- data/styles/peerj.tex.erb +45 -0
- data/styles/plos.tex.erb +69 -0
- data/styles/plos2015.tex.erb +237 -0
- data/styles/pnas.tex.erb +118 -0
- data/styles/report.tex.erb +17 -0
- data/styles/rsc.tex.erb +99 -0
- data/styles/sciadvances.tex.erb +120 -0
- data/styles/science.tex.erb +127 -0
- data/styles/sigchi.tex.erb +91 -0
- data/styles/sigplan.tex.erb +94 -0
- data/styles/spie.tex.erb +68 -0
- data/styles/spieman.tex.erb +75 -0
- data/styles/springer.tex.erb +92 -0
- data/styles/springer_twocolumn.tex.erb +92 -0
- data/styles/svmono.tex.erb +63 -0
- data/styles/trb.tex.erb +150 -0
- data/styles/tufte-handout.tex.erb +60 -0
- data/styles/uchicago.tex.erb +53 -0
- data/styles/ucriverside.tex.erb +79 -0
- data/styles/uiowa.tex.erb +78 -0
- data/styles/umich.tex.erb +68 -0
- data/styles/uvic.tex.erb +196 -0
- data/styles/uwollongong.tex.erb +149 -0
- data/texstyles.gemspec +25 -0
- metadata +258 -0
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
|
|
2
|
+
%% bare_jrnl.tex
|
|
3
|
+
%% V1.3
|
|
4
|
+
%% 2007/01/11
|
|
5
|
+
%% by Michael Shell
|
|
6
|
+
%% see http://www.michaelshell.org/
|
|
7
|
+
%% for current contact information.
|
|
8
|
+
%%
|
|
9
|
+
%% This is a skeleton file demonstrating the use of IEEEtran.cls
|
|
10
|
+
%% (requires IEEEtran.cls version 1.7 or later) with an IEEE journal paper.
|
|
11
|
+
%%
|
|
12
|
+
%% Support sites:
|
|
13
|
+
%% http://www.michaelshell.org/tex/ieeetran/
|
|
14
|
+
%% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/
|
|
15
|
+
%% and
|
|
16
|
+
%% http://www.ieee.org/
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
% *** Authors should verify (and, if needed, correct) their LaTeX system ***
|
|
21
|
+
% *** with the testflow diagnostic prior to trusting their LaTeX platform ***
|
|
22
|
+
% *** with production work. IEEE's font choices can trigger bugs that do ***
|
|
23
|
+
% *** not appear when using other class files. ***
|
|
24
|
+
% The testflow support page is at:
|
|
25
|
+
% http://www.michaelshell.org/tex/testflow/
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
%%*************************************************************************
|
|
29
|
+
%% Legal Notice:
|
|
30
|
+
%% This code is offered as-is without any warranty either expressed or
|
|
31
|
+
%% implied; without even the implied warranty of MERCHANTABILITY or
|
|
32
|
+
%% FITNESS FOR A PARTICULAR PURPOSE!
|
|
33
|
+
%% User assumes all risk.
|
|
34
|
+
%% In no event shall IEEE or any contributor to this code be liable for
|
|
35
|
+
%% any damages or losses, including, but not limited to, incidental,
|
|
36
|
+
%% consequential, or any other damages, resulting from the use or misuse
|
|
37
|
+
%% of any information contained here.
|
|
38
|
+
%%
|
|
39
|
+
%% All comments are the opinions of their respective authors and are not
|
|
40
|
+
%% necessarily endorsed by the IEEE.
|
|
41
|
+
%%
|
|
42
|
+
%% This work is distributed under the LaTeX Project Public License (LPPL)
|
|
43
|
+
%% ( http://www.latex-project.org/ ) version 1.3, and may be freely used,
|
|
44
|
+
%% distributed and modified. A copy of the LPPL, version 1.3, is included
|
|
45
|
+
%% in the base LaTeX documentation of all distributions of LaTeX released
|
|
46
|
+
%% 2003/12/01 or later.
|
|
47
|
+
%% Retain all contribution notices and credits.
|
|
48
|
+
%% ** Modified files should be clearly indicated as such, including **
|
|
49
|
+
%% ** renaming them and changing author support contact information. **
|
|
50
|
+
%%
|
|
51
|
+
%% File list of work: IEEEtran.cls, IEEEtran_HOWTO.pdf, bare_adv.tex,
|
|
52
|
+
%% bare_conf.tex, bare_jrnl.tex, bare_jrnl_compsoc.tex
|
|
53
|
+
%%*************************************************************************
|
|
54
|
+
|
|
55
|
+
% Note that the a4paper option is mainly intended so that authors in
|
|
56
|
+
% countries using A4 can easily print to A4 and see how their papers will
|
|
57
|
+
% look in print - the typesetting of the document will not typically be
|
|
58
|
+
% affected with changes in paper size (but the bottom and side margins will).
|
|
59
|
+
% Use the testflow package mentioned above to verify correct handling of
|
|
60
|
+
% both paper sizes by the user's LaTeX system.
|
|
61
|
+
%
|
|
62
|
+
% Also note that the "draftcls" or "draftclsnofoot", not "draft", option
|
|
63
|
+
% should be used if it is desired that the figures are to be displayed in
|
|
64
|
+
% draft mode.
|
|
65
|
+
%
|
|
66
|
+
\documentclass[journal]{IEEEtran}
|
|
67
|
+
%
|
|
68
|
+
% If IEEEtran.cls has not been installed into the LaTeX system files,
|
|
69
|
+
% manually specify the path to it like:
|
|
70
|
+
% \documentclass[journal]{../sty/IEEEtran}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
% Some very useful LaTeX packages include:
|
|
77
|
+
% (uncomment the ones you want to load)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
% *** MISC UTILITY PACKAGES ***
|
|
81
|
+
%
|
|
82
|
+
\usepackage{ifpdf}
|
|
83
|
+
% Heiko Oberdiek's ifpdf.sty is very useful if you need conditional
|
|
84
|
+
% compilation based on whether the output is pdf or dvi.
|
|
85
|
+
% usage:
|
|
86
|
+
% \ifpdf
|
|
87
|
+
% % pdf code
|
|
88
|
+
% \else
|
|
89
|
+
% % dvi code
|
|
90
|
+
% \fi
|
|
91
|
+
% The latest version of ifpdf.sty can be obtained from:
|
|
92
|
+
% http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/
|
|
93
|
+
% Also, note that IEEEtran.cls V1.7 and later provides a builtin
|
|
94
|
+
% \ifCLASSINFOpdf conditional that works the same way.
|
|
95
|
+
% When switching from latex to pdflatex and vice-versa, the compiler may
|
|
96
|
+
% have to be run twice to clear warning/error messages.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
<%=@default_packages%>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
% *** CITATION PACKAGES ***
|
|
105
|
+
%
|
|
106
|
+
\usepackage{cite}
|
|
107
|
+
% cite.sty was written by Donald Arseneau
|
|
108
|
+
% V1.6 and later of IEEEtran pre-defines the format of the cite.sty package
|
|
109
|
+
% \cite{} output to follow that of IEEE. Loading the cite package will
|
|
110
|
+
% result in citation numbers being automatically sorted and properly
|
|
111
|
+
% "compressed/ranged". e.g., [1], [9], [2], [7], [5], [6] without using
|
|
112
|
+
% cite.sty will become [1], [2], [5]--[7], [9] using cite.sty. cite.sty's
|
|
113
|
+
% \cite will automatically add leading space, if needed. Use cite.sty's
|
|
114
|
+
% noadjust option (cite.sty V3.8 and later) if you want to turn this off.
|
|
115
|
+
% cite.sty is already installed on most LaTeX systems. Be sure and use
|
|
116
|
+
% version 4.0 (2003-05-27) and later if using hyperref.sty. cite.sty does
|
|
117
|
+
% not currently provide for hyperlinked citations.
|
|
118
|
+
% The latest version can be obtained at:
|
|
119
|
+
% http://www.ctan.org/tex-archive/macros/latex/contrib/cite/
|
|
120
|
+
% The documentation is contained in the cite.sty file itself.
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
% *** MATH PACKAGES ***
|
|
124
|
+
%
|
|
125
|
+
%\usepackage[cmex10]{amsmath}
|
|
126
|
+
% A popular package from the American Mathematical Society that provides
|
|
127
|
+
% many useful and powerful commands for dealing with mathematics. If using
|
|
128
|
+
% it, be sure to load this package with the cmex10 option to ensure that
|
|
129
|
+
% only type 1 fonts will utilized at all point sizes. Without this option,
|
|
130
|
+
% it is possible that some math symbols, particularly those within
|
|
131
|
+
% footnotes, will be rendered in bitmap form which will result in a
|
|
132
|
+
% document that can not be IEEE Xplore compliant!
|
|
133
|
+
%
|
|
134
|
+
% Also, note that the amsmath package sets \interdisplaylinepenalty to 10000
|
|
135
|
+
% thus preventing page breaks from occurring within multiline equations. Use:
|
|
136
|
+
%\interdisplaylinepenalty=2500
|
|
137
|
+
% after loading amsmath to restore such page breaks as IEEEtran.cls normally
|
|
138
|
+
% does. amsmath.sty is already installed on most LaTeX systems. The latest
|
|
139
|
+
% version and documentation can be obtained at:
|
|
140
|
+
% http://www.ctan.org/tex-archive/macros/latex/required/amslatex/math/
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
% *** SPECIALIZED LIST PACKAGES ***
|
|
147
|
+
%
|
|
148
|
+
%\usepackage{algorithmic}
|
|
149
|
+
% algorithmic.sty was written by Peter Williams and Rogerio Brito.
|
|
150
|
+
% This package provides an algorithmic environment fo describing algorithms.
|
|
151
|
+
% You can use the algorithmic environment in-text or within a figure
|
|
152
|
+
% environment to provide for a floating algorithm. Do NOT use the algorithm
|
|
153
|
+
% floating environment provided by algorithm.sty (by the same authors) or
|
|
154
|
+
% algorithm2e.sty (by Christophe Fiorio) as IEEE does not use dedicated
|
|
155
|
+
% algorithm float types and packages that provide these will not provide
|
|
156
|
+
% correct IEEE style captions. The latest version and documentation of
|
|
157
|
+
% algorithmic.sty can be obtained at:
|
|
158
|
+
% http://www.ctan.org/tex-archive/macros/latex/contrib/algorithms/
|
|
159
|
+
% There is also a support site at:
|
|
160
|
+
% http://algorithms.berlios.de/index.html
|
|
161
|
+
% Also of interest may be the (relatively newer and more customizable)
|
|
162
|
+
% algorithmicx.sty package by Szasz Janos:
|
|
163
|
+
% http://www.ctan.org/tex-archive/macros/latex/contrib/algorithmicx/
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
% *** ALIGNMENT PACKAGES ***
|
|
169
|
+
%
|
|
170
|
+
%\usepackage{array}
|
|
171
|
+
% Frank Mittelbach's and David Carlisle's array.sty patches and improves
|
|
172
|
+
% the standard LaTeX2e array and tabular environments to provide better
|
|
173
|
+
% appearance and additional user controls. As the default LaTeX2e table
|
|
174
|
+
% generation code is lacking to the point of almost being broken with
|
|
175
|
+
% respect to the quality of the end results, all users are strongly
|
|
176
|
+
% advised to use an enhanced (at the very least that provided by array.sty)
|
|
177
|
+
% set of table tools. array.sty is already installed on most systems. The
|
|
178
|
+
% latest version and documentation can be obtained at:
|
|
179
|
+
% http://www.ctan.org/tex-archive/macros/latex/required/tools/
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
%\usepackage{mdwmath}
|
|
183
|
+
%\usepackage{mdwtab}
|
|
184
|
+
% Also highly recommended is Mark Wooding's extremely powerful MDW tools,
|
|
185
|
+
% especially mdwmath.sty and mdwtab.sty which are used to format equations
|
|
186
|
+
% and tables, respectively. The MDWtools set is already installed on most
|
|
187
|
+
% LaTeX systems. The lastest version and documentation is available at:
|
|
188
|
+
% http://www.ctan.org/tex-archive/macros/latex/contrib/mdwtools/
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
% IEEEtran contains the IEEEeqnarray family of commands that can be used to
|
|
192
|
+
% generate multiline equations as well as matrices, tables, etc., of high
|
|
193
|
+
% quality.
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
%\usepackage{eqparbox}
|
|
197
|
+
% Also of notable interest is Scott Pakin's eqparbox package for creating
|
|
198
|
+
% (automatically sized) equal width boxes - aka "natural width parboxes".
|
|
199
|
+
% Available at:
|
|
200
|
+
% http://www.ctan.org/tex-archive/macros/latex/contrib/eqparbox/
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
% *** SUBFIGURE PACKAGES ***
|
|
207
|
+
%\usepackage[tight,footnotesize]{subfigure}
|
|
208
|
+
% subfigure.sty was written by Steven Douglas Cochran. This package makes it
|
|
209
|
+
% easy to put subfigures in your figures. e.g., "Figure 1a and 1b". For IEEE
|
|
210
|
+
% work, it is a good idea to load it with the tight package option to reduce
|
|
211
|
+
% the amount of white space around the subfigures. subfigure.sty is already
|
|
212
|
+
% installed on most LaTeX systems. The latest version and documentation can
|
|
213
|
+
% be obtained at:
|
|
214
|
+
% http://www.ctan.org/tex-archive/obsolete/macros/latex/contrib/subfigure/
|
|
215
|
+
% subfigure.sty has been superceeded by subfig.sty.
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
%\usepackage[caption=false]{caption}
|
|
220
|
+
%\usepackage[font=footnotesize]{subfig}
|
|
221
|
+
% subfig.sty, also written by Steven Douglas Cochran, is the modern
|
|
222
|
+
% replacement for subfigure.sty. However, subfig.sty requires and
|
|
223
|
+
% automatically loads Axel Sommerfeldt's caption.sty which will override
|
|
224
|
+
% IEEEtran.cls handling of captions and this will result in nonIEEE style
|
|
225
|
+
% figure/table captions. To prevent this problem, be sure and preload
|
|
226
|
+
% caption.sty with its "caption=false" package option. This is will preserve
|
|
227
|
+
% IEEEtran.cls handing of captions. Version 1.3 (2005/06/28) and later
|
|
228
|
+
% (recommended due to many improvements over 1.2) of subfig.sty supports
|
|
229
|
+
% the caption=false option directly:
|
|
230
|
+
%\usepackage[caption=false,font=footnotesize]{subfig}
|
|
231
|
+
%
|
|
232
|
+
% The latest version and documentation can be obtained at:
|
|
233
|
+
% http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/
|
|
234
|
+
% The latest version and documentation of caption.sty can be obtained at:
|
|
235
|
+
% http://www.ctan.org/tex-archive/macros/latex/contrib/caption/
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
% *** FLOAT PACKAGES ***
|
|
241
|
+
%
|
|
242
|
+
%\usepackage{fixltx2e}
|
|
243
|
+
% fixltx2e, the successor to the earlier fix2col.sty, was written by
|
|
244
|
+
% Frank Mittelbach and David Carlisle. This package corrects a few problems
|
|
245
|
+
% in the LaTeX2e kernel, the most notable of which is that in current
|
|
246
|
+
% LaTeX2e releases, the ordering of single and double column floats is not
|
|
247
|
+
% guaranteed to be preserved. Thus, an unpatched LaTeX2e can allow a
|
|
248
|
+
% single column figure to be placed prior to an earlier double column
|
|
249
|
+
% figure. The latest version and documentation can be found at:
|
|
250
|
+
% http://www.ctan.org/tex-archive/macros/latex/base/
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
%\usepackage{stfloats}
|
|
255
|
+
% stfloats.sty was written by Sigitas Tolusis. This package gives LaTeX2e
|
|
256
|
+
% the ability to do double column floats at the bottom of the page as well
|
|
257
|
+
% as the top. (e.g., "\begin{figure*}[!b]" is not normally possible in
|
|
258
|
+
% LaTeX2e). It also provides a command:
|
|
259
|
+
%\fnbelowfloat
|
|
260
|
+
% to enable the placement of footnotes below bottom floats (the standard
|
|
261
|
+
% LaTeX2e kernel puts them above bottom floats). This is an invasive package
|
|
262
|
+
% which rewrites many portions of the LaTeX2e float routines. It may not work
|
|
263
|
+
% with other packages that modify the LaTeX2e float routines. The latest
|
|
264
|
+
% version and documentation can be obtained at:
|
|
265
|
+
% http://www.ctan.org/tex-archive/macros/latex/contrib/sttools/
|
|
266
|
+
% Documentation is contained in the stfloats.sty comments as well as in the
|
|
267
|
+
% presfull.pdf file. Do not use the stfloats baselinefloat ability as IEEE
|
|
268
|
+
% does not allow \baselineskip to stretch. Authors submitting work to the
|
|
269
|
+
% IEEE should note that IEEE rarely uses double column equations and
|
|
270
|
+
% that authors should try to avoid such use. Do not be tempted to use the
|
|
271
|
+
% cuted.sty or midfloat.sty packages (also by Sigitas Tolusis) as IEEE does
|
|
272
|
+
% not format its papers in such ways.
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
%\ifCLASSOPTIONcaptionsoff
|
|
276
|
+
% \usepackage[nomarkers]{endfloat}
|
|
277
|
+
% \let\MYoriglatexcaption\caption
|
|
278
|
+
% \renewcommand{\caption}[2][\relax]{\MYoriglatexcaption[#2]{#2}}
|
|
279
|
+
%\fi
|
|
280
|
+
% endfloat.sty was written by James Darrell McCauley and Jeff Goldberg.
|
|
281
|
+
% This package may be useful when used in conjunction with IEEEtran.cls'
|
|
282
|
+
% captionsoff option. Some IEEE journals/societies require that submissions
|
|
283
|
+
% have lists of figures/tables at the end of the paper and that
|
|
284
|
+
% figures/tables without any captions are placed on a page by themselves at
|
|
285
|
+
% the end of the document. If needed, the draftcls IEEEtran class option or
|
|
286
|
+
% \CLASSINPUTbaselinestretch interface can be used to increase the line
|
|
287
|
+
% spacing as well. Be sure and use the nomarkers option of endfloat to
|
|
288
|
+
% prevent endfloat from "marking" where the figures would have been placed
|
|
289
|
+
% in the text. The two hack lines of code above are a slight modification of
|
|
290
|
+
% that suggested by in the endfloat docs (section 8.3.1) to ensure that
|
|
291
|
+
% the full captions always appear in the list of figures/tables - even if
|
|
292
|
+
% the user used the short optional argument of \caption[]{}.
|
|
293
|
+
% IEEE papers do not typically make use of \caption[]'s optional argument,
|
|
294
|
+
% so this should not be an issue. A similar trick can be used to disable
|
|
295
|
+
% captions of packages such as subfig.sty that lack options to turn off
|
|
296
|
+
% the subcaptions:
|
|
297
|
+
% For subfig.sty:
|
|
298
|
+
% \let\MYorigsubfloat\subfloat
|
|
299
|
+
% \renewcommand{\subfloat}[2][\relax]{\MYorigsubfloat[]{#2}}
|
|
300
|
+
% For subfigure.sty:
|
|
301
|
+
% \let\MYorigsubfigure\subfigure
|
|
302
|
+
% \renewcommand{\subfigure}[2][\relax]{\MYorigsubfigure[]{#2}}
|
|
303
|
+
% However, the above trick will not work if both optional arguments of
|
|
304
|
+
% the \subfloat/subfig command are used. Furthermore, there needs to be a
|
|
305
|
+
% description of each subfigure *somewhere* and endfloat does not add
|
|
306
|
+
% subfigure captions to its list of figures. Thus, the best approach is to
|
|
307
|
+
% avoid the use of subfigure captions (many IEEE journals avoid them anyway)
|
|
308
|
+
% and instead reference/explain all the subfigures within the main caption.
|
|
309
|
+
% The latest version of endfloat.sty and its documentation can obtained at:
|
|
310
|
+
% http://www.ctan.org/tex-archive/macros/latex/contrib/endfloat/
|
|
311
|
+
%
|
|
312
|
+
% The IEEEtran \ifCLASSOPTIONcaptionsoff conditional can also be used
|
|
313
|
+
% later in the document, say, to conditionally put the References on a
|
|
314
|
+
% page by themselves.
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
% *** PDF, URL AND HYPERLINK PACKAGES ***
|
|
321
|
+
%
|
|
322
|
+
%\usepackage{url}
|
|
323
|
+
% url.sty was written by Donald Arseneau. It provides better support for
|
|
324
|
+
% handling and breaking URLs. url.sty is already installed on most LaTeX
|
|
325
|
+
% systems. The latest version can be obtained at:
|
|
326
|
+
% http://www.ctan.org/tex-archive/macros/latex/contrib/misc/
|
|
327
|
+
% Read the url.sty source comments for usage information. Basically,
|
|
328
|
+
% \url{my_url_here}.
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
% *** Do not adjust lengths that control margins, column widths, etc. ***
|
|
335
|
+
% *** Do not use packages that alter fonts (such as pslatex). ***
|
|
336
|
+
% There should be no need to do such things with IEEEtran.cls V1.6 and later.
|
|
337
|
+
% (Unless specifically asked to do so by the journal or conference you plan
|
|
338
|
+
% to submit to, of course. )
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
% correct bad hyphenation here
|
|
342
|
+
\hyphenation{op-tical net-works semi-conduc-tor}
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
<%=@header%>
|
|
348
|
+
|
|
349
|
+
\begin{document}
|
|
350
|
+
%
|
|
351
|
+
% paper title
|
|
352
|
+
% can use linebreaks \\ within to get better formatting as desired
|
|
353
|
+
% Do not put math or special symbols in the title.
|
|
354
|
+
|
|
355
|
+
\title{<%=@long_title%>}
|
|
356
|
+
|
|
357
|
+
%
|
|
358
|
+
%
|
|
359
|
+
% author names and IEEE memberships
|
|
360
|
+
% note positions of commas and nonbreaking spaces ( ~ ) LaTeX will not break
|
|
361
|
+
% a structure at a ~ so this keeps an author's name from being broken across
|
|
362
|
+
% two lines.
|
|
363
|
+
% use \thanks{} to gain access to the first footnote area
|
|
364
|
+
% a separate \thanks must be used for each paragraph as LaTeX2e's \thanks
|
|
365
|
+
% was not built to handle multiple paragraphs
|
|
366
|
+
%
|
|
367
|
+
|
|
368
|
+
<% if !@alternative_author_string.to_s.empty? %>
|
|
369
|
+
<%= @alternative_author_string %>
|
|
370
|
+
<% else %>
|
|
371
|
+
\author{<%=@first_author%><% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>,
|
|
372
|
+
<%=@coauthor_list[i]%><% end %>
|
|
373
|
+
<% end %>% <-this % stops a space
|
|
374
|
+
\thanks{<%=@first_author%> is with <%=@first_affiliation%>}% <-this % stops a space
|
|
375
|
+
<% if !@coauthor_affiliations.to_a.empty? %><% for i in (0..@coauthor_affiliations.length-1) %>
|
|
376
|
+
\thanks{<%=@coauthor_list[i]%> is with <%=@coauthor_affiliations[i]%>}<% end %><% end %>
|
|
377
|
+
}% <-this % stops a space
|
|
378
|
+
|
|
379
|
+
% note the % following the last \IEEEmembership and also \thanks -
|
|
380
|
+
% these prevent an unwanted space from occurring between the last author name
|
|
381
|
+
% and the end of the author line. i.e., if you had this:
|
|
382
|
+
%
|
|
383
|
+
% \author{....lastname \thanks{...} \thanks{...} }
|
|
384
|
+
% ^------------^------------^----Do not want these spaces!
|
|
385
|
+
%
|
|
386
|
+
% a space would be appended to the last name and could cause every name on that
|
|
387
|
+
% line to be shifted left slightly. This is one of those "LaTeX things". For
|
|
388
|
+
% instance, "\textbf{A} \textbf{B}" will typeset as "A B" not "AB". To get
|
|
389
|
+
% "AB" then you have to do: "\textbf{A}\textbf{B}"
|
|
390
|
+
% \thanks is no different in this regard, so shield the last } of each \thanks
|
|
391
|
+
% that ends a line with a % and do not let a space in before the next \thanks.
|
|
392
|
+
% Spaces after \IEEEmembership other than the last one are OK (and needed) as
|
|
393
|
+
% you are supposed to have spaces between the names. For what it is worth,
|
|
394
|
+
% this is a minor point as most people would not even notice if the said evil
|
|
395
|
+
% space somehow managed to creep in.
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
% The paper headers
|
|
400
|
+
\markboth{Journal of IEEE,~Vol.~1, No.~1, 2013}%
|
|
401
|
+
{<%=@first_author%> <% if !@coauthor_list.to_a.empty? %>{et~al.}<% end %>: <%= @short_title %>}
|
|
402
|
+
% The only time the second header will appear is for the odd numbered pages
|
|
403
|
+
% after the title page when using the twoside option.
|
|
404
|
+
%
|
|
405
|
+
% *** Note that you probably will NOT want to include the author's ***
|
|
406
|
+
% *** name in the headers of peer review papers. ***
|
|
407
|
+
% You can use \ifCLASSOPTIONpeerreview for conditional compilation here if
|
|
408
|
+
% you desire.
|
|
409
|
+
<% end %>
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
% If you want to put a publisher's ID mark on the page you can do it like
|
|
414
|
+
% this:
|
|
415
|
+
%\IEEEpubid{0000--0000/00\$00.00~\copyright~2007 IEEE}
|
|
416
|
+
% Remember, if you use this you must call \IEEEpubidadjcol in the second
|
|
417
|
+
% column for its text to clear the IEEEpubid mark.
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
% use for special paper notices
|
|
422
|
+
%\IEEEspecialpapernotice{(Invited Paper)}
|
|
423
|
+
|
|
424
|
+
% make the title area
|
|
425
|
+
\maketitle
|
|
426
|
+
|
|
427
|
+
% As a general rule, do not put math, special symbols or citations
|
|
428
|
+
% in the abstract
|
|
429
|
+
|
|
430
|
+
<%= @abstract_begin_end %>
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
% Note that keywords are not normally used for peerreview papers.
|
|
434
|
+
%\begin{IEEEkeywords}
|
|
435
|
+
%IEEEtran, journal, \LaTeX, paper, template.
|
|
436
|
+
%\end{IEEEkeywords}
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
% For peer review papers, you can put extra information on the cover
|
|
444
|
+
% page as needed:
|
|
445
|
+
% \ifCLASSOPTIONpeerreview
|
|
446
|
+
% \begin{center} \bfseries EDICS Category: 3-BBND \end{center}
|
|
447
|
+
% \fi
|
|
448
|
+
%
|
|
449
|
+
% For peerreview papers, this IEEEtran command inserts a page break and
|
|
450
|
+
% creates the second title. It will be ignored for other modes.
|
|
451
|
+
\IEEEpeerreviewmaketitle
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
% *** Do not adjust lengths that control margins, column widths, etc. ***
|
|
455
|
+
% *** Do not use packages that alter fonts (such as pslatex). ***
|
|
456
|
+
% There should be no need to do such things with IEEEtran.cls V1.6 and later.
|
|
457
|
+
% (Unless specifically asked to do so by the journal or conference you plan
|
|
458
|
+
% to submit to, of course. )
|
|
459
|
+
|