Re: Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Dr Eberhard W Lisse
Ok,  thanks. I'll have a look and if I can't figure it out I'll ask again.

el

Sent from Dr Lisse's iPad mini

> On Jan 7, 2014, at 18:55, Liviu Andronic  wrote:
> 
>> On Tue, Jan 7, 2014 at 5:16 PM, Richard Heck  wrote:
>> 
>> This is what layout files are for. Find the file stdletter.inc on your
>> system and have a look at that. The syntax is explained in Ch 5 of the
>> Customization manual. Ask here if you get confused. This isn't hard but
>> takes a little doing.
> I actually thought that the OP was looking for text macros. I remember
> that there was an older discussion on this (suggesting the use of math
> macros in this case, too), but I'm not sure what's the current state
> in LyX for this.
> 
> Liviu


smime.p7s
Description: S/MIME cryptographic signature


Re: Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Liviu Andronic
On Tue, Jan 7, 2014 at 5:16 PM, Richard Heck  wrote:
>
> This is what layout files are for. Find the file stdletter.inc on your
> system and have a look at that. The syntax is explained in Ch 5 of the
> Customization manual. Ask here if you get confused. This isn't hard but
> takes a little doing.
>
I actually thought that the OP was looking for text macros. I remember
that there was an older discussion on this (suggesting the use of math
macros in this case, too), but I'm not sure what's the current state
in LyX for this.

Liviu


Re: Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Richard Heck

On 01/07/2014 05:24 AM, Dr Eberhard Lisse wrote:

Hi,

I have designed me a few form letters, and in one I need to use a
date repeatedly in the text.  It is a bit of a nuisance to have to
look for the date throughout the text.

I can put in LaTeX variables and enter the value in the preamble but
wonder how I would create another variable (such as PS/CC/Encl) in
the drop down menu so it appears at the top of the LyX text.


This is what layout files are for. Find the file stdletter.inc on your 
system and have a look at that. The syntax is explained in Ch 5 of the 
Customization manual. Ask here if you get confused. This isn't hard but 
takes a little doing.


Richard



Variable to be used from Lyx in the LaTeX text

2014-01-07 Thread Dr Eberhard Lisse
Hi,

I have designed me a few form letters, and in one I need to use a
date repeatedly in the text.  It is a bit of a nuisance to have to
look for the date throughout the text.

I can put in LaTeX variables and enter the value in the preamble but
wonder how I would create another variable (such as PS/CC/Encl) in
the drop down menu so it appears at the top of the LyX text.

Any suggestions?

el