【问题标题】:Rounded boxes with text inside in beamer [closed]投影仪中带有文本的圆角框[关闭]
【发布时间】:2009-04-30 10:55:06
【问题描述】:

我想在乳胶中有几个文本,它们被装在一个圆形或更多的圆形框中。 我尝试使用:

\pgfnodecircle{Node1}[stroke]{\pgfxy(1,1)}{0.5cm}
\pgfnodecircle{Node2}[strokel]{\pgfxy(3,0.5)}{0.25cm}
\pgfnodecircle{Node3}[fill]{\pgfxy(5,1)}{0.25cm}  
\pgfnodeconnline{Node1}{Node2}  
\pgfnodeconnline{Node2}{Node3}

但是这个\pgfnodecircle 命令不允许我在节点圈内写文本。 我可以使用\pgfnodebox 添加文本,但我真的希望文本被圆角框而不是矩形框包围。

【问题讨论】:

  • 这个问题似乎是题外话,因为它是关于 LaTeX

标签: pdflatex


【解决方案1】:

也许您想要块环境:块、定理、证明和示例?然后,您可以找到一种 Beamer 样式来使它们变圆。

\begin{block}{Block title}
text here
\end{block}

【讨论】:

  • 正是我通过 google 寻找的内容 :-) 我忘记了命令的名称。
【解决方案2】:

命令\ovalbox 和\Ovalbox 定义包fancybox 可能会有所帮助:

\documentclass{article}
\usepackage{fancybox}
\begin{document}
  \ovalbox{hello}
  \Ovalbox{world}
  bye
  \doublebox{important}
\end{document}

请查看documentation of the fancybox package了解更多详情。

其他有趣的命令:amsmath 包中定义的\boxed 和shadow 包中定义的\shabox。

【讨论】:

    【解决方案3】:

    试试这个:

    \setbeamercolor{uppercolgreen}{fg=white,bg=green!35}
    \setbeamercolor{lowercolgreen}{fg=black,bg=green!10}
    ...
    \begin{beamerboxesrounded}[upper=uppercolgreen,lower=lowercolgreen,shadow=true]
    {Definition - What is A:} 
    $A:= 2 + 5$.
    \end{beamerboxesrounded}
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-03-02
      • 2016-10-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多