المشكلة: أن النص الظاهر جانب الخط لا يتموضع وسط الخط، أي أن المستقيم -الخط-، أريده أي يتموضع وسط السطرين من الكتابة، كيف ذلك؟
هذا هو الكود المصدري:
\documentclass[border=5pt, multi, tikz]{standalone}
\usetikzlibrary{arrows.meta,decorations.markings}
\usepackage{amsmath}
\usepackage{xcolor}
\begin{document}
\begin{tikzpicture}
\draw[very thick](0,0)--(7,0) node [right]{Light to the East// of mast means 11};
\draw[black!80,fill=white](1,0) circle (.2cm) node [left]{Light to the West// of mast means 00};
\draw[black!80,fill=red](3.5,-3) circle (.2cm);
\draw[black!80,fill=red](3.5,3) circle (.2cm) node [above]{Light to the North// of mast means 01};
\draw[black!80,fill=white](6,0) circle (.2cm);
\draw[very thick](3.5,3.5)--(3.5,-3.5) node [below]{Light to the South// of mast means 10};
\end{tikzpicture}
\end{document}
السؤال
Badraoui
أحاول تكملة هذا الرسم على برنامج LaTeX:
المشكلة: أن النص الظاهر جانب الخط لا يتموضع وسط الخط، أي أن المستقيم -الخط-، أريده أي يتموضع وسط السطرين من الكتابة، كيف ذلك؟
هذا هو الكود المصدري:
1 جواب على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.