我正在使用第 21.2.2 节中描述的工作流程创建一个带有单独讲义的 Beamer 演示文稿beamer 用户指南。我使用 tikz 来制作图表。以下是三个文件:
main.beamer.tex(用于幻灯片演示):
\documentclass[ignorenonframetext]{beamer}
\input{main.tex}
main.article.tex(用于文章):
\documentclass{article}
\usepackage{beamerarticle}
\setjobnamebeamerversion{main.beamer}
\input{main.tex}
main.tex(用于通用代码):
\usepackage{tikz}
\usetikzlibrary{shapes,shapes.multipart}
\begin{document}
\frame
{
\frametitle{Title of the first slide}
\centering
\begin{tikzpicture}[overlay]
\tikzstyle{every text node part} = [align=center]
\tikzstyle{obj node} = [ellipse, fill=blue!20]
\node[obj node] (obja) {Words in a bubble Words in a bubble \\ Words in a bubble};
\end{tikzpicture}
}
Here is some content that is shown only in the article, not in the beamer slides.
\frame
{
\frametitle{Title of the second slide}
\begin{itemize}
\item Foo
\end{itemize}
}
\end{document}
幻灯片是使用
$ xelatex main.beamer.tex
以及文章:
$ xelatex main.article.tex
问题是文章中没有为图片分配空间。没有垂直空间,并且图片与页面最左侧对齐,不在文档的正常流内,如图所示:
我怎样才能获得它的垂直空间,并改变文章内的水平位置,而不影响投影仪幻灯片?
答案1
省略选项overlay
。
修改main.tex
:
\usepackage{tikz}
\usetikzlibrary{shapes,shapes.multipart}
\setbeamertemplate{navigation symbols}{} % never seen anyone using these
\begin{document}
\begin{frame}{Title of the first slide}
\centering
\begin{tikzpicture}%
[every text node part/.style = {align=center},
obj node/.style = {ellipse, fill=blue!20}
]
\node[obj node] (obja) {Words in a bubble Words in a bubble \\ Words in a bubble};
\end{tikzpicture}
\end{frame}
Here is some content that is shown only in the article, not in the
beamer slides.
\begin{frame}{Title of the second slide}
\begin{itemize}
\item Foo
\end{itemize}
\end{frame}
\end{document}
输出main.beamer.tex
:
输出main.article.tex
: