On 02/14/2012 05:57 PM, Scott Kostyshak wrote:
From: [email protected] [[email protected]] on behalf of sj03rd 
[[email protected]]
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?
Of course, what would really be nice is if LyX allowed "text macros", like math macros. But this is bug #1704.

Richard

Reply via email to