我在将背景图像放入 的标题页时遇到了问题Beamer
。
\documentclass{beamer}
%\setbeamercolor{titlelike}{parent=structure,bg=cyan} %background color
%\setbeamercolor{titlelike}{parent=structure,fg=blue} %colore titoli
%\setbeamercolor{titlelike}{parent=structure,fg=yellow,bg=cyan} %colore e background in un comando
%%% duplicated <<<<<<<<<<<<<<<<<<<<<<<<<
%%\usepackage{tikz}
%%\usepgflibrary{arrows.meta}
%%\usetikzlibrary{calc,quotes,angles}
%%\usepackage{pgfplots}
%%\pgfplotsset{compat=1.16}
%%\usepgfplotslibrary{groupplots}
%%\usetikzlibrary{calc}
\usepackage{xcolor}
\definecolor{cobalt}{rgb}{0.0, 0.28, 0.67}
\definecolor{bluegray}{rgb}{0.4, 0.6, 0.8}
%\setbeamercolor{titlelike}{parent=structure,fg=cobalt,bg=violet!50}
\usepackage{tikz}
\usepackage{subcaption}
\usepgflibrary{arrows.meta}
\usetikzlibrary{calc,quotes,angles}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\usepgfplotslibrary{groupplots}
%\usetikzlibrary{calc} %rido <<<<<<<<<<<<<<
\setbeamercolor{itemize item}{fg=cobalt}% all frames will have cobalt bullets
\setbeamertemplate{itemize items}[ball] %all bullets
\setbeamercolor{itemize item}{fg=cobalt,bg=bluegray}
\setbeamersize{text margin left=5mm,text margin right=5mm} %margini
%\usebackgroundtemplate{\includegraphics[width=\paperwidth]{logo.jpeg}}
%\titlegraphic{\includegraphics[height=1.5cm]{example-grid-100x100pt}} %<<<<<<<<<<<<<<<<<<<<
\setbeamertemplate{navigation symbols}{} %remove the navigation bar
\begin{document}
\begin{titlepage}
\begin{center}
\vspace*{0.2 cm}
\Large
%\color{cobalt}
\textbf{UNI NAME}\\
%\vspace*{1 cm}
%\includegraphics[height=50pt]{logo.jpeg}
%\vspace{1cm}
\large
Dipartiment\\
%\vspace{1cm}
\small
kind of degree\\
\vspace{0.5cm}
\large
Thesis
\vspace{0.5cm}
\large
\color{cobalt}
\textbf{title}
\vspace{0.5cm}
\footnotesize
\color{black}
Candidato:\\
\normalsize
\textbf{name}\\
\vspace{0.2cm}
%\vfill
\begin{minipage}{6cm}
\centering
\footnotesize
Relatore
\small
Prof.ssa \textbf{name 1}
\end{minipage}\hfill
\begin{minipage}{4cm}
\centering
\footnotesize
Correlatore
\small
Prof. \textbf{name 2}
\end{minipage}
\vspace{1cm}
\small
year 2019-2020
\end{center}
\end{titlepage}
\setbeamercolor{background canvas}{bg=bluegray!4} %<<<<<<<<<<<<<<<<<<< added
\setbeamercolor{titlelike}{parent=structure,fg=cobalt,bg=bluegray!50} %<<<<<<<<<<<<<<<<<<< added
\begin{frame}
\frametitle{Title first slide} %<<<<<<<<<<<<<<<<<<< changed
%\begin{figure}[h]%<<<<<<<<<<<<<<<<<<<
%\centering%<<<<<<<<<<<<<<<<<<<
\begin{itemize}
\item bla blla
\item gla gla
\end{itemize}
\end{frame}
\end{document}
我正在尝试:
\usebackgroundtemplate{%
\tikz\node[opacity=0.3] {\includegraphics[height=\paperheight,width=\paperwidth]{logo.jpeg}};}
但我只想要标题页上的背景。
PS 我甚至不知道如何删除显示日期的第一页。
答案1
尝试这个。
我重新整理了标题代码。最好将字体大小更改保留在括号中,以限制其范围,并且不会混淆字体大小定义的其他空间。
\documentclass{beamer}
\usepackage{xcolor}
\definecolor{cobalt}{rgb}{0.0, 0.28, 0.67}
\definecolor{bluegray}{rgb}{0.4, 0.6, 0.8}
\usepackage{tikz}
\usepackage{subcaption}
\usepgflibrary{arrows.meta}
\usetikzlibrary{calc,quotes,angles}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\usepgfplotslibrary{groupplots}
\setbeamercolor{itemize item}{fg=cobalt}% all frames will have cobalt bullets
\setbeamertemplate{itemize items}[ball] %all bullets
\setbeamercolor{itemize item}{fg=cobalt,bg=bluegray}
\setbeamersize{text margin left=5mm,text margin right=5mm} %margini
\setbeamertemplate{navigation symbols}{} %remove the navigation bar
\date{} % <<<<< added
\begin{document}
\title{% <<<<< added
\begin{center}
\vspace*{0.1 cm}
{\Large \textbf{UNI NAME}}\\
{\large Dipartiment}\\
{\small kind of degree}\\
\vspace{0.2cm}
{\large Thesis} \\
\vspace{0.3cm}
{\large \color{cobalt} \textbf{title}} \\
\vspace{0.3cm}
\color{black}
{\footnotesize Candidato:}\\
\textbf{name}\\
\vspace{0.4cm}
\begin{minipage}{6cm}
\centering \footnotesize
Relatore \\
{\small Prof.ssa \textbf{name 1} }
\end{minipage}\hfill
\begin{minipage}{4cm}
\centering \footnotesize
Correlatore\\
{\small Prof. \textbf{name 2}}
\end{minipage}
\vspace{0.7cm}
{\small year 2019-2020}
\end{center}
}
{%
\usebackgroundtemplate{\includegraphics[width=\paperwidth]{example-image}}
\begin{frame}
\titlepage
\end{frame}
}
\setbeamercolor{background canvas}{bg=bluegray!4} %
\setbeamercolor{titlelike}{parent=structure,fg=cobalt,bg=bluegray!50} %<
\begin{frame}
\frametitle{Title first slide} %<
\begin{itemize}
\item bla blla
\item gla gla
\end{itemize}
\end{frame}
\end{document}