我想在横截面中显示高度:图中的 t1。但由于很短,箭头之间互相交叉。
但它应该更像这样
我当前的代码是:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{figure}[!htbp]
\centering
\begin{tikzpicture}
\filldraw[color=black, fill=black] (0,0) rectangle ++(9,0.5) node[pos=.5](gnd){};
\filldraw[color=black, fill=gray!20] (0,0.5) rectangle ++(9,2.5) node[pos=.5]{\(\varepsilon_r\)};
\filldraw[color=black, fill=black] (3.5,3) rectangle ++(2,.2) node[pos=.5](cond){};
\draw[>=triangle 45, <->] (1,0.5) -- (1,3) node[pos=.5,anchor=west](){\(h\)};
\draw[>=triangle 45, <->] (3.5,3.4) -- ++(2,0) node[pos=.5,anchor=south](){\(W\)};
\draw[>=triangle 45, <->] (5.7,3) -- ++(0,0.2) node[pos=.5,anchor=west](){\(t\)};
\end{tikzpicture}
\caption{}
\label{fig:microstrip_geometry}
\end{figure}
\end{document}