From: lyx-users@lists.lyx.org [lyx-users@lists.lyx.org] on behalf of sj03rd 
[sjoerd...@gmail.com]
Sent: Tuesday, February 14, 2012 5:15 PM

>I can "refer-and-insert" table numbers/equation numbers
>using labels and cross-references throughout the text.
>Now, it would be extremely valuable if I could also
>refer-and-insert a full sentence.

>Is this possible in Lyx, and how?

Hi Stewart,

To insert Tex Code, either:
(1) go to Insert> TeX Code
or
(2) type control L
This will give you a red box into which you can type latex commands directly. 
Type in something like: 
\newcommand{\mysentence}{This is a sentence that I want to use in many places.}
Note that this red box must be before you try to use this command, so put it in 
the preamble or near the top of your document.
Then, wherever you want to use that sentence, insert tex code again and put 
into the red box:
\mysentence
You should be able to do this in tables and mostly anywhere.

Is this what you were looking for?

Scott

Reply via email to