Guys The Journal of Sound and Vibration (Academic Press) has recently released a class file for the journal, jsv.cls. See following for more details. http://www.academicpress.com/www/journal/sv/JSVLaTeXFP.htm Anyway, since I often submit to the JSV I've generated a layout file for it based on the article and AMS article layout files, jsv.layout. I've also made an example/template file. I've attached all the relevant files. Hope you can add this to the growing list of layout files. It's my first attempt at a layout file (so go easy on me) and it may need a little work but I think it has all the definitions required (at least from what I could decipher from the jsv.cls file). I realise that you don't need (or want) all the .sty and .cls files but I thought that if you were happy enough to include it in the distribution then maybe you could add to the code so it searches when running reconfigure to see if the user has the appropriate packages before presenting it in the Layout > Document > Class box. The necessary files for JSV are: amssyme.sty equation.sty jsv10.sty jsv.cls Hope this help the effort? Regards Ben -- _________________________________________ Ben Cazzolato Fluid Dynamics and Acoustics Group Institute of Sound and Vibration Research University of Southampton, Southampton, SO17 1BJ UK Email: [EMAIL PROTECTED], or [EMAIL PROTECTED], or [EMAIL PROTECTED], or Work: +44 (0)1703 594 967 Fax: +44 (0)1703 593 190 Mobile: +44 (0)790 163 8826 Web Page : http://www.soton.ac.uk/~bscazz/ _________________________________________
#% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[jsv]{article (JSV)} # Journal of Sound and Vibration textclass definition file. # Based on standard article and AMS article classes # Author : Ben Cazzolato <[EMAIL PROTECTED]> # Global parameters. Sides 2 # Default textclass options. The user may need to modify this. ClassOptions Other "amssyme,equation,bm" End # The environnements defined are : # - Address # - Curriculum vitae # - Collaborator # - Theorem # - Proof # - Proof* # - Corollary # - Lemma # - Axiom # - Conjecture # - Fact # - Hypothesis # - Assumption # - Proposition # - Criterion # - Definition # - Example # - Remark # - Claim # - Problem # - Principle # - Algorithm # # - Acknowledgement # - Keyword # Input general definitions Input stdclass.inc # Including the maths stuff # Input amsmaths.inc # There are no chapters in an article. NoStyle Chapter NoStyle Chapter* MaxCounter Counter_Section SecNumDepth 3 TocDepth 3 # Change a bit Part and Part* Style Part Align Left AlignPossible Left TopSep 2 BottomSep 1.5 Font Size Larger EndFont End Style Part* Align Left AlignPossible Left TopSep 2 BottomSep 1.5 Font Size Larger EndFont End ###-------------------------------------------------------- ### A few new things defined only in the JSV document class ###-------------------------------------------------------- # Address style definition Style Address Margin Static LatexType Command LatexName address ParSkip 0.4 BottomSep 1.5 ParSep 1.5 Align Left AlignPossible Block, Left, Right, Center LabelType No_Label End # Curriculum Vitae style definition Style CV CopyStyle Title LatexName cv Font Family Sans Series Medium Size Large EndFont End # SubTitle style definition Style SubTitle CopyStyle Title LatexName subtitle Font Family Sans Series Medium Size Large EndFont End #Collaborator style definition Style Collaborator Margin Static LatexType Command InTitle 1 LatexName collab LabelSep xxx ParSkip 0.4 TopSep 1.3 BottomSep 0.7 ParSep 0.7 Align Center AlignPossible Center LabelType No_Label # standard font definition Font Size Large EndFont End # Theorem-numbered style declaration Style Theorem Margin First_Dynamic LatexType Environment LatexName thm NextNoIndent 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 "Theorem #." # standard font definition Font Shape Italic Size Normal EndFont # label font definition LabelFont Shape Up Series Bold EndFont End # Proof-numbered style declaration Style Proof CopyStyle Theorem LatexName pf LabelString "Proof #." End # Proof-unnumbered style declaration Style Proof* CopyStyle Theorem LatexName pf* LabelString "Proof." End # Corollary-numbered style declaration Style Corollary CopyStyle Theorem LatexName cor LabelString "Corollary #." End # Lemma-numbered style declaration Style Lemma CopyStyle Theorem LatexName lem LabelString "Lemma #." End # Axiom-numbered style declaration Style Axiom CopyStyle Theorem LatexName axiom LabelString "Axiom #." End # Conjecture-numbered style declaration Style Conjecture CopyStyle Theorem LatexName conj LabelString "Conjecture #." End # Fact-numbered style declaration Style Fact CopyStyle Theorem LatexName fact LabelString "Fact #." End # Hypothesis-numbered style declaration Style Hypothesis CopyStyle Theorem LatexName hypo LabelString "Hypothesis #." End # Assumption-numbered style declaration Style Assumption CopyStyle Theorem LatexName assum LabelString "Assumption #." End # Proposition-numbered style declaration Style Proposition CopyStyle Theorem LatexName prop LabelString "Proposition #." End # Criterion-numbered style declaration Style Criterion CopyStyle Theorem LatexName crit LabelString "Criterion #." End # Definition-numbered style declaration Style Definition CopyStyle Theorem LatexName defn LabelString "Definition #." # standard font definition Font Shape Up EndFont # label font definition LabelFont Shape Up Series Bold EndFont End # Example-numbered style declaration Style Example CopyStyle Definition LatexName exmp LabelString "Example #." End # Remark-numbered style declaration Style Remark CopyStyle Theorem LatexName rem LabelString "Remark #." # standard font definition Font Shape Up Size Normal EndFont # label font definition LabelFont Series Medium Shape Italic EndFont End # Claim-numbered style declaration Style Claim CopyStyle Remark LatexName claim LabelString "Claim #." End # Problem-numbered style declaration Style Problem CopyStyle Definition LatexName prob LabelString "Problem #." End # Principle-numbered style declaration Style Principle CopyStyle Theorem LatexName prin LabelString "Principle #." End # Algorithm-numbered style declaration Style Algorithm CopyStyle Theorem LatexName alg LabelString "Algorithm #." End # Acnowledgement style definition Style Acknowledgement Margin Static LatexType Environment LatexName ack NextNoIndent 1 ParSkip 0.4 ItemSep 0 TopSep 0.7 BottomSep 0.7 ParSep 0.5 Align Block AlignPossible Block LabelType Top_Environment LabelString Acknowledgements LabelSep M # label font definition LabelFont Series Bold Size Larger EndFont End # Keyword style definition Style Keyword Margin Static LatexType Environment LatexName keyword NextNoIndent 1 LeftMargin MMM RightMargin MMM ParIndent MM ItemSep 0 TopSep 0.7 BottomSep 0.7 ParSep 0 Align Block AlignPossible Block LabelType Centered_Top_Environment LabelString Keyword LabelBottomSep 0.5 # standard font definition Font Size Small EndFont # label font definition LabelFont Series Bold Size Large EndFont End
\batchmode \makeatletter \def\input@path{{/home/bscazz/latex/misc//}} \makeatother \documentclass[twoside,amssyme,equation,bm]{jsv} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{color} \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands. \providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@} %% Special footnote code from the package 'stblftnt.sty' %% Author: Robin Fairbairns -- Last revised Dec 13 1996 \let\SF@@footnote\footnote \def\footnote{\ifx\protect\@typeset@protect \expandafter\SF@@footnote \else \expandafter\SF@gobble@opt \fi } \expandafter\def\csname SF@gobble@opt \endcsname{\@ifnextchar[%] \SF@gobble@twobracket \@gobble } \edef\SF@gobble@opt{\noexpand\protect \expandafter\noexpand\csname SF@gobble@opt \endcsname} \def\SF@gobble@twobracket[#1]#2{} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands. \usepackage{verbatim} \newcommand{\lyxaddress}[1]{ \par {\raggedright #1 \vspace{1.4em} \noindent\par} } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. % Comment out the required macros if you also want to use % %\volume{123} %\issue{11} %\runtitle{This is the running title} %\runauthor{This is the running author} %\received{This when the article was received} %\revised{This is when it was revised} %\accepted{This is when it was accepted} %\communicated{This is to whom it was communicated} %\dedicated{This is to whom it was dedicated} %\presented{This is to whom it was presented} \makeatother \begin{document} \begin{comment} The following example template is based on the template supplied by the Journal of Sound and Vibration. All text marked in blue (apart from equations) has been added by the author. Several additional options are preamble. The environment ``cv'' produces some space and a hanging indent for mounting a photograph. \end{comment} \begin{frontmatter} \title{Article Title} \date{\textcolor{blue}{11/11/1999}} \author{\textcolor{blue}{First Author}} \maketitle \address{\textcolor{blue}{This is the address of the first author.}} \thanks{This is a footnote for thanks} \begin{abstract} \textcolor{blue}{This is the abstract. This is the abstract. This is the abstract. This is the abstract. This is the abstract. This is the abstract. This is the abstract.This is the abstract. This is the abstract. This is the abstract. This is the abstract.} \textcolor{blue}{This is the abstract. This is the abstract.This is the abstract. This is the abstract.This is the abstract. This is the abstract.This is the abstract. This is the abstract.This is the abstract. This is the abstract.This is the abstract. This is the abstract.} \end{abstract} \end{frontmatter} \begin{keyword} You can add special key words for the abstract. \end{keyword} \section{First section heading level 1} Here is the body of the article. \begin{verse} Don't know why but verses are available. \end{verse} \section{Second section heading level 1} \subsection{This is a sub-section.} \subsubsection{This is a sub-sub-section.} \section*{Un-numbered Sections} \subsection*{Un-numbered Subsection} \begin{equation} \label{1} Sample\, \, Equation \end{equation} \begin{table} \caption{Components of forces and torque acting on particle }\vspace{6pt} {\centering \begin{tabular}{cccc} \hline \multicolumn{2}{c}{Force}& Symbol& Equation\\ \hline Normal forces & Contact & test & \( \mathbf{n} \)\\ & Damping& \( \mathbf{F}_{dn,ij} \)& \( \mathbf{n} \)\\ Tangential forces& Contact & & \( \delta \)\\ & Damping& \( \mathbf{F}_{dt,ij} \)& \( \mathbf{n} \)\\ Rolling& Torque& \( \mathbf{T}_{i} \)& \( \mathbf{F}_{dt,ij} \)\\ & Friction Torque\( ^{a} \)& \( \mathbf{M}_{i} \)& \( -\mu _{r}\mathbf{F}_{cn,ij}\hat{\omega }_{i} \) \\ Global& Gravity& \( \mathbf{G}_{i} \)& \( m_{i}\mathbf{g} \) \\ \hline \end{tabular}\par} \tfn{a}{Not considered in the previous work.} \end{table} \begin{itemize} \item Text... \item Text... \end{itemize} \begin{thm} This is a theorem \end{thm} \begin{thm}[Theorem Title] This is a theorem with a title. \end{thm} \begin{pf} This is the proof. \end{pf} \begin{pf*}{This is a special proof} This is a special proof that includes a title. This is a special proof that includes a title. This is a special proof that includes a title. \end{pf*} \begin{cor} This is the corollary. \end{cor} \begin{prop} Here is a sample proposition. \end{prop} \begin{lem} This is a lemma. \end{lem} \begin{rem} This is a remark. \end{rem} \renewcommand{\thethm}{1} \begin{defn} This is the way a definition looks. \end{defn} \begin{alg} Text... \end{alg} \begin{axiom} \textcolor{blue}{This is an axiom.} \end{axiom} \begin{conj} \textcolor{blue}{This is a conjecture.} \end{conj} \begin{fact} \textcolor{blue}{This is a fact.} \end{fact} \begin{hypo} \textcolor{blue}{This is a hypothesis.} \end{hypo} \begin{assum} \textcolor{blue}{This is an assumption.} \end{assum} \begin{crit} \textcolor{blue}{This is an criterion.} \end{crit} \begin{exmp} \textcolor{blue}{This is an example.} \end{exmp} \begin{claim} \textcolor{blue}{This is a claim.} \end{claim} \begin{prob} \textcolor{blue}{This is a problem.} \end{prob} \begin{prin} \textcolor{blue}{This is a principle.} \end{prin} \begin{ack} text... \end{ack} \begin{thebibliography}{1} \bibitem{1}Text of bib entry... \end{thebibliography} \end{document}