다양한 섹션의 제목 컬렉션을 사이드 바로 이동

다양한 섹션의 제목 컬렉션을 사이드 바로 이동

저는 전문 라텍스 사용자가 아닙니다. 프레젠테이션용 템플릿이 있고 sty파일에서 섹션 제목을 다음 이미지와 유사한 사이드 바로 이동하고 싶습니다. 여기에 이미지 설명을 입력하세요

하지만 오른쪽 상단에서 로고가 변경되는 위치를 찾을 수 없습니다. 이것은 내 파일입니다:

\usetheme{Rochester}


\RequirePackage{pgf}

\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{navigation symbols}{}
\setbeamercovered{transparent}

\beamer@headheight=0.10\paperwidth
\definecolor{coolblack}{rgb}{0.0, 0.2, 0.44}
\definecolor{bluepigment}{rgb}{0.2, 0.2, 0.6}
\definecolor{oxygenorange}{rgb}{0.96,0.5,0.04}
\definecolor{oxygengray}{rgb}{0.41,0.41,0.41}
\definecolor{oxygenlightgray}{rgb}{0.93,0.93,0.93}
\definecolor{oxygenblue}{rgb}{0.63,0.79,0.95}
\setbeamercolor*{Title bar}{fg=white, bg=oxygenblue}
\setbeamercolor*{Location bar}{fg=oxygenorange,bg=oxygenlightgray}
\setbeamercolor*{frametitle}{parent=Title bar}
\setbeamercolor*{block title}{bg=oxygenblue,fg=white}
\setbeamercolor*{block body}{bg=oxygenlightgray,fg=oxygengray}
\setbeamercolor*{block title alerted}{bg=red,fg=white}


\setbeamercolor*{normal text}{bg=white,fg=oxygengray}
\setbeamercolor*{section in head/foot}{bg=oxygenblue,fg=coolblack}

\usecolortheme[named=oxygenorange]{structure}

\setbeamerfont{section in head/foot}{size=\tiny,series=\normalfont}
\setbeamerfont{frametitle}{size=\large}
\setbeamertemplate{background canvas}{\begin{tikzpicture}\node[opacity=.15]{\includegraphics
[width=\paperwidth]{Social-Network}};\end{tikzpicture}}
\pgfdeclareimage[height=\beamer@headheight]{logo}{logocomplete}
\pgfdeclareimage[height=\beamer@headheight]{net}{homophily}
\pgfdeclareimage[height=\beamer@headheight]{logocomplete}{logocomplete}

\addtobeamertemplate{title page}{
    \vskip -6pt
    \begin{beamercolorbox}[wd=\paperwidth,ht=1.06\beamer@headheight]{Title bar}
      \hfill \pgfuseimage{logocomplete}
  \end{beamercolorbox}

}

\setbeamertemplate{frametitle}
{
  \vskip-0.25\beamer@headheight
  \vskip-\baselineskip
  \vskip-0.2cm
  \hskip-0.5cm\usebeamerfont*{frametitle}\insertframetitle
  \vskip-0.10em
  \hskip-0.5cm\usebeamerfont*{framesubtitle}\insertframesubtitle
}


\setbeamertemplate{headline\beamer@sidebarside}
{
\beamer@tempdim=\beamer@sidebarwidth%
%  \vskip -5pt
    \begin{beamercolorbox}[wd=\beamer@tempdim]{Title bar}
    \usebeamerfont{section in head/foot}%
    \insertsectionnavigationhorizontal{0pt}{\hskip0.22cm}{}%
  \end{beamercolorbox}

  \begin{beamercolorbox}[wd=\beamer@tempdim]{Title bar}
      \hfill \pgfuseimage{net}\pgfuseimage{logo}
  \end{beamercolorbox}

}

\setbeamertemplate{footline}
{
  \linethickness{0.1pt}
  \framelatex{
  \begin{beamercolorbox}[leftskip=.3cm,wd=\paperwidth,ht=0.3\beamer@headheight,sep=0.1cm]{Location bar}
    \usebeamerfont{section in head/foot}%
    \insertshortauthor~|~\insertshorttitle
    \hfill
    \insertframenumber%/\inserttotalframenumber
  \end{beamercolorbox}}
}

나는 보지 않는다심벌 마크더 이상 헤더에 추가 이미지가 표시되지 않습니다. 누구든지 문제를 해결하는 데 도움을 줄 수 있나요?

답변1

기본적으로 \usetheme{Rochester}코드 조각의 첫 번째 줄은 사이드바 너비를 0으로 설정합니다. 예를 들어 이 줄을 다음으로 바꿀 수 있습니다.

