I'm not very familiar with beamer
presentations in LyX, but I will quote a passage from the beamer
manual, page 18-19 (emphasis mine):
\usepackage{pdfpages}
Commands like \includepdf
only work outside frames as they produce pages “by themselves.” You may also wish to say
\setbeamercolor{background canvas}{bg=}
when you use such a command since the background (even a white
background) will otherwise be printed over the image you try to
include. Example:
\begin{document}
\begin{frame}
\titlepage
\end{frame}
{
\setbeamercolor{background canvas}{bg=}
\includepdf{somepdfimages.pdf}
}
\begin{frame}
A normal frame.
\end{frame}
\end{document}
LyX doesn't use \begin{frame}
/\end{frame}
, it defines some custom commands instead (\lyxframe
/\lyxframeend
), but the same point applies I would guess: the \includepdf
cannot be inside a frame, so you have to place after a \lyxframeend
(EndFrame from the style menu), before the next \lyxframe
(BeginFrame from the style menu).
The second point requires an ERT. Create one with Ctrl + L (or Insert --> TeX code) just before the inserted PDF, and write
{\setbeamercolor{background canvas}{bg=}
in it. Add a second ERT just after, and add a closing brace, }
, in this. This is probably why the PDF didn't appear, because it is covered by the background colour. The braces are necessary to keep the redefinition of the background colour to that single slide.
Possible alternative, \includegraphics
Depending on what you're after, you can perhaps use the standard Insert --> Graphics to insert the page. In the LaTeX and LyX options you can add page=5
to insert page number 5 of the PDF. As this is inserted as an image, the header, footer etc. of your presentation will be visible.
In addition to the regular lists, LyX also provides a List, which outputs a lyxlist
. Similar to a description
, the first input is the item label. You can't insert a display math item here but you can insert an inline math equation:
I guess you have a couple of options (without knowing exactly what the text looks like):
- Remove the List and insert the content in a regular paragraph
- Use an inline math equation rather than a display one
Best Answer
Not sure about your method (hadn't noticed that option, will have to check that out) but what worked for me was to create a new file for each page of the pdf and insert it as an image inside a float