加密代码包:虚线箭头

加密代码包:虚线箭头

我想为c这张图中注释的箭头添加一个虚线箭头:

在此处输入图片描述

但是,我找不到该怎么做,该style属性显然不适用于这种箭头......

梅威瑟:

\documentclass{article}
\usepackage [
n,
advantage,
operators,
sets,
adversary,
landau,
probability,
notions,
logic,
ff,
mm,
primitives,
events,
complexity,
asymptotics,
keys
] {cryptocode}

\begin{document}
\begin{bbrenv}{A}
  \begin{bbrbox}[name=A]

  \end{bbrbox}
  \bbrmsgto{top=$a$}
  \bbrmsgfrom{top={$b$}}
  % \bbrqryfrom{top={$c$}, style={dashed}}
  \bbrqryfrom{top={$c$}}
\end{bbrenv}
\end{document}

答案1

您可以使用edgestyle=dashed

\documentclass{article}
\usepackage [
n,
advantage,
operators,
sets,
adversary,
landau,
probability,
notions,
logic,
ff,
mm,
primitives,
events,
complexity,
asymptotics,
keys
] {cryptocode}

\begin{document}
\begin{bbrenv}{A}
  \begin{bbrbox}[name=A]

  \end{bbrbox}
  \bbrmsgto{top=$a$}
  \bbrmsgfrom{top={$b$}}
  \bbrqryfrom{top={$c$},edgestyle=dashed}
  \bbrqryfrom{top={$c$}}
\end{bbrenv}
\end{document}

在此处输入图片描述

相关内容