From: Uwe Stöhr Date: Fri, 7 May 2010 03:23:00 +0000 (+0000) Subject: IEEEtran: update to fulfill the guidelines of IEEEtran version 1.7 (layout file is... X-Git-Tag: 2.0.0~3290 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4138b6b2dd9ae397f7d118180d55d56723db9c89;p=features.git IEEEtran: update to fulfill the guidelines of IEEEtran version 1.7 (layout file is almost rewritten) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34374 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/layouts/IEEEtran.layout b/lib/layouts/IEEEtran.layout index 4480976e12..cb6ab56a10 100644 --- a/lib/layouts/IEEEtran.layout +++ b/lib/layouts/IEEEtran.layout @@ -1,499 +1,288 @@ #% Do not delete he line below; configure depends on this # \DeclareLaTeXClass{article (IEEEtran)} -# Based on Article textclass definition file. -# # Author : Allan Rae # -# IEEEtran is the class used for submitting to any of the IEEE Transactions. -# The on-screen display in LyX is set to reflect the appearance of two column -# text. The section counters appear correctly in the output but are -# in arabic numerals in LyX -- this requires some additional code in LyX -# to get right (maybe LyX-2.0 ;-). +# revised for IEEtran version 1.7a +# Author: Uwe Stöhr (uwestoehr@web.de) # -# IEEEtran.cls can be obtained from the www.ieee.org website -- look for -# the author information area. There is a LaTeX 2.09 IEEEtran.sty available -# also but LyX doesn't support 2.09 stuff so don't get that one. - -Format 26 -Style Standard - Margin Static - LatexType Paragraph - LatexName dummy - ParIndent MM - ParSkip 0.4 - Align Block - AlignPossible Block, Left, Right, Center - LabelType No_Label -End - - - -## -## stdlists -## - -Input stdlists.inc -Input stdinsets.inc - -# First cut at theorem environment support. -# What other theorem-like environments are needed? -# How many of these should be discarded? -# I got this list from amsmaths*.inc but I haven't -# found an official list of theorem environments for -# IEEE Transactions. -# OH! and all theorems are numbered. Is that a problem? -# Tell me: rae@lyx.org - - -# Theorem-numbered style *Template* declaration -Style TheoremTemplate - Margin First_Dynamic - LatexType Environment - LabelSep M - ParIndent MM - ParSep 0.4 - Align Block - AlignPossible Block, Left - LabelType Static - LabelFont - Shape Italic - EndFont - OptionalArgs 1 -End - - -Style Proof - CopyStyle TheoremTemplate - LatexName proof - LabelString "Proof:" - EndLabelType Filled_Box -End - - -Style Theorem - CopyStyle TheoremTemplate - LatexName thm - LabelString "Theorem #:" - Preamble - \newtheorem{thm}{Theorem} - EndPreamble -End - - -Style Lemma - CopyStyle TheoremTemplate - LatexName lemma - LabelString "Lemma #:" - Preamble - \newtheorem{lemma}{Lemma} - EndPreamble -End - - -Style Corollary - CopyStyle TheoremTemplate - LatexName cor - LabelString "Corollary #:" - Preamble - \newtheorem{cor}{Corollary} - EndPreamble -End - - -Style Proposition - CopyStyle TheoremTemplate - LatexName prop - LabelString "Proposition #:" - Preamble - \newtheorem{prop}{Proposition} - EndPreamble -End - - -Style Conjecture - CopyStyle TheoremTemplate - LatexName conject - LabelString "Conjecture #:" - Preamble - \newtheorem{conject}{Conjecture} - EndPreamble -End +# IEEtran textclass definition file. -Style Criterion - CopyStyle TheoremTemplate - LatexName criter - LabelString "Criterion #:" - Preamble - \newtheorem{criter}{Criterion} - EndPreamble -End - - -Style Fact - CopyStyle TheoremTemplate - LatexName fact - LabelString "Fact #:" - Preamble - \newtheorem{fact}{Fact} - EndPreamble -End - - -Style Axiom - CopyStyle TheoremTemplate - LatexName axi - LabelString "Axiom #:" - Preamble - \newtheorem{axi}{Axiom} - EndPreamble -End - - -Style Definition - CopyStyle TheoremTemplate - LatexName definitn - LabelString "Definition #:" - Preamble - \newtheorem{definitn}{Definition} - EndPreamble -End - - -Style Example - CopyStyle TheoremTemplate - LatexName example - LabelString "Example #:" - Preamble - \newtheorem{example}{Example} - EndPreamble -End - - -Style Condition - CopyStyle TheoremTemplate - LatexName condition - LabelString "Condition #:" - Preamble - \newtheorem{condition}{Condition} - EndPreamble -End - - -Style Problem - CopyStyle TheoremTemplate - LatexName problem - LabelString "Problem #:" - Preamble - \newtheorem{problem}{Problem} - EndPreamble -End - - -Style Exercise - CopyStyle TheoremTemplate - LatexName exacise - LabelString "Exercise #:" - Preamble - \newtheorem{exacise}{Exercise} - EndPreamble -End - - -Style Remark - CopyStyle TheoremTemplate - LatexName remrk - LabelString "Remark #:" - Preamble - \newtheorem{remrk}{Remark} - EndPreamble -End +Format 26 +Columns 2 +Sides 1 +SecNumDepth 3 +TocDepth 3 +DefaultStyle Standard -Style Claim - CopyStyle TheoremTemplate - LatexName claim - LabelString "Claim #:" - Preamble - \newtheorem{claim}{Claim} - EndPreamble -End +ClassOptions + FontSize 9|10|11|12 +end -Style Note - CopyStyle TheoremTemplate - LatexName note - LabelString "Note #:" - Preamble - \newtheorem{note}{Note} - EndPreamble -End +# This is just to show how to declare the default font. +# The defaults are exactly those shown here. +DefaultFont + Family Roman + Series Medium + Shape Up + Size Normal + Color None +EndFont -Style Notation - CopyStyle TheoremTemplate - LatexName notation - LabelString "Notation #:" - Preamble - \newtheorem{notation}{Notation} - EndPreamble +Style Standard + Margin Static + LatexType Paragraph + LatexName dummy + ParIndent MM + ParSkip 0.4 + Align Block + AlignPossible Block, Left, Right, Center + LabelType No_Label End - -Style Case - CopyStyle TheoremTemplate - LatexName case - LabelString "Case #:" - Preamble - \newtheorem{case}{Case} - EndPreamble +Counter theorem End -NoStyle TheoremTemplate - - - -## -## stdcounters, stdsections, and stdstarsections -## - Input stdcounters.inc +Input stdfloats.inc +Input stdlists.inc Input stdsections.inc Input stdstarsections.inc - -NoStyle Part -NoStyle Part* -NoStyle Chapter -NoStyle Chapter* -NoStyle Subparagraph -NoStyle Subparagraph* - - -Style Section - Align Center - AlignPossible Block, Center, Left +Input stdlayouts.inc +Input theorems.inc + + +NoStyle Chapter +NoStyle Chapter* + + +Style Title + Margin Static + LatexType Command + LatexName title + Category FrontMatter + InTitle 1 + OptionalArgs 0 + ParSkip 0.4 + ItemSep 0 + TopSep 0 + BottomSep 1 + ParSep 1 + Align Center + LabelType No_Label Font - Shape Smallcaps - Size Normal + Size Largest EndFont - TocLevel 1 End -Style Subsection +InsetLayout IEEE_membership + LyxType custom + LatexType command + LatexName IEEEmembership + LabelString "IEEE membership" Font - Shape Italic - Size Normal + Size Large + Misc No_Emph + Misc No_Noun + Misc No_Bar + EndFont + LabelFont + Color green + Size Small EndFont - TocLevel 2 End -Style Subsubsection +InsetLayout Lowercase + CopyStyle IEEE_membership + LatexType command + LatexName MakeLowercase + LabelString "lowercase" Font - Shape Up - Size Normal + Size Normal EndFont - TocLevel 3 End -Style Section* - Align Center - AlignPossible Block, Center, Left +Style IEEE_special_paper_notice + CopyStyle Title + LatexName IEEEspecialpapernotice + InTitle 1 Font - Shape Smallcaps - Size Normal + Size Large EndFont End -Style Subsection* +Style IEEE_after_title_text + CopyStyle IEEE_special_paper_notice + LatexName IEEEaftertitletext Font - Shape Italic - Size Normal + Size Normal EndFont End -Style Subsubsection* +Style Author + Margin Static + LatexType Command + Category FrontMatter + InTitle 1 + OptionalArgs 1 + LatexName author + LabelSep xxx + ParSkip 0.4 + TopSep 1.3 + BottomSep 0.7 + ParSep 0.7 + Align Center + LabelType No_Label Font - Shape Up - Size Normal + Size Large EndFont End +Style MarkBoth + LaTeXType Command + LaTeXName markboth + Category FrontMatter + InTitle 1 + Align Center + Preamble + % protect \markboth against an old bug reintroduced in babel >= 3.8g + \let\oldforeign@language\foreign@language + \DeclareRobustCommand{\foreign@language}[1]{% + \lowercase{\oldforeign@language{#1}}} + EndPreamble +End -## -## stdstruct -## -Input stdtitle.inc -Input stdstruct.inc Style Abstract - Margin First_Dynamic - LeftMargin "" - RightMargin "" -# ParIndent MM - LabelType Static - LabelString "Abstract---" -# LabelBottomSep 0.0 + Margin Dynamic + LatexType Environment + LatexName abstract + Category FrontMatter + TopSep 0.7 + BottomSep 0.7 + ParSkip 0.4 + Align Center + LabelSep xx + LabelType Static + LabelString "Abstract -" Font - Series Bold - Size Small + Series Bold EndFont LabelFont - Shape Italic - Series Medium - Size Small + Series Bold + Color Green EndFont End Style Keywords - Margin Dynamic - LatexType Environment - InTitle 0 - LatexName keywords - ParSkip 0.4 - BottomSep 1.5 - ParSep 1.5 - Align Left - AlignPossible Block, Left, Right, Center - LabelType Static - LabelString "Index Terms---" - TextFont - Shape Up - Size Small - EndFont - LabelFont - Shape Italic - Size Small - EndFont + CopyStyle Abstract + LatexName IEEEkeywords + LabelString "Keywords -" End -Style Bibliography +Style Appendices + Margin Dynamic + LatexType Command + LatexName appendices + Category BackMatter + KeepEmpty 1 + ParSkip 0.4 + Align Block + LabelSep xx + LabelType Static + LabelString "Appendices" LabelFont - Shape Smallcaps - Series Medium - Size Normal + Series Bold + Color Green EndFont End - Style Appendix - Margin Static - LatexType Command - InTitle 0 - LatexName appendix - ParSkip 0.4 - BottomSep 1.5 - ParSep 1.5 - Align Block - AlignPossible Block, Left, Right, Center - LabelType Static - LabelString "Appendix" - TextFont - Shape Up - Size Normal - EndFont - LabelFont - Shape Smallcaps - Size Normal - EndFont + CopyStyle Appendices + LatexName appendix + LabelString "Appendix" + OptionalArgs 1 End -Style Appendices - CopyStyle Appendix - LatexName appendices - LabelString "Appendices" +Style Bibliography + Margin First_Dynamic + LatexType Bib_Environment + LatexName thebibliography + Category BackMatter + NextNoIndent 1 + LeftMargin MM + ParSkip 0.4 + ItemSep 0 + TopSep 0.7 + BottomSep 0.7 + ParSep 0.5 + Align Block + AlignPossible Block, Left + LabelType Bibliography + LabelString "References" + LabelBottomSep 1.2 + LabelFont + Series Bold + Size Larger + EndFont End Style Biography - LaTeXType Environment - LaTeXName biography - Align Block + LaTeXType Environment + LaTeXName IEEEbiography + Category BackMatter + OptionalArgs 1 + Align Block TextFont - Size Small + Size Small EndFont End -Style BiographyNoPhoto - LaTeXType Environment - LaTeXName biographynophoto - Align Block - TextFont - Size Small - EndFont +Style Biography_without_photo + CopyStyle Biography + LaTeXName IEEEbiographynophoto + OptionalArgs 0 End -## -## stdlayouts -## - -Input stdlayouts.inc - - - - -Style Footernote - Margin Static - LatexType Command - InTitle 0 - LatexName footernote - ParSkip 0.4 - BottomSep 1.5 - ParSep 1.5 - Align Center - AlignPossible Block, Left, Right, Center - LabelType Static - LabelString "Footernote" - TextFont - Shape Up - Size Small +Style Proof + Category Theorem + Margin First_Dynamic + LatexType Environment + LatexName IEEEproof + NextNoIndent 1 + OptionalArgs 1 + LabelSep xx + ParIndent MMM + ParSkip 0.4 + ItemSep 0.2 + TopSep 0.7 + BottomSep 0.7 + ParSep 0.3 + Align Block + AlignPossible Block, Left + LabelType Static + LabelString "Proof." + EndLabelType Filled_Box + Font + Shape Up + Size Normal EndFont LabelFont - Shape Italic - Size Small + Shape Italic EndFont End - - -Style MarkBoth - LaTeXType Command - LaTeXName markboth - Align Center - Preamble - % protect \markboth against an old bug reintroduced in babel >= 3.8g - \let\oldforeign@language\foreign@language - \DeclareRobustCommand{\foreign@language}[1]{% - \lowercase{\oldforeign@language{#1}}} - EndPreamble -End - - -## -## Others -## - -Input stdfloats.inc -Input lyxmacros.inc - - -Columns 1 -Sides 1 -SecNumDepth 3 -TocDepth 3 - - -ClassOptions - FontSize 9|10|11|12 -End - - diff --git a/lib/templates/IEEEtran.lyx b/lib/templates/IEEEtran.lyx index b9864f7971..c0b8118fd9 100644 --- a/lib/templates/IEEEtran.lyx +++ b/lib/templates/IEEEtran.lyx @@ -1,9 +1,17 @@ -#LyX 1.6.0 created this file. For more info see http://www.lyx.org/ +#LyX 1.6.6svn created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header -\use_default_options false \textclass IEEEtran +\begin_preamble +% for subfigures/subtables +\ifCLASSOPTIONcompsoc +\usepackage[caption=false,font=normalsize,labelfont=sf,textfont=sf]{subfig} +\else +\usepackage[caption=false,font=footnotesize]{subfig} +\fi +\end_preamble +\use_default_options false \language english \inputencoding default \font_roman default @@ -14,11 +22,24 @@ \font_osf false \font_sf_scale 100 \font_tt_scale 100 + \graphics default \float_placement tbh \paperfontsize default \spacing single -\use_hyperref false +\use_hyperref true +\pdf_title "Your Title" +\pdf_author "Your Name" +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder true +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle false +\pdf_quoted_options "pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" \papersize default \use_geometry false \use_amsmath 0 @@ -36,55 +57,172 @@ \paperpagestyle default \tracking_changes false \output_changes false -\author "" -\author "" +\author "" +\author "" \end_header \begin_body +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +You find the IEEEtran document class documentation here: http://mirror.ctan.org/ma +cros/latex/contrib/IEEEtran/IEEEtran_HOWTO.pdf +\end_layout + +\end_inset + + +\end_layout + \begin_layout Title -Your Title: And maybe a bit extra +Your Title \end_layout \begin_layout Author -\begin_inset Note Note -status collapsed +Your +\begin_inset space ~ +\end_inset + +Name, +\begin_inset space ~ +\end_inset + + +\begin_inset Flex IEEE membership +status open + +\begin_layout Plain Layout +Member, +\begin_inset space ~ +\end_inset + +IEEE, +\end_layout + +\end_inset + + Second +\begin_inset space ~ +\end_inset + +Name, +\begin_inset space ~ +\end_inset + + +\begin_inset Flex IEEE membership +status open \begin_layout Plain Layout -Remember that initial submissions don't show the authors +Fellow,OSA, \end_layout +\end_inset + + and +\begin_inset space ~ +\end_inset + +Third +\begin_inset space ~ +\end_inset + +Name, +\begin_inset space ~ +\end_inset + + +\begin_inset Flex IEEE membership +status open + \begin_layout Plain Layout -names so you'll need to make this a 'Comment'. +Life +\begin_inset space ~ +\end_inset + +Fellow, +\begin_inset space ~ +\end_inset + +IEEE \end_layout \end_inset -Your Name, Your Co-Author + \begin_inset Foot status collapsed \begin_layout Plain Layout -Your name is with xyz Department\SpecialChar \ldots{} +Your +\begin_inset space ~ +\end_inset + +Name is with the Department of ..., ... + Institute of ..., City, Country, e-mail: +\begin_inset CommandInset href +LatexCommand href +target "xxx@xxx.xxx" + +\end_inset +. \end_layout \end_inset +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Second +\begin_inset space ~ +\end_inset + +Name is with the Department of ..., ... + Institute of ..., City, Country, e-mail: +\begin_inset CommandInset href +LatexCommand href +target "xxx@xxx.xxx" + +\end_inset + +. \end_layout -\begin_layout Abstract -This paper presents a simple template for IEEEtran documents. - +\end_inset + + +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Third +\begin_inset space ~ +\end_inset + +Name is with the Department of ..., ... + Institute of ..., City, Country, e-mail: +\begin_inset CommandInset href +LatexCommand href +target "xxx@xxx.xxx" + +\end_inset + +. \end_layout -\begin_layout Keywords -simplicity, beauty, elegance +\end_inset + + \end_layout \begin_layout MarkBoth -This is for left pages +Journal of XXX \begin_inset ERT status collapsed @@ -95,32 +233,56 @@ status collapsed \end_inset -and this is for right pages -\end_layout +Your Name +\emph on -\begin_layout Section -Introduction -\begin_inset Note Note +\begin_inset Flex Lowercase status collapsed \begin_layout Plain Layout -Don't panic the section numbering may look different in + +\emph on +et al. \end_layout +\end_inset + + +\emph default +: Your Title +\begin_inset Note Note +status open + \begin_layout Plain Layout -LyX but LaTeX uses the correct Roman numerals and +page headings \end_layout -\begin_layout Plain Layout -Alpha for section counters. +\end_inset + + \end_layout +\begin_layout IEEE special paper notice +Invited Paper +\begin_inset Note Note +status open + \begin_layout Plain Layout -It's just that LyX doesn't handle counters other than arabic +of course optional \end_layout +\end_inset + + +\end_layout + +\begin_layout IEEE after title text +after title text like dedication +\begin_inset Note Note +status open + \begin_layout Plain Layout -numerals. +optional \end_layout \end_inset @@ -128,7 +290,35 @@ numerals. \end_layout +\begin_layout Abstract +This ist the abstact text. +\end_layout + +\begin_layout Keywords +simplicity, beauty, elegance +\end_layout + +\begin_layout Section +Introduction +\end_layout + \begin_layout Standard +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +The +\series bold + +\backslash +IEEEPARstart +\series default + command is needed in the first paragraph fo the document. +\end_layout + +\end_inset + + \begin_inset ERT status collapsed @@ -136,13 +326,35 @@ status collapsed \backslash -PARstart{T}{here} +IEEEPARstart{ +\end_layout + +\end_inset + + H +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + +ere +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} \end_layout \end_inset - is a need for a little Evil Red Text in the first paragraph. - Refer to the IEEEtran documentation (sample document) for more details. + is the text text text text text text text text text text text text text + text text text. \end_layout \begin_layout Section @@ -150,7 +362,15 @@ Previous Work \end_layout \begin_layout Standard -This is only a template remember. +text text text text text text text text text text text text text text text +\end_layout + +\begin_layout Subsection +subsection +\end_layout + +\begin_layout Subsection +another subsection \end_layout \begin_layout Section @@ -307,36 +527,58 @@ Conclusions \end_layout \begin_layout Standard -\begin_inset Note Comment -status collapsed +bla bla +\end_layout -\begin_layout Plain Layout +\begin_layout Appendices \begin_inset Note Note -status collapsed +status open \begin_layout Plain Layout -Change this paragraphs style to 'Standard' to enable +Don't add text here! \end_layout -\begin_layout Plain Layout -BibTeX bibliography generation. +\end_inset + + \end_layout -\begin_layout Plain Layout -Remember though that your final submission is supposed to have +\begin_layout Section +First appendix \end_layout -\begin_layout Plain Layout -all the bibliography entries embedded in the latex file. - This means +\begin_layout Standard +Citation: +\begin_inset CommandInset citation +LatexCommand citet +key "IEEEexample:beebe_archive" + +\end_inset + + \end_layout -\begin_layout Plain Layout -you eventually have to copy the .bbl file into the latex file and +\begin_layout Section +Second appendix +\end_layout + +\begin_layout Section* +Acknowlegment +\end_layout + +\begin_layout Standard +bla bla \end_layout +\begin_layout Standard +\begin_inset Note Note +status open + \begin_layout Plain Layout -remove the bibtex lines. +Remember though that your final submission is supposed to have all the bibliogra +phy entries embedded in the LaTeX-file. + This means you eventually have to copy the .bbl file into the latex file + and remove the bibtex lines. \end_layout \end_inset @@ -344,20 +586,41 @@ remove the bibtex lines. \begin_inset CommandInset bibtex LatexCommand bibtex -bibfiles "your_biblio_file" -options "IEEEbib" +bibfiles "IEEEabrv,IEEEexample" +options "IEEEtran" \end_inset \end_layout +\begin_layout Biography +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + \end_inset +Your Name +\begin_inset ERT +status collapsed +\begin_layout Plain Layout + +} \end_layout -\begin_layout Biography +\end_inset + + All about you and the what your interests are. +\begin_inset OptArg +status open + +\begin_layout Plain Layout \begin_inset ERT status collapsed @@ -368,7 +631,17 @@ status collapsed \end_inset -Your Name + +\begin_inset Graphics + filename ../examples/CV-image.png + width 1in + height 1.25in + keepAspectRatio + clip + +\end_inset + + \begin_inset ERT status collapsed @@ -379,16 +652,19 @@ status collapsed \end_inset - All about you and the what your interests are. - Don't forget to put your name in between a pair of {}'s that are set as - raw TeX. + +\end_layout + +\end_inset + + \end_layout \begin_layout --Separator-- \end_layout -\begin_layout Biography +\begin_layout Biography without photo \begin_inset ERT status collapsed @@ -410,7 +686,7 @@ status collapsed \end_inset -Same again for the co-author. +Same again for the co-author, but without photo \end_layout \end_body