mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 20:32:49 +00:00
04efe3c40a
* src/LaTeXFeatures.C (mustProvide): new method; returns true when isRequired is true and the feature is not provided by the textclass. (getPackages, getLyXSGMLEntities): use mustProvide when relevant. * src/bufferparams.C (getEngine): * src/buffer.C (validate): adapt to change below. * src/lyxtextclass.C (read): replace tags ProvidesNatbib, ProvidesMakeidx, ProvidesUrl and ProvidesAmsmath by a generic "Provides". (provides): take a string as argument. * lib/scripts/layout2layout.py (convert): convert "ProvidesXxx" tags to "Provides xxx". * lib/layouts/*: update to format 4. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17740 a592a061-630c-0410-9148-cb99ea01b6c8
82 lines
2.0 KiB
PHP
82 lines
2.0 KiB
PHP
# Standard textclass definition file. Taken from initial LyX source code
|
|
# Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
|
|
# Transposed by Pascal André <andre@via.ecp.fr>
|
|
# Heavily modifed and enhanced by several developers.
|
|
|
|
# This file contains some special LyX environments that are used by
|
|
# all environment classes. Some of these are a bit peculiar and might
|
|
# be removed later.
|
|
|
|
|
|
Format 4
|
|
Style LyX-Code
|
|
Margin Static
|
|
LatexType Environment
|
|
LatexName lyxcode
|
|
NextNoIndent 1
|
|
LeftMargin MMM
|
|
RightMargin MMM
|
|
TopSep 0.5
|
|
BottomSep 0.5
|
|
Align Left
|
|
AlignPossible Block, Left, Right, Center
|
|
LabelType No_Label
|
|
FreeSpacing 1
|
|
Preamble
|
|
\newenvironment{lyxcode}
|
|
{\begin{list}{}{
|
|
\setlength{\rightmargin}{\leftmargin}
|
|
\setlength{\listparindent}{0pt}% needed for AMS classes
|
|
\raggedright
|
|
\setlength{\itemsep}{0pt}
|
|
\setlength{\parsep}{0pt}
|
|
\normalfont\ttfamily}%
|
|
\item[]}
|
|
{\end{list}}
|
|
EndPreamble
|
|
Font
|
|
Family Typewriter
|
|
EndFont
|
|
End
|
|
|
|
|
|
Style Address
|
|
Margin Static
|
|
LatexType Command
|
|
LatexName lyxaddress
|
|
ParSkip 0.4
|
|
BottomSep 1.5
|
|
ParSep 1.5
|
|
Align Left
|
|
AlignPossible Block, Left, Right, Center
|
|
LabelType No_Label
|
|
Preamble
|
|
\newcommand{\lyxaddress}[1]{
|
|
\par {\raggedright #1
|
|
\vspace{1.4em}
|
|
\noindent\par}
|
|
}
|
|
EndPreamble
|
|
End
|
|
|
|
|
|
Style Right_Address
|
|
Margin Right_Address_Box
|
|
LatexType Command
|
|
LatexName lyxrightaddress
|
|
ParSkip 0.4
|
|
BottomSep 1.5
|
|
ParSep 1.5
|
|
Align Left
|
|
AlignPossible Left
|
|
Preamble
|
|
\newcommand{\lyxrightaddress}[1]{
|
|
\par {\raggedleft \begin{tabular}{l}\ignorespaces
|
|
#1
|
|
\end{tabular}
|
|
\vspace{1.4em}
|
|
\par}
|
|
}
|
|
EndPreamble
|
|
End
|