Nabil Hathout a écrit :
> Hello,
>
> I am trying to make a layout for the lettre.cls written by Denis Mégevaud. I
> have had no problem for the "lettre" TextClass but I am having one whith the
> "telefax" one, namely that they must start with \telefax{XXX}{YYY} where XXX is
> the fax number and YYY is the recepiender name and I have not found any "style"
> that could generate this kind of structure. Is this acheivable or is it
> necessary to use a dialog box (as for the citation insertions) ?
>
> There might be another solution, that is to modify the lettre class, but then
> the layout will be dependant of this modification.
>
> Thank you in advance,
>
> --Nabil Hathout
You can use a single latex parameter, and split it into two parameters by using
predefined delimiters (brackets in the example). Of course, it works only if the
writter respect the syntax!
Bye,
BG
#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass faxstyle
\begin_preamble
%% command defined here, only to make it work
\def\telefax#1#2{Phone number: #1; Name: #2}
\end_preamble
\language default
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize default
\spacing single
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth -1
\tocdepth -1
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default
\layout Title
Example
\layout FaxStyle
02.34.56.78.
(Mr.
Bloch)
\the_end
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[article]{Telefax}
# CV textclass definition file.
# Author : Jean-Marc Lasgouttes ([EMAIL PROTECTED])
# General textclass parameters
Columns 1
Sides 1
SecNumDepth -1
TocDepth -1
MaxCounter Counter_Section
Input stdclass.inc
# Standard style definition
Style FaxStyle
Margin First_Dynamic
LatexType Command
LatexName lyxtelefax
LabelType Static
LabelSep xx
LabelString "Telefax:"
LabelFont
Shape Italic
EndFont
Preamble
\def\lyxparsefax#1(#2){ \telefax{#1}{#2} }
\def\lyxtelefax#1{ \lyxparsefax#1 }
EndPreamble
End