# LyX — copy images into build directory for LaTeX include tags

The default `beamer-ornate` template includes an option to put an institution logo at the bottom of every slide,

``````\pgfdeclareimage[height=0.5cm]{institution-logo}{logofile.png}
\logo{\pgfuseimage{institution-logo}}
``````

Unfortuantely, LyX doesn't know to copy `logofile.png` into the build directory (namely, `/tmp/lyx_tmpdir.T___/lyx_tmpbufN/`), and so the build command fails. How do I make it work correctly?

-
This question is basically answered in tex.stackexchange.com/questions/12986/… –  Charles Stewart Jun 28 '11 at 8:51
Try `\logo{\includegraphics[height=0.5cm]{logofile.png}}` instead. Maybe LyX has problems detecting the PGF image macros. –  Martin Scharrer Jun 28 '11 at 10:22
@Charles No, it's really not... that's for LaTeX and orthogonal. Path searching is not desired, I want it fully obvious what image should be included. –  gatoatigrado Jun 28 '11 at 19:22
Martin Scharrer's comment sent me on the right track. The `\logo` command just sets a sub-document to be placed somewhere appropriate. So, you can create a LaTeX text with "\logo{" (Ctrl-L), use Insert > Graphics as regular, and add a closing LaTeX text with "}".