![Beamer 中的标题页对齐以及段落和行的透明化](https://linux22.com/image/418025/Beamer%20%E4%B8%AD%E7%9A%84%E6%A0%87%E9%A2%98%E9%A1%B5%E5%AF%B9%E9%BD%90%E4%BB%A5%E5%8F%8A%E6%AE%B5%E8%90%BD%E5%92%8C%E8%A1%8C%E7%9A%84%E9%80%8F%E6%98%8E%E5%8C%96.png)
我无法按自己想要的方式设置标题页。例如,标题和上方空间之间有很大的间隙,也无法将标题放大,也无法将我的名字、学院和大学徽标放在更好的位置。这是我的大学徽标的链接https://www.google.co.in/url?sa=i&url=http%3A%2F%2Fwww.cuhimachal.ac.in%2F&psig=AOvVaw1lPuHysHY-TdFCdIFUyBJc&ust=1595416760523000&source=images&cd=vfe&ved=0CAIQjRxqFwoTCJD3j9yc3uoCFQAAAAAdAAAAABAD
\documentclass[11pt,t]{beamer} %<----- top align all frame contents
\usetheme[progressbar=frametitle]{metropolis}
\setbeamertemplate{frame numbering}[fraction]
\setbeamercolor{progress bar}{fg=green,bg=blue}
\makeatletter
\setlength{\metropolis@progressinheadfoot@linewidth}{3pt}
\makeatother
\metroset{sectionpage=none} %<----- remove all section frames
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{float}
\usepackage[style=numeric]{biblatex}
\addbibresource{references.bib}
\setbeamertemplate{bibliography item}{\insertbiblabel} % <--- number references
\defbeamertemplate{subsection in toc}{bullets}{%
\leavevmode
\parbox[t]{1em}{\textbullet\hfill}%
\parbox[t]{\dimexpr\textwidth-1em\relax}{\inserttocsubsection}\par}
\defbeamertemplate{section in toc}{sections numbered numeric}{%
\leavevmode%
\MakeUppercase{\number\inserttocsectionnumber}.\ %
\inserttocsection\par}
\setbeamertemplate{section in toc}[sections numbered numeric]
\setbeamertemplate{subsection in toc}[bullets]
\begin{document}
\author{Anshul Sharma}
\title{Symmetry in Quantum Mechanics}
\institute {CENTRAL UNIVERSITY OF HIMACHAL PRADESH}
\begin{frame}[plain]
\begin{tikzpicture}[remember picture, overlay]
\node[anchor=north east] at ($(current page.center)+(-2,-2)$){\includegraphics[width=0.3\linewidth, scale=0.1]{"CUHP LOGO"}};
\end{tikzpicture}
\maketitle
\end{frame}
\end{document}
此外,在进行演示时,我们希望逐个显示框架的各个部分。那么如何实现它,就像我以前一样,setbeamercoveredpage{transparent}
但似乎我无法做到。以下是我的代码
\documentclass[11pt,t]{beamer} %<----- top align all frame contents
\usetheme[progressbar=frametitle]{metropolis}
\setbeamertemplate{frame numbering}[fraction]
\setbeamercolor{progress bar}{fg=green,bg=blue}
\makeatletter
\setlength{\metropolis@progressinheadfoot@linewidth}{3pt}
\makeatother
\metroset{sectionpage=none} %<----- remove all section frames
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{float}
\usepackage[style=numeric]{biblatex}
\addbibresource{references.bib}
\setbeamertemplate{bibliography item}{\insertbiblabel} % <--- number references
\defbeamertemplate{subsection in toc}{bullets}{%
\leavevmode
\parbox[t]{1em}{\textbullet\hfill}%
\parbox[t]{\dimexpr\textwidth-1em\relax}{\inserttocsubsection}\par}
\defbeamertemplate{section in toc}{sections numbered numeric}{%
\leavevmode%
\MakeUppercase{\number\inserttocsectionnumber}.\ %
\inserttocsection\par}
\setbeamertemplate{section in toc}[sections numbered numeric]
\setbeamertemplate{subsection in toc}[bullets]
\begin{document}
\author{Anshul Sharma}
\title{Symmetry in Quantum Mechanics}
\institute {CENTRAL UNIVERSITY OF HIMACHAL PRADESH}
\begin{frame}[plain]
\begin{tikzpicture}[remember picture, overlay]
\node[anchor=north east] at ($(current page.center)+(-2,-2)$){\includegraphics[width=0.3\linewidth, scale=0.1]{"CUHP LOGO"}};
\end{tikzpicture}
\maketitle
\end{frame}
\begin{frame}
\frametitle{Overview}
\tableofcontents
\end{frame}
\section{Symmetries in Classical Physics} % <---- add sections in order to get them listed in the table of contents
\begin{frame}{\secname} % <----- \secname here used the section's name as a frametitle
\begin{itemize}
\item Hi % Here i want that after any para any points or lines the text after it is transparent (not fully but)
\item Bye
\end{itemize}
\end{document}
还有我们如何才能透明地显示两个段落,比如说
自然界中有许多过程会破坏对称性,例如,当超越原子核水平时,即研究超出其基本成分夸克的粒子物理学时,对称性通常会被破坏。一些基本粒子(即 $\beta$ 粒子)会破坏对称性,称为弱相互作用的宇称不守恒。同样,在 K 介子粒子的情况下,CP 破坏会发生,为了解决该理论,我们使用 CPT 定理。
Like the below paragraph I want for the reader, text to be transparent (or partially).
连续对称性和离散对称性。连续对称性由平移对称性和旋转对称性组成,而离散对称性包含奇偶性、时间反演和电荷共轭对称性
答案1
以下是我关于如何更改标题页布局的建议,以便 a) 删除标题上方的大空白,b) 增加标题、作者和机构的字体大小,c) 改善徽标的位置。我在代码中添加了一些注释,说明我title page
与 metropolis 主题中模板的原始定义相比所做的更改。
我还提供了两个关于如何使用该\pause
命令的简短示例。结合\setbeamercovered{transparent}
我在序言中添加的内容,即将显示的内容以浅灰色显示:
\documentclass[11pt,t]{beamer}
\usetheme[progressbar=frametitle]{metropolis}
\setbeamertemplate{frame numbering}[fraction]
\setbeamercolor{progress bar}{fg=green,bg=blue}
\makeatletter
\setlength{\metropolis@progressinheadfoot@linewidth}{3pt}
\makeatother
\metroset{sectionpage=none}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{float}
\usepackage[style=numeric]{biblatex}
\addbibresource{references.bib}
\setbeamertemplate{bibliography item}{\insertbiblabel}
\defbeamertemplate{subsection in toc}{bullets}{%
\leavevmode
\parbox[t]{1em}{\textbullet\hfill}%
\parbox[t]{\dimexpr\textwidth-1em\relax}{\inserttocsubsection}\par}
\defbeamertemplate{section in toc}{sections numbered numeric}{%
\leavevmode%
\MakeUppercase{\number\inserttocsectionnumber}.\ %
\inserttocsection\par}
\setbeamertemplate{section in toc}[sections numbered numeric]
\setbeamertemplate{subsection in toc}[bullets]
\setbeamercovered{transparent} % <----- added
\makeatletter
\setbeamertemplate{title page}{
\begin{minipage}[t][\paperheight]{\textwidth} % <---- changed from [b] to [t] alignment
% \ifx\inserttitlegraphic\@empty\else\usebeamertemplate*{title graphic}\fi % <--- commented out and moved to the end
% \vfill% % <---- commented out as not needed with top alignment
\ifx\inserttitle\@empty\else\usebeamertemplate*{title}\fi
\ifx\insertsubtitle\@empty\else\usebeamertemplate*{subtitle}\fi
\usebeamertemplate*{title separator}
\ifx\beamer@shortauthor\@empty\else\usebeamertemplate*{author}\fi
\ifx\insertdate\@empty\else\usebeamertemplate*{date}\fi
\ifx\insertinstitute\@empty\else\usebeamertemplate*{institute}\fi
\ifx\inserttitlegraphic\@empty\else\usebeamertemplate*{title graphic}\fi % <---- added the titlegraphic here
% \vfill % <---- commented out as not needed with top alignment
\vspace*{1mm}
\end{minipage}
}
\makeatother
\setbeamerfont{title}{size=\LARGE}
\setbeamerfont{author}{size=\large}
\setbeamerfont{institute}{size=\large}
\author{Anshul Sharma}
\title{Symmetry in Quantum Mechanics}
\institute {CENTRAL UNIVERSITY OF HIMACHAL PRADESH}
\titlegraphic{\includegraphics[width=0.3\linewidth]{example-image}}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\begin{frame}
\frametitle{Overview}
\tableofcontents
\end{frame}
\section{Symmetries in Classical Physics}
\begin{frame}{\secname}
\begin{itemize}
\item first item on first slide
\item second item on first slide
\pause
\item item on second slide
\end{itemize}
\end{frame}
\begin{frame}{Frame Title}
There are many processes ... use the CPT Theorem
\pause
Continuous symmetry ... Charge Conjugation symmetry
\end{frame}
\end{document}
这是一种在不改变该线及其下方元素的绝对位置的情况下减少标题和绿线之间的空间的方法:
\makeatletter
\setbeamertemplate{title page}{
\begin{minipage}[t][\paperheight]{\textwidth} % <---- changed from [b] to [t] alignment
% \ifx\inserttitlegraphic\@empty\else\usebeamertemplate*{title graphic}\fi % <--- commented out and moved to the end
% \vfill% % <---- commented out as not needed with top alignment
\vspace{0.45cm} % <--- move the title down by 0.45cm
\ifx\inserttitle\@empty\else\usebeamertemplate*{title}\fi
\ifx\insertsubtitle\@empty\else\usebeamertemplate*{subtitle}\fi
\vspace{-0.45cm} % <---- remove 0.45 cm of white space between title and green line
\usebeamertemplate*{title separator}
\ifx\beamer@shortauthor\@empty\else\usebeamertemplate*{author}\fi
\ifx\insertdate\@empty\else\usebeamertemplate*{date}\fi
\ifx\insertinstitute\@empty\else\usebeamertemplate*{institute}\fi
% \bigskip
\ifx\inserttitlegraphic\@empty\else\usebeamertemplate*{title graphic}\fi % <---- added the titlegraphic here
% \vfill % <---- commented out as not needed with top alignment
\vspace*{1mm}
\end{minipage}
}
\makeatother