Re: Introduction of a parameterless command in a layout

1999-12-21 Thread Carlos A M dos Santos


You can use "KeepEmpty 1", but the empty {} will still exist. I doesn't
hurts. Example:

# Appendix style definition
Style Appendix
  MarginDynamic
  LatexType Command
  LatexName appendix
  NeedProtect   1
  NextNoIndent  1
  ParSkip   0.4
  TopSep4
  BottomSep 0.8
  ParSep0.8
  Align Block
  AlignPossible Block
  LabelType Static
  KeepEmpty 1
  LabelString   "Appendix"

  # standard font definition
  Font 
Series  Bold
SizeLarge
Color   Blue
  EndFont
End

One thing I'd like to see in LyX is the support for optional parameters
like in

\chapter[Name in toc]{Long, long, long name}

Currently it is possible tu use a trick in the layout setting LabelType to
"Manual".  Other interesting feature would be commands with more than one
parameter like

\foo{bar}{baz}


Casantos

--
Computers make excellent and efficient servants, but I have no wish to
serve under them.  Captain, a starship also runs on loyalty to one
man.  And nothing can replace it or him.
-- Spock, "The Ultimate Computer", stardate 4729.4

On Tue, 21 Dec 1999, Jean-Pierre.Chretien wrote:

> I did not manage to introduce a latex command without parameters in a
> layout
...
> results in
> \foo{}
> in the exported .tex file.
> I'd like to have
> \foo
> without the {}





Re: Introduction of a parameterless command in a layout

1999-12-21 Thread Jean-Pierre.Chretien


>>To: [EMAIL PROTECTED]
>>Subject: Re: Introduction of a parameterless command in a layout
>>From: Jean-Marc Lasgouttes <[EMAIL PROTECTED]>
>>Date: 21 Dec 1999 12:06:41 +0100
>>
>>>>>>> "Jean-Pierre" == Jean-Pierre Chretien <[EMAIL PROTECTED]> 
writes:
>>
>>Jean-Pierre> Hello, I did not manage to introduce a latex command
>>Jean-Pierre> without parameters in a layout, to have in the style manu
>>Jean-Pierre> instead of ERT. Example: Style Foo LatexName foo ... End
>>
>>Jean-Pierre> results in \foo{} in the exported .tex file. I'd like to
>>Jean-Pierre> have \foo without the {}
>>
>>This not very easy indeed, but the {} should not matter if \foo does
>>not take parameters. What do you want to do exactly?
>>
>>JMarc

Sorry to have bothered you and the mailing list readers.
I misinterpreted an error message, \foo{} was all right.

-- 
Jean-Pierre



Re: Introduction of a parameterless command in a layout

1999-12-21 Thread Jean-Marc Lasgouttes

> "Jean-Pierre" == Jean-Pierre Chretien <[EMAIL PROTECTED]> writes:

Jean-Pierre> Hello, I did not manage to introduce a latex command
Jean-Pierre> without parameters in a layout, to have in the style manu
Jean-Pierre> instead of ERT. Example: Style Foo LatexName foo ... End

Jean-Pierre> results in \foo{} in the exported .tex file. I'd like to
Jean-Pierre> have \foo without the {}

This not very easy indeed, but the {} should not matter if \foo does
not take parameters. What do you want to do exactly?

JMarc