我想在我的投影机前幻灯片中添加研究所徽标和会议徽标,使其看起来像这样
我使用的代码在这里:
\documentclass[a4paper,aps,umbc4,9pt,colorBG,slideColor]{beamer}
\usepackage{ragged2e}\justifying % left-right alignment
\usepackage{txfonts}
\setlength{\parskip}{5pt}
\setbeamersize{text margin left=12pt, text margin right=12pt}
\setbeamertemplate{frametitle}[default][left, leftskip=5mm]
\setbeamertemplate{page number in head/foot}[appendixframenumber]
\usefonttheme[onlymath]{serif}
\usetheme{Madrid}
\newcommand{\backupbegin}{
\newcounter{finalframe}
\setcounter{finalframe}{\value{framenumber}}
}
\newcommand{\backupend}{
\setcounter{framenumber}{\value{finalframe}}
}
\newcommand{\dprime}{\prime \prime}
\date{}
\title[ Title ]{\huge\textcolor{green}{Title of the presentation}}
%\subtitle{subtitle here}
\author[Author name]{ \large{\textcolor{blue}{Name } }}
\institute[Institute]{ {\textcolor{blue}{Institute}}\\
{\textcolor{blue}{Inst. Address line 1}}\\
{\textcolor{blue}{Inst. Address line 2}}
}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\end{document}
答案1
这是一种可行的方法,易于调整和改变。
它使用该nicematrix
包将文本内容和图像放在两行、每行两列中。
该\Block{}{<content>}
命令允许您将内容(文本或图像)插入单元格。
请注意,图形垂直对齐,并且与左侧的文本居中。
\documentclass[a4paper,aps,umbc4,9pt,colorBG,slideColor]{beamer}
\usepackage{ragged2e}%\justifying % left-right alignment
\usepackage{txfonts}
\setlength{\parskip}{5pt}
\setbeamersize{text margin left=12pt, text margin right=12pt}
\setbeamertemplate{frametitle}[default][left, leftskip=5mm]
\setbeamertemplate{page number in head/foot}[appendixframenumber]
\usefonttheme[onlymath]{serif}
\usetheme{Madrid}
\newcommand{\backupbegin}{
\newcounter{finalframe}
\setcounter{finalframe}{\value{framenumber}}
}
\newcommand{\backupend}{
\setcounter{framenumber}{\value{finalframe}}
}
\newcommand{\dprime}{\prime \prime}
\date{}
\title[ Title ]{\huge\textcolor{green}{Title of the presentation}}
%%%\subtitle{subtitle here}
%%%\author[Author name1]{ \large{\textcolor{blue}{Name 1} }}
%%%
%%%\author[Author name2]{ \large{\textcolor{blue}{Name 2 } }}
%%%
%%%\institute[Institute]{ {\textcolor{blue}{Institute}}\\
%%% {\textcolor{blue}{Inst. Address line 1}}\\
%%% {\textcolor{blue}{Inst. Address line 2}}
%%%}
\usepackage{nicematrix}% added <<<<<<<<<<<<<<<<<<<<<
\begin{document}
\begin{frame}
\maketitle
\vspace*{-50pt}% adjust
\centering
\begin{NiceTabular}{wl{0.5\textwidth}l}
\Block[l]{}{%
{\large\textcolor{blue}{Name 1}} \\
{\large\textcolor{blue}{Name 2}} \\
\textcolor{blue}{Inst. Address line 1}\\
\textcolor{blue}{Inst. Address line 2}
} &
\Block{}{\includegraphics[width=0.1\linewidth]{example-image-a}}
\end{NiceTabular}\vspace*{30pt}% adjust
\begin{NiceTabular}{wl{0.5\textwidth}l}
\Block[l]{}{Conference name} &
\Block{}{\includegraphics[width=0.1\linewidth]{example-image-b}}
\end{NiceTabular}
\vfill
\end{frame}
\end{document}