使用LaTeX Beamer进行演示时,有人知道如何从参考幻灯片上的框架标题中删除边框吗?

如何解决使用LaTeX Beamer进行演示时,有人知道如何从参考幻灯片上的框架标题中删除边框吗?

**使用MWE更新问题

我当前正在使用自定义背景模板图像,在演示文稿的结尾,我想显示我使用的引用。但是,我似乎无法弄清楚如何消除框架标题“参考”顶部,左侧和右侧的黑线。

这是用于从PDF创建背景模板的文本

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                  XXX PhD Presentation                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[xcolor=dvipsnames,aspectratio=1610,handout]{beamer} % handout
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                   Latex Preamble                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[utf8]{inputenc}
\usetheme[block=fill,progressbar=frametitle]{metropolis}
\setbeamertemplate{frame numbering}[fraction]
\usepackage{appendixnumberbeamer}
\usepackage[sort&compress,numbers]{natbib} % citations
\usepackage{tikz}
\usepackage{tcolorBox} % Use for nice backgrounds around code
\usepackage{enumerate}
\usepackage{amsmath,mathtools,cancel}
\usepackage{media9} %pdflatex,latex+dvips+ps2pdf,xelatex # Allows for the Youtube video

\usepackage{minted}  % Code highlighting
\usemintedstyle[python]{perldoc}
\usemintedstyle[matlab]{colorful}
\tcbuselibrary{breakable,skins,minted}

\usefonttheme[onlymath]{serif}

% Specific Colors
\definecolor{URed}{HTML}{CC0000}
\definecolor{UBlack}{HTML}{000000}
\definecolor{UGray}{HTML}{808080}
\definecolor{paperColor}{HTML}{e2c88e}
\definecolor{pythoncodebg}{rgb}{0.99,1,0.99}
\definecolor{matlabcodebg}{rgb}{0.99,0.99,1}

% Algorithm writing
\usepackage{algpseudocode}
\usepackage{algorithm}

