On 24/03/2010 5:19 PM, Kevin Middleton wrote:
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-uqbj+gopo4+hph1hqnu...@public.gmane.org/msg44992.html
http://www.mail-archive.com/lyx-users-uqbj+gopo4+hph1hqnu...@public.gmane.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
You are close, but...
Look at the beamer.layout file. This is the file you want to edit. Put
your own version in your user directory (I presume ~/Library/Application
Support/LyX-1.6/layouts is correct but I am alien to Apple's OS).
Reason: beamer.layout redefines the LyX-Code environment.
--
Julien