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.
When I look at the code, there is a macro definition :
Code: Select all
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\providecommand{\LyX}{\texorpdfstring%
{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
{LyX}}
Code: Select all
\providecommand{\PoK}{\texorpdfstring%
{P\kern-.1667em\lower.25em\hbox{O}\kern-.125emK\@}
{PoK}}
How can it be done please ?