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
This commit is contained in:
Uwe Stöhr 2010-05-07 03:23:00 +00:00
parent 5e978cf02c
commit 4138b6b2dd
2 changed files with 601 additions and 536 deletions

View File

@ -1,474 +1,158 @@
#% Do not delete he line below; configure depends on this
# \DeclareLaTeXClass{article (IEEEtran)}
# Based on Article textclass definition file.
#
# Author : Allan Rae <rae@lyx.org>
#
# 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.
# IEEtran textclass definition file.
Format 26
Columns 2
Sides 1
SecNumDepth 3
TocDepth 3
DefaultStyle Standard
ClassOptions
FontSize 9|10|11|12
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 Standard
Margin Static
LatexType Paragraph
LatexName dummy
ParIndent MM
ParSkip 0.4
Align Block
AlignPossible Block, Left, Right, Center
LabelType No_Label
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
Counter theorem
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
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
Style Claim
CopyStyle TheoremTemplate
LatexName claim
LabelString "Claim #:"
Preamble
\newtheorem{claim}{Claim}
EndPreamble
End
Style Note
CopyStyle TheoremTemplate
LatexName note
LabelString "Note #:"
Preamble
\newtheorem{note}{Note}
EndPreamble
End
Style Notation
CopyStyle TheoremTemplate
LatexName notation
LabelString "Notation #:"
Preamble
\newtheorem{notation}{Notation}
EndPreamble
End
Style Case
CopyStyle TheoremTemplate
LatexName case
LabelString "Case #:"
Preamble
\newtheorem{case}{Case}
EndPreamble
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
Font
Shape Smallcaps
Size Normal
EndFont
TocLevel 1
End
Style Subsection
Font
Shape Italic
Size Normal
EndFont
TocLevel 2
End
Style Subsubsection
Font
Shape Up
Size Normal
EndFont
TocLevel 3
End
Style Section*
Align Center
AlignPossible Block, Center, Left
Font
Shape Smallcaps
Size Normal
EndFont
End
Style Subsection*
Font
Shape Italic
Size Normal
EndFont
End
Style Subsubsection*
Font
Shape Up
Size Normal
EndFont
End
##
## stdstruct
##
Input stdtitle.inc
Input stdstruct.inc
Style Abstract
Margin First_Dynamic
LeftMargin ""
RightMargin ""
# ParIndent MM
LabelType Static
LabelString "Abstract---"
# LabelBottomSep 0.0
Font
Series Bold
Size Small
EndFont
LabelFont
Shape Italic
Series Medium
Size Small
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
End
Style Bibliography
LabelFont
Shape Smallcaps
Series Medium
Size Normal
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
End
Style Appendices
CopyStyle Appendix
LatexName appendices
LabelString "Appendices"
End
Style Biography
LaTeXType Environment
LaTeXName biography
Align Block
TextFont
Size Small
EndFont
End
Style BiographyNoPhoto
LaTeXType Environment
LaTeXName biographynophoto
Align Block
TextFont
Size Small
EndFont
End
##
## stdlayouts
##
Input stdlayouts.inc
Input theorems.inc
NoStyle Chapter
NoStyle Chapter*
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 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
Size Largest
EndFont
End
InsetLayout IEEE_membership
LyxType custom
LatexType command
LatexName IEEEmembership
LabelString "IEEE membership"
Font
Size Large
Misc No_Emph
Misc No_Noun
Misc No_Bar
EndFont
LabelFont
Shape Italic
Size Small
Color green
Size Small
EndFont
End
InsetLayout Lowercase
CopyStyle IEEE_membership
LatexType command
LatexName MakeLowercase
LabelString "lowercase"
Font
Size Normal
EndFont
End
Style IEEE_special_paper_notice
CopyStyle Title
LatexName IEEEspecialpapernotice
InTitle 1
Font
Size Large
EndFont
End
Style IEEE_after_title_text
CopyStyle IEEE_special_paper_notice
LatexName IEEEaftertitletext
Font
Size Normal
EndFont
End
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
Size Large
EndFont
End
Style MarkBoth
LaTeXType Command
LaTeXName markboth
Align Center
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
@ -478,22 +162,127 @@ Style MarkBoth
End
##
## Others
##
Input stdfloats.inc
Input lyxmacros.inc
Columns 1
Sides 1
SecNumDepth 3
TocDepth 3
ClassOptions
FontSize 9|10|11|12
Style Abstract
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
EndFont
LabelFont
Series Bold
Color Green
EndFont
End
Style Keywords
CopyStyle Abstract
LatexName IEEEkeywords
LabelString "Keywords -"
End
Style Appendices
Margin Dynamic
LatexType Command
LatexName appendices
Category BackMatter
KeepEmpty 1
ParSkip 0.4
Align Block
LabelSep xx
LabelType Static
LabelString "Appendices"
LabelFont
Series Bold
Color Green
EndFont
End
Style Appendix
CopyStyle Appendices
LatexName appendix
LabelString "Appendix"
OptionalArgs 1
End
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 IEEEbiography
Category BackMatter
OptionalArgs 1
Align Block
TextFont
Size Small
EndFont
End
Style Biography_without_photo
CopyStyle Biography
LaTeXName IEEEbiographynophoto
OptionalArgs 0
End
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
EndFont
End

