我不明白为什么我的商品不在迷你页面中居中。这是我的代码:
\documentclass{beamer}
\mode<presentation> {
\usetheme{CambridgeUS}
}
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
\usepackage{todonotes}
\usepackage{amsmath,bm}
\usefonttheme{structurebold}
\usepackage{ulem}
\usepackage{fancybox}
\usepackage{tikz}
\usepackage{url}
\usepackage{float}
\usepackage{subfig}
\setbeamertemplate{caption}[numbered]
\usepackage{textpos}
\title[A.M. of Martensitic Steel]{Personal Research Work:\\ Additive Manufacturing of Martensitic Steel}
\author{CORONGIU Chiara}
\date{December 12, 2019}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{Introduction}
\begin{frame}{Choice of the presentation subject}
\begin{minipage}{0.49\linewidth}
\centering
\includegraphics[scale=0.5]{../TFE/images/pignon.png}
\end{minipage}
\begin{minipage}{0.49\linewidth}
\begin{center}
Surface material:
\begin{itemize}
\item Hard
\item Wear resistant
\item Corrosion resistant
\end{itemize}
\end{center}
\end{minipage}
\end{frame}
\end{document}
正如你所见,我的 3 个项目没有居中,我不知道为什么 :/ 提前致谢
答案1
itemize
默认情况下,项目左对齐。要使它们居中,\centering
必须在 中重复itemize
:
\documentclass{beamer}
\mode<presentation> {
\usetheme{CambridgeUS}
}
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
\usepackage{todonotes}
\usepackage{amsmath,bm}
\usefonttheme{structurebold}
\usepackage{ulem}
\usepackage{fancybox}
\usepackage{tikz}
\usepackage{url}
\usepackage{float}
\usepackage{subfig}
\setbeamertemplate{caption}[numbered]
\usepackage{textpos}
\title[A.M. of Martensitic Steel]{Personal Research Work:\\ Additive Manufacturing of Martensitic Steel}
\author{CORONGIU Chiara}
\date{December 12, 2019}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{Introduction}
\begin{frame}{Choice of the presentation subject}
\begin{minipage}{0.49\linewidth}
\centering
\includegraphics[scale=0.4]{example-image}
\end{minipage}
\begin{minipage}{0.49\linewidth}
\begin{center}
Surface material:
\begin{itemize}
\centering
\item Hard
\item Wear resistant
\item Corrosion resistant
\end{itemize}
\end{center}
\end{minipage}
\end{frame}
\end{document}
答案2
\documentclass{beamer}
\mode<presentation> {
\usetheme{CambridgeUS}
}
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
\usepackage{todonotes}
\usepackage{amsmath,bm}
\usefonttheme{structurebold}
\usepackage{ulem}
\usepackage{fancybox}
\usepackage{tikz}
\usepackage{url}
\usepackage{float}
\usepackage{subfig}
\setbeamertemplate{caption}[numbered]
\usepackage[absolute,overlay
%,showboxes
]{textpos}
\TPGrid{1}{1}
\title[A.M. of Martensitic Steel]{Personal Research Work:\\ Additive Manufacturing of Martensitic Steel}
\author{CORONGIU Chiara}
\date{December 12, 2019}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{Introduction}
\begin{frame}{Choice of the presentation subject}
\begin{minipage}{0.49\linewidth}
\centering
\includegraphics[scale=0.5]{example-image-a}
\end{minipage}
\begin{textblock}{0.4}(0.6,0.4)
Surface material:
\begin{itemize}
\item Hard
\item Wear resistant
\item Corrosion resistant
\end{itemize}
\end{textblock}
\end{frame}
\end{document}