⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ieeetran.cls

📁 ieee投稿latex模板
💻 CLS
📖 第 1 页 / 共 5 页
字号:
% will work the same way as before. However, itemize, enumerate and% description (IED) could care less about what these are as they% all are overridden.\leftmargini        2em%\itemindent         2em  % Alternative values: sometimes used.%\leftmargini        0em\leftmarginii       1em\leftmarginiii    1.5em\leftmarginiv     1.5em\leftmarginv      1.0em\leftmarginvi     1.0em\labelsep         0.5em \labelwidth         \z@% The old IEEEtran.cls behavior of \list is retained.% However, the new V1.3 IED list environments override all the% @list stuff (\@listX is called within \list for the% appropriate level just before the user's list_decl is called). % \topsep is now 2pt as IEEE puts a little extra space around% lists - used by those non-IED macros that depend on \list.% Note that \parsep and \itemsep are not redefined as in % the sizexx.clo \@listX (which article.cls uses) so global changes% of these values DO affect \list% \def\@listi{\leftmargin\leftmargini \topsep 2pt plus 1pt minus 1pt}\let\@listI\@listi\def\@listii{\leftmargin\leftmarginii\labelwidth\leftmarginii%    \advance\labelwidth-\labelsep \topsep 2pt}\def\@listiii{\leftmargin\leftmarginiii\labelwidth\leftmarginiii%    \advance\labelwidth-\labelsep \topsep 2pt}\def\@listiv{\leftmargin\leftmarginiv\labelwidth\leftmarginiv%    \advance\labelwidth-\labelsep \topsep 2pt}\def\@listv{\leftmargin\leftmarginv\labelwidth\leftmarginv%    \advance\labelwidth-\labelsep \topsep 2pt}\def\@listvi{\leftmargin\leftmarginvi\labelwidth\leftmarginvi%    \advance\labelwidth-\labelsep \topsep 2pt}% IEEE uses 5) not 5.\def\labelenumi{\theenumi)}     \def\theenumi{\arabic{enumi}}% IEEE uses a) not (a)\def\labelenumii{\theenumii)}  \def\theenumii{\alph{enumii}}% IEEE uses iii) not iii.\def\labelenumiii{\theenumiii)} \def\theenumiii{\roman{enumiii}}% IEEE uses A) not A.\def\labelenumiv{\theenumiv)}   \def\theenumiv{\Alph{enumiv}}% exactly the same as in article.cls\def\p@enumii{\theenumi}\def\p@enumiii{\theenumi(\theenumii)}\def\p@enumiv{\p@enumiii\theenumiii}% itemized list label styles\def\labelitemi{$\scriptstyle\bullet$}\def\labelitemii{\textbf{--}}\def\labelitemiii{$\ast$}\def\labelitemiv{$\cdot$}% **** V1.3 ENHANCEMENTS ****% Itemize, Enumerate and Description (IED) List Controls% ***************************% % % IEEE seems to use at least two different values by% which ITEMIZED list labels are indented to the right% For The Journal of Lightwave Technology (JLT) and The Journal% on Selected Areas in Communications (JSAC), they tend to use% an indention equal to \parindent. For Transactions on Communications% they tend to indent ITEMIZED lists a little more--- 1.3\parindent.% We'll provide both values here for you so that you can choose % which one you like in your document using a command such as:% setlength{\IEEEilabelindent}{\IEEEilabelindentB}\newdimen\IEEEilabelindentA\IEEEilabelindentA \parindent\newdimen\IEEEilabelindentB\IEEEilabelindentB 1.3\parindent% However, we'll default to using \parindent% which makes more sense to me\newdimen\IEEEilabelindent\IEEEilabelindent \IEEEilabelindentA% This controls the default amount the enumerated list labels% are indented to the right.% Normally, this is the same as the paragraph indention\newdimen\IEEEelabelindent\IEEEelabelindent \parindent% This controls the default amount the description list labels% are indented to the right.% Normally, this is the same as the paragraph indention\newdimen\IEEEdlabelindent\IEEEdlabelindent \parindent% This is the value actually used within the IED lists.% The IED environments automatically set its value to% one of the three values above, so global changes do % not have any effect\newdimen\IEEElabelindent\IEEElabelindent \parindent% The actual amount labels will be indented is% \IEEElabelindent multiplied by the factor below% corresponding to the level of nesting depth% This provides a means by which the user can% alter the effective \IEEElabelindent for deeper% levels% There may not be such a thing as correct "standard IEEE"% values. What IEEE actually does may depend on the specific% circumstances.% The first list level almost always has full indention.% The second levels I've seen have only 75% of the normal indentation% Three level or greater nestings are very rare. I am guessing% that they don't use any indentation.\def\IEEElabelindentfactori{1.0}   % almost always one\def\IEEElabelindentfactorii{0.75} % 0.0 or 1.0 may be used in some cases\def\IEEElabelindentfactoriii{0.0} % 0.75? 0.5? 0.0?\def\IEEElabelindentfactoriv{0.0}\def\IEEElabelindentfactorv{0.0}\def\IEEElabelindentfactorvi{0.0}% value actually used within IED lists, it is auto% set to one of the 6 values above% global changes here have no effect\def\IEEElabelindentfactor{1.0}% This controls the default spacing between the end of the IED% list labels and the list text, when normal text is used for% the labels.\newdimen\IEEEiednormlabelsep\IEEEiednormlabelsep 0.6em% This controls the default spacing between the end of the IED% list labels and the list text, when math symbols are used for% the labels (nomenclature lists). IEEE usually increases the % spacing in these cases\newdimen\IEEEiedmathlabelsep\IEEEiedmathlabelsep 1.2em% This controls the extra vertical separation put above and% below each IED list. IEEE usually puts a little extra spacing% around each list. However, this spacing is barely noticeable.\newskip\IEEEiedtopsep\IEEEiedtopsep 2pt plus 1pt minus 1pt% This command is executed within each IED list environment% at the beginning of the list. You can use this to set the % parameters for some/all your IED list(s) without disturbing % global parameters that affect things other than lists.% i.e., renewcommand{\IEEEiedlistdecl}{\setlength{\labelsep}{5em}}% will alter the \labelsep for the next list(s) until % \IEEEiedlistdecl is redefined. \def\IEEEiedlistdecl{\relax}% This command provides an easy way to set \leftmargin based% on the \labelwidth, \labelsep and the argument \IEEElabelindent% Usage: \IEEEcalcleftmargin{width-to-indent-the-label}% output is in the \leftmargin variable, i.e., effectively:% \leftmargin = argument + \labelwidth + \labelsep% Note controlled spacing here, shield end of lines with %\def\IEEEcalcleftmargin#1{\setlength{\leftmargin}{#1}%\addtolength{\leftmargin}{\labelwidth}%\addtolength{\leftmargin}{\labelsep}}% This command provides an easy way to set \labelwidth to the% width of the given text. It is the same as% \settowidth{\labelwidth}{label-text}% and useful as a shorter alternative.% Typically used to set \labelwidth to be the width% of the longest label in the list\def\IEEEsetlabelwidth#1{\settowidth{\labelwidth}{#1}}% When this command is executed, IED lists will use the % IEEEiedmathlabelsep label separation rather than the normal% spacing. To have an effect, this command must be executed via% the \IEEEiedlistdecl or within the option of the IED list% environments.\def\IEEEusemathlabelsep{\setlength{\labelsep}{\IEEEiedmathlabelsep}}% A flag which controls whether the IED lists automatically% calculate \leftmargin from \IEEElabelindent, \labelwidth and \labelsep% Useful if you want to specify your own \leftmargin% This flag must be set (\IEEEnocalcleftmargintrue or \IEEEnocalcleftmarginfalse) % via the \IEEEiedlistdecl or within the option of the IED list% environments to have an effect.\newif\ifIEEEnocalcleftmargin\IEEEnocalcleftmarginfalse% A flag which controls whether \IEEElabelindent is multiplied by% the \IEEElabelindentfactor for each list level.% This flag must be set via the \IEEEiedlistdecl or within the option % of the IED list environments to have an effect.\newif\ifIEEEnolabelindentfactor\IEEEnolabelindentfactorfalse% internal variable to indicate type of IED label% justification% 0 - left; 1 - center; 2 - right\def\@IEEEiedjustify{0}% commands to allow the user to control IED% label justifications. Use these commands within% the IED environment option or in the \IEEEiedlistdecl% Note that changing the normal list justifications% is nonstandard and IEEE may not like it if you do so!% I include these commands as they may be helpful to% those who are using these enhanced list controls for% other non-IEEE related LaTeX work.% itemize and enumerate automatically default to right% justification, description defaults to left.\def\IEEEiedlabeljustifyl{\def\@IEEEiedjustify{0}}%left\def\IEEEiedlabeljustifyc{\def\@IEEEiedjustify{1}}%center\def\IEEEiedlabeljustifyr{\def\@IEEEiedjustify{2}}%right% commands to save to and restore from the list parameter copies% this allows us to set all the list parameters within% the list_decl and prevent \list (and its \@list) % from overriding any of our parameters% V1.6 use \edefs instead of dimen's to conserve dimen registers% Note controlled spacing here, shield end of lines with %\def\@IEEEsavelistparams{\edef\@IEEEiedtopsep{\the\topsep}%\edef\@IEEEiedlabelwidth{\the\labelwidth}%\edef\@IEEEiedlabelsep{\the\labelsep}%\edef\@IEEEiedleftmargin{\the\leftmargin}%\edef\@IEEEiedpartopsep{\the\partopsep}%\edef\@IEEEiedparsep{\the\parsep}%\edef\@IEEEieditemsep{\the\itemsep}%\edef\@IEEEiedrightmargin{\the\rightmargin}%\edef\@IEEEiedlistparindent{\the\listparindent}%\edef\@IEEEieditemindent{\the\itemindent}}% Note controlled spacing here\def\@IEEErestorelistparams{\topsep\@IEEEiedtopsep\relax%\labelwidth\@IEEEiedlabelwidth\relax%\labelsep\@IEEEiedlabelsep\relax%\leftmargin\@IEEEiedleftmargin\relax%\partopsep\@IEEEiedpartopsep\relax%\parsep\@IEEEiedparsep\relax%\itemsep\@IEEEieditemsep\relax%\rightmargin\@IEEEiedrightmargin\relax%\listparindent\@IEEEiedlistparindent\relax%\itemindent\@IEEEieditemindent\relax}% v1.6b provide original LaTeX IED list environments% note that latex.ltx defines \itemize and \enumerate, but not \description% which must be created by the base classes% save original LaTeX itemize and enumerate\let\LaTeXitemize\itemize\let\endLaTeXitemize\enditemize\let\LaTeXenumerate\enumerate\let\endLaTeXenumerate\endenumerate% provide original LaTeX description environment from article.cls\newenvironment{LaTeXdescription}               {\list{}{\labelwidth\z@ \itemindent-\leftmargin                        \let\makelabel\descriptionlabel}}               {\endlist}\newcommand*\descriptionlabel[1]{\hspace\labelsep                                 \normalfont\bfseries #1}% override LaTeX's default IED lists\def\itemize{\@IEEEitemize}\def\enditemize{\@endIEEEitemize}\def\enumerate{\@IEEEenumerate}\def\endenumerate{\@endIEEEenumerate}\def\description{\@IEEEdescription}\def\enddescription{\@endIEEEdescription}% provide the user with aliases - may help those using packages that% override itemize, enumerate, or description\def\IEEEitemize{\@IEEEitemize}\def\endIEEEitemize{\@endIEEEitemize}\def\IEEEenumerate{\@IEEEenumerate}\def\endIEEEenumerate{\@endIEEEenumerate}\def\IEEEdescription{\@IEEEdescription}\def\endIEEEdescription{\@endIEEEdescription}% V1.6 we want to keep the IEEEtran IED list definitions as our own internal% commands so they are protected against redefinition\def\@IEEEitemize{\@ifnextchar[{\@@IEEEitemize}{\@@IEEEitemize[\relax]}}\def\@IEEEenumerate{\@ifnextchar[{\@@IEEEenumerate}{\@@IEEEenumerate[\relax]}}\def\@IEEEdescription{\@ifnextchar[{\@@IEEEdescription}{\@@IEEEdescription[\relax]}}\def\@endIEEEitemize{\endlist}\def\@endIEEEenumerate{\endlist}\def\@endIEEEdescription{\endlist}% DO NOT ALLOW BLANK LINES TO BE IN THESE IED ENVIRONMENTS% AS THIS WILL FORCE NEW PARAGRAPHS AFTER THE IED LISTS% IEEEtran itemized list MDS 1/2001% Note controlled spacing here, shield end of lines with %\def\@@IEEEitemize[#1]{%                \ifnum\@itemdepth>3\relax\@toodeep\else%                \ifnum\@listdepth>5\relax\@toodeep\else%                \advance\@itemdepth\@ne%                \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%                % get the labelindentfactor for this level                \advance\@listdepth\@ne% we need to know what the level WILL be                \edef\IEEElabelindentfactor{\csname IEEElabelindentfactor\romannumeral\the\@listdepth\endcsname}%                \advance\@listdepth-\@ne% undo our increment                \def\@IEEEiedjustify{2}% right justified labels are default                % set other defaults                \IEEEnocalcleftmarginfalse%                \IEEEnolabelindentfactorfalse%                \topsep\IEEEiedtopsep%                \IEEElabelindent\IEEEilabelindent%                \labelsep\IEEEiednormlabelsep%                \partopsep 0ex%                \parsep 0ex%                \itemsep 0ex%                \rightmargin 0em%                \listparindent 0em%                \itemindent 0em%                % calculate the label width                % the user can override this later if

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -