On 2011-11-06, lalebarde wrote:
> Hi all,

> I would like to reproduce the \LyX{} or \LaTeX{} macros. When "LyX" or
> "LaTeX" are in a LyX file, they are processed as if the Tex code "\LyX{}" or
> "\LaTeX{}" was used.

LyX actually writes \LyX{} or \LaTeX{} into the LaTeX source. (Check
with View>Source.)

However, I don't like this hard-coded feature, as it stands in the way more
often than it helps. (See the ugly hacks to work around it in the LyX Guides.)

Maybe you can use the Advanced Search and Replace to replace all occurences
of YourMacro with \YourMacro as ERT.

Günter

Reply via email to