2

Is there a way to control the thickness of the mark using \tkzMarkSegment in tkz-euclide? (Or are there other readily-available macros with such options?)

\documentclass[tikz, border=1cm]{standalone}
\usepackage{tkz-euclide}

\begin{document}
\begin{tikzpicture}
\coordinate (A) at (0,0);
\coordinate (B) at (4,0);

\draw (A)--(B);
\tkzMarkSegment[mark=|](A,B)

\end{tikzpicture}  
\end{document}
2

You can modify line width of marks within a scope environment

\documentclass[tikz, border=1cm]{standalone}
\usepackage{tkz-euclide}

\begin{document}

\begin{tikzpicture}
\coordinate (A) at (0,0);
\coordinate (B) at (4,0);

\draw (A)--(B);
\begin{scope}[line width=2pt]
\tkzMarkSegment[mark=|](A,B)
\end{scope}

\end{tikzpicture}  
\end{document}
  • Thanks. I'd never think of that. – blackened Jan 10 at 12:01

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.