lyx_mirror/lib/layouts/entcs.layout
Georg Baum 6b49b6b129 Fix conflicting inset font defaults (bug #8874)
This makes the defaults of Inset::inheritFont() and Inset::resetFontEdit()
compatible. There is no user visible change except for the Chunk inset which
does not produce invalid LaTeX after editing operations anymore.
This is the safe version for 2.1.0, for later there are still open questions:
- All insets with ResetsFont true should be audited: Is this really needed,
  or do they show similar editing problems as the Chunk inset?
- Does inheritFont() need to be customizable in the layout file as well?
- Is resetFontEdit() != !inheritFont() needed at all?
I did not use change tracking for the docs, since I updated all existing
translations.
2014-02-10 22:06:32 +01:00

121 lines
2.7 KiB
Plaintext

#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[entcs,amssymb.sty,entcsmacro.sty,hyperref.sty,ifpdf.sty,latexsym.sty,newlfont.sty]{Electronic Notes in Theor. Comp. Sc. (ENTCS)}
# \DeclareCategory{Articles}
# Based on LyX article class; modified to support ENTCS class
# Reuben Thomas (rrt@sc3d.org) 27/5-2/6/01
Format 49
Input article.layout
# only font size 11pt is really available
ClassOptions
FontSize 11
End
Requires ifthen
Preamble
\usepackage{entcsmacro}
\newcommand{\theTitle}[1]{}
\newcommand{\theAuthor}[1]{}
\newcommand{\theAddress}[1]{}
\newcommand{\theAbstract}[1]{}
\newboolean{hasAbstract}
\newcommand{\theKeyword}[1]{}
\newboolean{hasKeyword}
\newcommand{\theFrontMatter}[1]{}
\newcommand{\maketitle}{
\begin{frontmatter}
\title{\theTitle}
\author{\theAuthor}
\address{\theAddress}
\ifthenelse{\boolean{hasAbstract}}{\begin{abstract}\theAbstract\end{abstract}}{}
\ifthenelse{\boolean{hasKeyword}}{\begin{keyword}\theKeyword\end{keyword}}{}
\theFrontMatter
\end{frontmatter}
}
EndPreamble
Style Title
LatexType Command
LatexName settitle
InTitle 1
Preamble
\newcommand{\settitle}[1]{\def\theTitle{#1}}
EndPreamble
HTMLTitle true
End
Style Author
LatexType Command
LatexName setauthor
InTitle 1
Preamble
\newcommand{\setauthor}[1]{\def\theAuthor{#1}}
EndPreamble
End
Style Address
LatexType Command
LatexName setaddress
Align Center
InTitle 1
Preamble
\newcommand{\setaddress}[1]{\def\theAddress{#1}}
EndPreamble
Font
Shape Italic
EndFont
End
Style FrontMatter
# CopyStyle LaTeX
LaTeXType Command
LaTeXName setfrontmatter
InTitle 1
Preamble
\newcommand{\setfrontmatter}[1]{\def\theFrontMatter{#1}}
EndPreamble
End
Style Abstract
LatexType Command
LatexName setabstract
LabelType Above
ParIndent ""
LeftMargin ""
RightMargin ""
InTitle 1
Preamble
\newcommand{\setabstract}[1]{%
\def\theAbstract{#1}\setboolean{hasAbstract}{true}}
EndPreamble
End
Style Keyword
Align Center
LatexType Command
LatexName setkeyword
InTitle 1
Preamble
\newcommand{\setkeyword}[1]{%
\def\theKeyword{#1}\setboolean{hasKeyword}{true}}
EndPreamble
LabelType Static
LabelString "Key words:"
LabelSep xx
Font
Size Small
EndFont
LabelFont
Shape Italic
Size Small
EndFont
End