Latex Beamer 剪切文本

发布于 2024-09-11 02:42:58 字数 786 浏览 7 评论 0原文

下面简单的Latex描述不会产生 在幻灯片中我希望它是这样的。

\begin{frame}
\frametitle{Previous Work}
\begin{itemize}
\item [Hummer 1992] - First work in this area was conducted by Hummer
\item [Goldreich et at. 2002] - Theoretical work that focused more on the power    characteristics of embedded systems
\end{itemize}
\end{frame}

问题是,方括号内的文本被截断。所以它应该看起来 像这样:

Hummer 1992           - First work in this area was conducted
                        by Hummer
Goldreich et al. 2002 - Theoretical work that focused more on
                        the power 

但它看起来像这样:

r 1992  - First work in this area was conducted by Hummer
l. 2002 - Theoretical work that focused more on the power 

知道我如何解决这个问题。

谢谢!

The following simple Latex description does not result
in the slide I want it to be.

\begin{frame}
\frametitle{Previous Work}
\begin{itemize}
\item [Hummer 1992] - First work in this area was conducted by Hummer
\item [Goldreich et at. 2002] - Theoretical work that focused more on the power    characteristics of embedded systems
\end{itemize}
\end{frame}

The problem is, that the text within the square brackets is cuts off. So it should look
like this:

Hummer 1992           - First work in this area was conducted
                        by Hummer
Goldreich et al. 2002 - Theoretical work that focused more on
                        the power 

But it looks like this:

r 1992  - First work in this area was conducted by Hummer
l. 2002 - Theoretical work that focused more on the power 

Any idea how I can sort this out.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

淡淡绿茶香 2024-09-18 02:42:58

正如 progo 所说,description 环境比 itemize 更适合。
此外,您可以使用描述环境的可选参数来改进对齐方式,指定最宽标签的宽度:

\begin{frame}
\frametitle{Previous Work}
\begin{description}[Goldreich et at. 2002]
\item [Hummer 1992] First work in this area was conducted by Hummer
\item [Goldreich et at. 2002] Theoretical work that focused more
    on the power characteristics of embedded systems
\end{description}
\end{frame}

输出:

替代文本
(来源:texblog.net

顺便说一句。如果您想知道如何摆脱“默认”投影仪警告,请查看此 有关投影仪警告的博客文章

As progo said, the description environment fits better than itemize.
Additionally, you could improve the alignment using the optional parameter of the description environment, specifying the width of the widest label:

\begin{frame}
\frametitle{Previous Work}
\begin{description}[Goldreich et at. 2002]
\item [Hummer 1992] First work in this area was conducted by Hummer
\item [Goldreich et at. 2002] Theoretical work that focused more
    on the power characteristics of embedded systems
\end{description}
\end{frame}

Output:

alt text
(source: texblog.net)

Btw. if you would like to know how to get rid of the "default" beamer warnings have a look at this blog post regarding beamer warnings.

难如初 2024-09-18 02:42:58

itemize 环境不适合与长“项目符号”一起使用。使用 description 环境可以做得更好(正如我检查的那样,它也适用于投影仪),但它不会按照您想要的方式对齐名称和描述。

总有表格可以完全满足您的需求。

The itemize environment is not meant to be used with long 'bullets'. Using the description environment does a better job (which also works in beamer as I checked), but it won't align the names and descriptions as you would like to sketch out.

There's always the tabular for doing exactly what you want.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文