On Fri, Oct 06, 2006 at 11:30:12AM +0200, Jean-Marc Lasgouttes wrote: > >>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> You mean, layout files corresponding to official class files, > Martin> right? > > Yes. > > Martin> isprs is official in the sense that their Instructions to > Martin> Authors refer to it. The same for njsr (but then I am the > Martin> editor-in-chief of that journal :-) > > Then we should take them in LyX. > > Martin> We should certainly think about easier ways to add new classes > Martin> to LyX, currently it is way too complicated. > > Sure, but what is the best solution? > > JMarc
Attached the patch to add isprs to trunk. I nobody objects it goes in later. - Martin
Index: lib/layouts/isprs.layout
===================================================================
--- lib/layouts/isprs.layout (revision 0)
+++ lib/layouts/isprs.layout (revision 0)
@@ -0,0 +1,264 @@
+#% Do not delete the line below; configure depends on this
+# \DeclareLaTeXClass{article (Int. Soc. for Photogrammetry etc) isprs}
+# Find the class file at, e.g.,
+# http://www.photogrammetry.ethz.ch/tarasp_workshop/isprs.cls
+# Article textclass definition file. Taken from initial LyX source code
+# Author : Matthias Ettrich <[EMAIL PROTECTED]>
+# Transposed by Pascal Andr� <[EMAIL PROTECTED]>
+# Heavily modifed and enhanced by serveral developers.
+
+# Input general definitions
+Format 2
+Input stdclass.inc
+Sides 2
+Columns 2
+
+# There are no chapters in an article.
+NoStyle Chapter
+NoStyle Chapter*
+
+SecNumDepth 3
+TocDepth 3
+
+# Abstract style definition
+Style Abstract
+ Margin Static
+ LatexType Command
+ LatexName abstract
+ LeftMargin ""
+ RightMargin ""
+ ParIndent ""
+ NextNoIndent 1
+ ItemSep 0
+ ParSep 0
+ LabelSep x
+ Align Block
+ AlignPossible Block
+ LabelType Top_Environment
+ LabelString "ABSTRACT:"
+ InTitle 1
+
+# standard font definition
+ Font
+ Size Normal
+ EndFont
+# label font definition
+ LabelFont
+ Series Bold
+ EndFont
+End
+
+# Keywords style definition
+Style Keywords
+ Margin Static
+ LatexType Command
+ LatexName keywords
+ LeftMargin ""
+ RightMargin ""
+ ParIndent ""
+ NextNoIndent 1
+ ItemSep 0
+ ParSep 0
+ LabelSep x
+ Align Left
+ AlignPossible Block, Left
+ LabelType Top_Environment
+ LabelString "KEY WORDS:"
+ InTitle 1
+
+# label font definition
+ LabelFont
+ Series Bold
+ EndFont
+End
+
+# Author style definition
+Style Author
+ Margin Static
+ LatexType Command
+ InTitle 1
+ LatexName author
+ NextNoIndent 1
+ ParSkip 0.4
+ Align Center
+ AlignPossible Center
+ LabelType No_Label
+
+# standard font definition
+ Font
+ Size Large
+ EndFont
+
+End
+# Title style definition
+Style Title
+ Margin Static
+ LatexType Command
+ InTitle 1
+ LatexName title
+ TopSep 1.3
+ NextNoIndent 1
+ Align Center
+ AlignPossible Block, Center, Left, Right
+ LabelType No_Label
+ Fill_Top 1
+ Fill_Bottom 1
+
+# standard font definition
+ Font
+ Series Bold
+ Size LARGE
+ EndFont
+
+End
+
+Style Address
+ Margin Static
+ LatexType Command
+ InTitle 1
+ LatexName address
+ TopSep 1.3
+ NextNoIndent 1
+ Align Center
+ AlignPossible Block, Center, Left, Right
+ LabelType No_Label
+ Fill_Top 1
+ Fill_Bottom 1
+
+# standard font definition
+ Font
+ Size Large
+ EndFont
+
+End
+
+Style Commission
+ Margin Static
+ LatexType Command
+ InTitle 1
+ LatexName title
+ TopSep 1.3
+ NextNoIndent 1
+ Align Center
+ AlignPossible Block, Center, Left, Right
+ LabelType No_Label
+ Fill_Top 1
+ Fill_Bottom 1
+
+# standard font definition
+ Font
+ Series Bold
+ Size Large
+ EndFont
+
+End
+
+# Section style definition
+Style Section
+ Align Center
+ AlignPossible Block, Center, Left, Right
+# standard font definition
+ Font
+ Series Bold
+ Size Normal
+ EndFont
+End
+
+# Subsection style definition
+Style Subsection
+# standard font definition
+ Font
+ Series Bold
+ Size Normal
+ EndFont
+End
+
+# Subsubsection style definition
+Style Subsubsection
+# standard font definition
+ Font
+ Series Bold
+ Size Normal
+ EndFont
+End
+
+# Section* style definition
+Style Section*
+ Align Center
+ AlignPossible Block, Center, Left, Right
+# standard font definition
+ Font
+ Series Bold
+ Size Normal
+ EndFont
+End
+
+# Subsection* style definition
+Style Subsection*
+# standard font definition
+ Font
+ Series Bold
+ Size Normal
+ EndFont
+End
+
+# Subsubsection* style definition
+Style Subsubsection*
+# standard font definition
+ Font
+ Series Bold
+ Size Normal
+ EndFont
+End
+
+# Caption style definition
+Style Caption
+ Margin First_Dynamic
+ LatexType Command
+ LatexName caption
+ LeftMargin ""
+ NeedProtect 1
+ LabelSep x
+ Align Block
+ AlignPossible Block, Left
+ LabelType Sensitive
+ LabelString Caption.
+
+# label font definition
+ Font
+ Size Small
+ EndFont
+
+ LabelFont
+ Size Small
+ EndFont
+End
+
+# Acknowledgement(s) style definitions
+Style Acknowledgements
+ Margin Static
+ LatexType Command
+ LatexName acknowledgements
+ LeftMargin ""
+ RightMargin ""
+ ParIndent ""
+ LabelSep X
+ TopSep 0.7
+ LabelType Top_Environment
+ LabelString "ACKNOWLEDGEMENTS"
+
+ Preamble
+ \newcommand{\acknowledgements}[1]{\section*{ACKNOWLEDGEMENTS} #1}
+ EndPreamble
+
+# label font definition
+ Font
+ Size Normal
+ EndFont
+
+ LabelFont
+ Series Bold
+ Size Normal
+ EndFont
+End
+
Index: lib/doc/LaTeXConfig.lyx.in
===================================================================
--- lib/doc/LaTeXConfig.lyx.in (revision 15135)
+++ lib/doc/LaTeXConfig.lyx.in (working copy)
@@ -1,4 +1,4 @@
-#LyX 1.4.2svn created this file. For more info see http://www.lyx.org/
+#LyX 1.4.2 created this file. For more info see http://www.lyx.org/
\lyxformat 245
\begin_document
\begin_header
@@ -890,7 +890,7 @@
\family sans
aa
\family default
- (Version 5.01) can be used to write articles for submission to the scientific
+ (Version 5.01) can be used to write articles for submission to the scientific
journal
\emph on
Astronomy and Astrophysics
@@ -2216,6 +2216,35 @@
\end_layout
+\begin_layout Subsection
+International Society for Photogrammetry and Remote Sensing
+\end_layout
+
+\begin_layout Description
+Found @chk_isprs@
+\end_layout
+
+\begin_layout Description
+CTAN: N/A
+\end_layout
+
+\begin_layout Description
+Notes:
+\family sans
+isprs
+\family default
+ can be used for writing articles for this Society's journals.
+\end_layout
+
+\begin_layout Description
+WWW:
+\begin_inset LatexCommand
\url{http://www.photogrammetry.ethz.ch/tarasp_workshop/isprs.cls}
+
+\end_inset
+
+
+\end_layout
+
\begin_layout Section
Required packages
\end_layout
@@ -2452,23 +2481,20 @@
\end_layout
\begin_layout Description
-
Found: @chk_booktabs@
\end_layout
\begin_layout Description
-
CTAN:
-\family typewriter
+\family typewriter
macros/latex/contrib/booktabs/
\end_layout
\begin_layout Description
-
Notes: The package
-\family sans
+\family sans
booktabs
-\family default
+\family default
is needed by LyX to be able to output correctly formal tables.
\end_layout
pgpQD0kiU4rbV.pgp
Description: PGP signature
