Thanks.

It did help to come up with:

in the Preamble:

\newcommand\LMP[1]{#1}


In Settings->Local Layout:

Format 60
Style EDD
   CopyStyle Date
   LabelFont
       Series Bold
       Color Red
   EndFont
   LatexName renewcommand
   LatexParam {\LMP}
   LabelString "LMP:"
End

which does exactly what I want, and with the look I wanted.

greetings, el

On 2017-04-21 22:21 , PhilipPirrip wrote:
> On 04/21/2017 05:13 PM, PhilipPirrip wrote:
>> On 04/21/2017 01:01 PM, Dr Eberhard Lisse wrote:
>>> How to I create a local layout so that I can enter the LMP like I can
>>> do with the Date in the Text window (instead of the Preamble)?
> 
> 
> Adding to the previous answer: if there's no need to save the LMP in a
> variable (you'd need to define it as \newcommand\LMP[1]{#1} in the
> preamble), you'd probably want to use something like
> 
> InsetLayout "Flex:EDD"
>       LyxType        custom
>       LabelString   "EDD"
>       LatexType      command
>       LatexName      EDD
>       PassThru       true
>       CustomPars     false
>       Decoration     Classic
>       ContentAsLabel true
> End
> 
> 
> Then Insert>Custom Inset>EDD, and enter the date in the box
> 
> |EDD|2017-01-01|
> 
> 
> 

Reply via email to