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.
When I look at the code, there is a macro definition :
/%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\providecommand{\LyX}{\texorpdfstring%
{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
{LyX}}/
If I try to do the same in the preambule of my LyX file :
/\providecommand{\PoK}{\texorpdfstring%
{P\kern-.1667em\lower.25em\hbox{O}\kern-.125emK\@}
{PoK}}/
Simply writing "PoK" in the LyX file does not produce anything special in
the pdf. Only if I write the Tex code "\Pok{}", I get the right result.
How can it be done please ?
--
View this message in context:
http://lyx.475766.n2.nabble.com/howto-automate-Tex-macro-tp6968778p6968778.html
Sent from the LyX - Users mailing list archive at Nabble.com.