I'm trying to alter the appearance of LyX-Code in a beamer presentation by 
following a couple of previous posts to:

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg44992.html

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg30149.html

I copied lyxmacros.inc from Resources/layouts in LyX.app bundle (I'm using OS X 
and LyX 1.6.5) into ~/Library/Application Support/LyX-1.6/layouts. I changed 
owner and group to my user name and user group.

As a test, I tried changing \normalfont to \rmfamily and \smaller. (I don't 
want this, but it seemed like a good way to see if it was working.)

[cut]
        Preamble
                \newenvironment{lyxcode}
                        {\par\begin{list}{}{
                                \setlength{\leftmargin}{\0in}
                                \setlength{\listparindent}{0pt}% needed for AMS 
classes
                                \raggedright
                                \setlength{\itemsep}{0pt}
                                \setlength{\parsep}{0pt}
                                \normalfont\rmfamily\smaller}%
                         \item[]}
                        {\end{list}}
        EndPreamble
[cut]

I reconfigured LyX, quit, and restarted. When compiled my beamer presentation, 
the font remains unchanged in the PDF output (still typewriter).

I also tried an article class document, and the LyX-Code output correctly set 
in Roman, so I think that my hack of lyxmacros.inc is working.

Does anyone know how I can get beamer to recognize these changes? Is there an 
appropriate \setbeamerfont option?

Any suggestions would be appreciated.

Thanks,
Kevin

Reply via email to