我想画一条两端带有箭头的双线,但是当我尝试这样做时,箭头尖端的厚度变得太大。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{arrows, positioning}
\begin{document}
\begin{tikzpicture}
\node[draw, rectangle, minimum size = 2cm] (a) {A};
\node[draw, rectangle, minimum size = 2cm, left = 3cm of a] (b) {B};
\node[draw, rectangle, minimum size = 2cm, left = 3cm of b] (c) {C};
\draw[angle 90-angle 90, line width=1pt, double, double distance=5pt] (a.west) -- (b.east);
\draw[angle 90-angle 90, line width=1pt] (b.west) -- (c.east);
\end{tikzpicture}
\end{document}
答案1
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{arrows.meta, positioning}
\begin{document}
\begin{tikzpicture}[>={Classical TikZ Rightarrow[]}]
\node[draw, rectangle, minimum size = 2cm] (a) {A};
\node[draw, rectangle, minimum size = 2cm, left = 3cm of a] (b) {B};
\node[draw, rectangle, minimum size = 2cm, left = 3cm of b] (c) {C};
\draw[<->, line width=1pt, double, double distance=5pt] (a.west) -- (b.east);
\draw[<->, line width=1pt] (b.west) -- (c.east);
\end{tikzpicture}
\end{document}
进步不大
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{arrows.meta, positioning}
\begin{document}
\begin{tikzpicture}[>={Straight Barb[round]}]
\node[draw, rectangle, minimum size = 2cm] (a) {A};
\node[draw, rectangle, minimum size = 2cm, left = 3cm of a] (b) {B};
\node[draw, rectangle, minimum size = 2cm, left = 3cm of b] (c) {C};
\draw[{<._[sep=-13pt]}-{_[sep=-13pt].>}, line width=1pt, double, double distance=5pt] (a.west) -- (b.east);
\draw[<->,line width=1pt] (b.west) -- (c.east);
\end{tikzpicture}
\end{document}