
저는 다음과 같이 비머에서 AnnArbor 템플릿을 사용하고 있습니다.
\mode<presentation>
{
\usetheme{AnnArbor}
\usecolortheme[named=kugreen]{structure}
\useinnertheme{circles}
\usefonttheme[onlymath]{serif}
\setbeamercovered{transparent}
\setbeamertemplate{blocks}[rounded][shadow=true]
}
그리고 다음 화면 캡처의 화살표와 같이 일부 슬라이드에 정보를 추가하고 싶습니다. 이 정보는 오른쪽 상단 수평 영역, 오른쪽 가장자리에 표시되어야 합니다.
이 정보는 각 프레임에 속해야 합니다(서문에서 단번에 정의된 글로벌 로고가 아닙니다). 실제로 프레임 내용에 대한 참고문헌을 추가하고 싶기 때문에 프레임마다 또는 공백마다 다를 수 있습니다.
이것을 얻으려면 무엇을 재정의해야 합니까?
추가: Jesse Knight는 최소한의 작업 예시를 요청했습니다.
\begin{frame}[fragile]
\frametitle{Phonèmes}\infoForRightCorner{Cat01}
Contents of the slide
\end{frame}
여기서 "Cat01"은 슬라이드의 오른쪽 상단에 표시되어야 합니다(상단 가로 막대의 파란색 부분에 표시되는 섹션 제목 "Phonétique / phonologie"와 동일한 높이 및 글꼴 크기). 이는 이 슬라이드의 주요 참고문헌이 "Cat01", 즉 JC Catford라는 점을 상기시켜 주는 역할을 합니다.음성학에 대한 실제적인 입문, Oxford University Press 2001. 또 다른 (어쩌면 더 우아한) 구문은 다음과 같습니다.
\begin{frame}[fragile,topbarright={Cat01}]
\frametitle{Phonèmes}
Contents of the slide
\end{frame}
하지만 나에게는 결과를 얻기 위한 구문보다 결과가 더 중요합니다.
답변1
infolines
헤드라인 정의( 에 있음 )를 사용하면 beamerouterthemeinfolines.sty
오른쪽 상단 상자가 비어 있도록 헤드라인을 재정의할 수 있습니다. 그런 다음 myinfo
프레임에 전달되면 내용이 myinfo
오른쪽 상단의 상자에 표시 되도록 헤드라인을 재정의하는 옵션을 정의할 수 있습니다 .
\documentclass{beamer}
\mode<presentation>
{
\usetheme{AnnArbor}
\useinnertheme{circles}
\usefonttheme[onlymath]{serif}
\setbeamercovered{transparent}
\setbeamertemplate{blocks}[rounded][shadow=true]
}
%% Make top right box blank for each new frame
\makeatletter
\BeforeBeginEnvironment{frame}{%
\setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.65ex,dp=1.5ex,right]{section in head/foot}%
\usebeamerfont{section in head/foot}\insertsectionhead\hspace*{2ex}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.65ex,dp=1.5ex,right]{subsection in head/foot}%
\usebeamerfont{subsection in head/foot}
% \insertsubsectionhead
\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}}
%% If myinfo option is passed to frame, add to headline
\define@key{beamerframe}{myinfo}[true]{%
\setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.65ex,dp=1.5ex,right]{section in head/foot}%
\usebeamerfont{section in head/foot}\insertsectionhead\hspace*{2ex}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.65ex,dp=1.5ex,right]{subsection in head/foot}%
\usebeamerfont{subsection in head/foot}
#1
% \insertsubsectionhead
\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}}
\makeatother
\begin{document}
\section{Phonétique / phonologie}
\subsection{First subsection title}
\begin{frame}[fragile,myinfo=Cat01 or something]
\frametitle{Phonèmes}
Slide with info
\end{frame}
\begin{frame}
\frametitle{Next frame}
No info for this slide
\end{frame}
\end{document}
답변2
Tikz를 사용하는 솔루션은 다음과 같습니다. 오른쪽 상단에 노드를 배치합니다(기술적으로:north east
페이지의 오른쪽 상단(기술적으로는 )에 노드를 배치합니다. 다른 옵션은 다음과 같습니다.비머에서 임의의 위치에 이미지를 배치하려면 어떻게 해야 합니까?
[참고: 아래 예에서는 색상을 고안해야 했습니다 kugreen
. 나중에 다른 사용자가 추가 \documentclass{...}
등의 작업 없이 복사하여 붙여넣고 즉시 컴파일할 수 있는 TeX 파일의 내용을 의미하는 최소한의 작업 예제를 제공할 수 있다면 도움이 될 것입니다.]
\documentclass{beamer}
\usepackage{tikz}
\definecolor{kugreen}{RGB}{50,93,61}
\mode<presentation>
{
\usetheme{AnnArbor}
\usecolortheme[named=kugreen]{structure}
\useinnertheme{circles}
\usefonttheme[onlymath]{serif}
\setbeamercovered{transparent}
\setbeamertemplate{blocks}[rounded][shadow=true]
}
\newcommand{\infoForRightCorner}[1]{%
\tikz[remember picture,overlay]{
\node[anchor=north east] at (current page.north east) {#1};}
}
\begin{document}
\begin{frame}[fragile]
\frametitle{Phonèmes}
\infoForRightCorner{Cat01}
Contents of the slide
\end{frame}
\end{document}