3

プレゼンテーションにいくつかのフレームがありますが、図のスペースが必要なため、標準の見出し/脚線を削除したいと考えています\includegraphics。これらの数字はスペース全体を占有します。ここで、右下隅にフレーム番号を挿入したいと思います。

ノート。カスタムの見出し/脚注を持つ標準テーマを使用しています。動作する最小限の例がここにあります: http://rapidshare.com/files/429008846/Beamer.zip

これはコードです:

\documentclass{beamer}
\usepackage{german}
\usepackage{graphicx}
\usepackage{color}
\usepackage{colortbl}
\usepackage{pgf}
%----------------------------------------------------------------------
%----------------------------------------------------------------------
%new color
\definecolor{Gray}{gray}{0.9}
\def\textboxcolor{Gray}
%----------------------------------------------------------------------
%----------------------------------------------------------------------
\setbeamertemplate{headline}{%
\hspace{0.01\textwidth}\begin{minipage}[t]{0.88\textwidth}
\vspace{0.1cm}
\begin{tabular}{p{0.5\textwidth}p{0.4\textwidth}p{0.1\textwidth}}
Organisation - Institution&%
&%
\includegraphics[width=1cm]{pictures/logos/logo_ohne_text.jpg}\\
\hline\\
\end{tabular}
\end{minipage}}
%----------------------------------------------------------------------
\setbeamertemplate{footline}{%
\hspace{0.01\textwidth}\begin{minipage}[t]{0.88\textwidth}%
\begin{tabular}{p{0.3\textwidth}p{0.35\textwidth}p{0.2\textwidth}p{0.1\textwidth}}%
\rowcolor[rgb]{0.8,0.8,0.8}\hline%
\raggedright\begin{minipage}{0.3cm}\includegraphics[width=0.30cm]{pictures/logos/quadrat.jpg}\end{minipage}\ \insertauthor &%
\centering \    \usebeamerfont{date in head/foot}\insertshortdate{}& &%
Seite \insertframenumber{}/\inserttotalframenumber\\
\hline\\
\end{tabular}
\end{minipage}}
%----------------------------------------------------------------------
%----------------------------------------------------------------------
\begin{document}
%----------------------------------------------------------------------
    \begin{frame}{Normal Frame}
      \begin{block}{Blocktitle}
        Text
      \end{block}
    \end{frame}
%----------------------------------------------------------------------
    \begin{frame}[plain]{Frame with Images}
       \begin{center}
            \includegraphics[height=0.5\textheight]{pictures/cf.png}
            \includegraphics[height=0.5\textheight]{pictures/cf.png}\\
            \includegraphics[height=0.5\textheight]{pictures/cf.png}
            \includegraphics[height=0.5\textheight]{pictures/cf.png}
        \end{center}
        \begin{pgfpicture}{0}{0}{12.8cm}{9.6cm}
            \pgfputat{\pgfxy(10.62,1.05)}{\pgfbox[left,base]{ %
              \tiny{\insertframenumber{}/\inserttotalframenumber}}}
        \end{pgfpicture}
    \end{frame}
%----------------------------------------------------------------------
\end{document}
%----------------------------------------------------------------------
%----------------------------------------------------------------------
4

3 に答える 3

2

私の最初の回答では、あなたが投稿した写真をいくつかリクエストしました。どうもありがとう; それらは非常に役に立ちました。


あなたのスライドは、Graz テーマ [1] を使用しているように見えます。それをダウンロードして、このソリューションを思いつきました。これを試してください (私の \usetheme{Graz} をあなたのバージョンと呼んでいるものに置き換えてください。おそらく少し変更したからです):

\documentclass{beamer}
\usepackage{pgf} % make sure you use this!
\setbeamertemplate{navigation symbols}{}
\usetheme{Graz}

\pgfdeclareimage[height=0.5cm]{university-logo}{images/uni_logo}
\logo{\pgfuseimage{university-logo}}

\begin{document}

\begin{frame}[plain]{Test slide}
  \begin{pgfpicture}{0}{0}{12.8cm}{9.6cm} % see Note 1

    \pgfputat{\pgfxy(10.62,1.05)}{\pgfbox[left,base]{ % see Note 2
              \tiny{\insertframenumber{}/\inserttotalframenumber}}}

   \pgfputat{\pgfxy(0.4,1.1)}{\pgfimage[width=0.95\textwidth]{figure}} % see Note 3

  \end{pgfpicture}
\end{frame}

\end{document}

注 1: pgf[2] に慣れていない場合、構文は次のとおりです。

\begin{pgfpicture}{start x}{start y}{end x}{end y}

したがって、{0}{0}{12.8}{1.05} の pgf 画像だけで済む可能性があります。これは、幅全体 (0 -> 12.8cm x 幅) を埋め、フッター ページ番号に十分なものを提供します。 (0 -> 1.05cm y 高さ)。

ただし、そのままにしておくと、pgf を使用して画像を配置することもできます。それはあなた次第です。フレーム全体のサイズのままにしても、何の影響もありません。

注 2:これらの座標は自由に変更してください。デフォルトのスライドとこのスライドの間を行ったり来たりして、2 つの間のページ番号/総ページ数のリストに識別可能な違いがなくなるまで、これらの座標を微調整できます。

1 つの注意点として、フレームにテキストを追加し始めると、pgfbox の配置が乱れる可能性がわずかにあります。これを行う場合は、図で好きなようにフレームを取得し、\pfgputat の座標をやり直して、必要な場所に取得します。

注 3:上記のリンクから図のスクリーンショットを撮り、pgf を使用してフレームに配置しました。私のタイトルはデフォルトの中央位置にあるのに対し、あなたのタイトルは左揃えですが、全体的には、これがあなたが望むもののように見えることを願っています(上記のLaTeXコマンドはこれを生成しました): IMAGE .

私が言ったように、さまざまな座標を微調整するだけで、必要な場所にすべてを取得できます。


11/5 更新:

注 2 で提案したように、フレームに何かを追加すると、配置が台無しになる可能性があります。私はあなたの更新されたコードを見て、pgf がうまく動作するようにしました。\includegraphics コマンドによって引き起こされたダウンシフトを克服しているだけなので、おそらく「ハック」と見なされるべきです。基本的に、pgfbox は、この方法で配置されたグラフィックスがある場所に常駐できないように見えるため、強制的に表示するには、スライドの「人工的に」高い位置にボックスを作成する必要があります...しかし、これは機能します! 私は実際にそれを微調整して、全画面表示モードにした場合、最初のスライドの「Seite 1/2」と 2 番目のスライドの「2/2」の間でまったくシフトしないようにしました。ここにあります:

\begin{pgfpicture}{0}{0}{12.8cm}{9.6cm}
    \pgfputat{\pgfxy(10.585,9.74)}{\pgfbox[left,base]{ %
      \tiny{\insertframenumber{}/\inserttotalframenumber}}}
\end{pgfpicture}

それがどうなるか教えてください!


[1]www. イスト。トゥグラズ。at/staff/weiglhofer/misc/tugbeamer/

[2] ctan に関する PGF マニュアル: www . ctan . org/tex-archive/graphics/pgf in base/doc

于 2010-11-04T01:23:10.393 に答える