On Fri, 2 Feb 2001, Nabil Hathout wrote:

> 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.

For cases where commands take multiple arguements and none are optional or
at least optional arguements come between required arguements you can
use the normal command generation of LyX and require the user to add "}{"
in the right place (marked as raw LaTeX).

That is, for a telefax paragraph you would write:
        12345678}{fred bloggs

with "}{" marked as TeX.  Yes, it is ugly but this works.
The resultant output would then be:
        \telefax{12345678}{fred bloggs}

Allan. (ARRae)

Reply via email to