我有以下内容:
\documentclass{beamer}
\usepackage{graphicx}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{xcolor}
%\usepackage{colordef} % local package?
%\usepackage{beamerdefs} % local package?
%\usepackage{lvblisting} % local package?
\begin{document}
\frame{
\frametitle{Test}
\begin{itemize}
\item mtest
\item test test test test
\begin{block}{Methods}
\item the variance/covariance
\item historical simulation
\item \fcolorbox{red}{white}{Monte Carlo simulation}
\end{block}
\end{itemize} % missing line
}
\end{document}
问题是该block
部分的缩进不正确,导致左侧内容过多,且与之前的文本不在同一行,我该如何更改?我试过了,\hspace
但不起作用。
答案1
假设您希望块项的缩进与块之前的缩进相同:使用两个单独的itemize
环境并将第二个环境放在block
环境内。
\documentclass{beamer}
\usepackage{graphicx}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{xcolor}
\begin{document}
\frame{
\frametitle{Test}
\begin{itemize}
\item mtest
\item test test test test
\end{itemize}
\begin{block}{Methods}
\begin{itemize}
\item the variance/covariance
\item historical simulation
\item \fcolorbox{red}{white}{Monte Carlo simulation}
\end{itemize}
\end{block}
}
\end{document}