Here is one way to do it. Go to the beginning of your document. Hit the
TeX menu button. As you type, you should see that the text is in red.
Now type this line:
\providecommand{\release}{December 12, 2002}
This is the equivalent of an entity in XML. The entity name in XML is
replacesd with a user-defined name in LaTeX. In this case it is
\release. The text that replaces the command is "December 12, 2002". Now
whenever you want to include the entity in the text of your document,
hit the TeX menu button, and type:
\release
When you view your document as dvi or pdf, you will see that \release
gets replaced with the date. As with entities in XML, you can use as
many commands as you like with LyX.
Hope this helps
Paul
On Wed, Dec 11, 2002 at 05:42:05PM +0100, R�mi Cohen-Scali wrote:
> Date: Wed, 11 Dec 2002 17:42:05 +0100
> From: R�mi Cohen-Scali <[EMAIL PROTECTED]>
> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021207
> To: [EMAIL PROTECTED]
> Subject: Question about using placeholders in lyx
>
> Hye
>
> I have a question about a feature I need, that I didn't found in LyX,
> but not sure is it exists or not (my laTeX knowledge is really limited).
> I'am writing some docs for a products and I 'd like to use kind of
> placeholder or variable predefined that I could change when the product
> changes (ex. version, release name or short release name, ... this sort
> of stuff).
> The target format is docbook and I have some entities defined for this
> purpose (&release;, &release-short;) that I need to use.
> Did one of you already use such a feature and could help me ?
>
> Thanks for any help ...
--
************************
*Paul Tremblay *
*[EMAIL PROTECTED]*
************************