\fbox
我在文档中使用beamer
在内容周围绘制一个框,但没有得到所需的输出。内容\fbox
是
\fbox{Risk is defined as the potential future harm that may arise due to some present actions}
此外,\emph{\texbf{sample text}}
使文本仅以粗体显示,而不是以斜体显示beamer
。
\documentclass{beamer}
\usetheme{CambridgeUS}
\setbeamercolor{title}{bg=red!65!black,fg=white}
\begin{document}
\title{Risk Management in Software Engineering}
\author{S.Subham Soni}
\institute[P.E.C]{Department of Computer Science and Engineering\\
Pondicherry Engineering College}
\date{January 6, 2014}
\begin{frame}
\maketitle
\end{frame}
\begin{frame}
\frametitle{Table Of Contents}
\tableofcontents
\end{frame}
\begin{frame}
\frametitle{Introduction to Risk Management}
\section{Introduction to Risk Management}
\begin{itemize}
\item Risk Management involves \textsl{\textbf{anticipating risks}} that might affect the project schedule or the quality of the software being developed and taking action to avoid these risks.
\item The results of the risk analysis should be documented in the project plan along with an analysis of the consequences of a risk occurring.
\item Effective risk management makes it easier to cope with problems and to ensure that these do not lead to \underline{unacceptable budget} or \underline{schedule slippage}.
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Types of Risks}
\section{Types of Risks}
\textbf{What is Risk?} \par
\fbox{\parbox{\linewidth}{%
Risk is defined as the potential future harm that may
arise due to some present actions}}
\end{frame}
\end{document}
答案1
\fbox
是一个水平框,没有可能的换行符。使用
\fbox{\parbox{\dimexpr\linewidth-2\fboxsep-2\fboxrule}{%
Risk is defined as the potential future harm that may
arise due to some present actions}}
对于斜体粗体字体,请使用支持它的字体,例如\usepackage{libertine}