花式云引号-算术溢出

花式云引号-算术溢出

我想做一个花哨的引用...(有什么想法吗?)我找不到任何东西,所以我想到使用云...我的代码是

\documentclass[slidestop,compress,mathserif,12pt,xcolor=dvipsnames]{beamer}
\graphicspath{{images/}}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usepackage[bars]{beamerthemetree} % Beamer theme v 2.2
\usepackage{kerkis}
\usepackage{multimedia}
\usepackage{subfigure}
\mode<presentation>
%frame
\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
     \oldmacro\hfill%
  \insertframenumber\,}%/\,\inserttotalframenumber
\setbeamertemplate{footline}[frame number]
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\setbeamercovered{higly dynamic}
\usetheme[watermark=ntua-logo.jpg]{Ilmenau} % Beamer theme v 3.0
\useoutertheme[subsection=true]{smoothbars}%Beamer Outer Theme-circles on top

\useinnertheme{circles} %rectangle bullet points instead of circle ones
\usepackage{beamerthemebars}
\setbeamercolor{navigation symbols dimmed}{fg=red!80!black}
\setbeamercolor{navigation symbols}{fg=red!80!black}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\title[July 2012 H4 Test Beam\hspace{3cm} Stony Brook, NYC]{July 2012 H4 Test Beam}
\author[Stamatopoulos N. Athanasios\hspace{2.5cm}{[email protected]}]        {Stamatopoulos N. Athanasios}
\institute{NTUA/CERN}
\logo{%
  \makebox[0.99\paperwidth]{%
    \includegraphics[width=1cm,keepaspectratio]{cern_logo_white.jpg}%
    \hfill%
    \includegraphics[width=1cm,keepaspectratio]{ntua-logo.jpg}%
  }%
}

\usepackage{textpos}
\usepackage{tikz}
\usetikzlibrary{%
calc,%
fadings,%
shadings%
}

\usetikzlibrary{arrows,snakes,shapes}
%\usepackage{enumitem}
%\usepackage{paralist}

   \begin{document}

\begin{frame}
%\begin{exampleblock}{}
%  {\large ``There is something rotten in the state of our detector.''}
% \end{exampleblock}

\begin{tikzpicture}
        \node[align=center,color=gray!20, draw,fill=gray!20, text=red, cloud callout, cloud     puffs=20, cloud puff arc=145, callout pointer segments=0, anchor=pointer, callout relative     pointer={(0:5 cm )}, aspect=4,scale=0.5] at (0,0) {\textbf{\large ``There is something     rotten in the state of our detector.''}};
\end{tikzpicture}

\end{frame}%<------------error at that line

\end{document}

问题是,我收到一条错误,指出存在算术溢出。不过,云是 produsecf。所以我的问题与What is this arithmetic overflow和有关Any fancy quotes

答案1

请考虑找出一个最小的例子,因为它会更强调这个问题。这个问题可以简化为以下内容

\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{shapes.callouts}
\begin{document}
\begin{frame}
\begin{tikzpicture}
        \node[align=center,
        gray!20, draw,fill, text=red, 
        cloud callout, cloud puffs=20, cloud puff arc=145, callout pointer segments=1, 
        anchor=pointer, callout relative pointer={(0:1 cm )}, aspect=4,
        scale=0.5] 
        at (0,0) 
        {\textbf{\large ``There is something rotten in the state of our detector.''}};
\end{tikzpicture}
\end{frame}
\end{document}

错误的原因在于您将指针段设置为 0,这使其只是一个cloud不是cloud callout或思考气球。因此必须至少有一个段来防止错误。

另外,如前所述,您使用的选项现已过时。编译后查看警告消息。

\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{shapes.symbols}
\begin{document}
\begin{frame}
\begin{tikzpicture}
        \node[align=center,gray!20, draw,fill, text=red, 
        cloud, cloud puffs=10, aspect=4,scale=0.5] 
        at (0,0) 
        {\textbf{\large ``There is something rotten in the state of our detector.''}};
\end{tikzpicture}
\end{frame}
\end{document}

在此处输入图片描述

相关内容