% Colored letters around objects
\newcommand\encircleP[1]{%
    \tikz[baseline=(X.base)] 
    \node (X) [draw,shape=circle,inner sep=0,fill=red,text=black] {\strut #1};%
}
\newcommand\encircleA[1]{%
    \tikz[baseline=(X.base)] 
    \node (X) [draw,fill=yellow,text=black] {\strut #1};%
}

%%%%%%%%%%%%% Beamer specific attributes %%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{section in toc}[sections numbered]
\setbeamersize{text margin left=20pt,text margin right=20pt}

% Add support for \subsubsectionpage
\def\subsubsectionname{\translate{Subsubsection}}
\def\insertsubsubsectionnumber{\arabic{subsubsection}}
\setbeamertemplate{subsubsection page}
{
    \begin{centering}
        {\usebeamerfont{subsubsection name}\usebeamercolor[fg]{subsubsection name}\subsubsectionname~\insertsubsubsectionnumber}
        \vskip1em\par
        \begin{beamercolorBox}[sep=4pt,center]{part title}
            \usebeamerfont{subsubsection title}\insertsubsubsection\par
        \end{beamercolorBox}
    \end{centering}
}
\def\subsubsectionpage{\usebeamertemplate*{subsubsection page}}

\AtBeginSection{\frame{\sectionpage}}
\AtBeginSubsection{\frame{\subsectionpage}}
\AtBeginSubsubsection{\frame{\subsubsectionpage}}

% Specific beamer colors
%\setbeamercolor{background canvas}{bg=UGray}
\setbeamercolor{progress bar}{fg=URed,bg=UGray}
\setbeamercolor*{sidebar}{fg=URed,bg=UBlack!80!white}
\setbeamercolor{frametitle}{bg=UGray,fg=white}
\setbeamercolor{section title}{fg=UBlack!80!white}
\setbeamercolor{title}{fg=UBlack!80!white}
\setbeamercolor{author}{fg=UBlack!80!white}
\setbeamercolor{institute}{fg=UBlack!80!white}
\setbeamercolor{date}{fg=UBlack!80!white}
\setbeamercolor{section}{fg=UBlack!80!white}
\setbeamercolor{section in toc}{fg=UBlack!80!white,bg=white}

%%%%% Beamer Alerts %%%%%
\setbeamercolor{alerted text}{fg=URed!30!UBlack} % Alerts for emphasizing text in bullets
\setbeamerfont{alerted text}{series=\normalfont} % Adjust the alert for emphasising text
\mode<handout>{
    \setbeamercolor{alerted text}{fg=UBlack!80!white} % Alerts for emphasizing text in bullets
}

% Beamer font size
\setbeamerfont{footnote}{size=\tiny}

% custom heading line in the beamer slide
\newcommand{\heading}[1]{%
    \noindent\textbf{\color{UBlack!80!white}\normalfont\bfseries #1}%
    \vspace{3pt}%
    {\color{URed}\hrule}%
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Adjust beamer length of itemize lists
\makeatletter
\renewcommand{\itemize}[1][]{%
    \beamer@ifempty{#1}{}{\def\beamer@defaultospec{#1}}%
    \ifnum \@itemdepth >2\relax\@toodeep\else
    \advance\@itemdepth\@ne
    \beamer@computepref\@itemdepth% sets \beameritemnestingprefix
    \usebeamerfont{itemize/enumerate \beameritemnestingprefix body}%
    \usebeamercolor[fg]{itemize/enumerate \beameritemnestingprefix body}%
    \usebeamertemplate{itemize/enumerate \beameritemnestingprefix body begin}%
    \list
    {\usebeamertemplate{itemize \beameritemnestingprefix item}}
    {%
        \setlength\topsep{0pt}%NEW
        \setlength\partopsep{0pt}%NEW
        \setlength\itemsep{0pt}%NEW
        \def\makelabel##1{%
            {%
                \hss\llap{{%
                        \usebeamerfont*{itemize \beameritemnestingprefix item}%
                        \usebeamercolor[fg]{itemize \beameritemnestingprefix item}##1}}%
            }%
        }%
    }
    \fi%
    \beamer@cramped%
    \raggedright%
    \beamer@firstlineitemizeunskip%
}
\makeatother

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Beamer version of cancel to make the arrow red
\renewcommand{\CancelColor}{\color{red}} %change cancel color to red

\makeatletter
\let\my@cancelto\cancelto %copy over the original cancelto command
\newcommand<>{\cancelto}[2]{\alt#3{\my@cancelto{#1}{#2}}{\mathrlap{#2}\phantom{\my@cancelto{#1}{#2}}}}
% redefine the cancelto command,using \phantom to assure that the
% result doesn't wiggle up and down with and without the arrow
\makeatother

%%%%%%  I Couldn't get this to cover the entire slide %%%%%%
%\usebackgroundtemplate{%
%   \tikz\node[opacity=0.2] {\includegraphics[height=\paperheight,width=\paperwidth]{./figures/old_paper_with_Larger_Eye.png}};} % old_paper_with_Larger_Eye

%%%%%%  Alternative approach to cover the background slide %%%%%%
\pgfdeclareimage[width=\paperwidth,height=\paperheight]{mybackground}{./figures/old_paper_with_Larger_Eye.pdf}

% Use with PdfLaTeX
\setbeamertemplate{background canvas}{%
    \begin{picture}(160mm,100mm)
        \begin{beamercolorBox}[wd=\paperwidth,ht=\paperheight]{bgcolor}
        \end{beamercolorBox}
        \put(-419,-3.5){%
            \tikz\node[opacity=0.15]{\pgfuseimage{mybackground}};
        }
    \end{picture}
}

% Presentation attributes
\title{Presentation Title}
%\subtitle{\small Subtitle}
\author[XXX]{First Name Last Name} % Author
\institute{\small Institute}
\date{\tiny\today}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                   Latex Preamble                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

% ---------------------------------------------------------------------------- %
\begin{frame}
  \titlepage
\end{frame}
\note{disclosure statements ``None exist"}

\begin{frame}{Overview}
    \tableofcontents
\end{frame}
% ---------------------------------------------------------------------------- %

\section{Background}
% ---------------------------------------------------------------------------- %

\begin{frame}[t]
    \frametitle{Motivation}
    \heading{Retinal diseases}
    \begin{itemize}[<+-| alert@+>] \pause
        \item[] Age-related macular degeneration (AMD)
        \begin{itemize}[<+-| alert@+>]
            \item 8 million Americans and anticipated to increase by 50\% by 2020 \cite{Jager_2008}
        \end{itemize}
        \item[] Posterior vitreous detachment (PVD)
        \begin{itemize}[<+-| alert@+>]
            \item 24\% of the population,50-59 yrs. 87\% 80-89 yrs. \cite{Bond-Taylor_2017}
        \end{itemize}
        \item[] Traumatic rhegmatogenous retinal detachment (RD)
        \begin{itemize}[<+-| alert@+>]
            \item Approximately 1 in 10,000 individuals suffer from retinal detachment each year \cite{Gariano_2004} about 15\% of these are traumatic \cite{Mitry_2010}
        \end{itemize}

    \end{itemize}
\end{frame}

\appendix
{\tiny
\begin{frame}[t,allowframebreaks]
    \bibliographystyle{ieeetr} % Orders the bibliography to begin with the number 1,2,3,.
    \bibliography{dissertation_Presentation_Bib}    
\end{frame}}
\end{document}

当我在演示文稿的末尾显示参考书目时,在参考框架标题的边缘出现了三条黑线,我不确定如何消除它们。我要那里的红线,而不是三行黑线。所有其他框架标题文字周围都没有这些额外的行。

Three black lines around the references frame title that I want to remove

非常感谢!

解决方法

Natbib通常会为引用创建一个新部分,但是在框架内开始一个新部分并不是一个好主意。您可以通过重新定义\bibsection宏来避免此问题:

\documentclass[xcolor=dvipsnames,aspectratio=1610,handout]{beamer} 
\usetheme[block=fill,progressbar=frametitle]{metropolis}
\usepackage[sort&compress,numbers]{natbib} % citations

\renewcommand{\bibsection}{}

\begin{document}

\begin{frame}
  \frametitle{title}
  \cite{test}
\end{frame}

\begin{frame}
    \frametitle{References}
    \bibliographystyle{ieeetr} 
    \bibliography{\jobname}    
\end{frame}

\end{document}

enter image description here

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?
Java在半透明框架/面板/组件上重新绘画。
Java“ Class.forName()”和“ Class.forName()。newInstance()”之间有什么区别?
在此环境中不提供编译器。也许是在JRE而不是JDK上运行?
Java用相同的方法在一个类中实现两个接口。哪种接口方法被覆盖?
Java 什么是Runtime.getRuntime()。totalMemory()和freeMemory()?
java.library.path中的java.lang.UnsatisfiedLinkError否*****。dll
JavaFX“位置是必需的。” 即使在同一包装中
Java 导入两个具有相同名称的类。怎么处理?
Java 是否应该在HttpServletResponse.getOutputStream()/。getWriter()上调用.close()?
Java RegEx元字符(。)和普通点?