2

I need to change "tkzDrawSegments" mark's Thickness, length, and the separation between the two marks.

\documentclass{standalone}
\usepackage{tkz-euclide,tikz}
\usetkzobj{all}
\begin{document}
\begin{tikzpicture}

%% Coordinates
\tkzDefPoint(0,0){M}
\tkzDefPoint(0:5){A}
\tkzDefPoint(33:2.980908232089868){D}
\tkzDefPoint(81:2.980908232089868){E}
%DRAW
\draw [rounded corners = 0.4, thick, gray!60!black,line width=0.75pt](E) --(M) --(A) --(D)  --cycle;
\tkzDrawSegments[cap=round,line width=0.75pt](D,M M,E)
\tkzMarkSegments[mark=||,color= gray!60!black, size = 4pt, thick,line     width=0.75pt](M,D D,A M,E)
\end{tikzpicture}
\end{document}

enter image description here

3

You can modify the definition of mark || with

\def\marksep{1pt}
\def\markwidth{1pt}

% double bar
\pgfdeclareplotmark{||}
{%
  \pgfsetlinewidth{\markwidth}
  \pgfpathmoveto{\pgfqpoint{\marksep}{\pgfplotmarksize}}
  \pgfpathlineto{\pgfqpoint{\marksep}{-\pgfplotmarksize}}
  \pgfpathmoveto{\pgfqpoint{-\marksep}{\pgfplotmarksize}}
  \pgfpathlineto{\pgfqpoint{-\marksep}{-\pgfplotmarksize}}
  \pgfusepathqstroke
}

Where \marksep and \markwidth controls the separation and thickness of mark lines

\documentclass{standalone}
\usepackage{tkz-euclide,tikz}
\usetkzobj{all}

\def\marksep{1pt}
\def\markwidth{1pt}

% double bar
\pgfdeclareplotmark{||}
{%
  \pgfsetlinewidth{\markwidth}
  \pgfpathmoveto{\pgfqpoint{\marksep}{\pgfplotmarksize}}
  \pgfpathlineto{\pgfqpoint{\marksep}{-\pgfplotmarksize}}
  \pgfpathmoveto{\pgfqpoint{-\marksep}{\pgfplotmarksize}}
  \pgfpathlineto{\pgfqpoint{-\marksep}{-\pgfplotmarksize}}
  \pgfusepathqstroke
}



 \begin{document}
    \begin{tikzpicture}

    %% Coordinates
    \tkzDefPoint(0,0){M}
    \tkzDefPoint(0:5){A}
    \tkzDefPoint(33:2.980908232089868){D}
    \tkzDefPoint(81:2.980908232089868){E}
    %DRAW
    \draw [rounded corners = 0.4, thick, gray!60!black,line width=0.75pt](E) --(M) --(A) --(D)  --cycle;
    \tkzDrawSegments[cap=round,line width=0.75pt](D,M M,E)
    \tkzMarkSegments[mark=||,color= gray!60!black, size = 4pt, thick,line     width=.5pt](M,D D,A M,E)
    \end{tikzpicture}
    \end{document} 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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