| 1 |
|
| 2 |
IEEEtrantools_doc.txt 2015/08/26 version 1.5 |
| 3 |
(Version 1.5 is based on the commands of version 1.8b of IEEEtran.cls) |
| 4 |
This document is the user guide for the IEEEtrantools.sty package. |
| 5 |
|
| 6 |
The IEEEtrantools.sty package provides several popular and unique |
| 7 |
commands from the IEEEtran.cls class file. |
| 8 |
|
| 9 |
IEEEtrantools.sty should not be used with IEEEtran.cls. |
| 10 |
|
| 11 |
For helpful tips, answers to frequently asked questions and other support, |
| 12 |
visit the IEEEtrantools support page at my website: |
| 13 |
|
| 14 |
http://www.michaelshell.org/tex/ieeetran/tools/ |
| 15 |
|
| 16 |
The latest version and documentation of IEEEtrantools can be obtained at: |
| 17 |
http://www.ctan.org/pkg/ieeetran |
| 18 |
|
| 19 |
Copyright (c) 2002-2015 by Michael Shell |
| 20 |
See |
| 21 |
http://www.michaelshell.org/ |
| 22 |
for current contact information. |
| 23 |
|
| 24 |
************************************************************************* |
| 25 |
Legal Notice: |
| 26 |
This code is offered as-is without any warranty either expressed or |
| 27 |
implied; without even the implied warranty of MERCHANTABILITY or |
| 28 |
FITNESS FOR A PARTICULAR PURPOSE! |
| 29 |
User assumes all risk. |
| 30 |
In no event shall the IEEE or any contributor to this code be liable for |
| 31 |
any damages or losses, including, but not limited to, incidental, |
| 32 |
consequential, or any other damages, resulting from the use or misuse |
| 33 |
of any information contained here. |
| 34 |
|
| 35 |
All comments are the opinions of their respective authors and are not |
| 36 |
necessarily endorsed by the IEEE. |
| 37 |
|
| 38 |
This work is distributed under the LaTeX Project Public License (LPPL) |
| 39 |
( http://www.latex-project.org/ ) version 1.3, and may be freely used, |
| 40 |
distributed and modified. A copy of the LPPL, version 1.3, is included |
| 41 |
in the base LaTeX documentation of all distributions of LaTeX released |
| 42 |
2003/12/01 or later. |
| 43 |
Retain all contribution notices and credits. |
| 44 |
** Modified files should be clearly indicated as such, including ** |
| 45 |
** renaming them and changing author support contact information. ** |
| 46 |
|
| 47 |
File list of work: IEEEtrantools.sty, IEEEtrantools_doc.txt, changelog.txt |
| 48 |
************************************************************************* |
| 49 |
|
| 50 |
|
| 51 |
Available package options e.g., \usepackage[redeflists]{IEEEtrantools} |
| 52 |
|
| 53 |
redeflists |
| 54 |
Causes IEEEtrantools to redefine the standard LaTeX itemize, |
| 55 |
enumerate and description (IED) lists to their IEEE versions. |
| 56 |
The default behavior is to retain the standard definitions |
| 57 |
of itemize, enumerate and description. The IEEEtran versions are |
| 58 |
always available as IEEEitemize, IEEEenumerate and IEEEdescription |
| 59 |
and the original LaTeX versions are always available as LaTeXitemize, |
| 60 |
LaTeXenumerate and LaTeXdescription. |
| 61 |
|
| 62 |
********************************************************************** |
| 63 |
|
| 64 |
The IEEEtrantools.sty package provides several commands from IEEEtran.cls |
| 65 |
so that they can be used under other LaTeX classes. This guide covers only |
| 66 |
the differences in the use (or undocumented uses) of the commands from |
| 67 |
those provided by IEEEtran.cls. For complete documentation on these |
| 68 |
commands, see the relevant sections in the IEEEtran_HOWTO manual which |
| 69 |
is available at |
| 70 |
http://www.ctan.org/pkg/ieeetran |
| 71 |
|
| 72 |
IEEEtrantools.sty provides \IEEEPARstart; the \bstctlcite command for the |
| 73 |
control entry types of IEEEtran.bst V1.00 and later; \IEEEnoauxwrite; |
| 74 |
the IEEE IED list environments; and the complete IEEEeqnarray family, |
| 75 |
including the IEEEeqnarray support commands, the IEEEproof environment |
| 76 |
and \IEEEauthorrefmark. |
| 77 |
|
| 78 |
Please note that, as a package file, IEEEtrantools.sty will not attempt |
| 79 |
to alter document formatting (other than if the IDE lists are redefined |
| 80 |
if the redeflists option is invoked) as controlled by the class file. |
| 81 |
Therefore, there may be spacing/layout differences between the results |
| 82 |
of the same IEEEtran commands under IEEEtran.cls and the user's class |
| 83 |
file as different fonts, default values for the various length commands, |
| 84 |
etc., are used than under IEEEtran.cls. |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
*** \IEEEPARstart *** |
| 91 |
|
| 92 |
\IEEEPARstart{}{} is used to provide a large initial "drop cap" letter(s) as |
| 93 |
well as to capitialize the remaining letters of the first word of a chapter |
| 94 |
or section (if placed within the second argument). e.g., |
| 95 |
\IEEEPARstart{O}{nce} |
| 96 |
|
| 97 |
IEEEtrantools.sty provides the user with a way to control the various |
| 98 |
parameters of the \IEEEPARstart letters. |
| 99 |
|
| 100 |
Below is how the user can alter them (after the IEEEtrantools.sty package |
| 101 |
is loaded). Default values are shown. IEEEtrantools will not override |
| 102 |
any previous definitions of these parameters if they already exist when |
| 103 |
the package is loaded. |
| 104 |
|
| 105 |
|
| 106 |
% The number of lines that are indented to clear the drop cap letter. |
| 107 |
% You may need to increase this beyond 1 + \IEEEPARstartDROPDEPTH if |
| 108 |
% you are using lowercase letters with descenders. |
| 109 |
\renewcommand{\IEEEPARstartDROPLINES}{2} |
| 110 |
|
| 111 |
% The minimum number of lines left on a page to allow an \IEEEPARstart. |
| 112 |
% Does not take into consideration glue shrink, so it tends to be overly |
| 113 |
% cautious. |
| 114 |
\renewcommand{\IEEEPARstartMINPAGELINES}{2} |
| 115 |
|
| 116 |
% The height of the drop cap (*above* the baseline), is adjusted to match |
| 117 |
% the height of this text in the current font (when \IEEEPARstart is called). |
| 118 |
% Use a strut if you want a height not based on that of the main text font. |
| 119 |
\renewcommand{\IEEEPARstartHEIGHTTEXT}{T} |
| 120 |
|
| 121 |
% The depth the letter is lowered below the baseline. The height (and size) |
| 122 |
% of the letter is determined by the sum of this value and the height of |
| 123 |
% \IEEEPARstartHEIGHTTEXT in the current font. It is a good idea to set this |
| 124 |
% value in terms of the baselineskip so that it can respond to changes |
| 125 |
% therein. |
| 126 |
\renewcommand{\IEEEPARstartDROPDEPTH}{1.1\baselineskip} |
| 127 |
|
| 128 |
% The font the drop cap will be rendered in. The argument is a command that |
| 129 |
% can take zero or one argument. |
| 130 |
\renewcommand{\IEEEPARstartFONTSTYLE}{\bfseries} |
| 131 |
|
| 132 |
% Any additional, non-font related commands needed to modify the drop cap |
| 133 |
% letter, can take zero or one argument. |
| 134 |
\renewcommand{\IEEEPARstartCAPSTYLE}{\MakeUppercase} |
| 135 |
|
| 136 |
% The font that will be used to render the rest of the word (second argument |
| 137 |
% to \IEEEPARstart), can take zero or one argument. |
| 138 |
\renewcommand{\IEEEPARstartWORDFONTSTYLE}{\relax} |
| 139 |
|
| 140 |
% Any additional, non-font related commands needed to modify the rest of the |
| 141 |
% word (second argument to \IEEEPARstart), can take zero or one argument. |
| 142 |
\renewcommand{\IEEEPARstartWORDCAPSTYLE}{\MakeUppercase} |
| 143 |
|
| 144 |
% The horizontal separation distance from the drop letter to the main text. |
| 145 |
% Lengths that depend on the font (i.e., ex, em, etc.) will be referenced to |
| 146 |
% the font that is active when \IEEEPARstart is called. |
| 147 |
\renewcommand{\IEEEPARstartSEP}{0.15em} |
| 148 |
|
| 149 |
% The Horizontal offset applied to the left of the drop cap. The drop cap |
| 150 |
% can be shifted left (negative) or right (positive) using this parameter. |
| 151 |
% Lengths that depend on the font (e.g., ex, em, etc.) will be referenced |
| 152 |
% to the font that is active when \IEEEPARstart is called. |
| 153 |
\renewcommand{\IEEEPARstartHOFFSET}{0em} |
| 154 |
|
| 155 |
For \IEEEPARstartSEP and \IEEEPARstartHOFFSET, you can also reference the |
| 156 |
length variable, \IEEEPARstartletwidth, which will be set to the width of |
| 157 |
the drop drop before it is rendered. e.g., |
| 158 |
\renewcommand{\IEEEPARstartHOFFSET}{-0.5\IEEEPARstartletwidth} |
| 159 |
will cause the drop cap to be shifted leftward by half its width. |
| 160 |
|
| 161 |
% Italic correction command applied at the end of the drop cap when |
| 162 |
% evaluating its width. Without this, italic or slanted drop cap letters will |
| 163 |
% "crash into" the main text because their full true width is not taken into |
| 164 |
% consideration. |
| 165 |
\renewcommand{\IEEEPARstartITLCORRECT}{\/} |
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
*** \bstctlcite *** |
| 172 |
|
| 173 |
\bstctlcite{} is used to issue a citation for a special IEEEtran.bst BibTeX |
| 174 |
style control entry which can control various operating parameters of the |
| 175 |
IEEEtran.bst file (V1.00 and later): |
| 176 |
|
| 177 |
\bstctlcite{IEEEexample:BSTcontrol} |
| 178 |
|
| 179 |
V1.2 and later of IEEEtrantools.sty provides for an optional argument so |
| 180 |
that different auxiliary file specifiers may be used in documents with |
| 181 |
multiple bibliographies: |
| 182 |
|
| 183 |
\bstctlcite[@auxoutsec]{IEEEexample:BSTcontrol} |
| 184 |
|
| 185 |
\bstctlcite operates silently and will not alter the citation numbers or |
| 186 |
place a citation entry into the main text or bibliography (when used with |
| 187 |
IEEEtran.bst). It should not be used with .bst files that do not provide |
| 188 |
support for these special BST control entries. |
| 189 |
|
| 190 |
See the IEEEtran.bst BibTeX style documentation for details. |
| 191 |
http://www.michaelshell.org/tex/ieeetran/bibtex/ |
| 192 |
http://www.ctan.org/pkg/ieeetran |
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
*** \IEEEnoauxwrite *** |
| 198 |
|
| 199 |
Sometimes an author wants to cite something within \thanks or other section |
| 200 |
that comes early in the document, but does not want that to take the place |
| 201 |
of the first reference in the main text (e.g., alter the citation counter). |
| 202 |
Assuming the publisher's rules allow citations in footnote and/or abstract |
| 203 |
sections of the document, the command \IEEEnoauxwrite{} can be used: |
| 204 |
|
| 205 |
\author{... \thanks{... \IEEEnoauxwrite{\cite{myreference}}.}} |
| 206 |
|
| 207 |
to accomplish this. |
| 208 |
|
| 209 |
If the reference is not also cited elsewhere in the document, it will have |
| 210 |
to be manually inserted into the reference list of the bibliography via a |
| 211 |
\nocite. If the \nocite is done at the end of document, the citation will |
| 212 |
be last in the reference list rather than first as would normally happen |
| 213 |
with citations within \thanks. |
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
*** itemize, enumerate and description (IED) lists *** |
| 219 |
|
| 220 |
IEEEtrantools provides the IEEEitemize, IEEEenumerate and IEEEdescription |
| 221 |
list environments that offer enhanced controls and make it much easier to |
| 222 |
create such lists when the main text is "block indented" from the |
| 223 |
labels (IEEE style). |
| 224 |
|
| 225 |
By default, the LaTeX IED list environments are not overridden with the |
| 226 |
IEEE IED versions. To force this, load IEEEtrantools.sty with the |
| 227 |
"redeflists" option: |
| 228 |
|
| 229 |
\usepackage[redeflists]{IEEEtrantools} |
| 230 |
|
| 231 |
In any event, the IEEE IED list environments are available as IEEEitemize, |
| 232 |
IEEEenumerate, and IEEEdescription. The IEEE IED lists depend on the LaTeX |
| 233 |
low-level list environment, so class files that redefine it may also alter |
| 234 |
the IEEE IED list formatting. The original LaTeX IED environments (as |
| 235 |
provided by the LaTeX kernel and class file) are always retained as |
| 236 |
LaTeXitemize, LaTeXenumerate and LaTeXdescription. |
| 237 |
|
| 238 |
Beware that the default enumerate label width will not be correct if |
| 239 |
the class file is not using normalfont "9)" style labeled enumerated lists. |
| 240 |
|
| 241 |
The support commands for the IEEE IED list environments (\IEEEsetlabelwidth, |
| 242 |
\IEEEusemathlabelsep, \IEEEiedlabeljustifyl, etc.) are also provided. |
| 243 |
|
| 244 |
See the section on lists in the IEEEtran_HOWTO manual for full details |
| 245 |
on the IEEE style lists. |
| 246 |
http://www.ctan.org/pkg/ieeetrantools |
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
*** The IEEEeqnarray family *** |
| 251 |
|
| 252 |
Please note that IEEEtrantools provides and sets the length variable |
| 253 |
\IEEEnormaljot. At the \begin{document}, \IEEEnormaljot will be set to |
| 254 |
the current value of \jot. If the user later alters the document's |
| 255 |
nominal \jot, the value of \IEEEnormaljot should be revised as well. |
| 256 |
|
| 257 |
The support commands for the IEEEeqnarray commands (\IEEEstrut, |
| 258 |
\IEEEeqnarrayvrule, \IEEEvisiblestrutstrue, etc.) are also provided. |
| 259 |
|
| 260 |
For more information on the use of the IEEEeqnarray family of commands, |
| 261 |
the following sources of information are recommended: |
| 262 |
|
| 263 |
1. The IEEEtran HOWTO manual (IEEEeqnarray is covered in the Appendices): |
| 264 |
http://www.ctan.org/pkg/ieeetrantools |
| 265 |
|
| 266 |
2. Stefan M. Moser's "How to Typeset Equations in LaTeX" |
| 267 |
http://moser.cm.nctu.edu.tw/manuals.html#eqlatex |
| 268 |
|
| 269 |
3. Tobias Oetiker's "The Not So Short Introduction to LaTeX2e" |
| 270 |
http://www.ctan.org/pkg/lshort |
| 271 |
|
| 272 |
|
| 273 |
|
| 274 |
|
| 275 |
*** The IEEEproof environment *** |
| 276 |
|
| 277 |
IEEEtrantools provides the IEEEtran IEEEproof environment as well as |
| 278 |
several undocumented IEEEtran IEEEproof commands that are useful for |
| 279 |
non-IEEE related work: |
| 280 |
|
| 281 |
1. \IEEEQEDoff, when issued within an IEEEproof, turns off the |
| 282 |
automatic generation of the \IEEEQED symbol at the end of |
| 283 |
the proof. |
| 284 |
|
| 285 |
2. \IEEEQEDhere emits an \IEEEQED symbol at the place it is executed |
| 286 |
and turns off the \IEEEQED symbol at the end of the proof. This |
| 287 |
can be useful when using IEEEeqnarray within IEEEproof |
| 288 |
\begin{IEEEproof} |
| 289 |
\begin{IEEEeqnarray*}{c+x*} |
| 290 |
x=1. & \IEEEQEDhere |
| 291 |
\end{IEEEeqnarray*} |
| 292 |
\end{IEEEproof} |
| 293 |
% Thanks to Stefan M. Moser for this example. |
| 294 |
|
| 295 |
3. \IEEEQEDhereeqn is somewhat similar to the AMS \qedhere and |
| 296 |
is for use with the standard equation environment within |
| 297 |
IEEEproof: |
| 298 |
\begin{IEEEproof} |
| 299 |
\begin{equation*} |
| 300 |
x=1. \IEEEQEDhereeqn |
| 301 |
\end{equation*} |
| 302 |
\end{IEEEproof} |
| 303 |
Note that \IEEEQEDhereeqn will put the QED symbol in front |
| 304 |
of an equation number if it exists. |
| 305 |
|
| 306 |
4. \IEEEproofindentspace allows users to change the indention |
| 307 |
of the proof environment from its IEEEtran default of 2\parindent: |
| 308 |
|
| 309 |
\renewcommand{\IEEEproofindentspace}{1\parindent} |
| 310 |
|
| 311 |
Place the above redefinition before any IEEEproof environments it is |
| 312 |
to affect. |
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
|
| 317 |
*** \IEEEauthorrefmark{} *** |
| 318 |
|
| 319 |
The \IEEEauthorrefmark{} simply takes a number as an argument and generates |
| 320 |
a corresponding superscript symbol. Used in IEEEtran.cls to link author |
| 321 |
names to their affiliations: |
| 322 |
|
| 323 |
Michael Shell\IEEEauthorrefmark{2} |
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
%%%%%%%%%%%%%%%%%%%%%%%%%% End of IEEEtrantools_doc.txt %%%%%%%%%%%%%%%%%% |
| 328 |
% That's all folks! |
| 329 |
|