X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fentcs.layout;h=b10589720b40fda84a952c8752f28499981157fa;hb=9c8955ffd9df1a38a617bcbdf011c7b890ea23d1;hp=bc3271a712bdbd622fb0e1b516f89aaaf6e36f19;hpb=80f82c5c208fd018fdc42ac95b5a3d24eb619d2f;p=lyx.git diff --git a/lib/layouts/entcs.layout b/lib/layouts/entcs.layout index bc3271a712..b10589720b 100644 --- a/lib/layouts/entcs.layout +++ b/lib/layouts/entcs.layout @@ -1,115 +1,120 @@ #% Do not delete the line below; configure depends on this -# \DeclareLaTeXClass{article (ENTCS)} +# \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 45 Input article.layout # only font size 11pt is really available ClassOptions - FontSize 11 -End + 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 + 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 + LatexType Command + LatexName setauthor + InTitle 1 + Preamble + \newcommand{\setauthor}[1]{\def\theAuthor{#1}} + EndPreamble End + Style Address - LatexType Command - LatexName setaddress - Align Center - AlignPossible Center - InTitle 1 - Preamble -\newcommand{\setaddress}[1]{\def\theAddress{#1}} - EndPreamble - Font - Shape Italic - EndFont + 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 +# CopyStyle LaTeX + LaTeXType Command + LaTeXName setfrontmatter + InTitle 1 + Preamble + \newcommand{\setfrontmatter}[1]{\def\theFrontMatter{#1}} + EndPreamble End -# Abstract style definition -Style Abstract - LatexType Command - LatexName setabstract - LabelType Top_Environment - ParIndent "" - LeftMargin "" - RightMargin "" - InTitle 1 - Preamble -\newcommand{\setabstract}[1]{\def\theAbstract{#1}\setboolean{hasAbstract}{true}} - EndPreamble + +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 -# Keyword style definition + Style Keyword - Align Center - AlignPossible 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 - - # standard font definition - Font - Size Small - EndFont - - # label font definition - LabelFont - Shape Italic - Size Small - EndFont + 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 - -Preamble -\usepackage{entcsmacro,ifthen} -\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