后续问题我怎样才能将等价物(即 $\Leftrightarrow$)绘制为箭头?
如果我想在(非白色)背景颜色上绘制等值箭头怎么办?填充选项似乎没有效果。
\documentclass{beamer}
\usetheme{Madrid}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{frame}
\begin{definition}[How to fill the following arrow with background color?]
\begin{tikzpicture}
\draw[implies-implies,double equal sign distance,fill=bg] (2,1) -- (3,2);
\end{tikzpicture}
\end{definition}
\end{frame}
\end{document}
答案1
你想要的是double
钥匙,而不是fill
。还要注意的是,arrows.meta
图书馆已经取代了arrows
图书馆。
\documentclass{beamer}
\usetheme{Madrid}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{frame}
\begin{definition}[How to fill the following arrow with background color?]
\begin{tikzpicture}
\draw[Implies-Implies,double equal sign distance,double=bg] (2,1) -- (3,2);
\end{tikzpicture}
\end{definition}
\end{frame}
\end{document}
答案2
您必须指定双重样式:
\draw[implies-implies,double equal sign distance,double=bg] (2,1) -- (3,2);