View File

@ -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,37 +57,163 @@
\paperpagestyle default
\tracking_changes false
\output_changes false
\author ""
\author ""
\author ""
\author ""
\end_header
\begin_body
\begin_layout Title
Your Title: And maybe a bit extra
\end_layout
\begin_layout Author
\begin_layout Standard
\begin_inset Note Note
status collapsed
status open
\begin_layout Plain Layout
Remember that initial submissions don't show the authors
\end_layout
\begin_layout Plain Layout
names so you'll need to make this a 'Comment'.
You find the IEEEtran document class documentation here: http://mirror.ctan.org/ma
cros/latex/contrib/IEEEtran/IEEEtran_HOWTO.pdf
\end_layout
\end_inset
Your Name, Your Co-Author
\end_layout
\begin_layout Title
Your Title
\end_layout
\begin_layout Author
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
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
Life
\begin_inset space ~
\end_inset
Fellow,
\begin_inset space ~
\end_inset
IEEE
\end_layout
\end_inset
\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
\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
\end_inset
@ -74,17 +221,8 @@ Your name is with xyz Department\SpecialChar \ldots{}
\end_layout
\begin_layout Abstract
This paper presents a simple template for IEEEtran documents.
\end_layout
\begin_layout Keywords
simplicity, beauty, elegance
\end_layout
\begin_layout MarkBoth
This is for left pages
Journal of XXX
\begin_inset ERT
status collapsed
@ -95,32 +233,28 @@ 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
\begin_layout Plain Layout
LyX but LaTeX uses the correct Roman numerals and
\end_layout
\end_inset
\emph default
: Your Title
\begin_inset Note Note
status open
\begin_layout Plain Layout
Alpha for section counters.
\end_layout
\begin_layout Plain Layout
It's just that LyX doesn't handle counters other than arabic
\end_layout
\begin_layout Plain Layout
numerals.
page headings
\end_layout
\end_inset
@ -128,7 +262,63 @@ numerals.
\end_layout
\begin_layout IEEE special paper notice
Invited Paper
\begin_inset Note Note
status open
\begin_layout Plain Layout
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
optional
\end_layout
\end_inset
\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
is a need for a little Evil Red Text in the first paragraph.
Refer to the IEEEtran documentation (sample document) for more details.
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 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,13 +586,8 @@ remove the bibtex lines.
\begin_inset CommandInset bibtex
LatexCommand bibtex
bibfiles "your_biblio_file"
options "IEEEbib"
\end_inset
\end_layout
bibfiles "IEEEabrv,IEEEexample"
options "IEEEtran"
\end_inset
@ -380,15 +617,54 @@ 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.
\begin_inset OptArg
status open
\begin_layout Plain Layout
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
{
\end_layout
\end_inset
\begin_inset Graphics
filename ../examples/CV-image.png
width 1in
height 1.25in
keepAspectRatio
clip
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
}
\end_layout
\end_inset
\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