\useoutertheme[width=0.10\paperwidth]{sidebar}
\useinnertheme{rectangles}
\usecolortheme{whale}
\usecolortheme{orchid}

사이드바를 얻으려면 .1\paperwidth(헤드라인에 지정한 크기와 일치하도록) 자동 \logo{\includegraphics[width=\beamer@sidebarwidth]{example-image}}으로 왼쪽 상단에 배치됩니다.

\documentclass{beamer}

\useoutertheme[width=0.10\paperwidth]{sidebar}
\useinnertheme{rectangles}
\usecolortheme{whale}
\usecolortheme{orchid}

\setbeamercolor*{frametitle}{parent=palette primary}
\setbeamerfont{block title}{size={}}



\usepackage{tikz}
\RequirePackage{pgf}

\makeatletter
\logo{\includegraphics[width=\beamer@sidebarwidth]{example-image}}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{navigation symbols}{}
\setbeamercovered{transparent}

\beamer@headheight=0.10\paperwidth
\definecolor{coolblack}{rgb}{0.0, 0.2, 0.44}
\definecolor{bluepigment}{rgb}{0.2, 0.2, 0.6}
\definecolor{oxygenorange}{rgb}{0.96,0.5,0.04}
\definecolor{oxygengray}{rgb}{0.41,0.41,0.41}
\definecolor{oxygenlightgray}{rgb}{0.93,0.93,0.93}
\definecolor{oxygenblue}{rgb}{0.63,0.79,0.95}
\setbeamercolor*{Title bar}{fg=white, bg=oxygenblue}
\setbeamercolor*{Location bar}{fg=oxygenorange,bg=oxygenlightgray}
\setbeamercolor*{frametitle}{parent=Title bar}
\setbeamercolor*{block title}{bg=oxygenblue,fg=white}
\setbeamercolor*{block body}{bg=oxygenlightgray,fg=oxygengray}
\setbeamercolor*{block title alerted}{bg=red,fg=white}


\setbeamercolor*{normal text}{bg=white,fg=oxygengray}
\setbeamercolor*{section in head/foot}{bg=oxygenblue,fg=coolblack}

\usecolortheme[named=oxygenorange]{structure}

\setbeamerfont{section in head/foot}{size=\tiny,series=\normalfont}
\setbeamerfont{frametitle}{size=\large}
\setbeamertemplate{background canvas}{\begin{tikzpicture}\node[opacity=.15]{\includegraphics
[width=\paperwidth]{example-image}};\end{tikzpicture}}
\pgfdeclareimage[height=\beamer@headheight]{logo}{example-image}
\pgfdeclareimage[height=\beamer@headheight]{net}{example-image}
\pgfdeclareimage[height=\beamer@headheight]{logocomplete}{example-image}

\addtobeamertemplate{title page}{
    \vskip -6pt
    \begin{beamercolorbox}[wd=\paperwidth,ht=1.06\beamer@headheight]{Title bar}
      \hfill \pgfuseimage{logocomplete}
  \end{beamercolorbox}

}

\setbeamertemplate{frametitle}
{
  \vskip-0.25\beamer@headheight
  \vskip-\baselineskip
  \vskip-0.2cm
  \hskip-0.5cm\usebeamerfont*{frametitle}\insertframetitle
  \vskip-0.10em
  \hskip-0.5cm\usebeamerfont*{framesubtitle}\insertframesubtitle
}


\setbeamertemplate{headline\beamer@sidebarside}
{
\beamer@tempdim=\beamer@sidebarwidth%
%  \vskip -5pt
    \begin{beamercolorbox}[wd=\beamer@tempdim]{Title bar}
    \usebeamerfont{section in head/foot}%
    \insertsectionnavigationhorizontal{0pt}{\hskip0.22cm}{}%
  \end{beamercolorbox}

  \begin{beamercolorbox}[wd=\beamer@tempdim]{Title bar}
      \hfill \pgfuseimage{net}\pgfuseimage{logo}
  \end{beamercolorbox}

}

\setbeamertemplate{footline}
{
  \linethickness{0.1pt}
  \framelatex{
  \begin{beamercolorbox}[leftskip=.3cm,wd=\paperwidth,ht=0.3\beamer@headheight,sep=0.1cm]{Location bar}
    \usebeamerfont{section in head/foot}%
    \insertshortauthor~|~\insertshorttitle
    \hfill
    \insertframenumber%/\inserttotalframenumber
  \end{beamercolorbox}}
}

\makeatother

\begin{document}
\section{test}
\begin{frame}
content...
\end{frame}
\end{document}

여기에 이미지 설명을 입력하세요

관련 정보