我想要写入穿过虚线圆的文本,使得虚线在文本和线相交的地方消失。
我目前正在尝试为教科书绘制一张图表。
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,arrows}
\begin{document}
\begin{tikzpicture}
\draw[fill] (0,0) circle (0.2) node[above=5pt]{Kern};
\draw[dashed, red] (0,0) circle (2);
\draw[dashed, red] (0,0) circle (4);
\draw[dashed, red] (0,0) circle (6);
\draw[red, arrows = {Latex-Latex}, ultra thick] (0,-5.3) -- (0,-6.6);
\draw[red, arrows = {Latex-Latex}, ultra thick] (0,5.3) -- (0,6.6);
\draw[red, arrows = {Latex-Latex}, ultra thick] (5.3,0) -- (6.6,0);
\draw[red, arrows = {Latex-Latex}, ultra thick] (-5.3,0) -- (-6.6,0);
\draw[red, arrows = {Latex-Latex}, ultra thick, rotate = 45] (-5.3,0) -- (-6.6,0);
\draw[red, arrows = {Latex-Latex}, ultra thick, rotate = -45] (-5.3,0) -- (-6.6,0);
\draw[red, arrows = {Latex-Latex}, ultra thick, rotate = 135] (-5.3,0) -- (-6.6,0);
\draw[red, arrows = {Latex-Latex}, ultra thick, rotate = -135] (-5.3,0) -- (-6.6,0);
\node[scale = 1.3] at (3.5,2.5) {Elektronenwelle}
\end{tikzpicture}
\end{document}
现在,文字“Elektronenwelle”所在的位置,圆圈的虚线刚好穿过文字。我可以让它们在该位置消失,这样文字中就没有红线了?
答案1
用这一行替换,一切就正常了:
\node[scale = 1.3,fill=white] at (3.5,2.5) {Elektronenwelle};