내 비머 슬라이드가 다음과 같이 보이도록 아래 코드에 옵션을 설정하는 것이 어렵습니까?
\documentclass{beamer}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{amsmath,amssymb}
\usepackage{xcolor}
\usetheme{Frankfurt} % or any other theme!
\beamertemplatenavigationsymbolsempty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{frame}
\frametitle{Title}
\end{frame}
\end{document}
답변1
이는 도면과 기본(빈) 테마에 TikZ를 사용합니다.
\documentclass{beamer}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{amsmath,amssymb}
\usepackage{xcolor}
\usepackage{tikz}
% \usetheme{Frankfurt}
\setbeamertemplate{frametitle}{%
\tikz[remember picture,overlay]{
\node(a)[fill=blue,rectangle,minimum width=.25cm,minimum height=1cm,anchor=north west]at(current page.north west){};
\node[anchor=west]at(a.east){\insertframetitle};
\draw[red](a.south west)--+(10,0);
}
\vskip.5cm % increase the skip if you want more space between the frame title and content
}
\setbeamertemplate{footline}{%
\tikz[overlay, remember picture]\draw[blue,line width=1cm](current page.south west)rectangle(current page.south east);
}
\beamertemplatenavigationsymbolsempty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\section{Section}
\subsection{Subsection}
\begin{frame}
\frametitle{Title}
\end{frame}
\end{document}
두 줄의 제목을 수용하려면 다음 줄을 변경하십시오.
\node(a)[fill=blue,rectangle,minimum width=.25cm,minimum height=1cm,anchor=north west]at(current page.north west){};
\node[anchor=west]at(a.east){\insertframetitle};
에게:
\node(a)[fill=blue,rectangle,minimum width=.25cm,minimum height=1.2cm,anchor=north west]at(current page.north west){};
\node[anchor=west,text width=\textwidth]at(a.east){\insertframetitle}