0

i would like to add this figure in math.stack and for my document by make it in latex

  • How to make it looks in good-looking with different style

enter image description here

\documentclass[tikz,border=2pt,png]{standalone}
\usepackage{tkz-euclide}
\usetkzobj{all}

\begin{document}

\begin{tikzpicture}

\draw (0,0) -- (4,0) -- (4,4) -- (0,4) -- (0,0);

\end{tikzpicture}

\end{document}

any help would be appreciated

1 Answer 1

3
\documentclass[tikz,border=2pt]{standalone}
\usetikzlibrary{intersections}
\usepackage{siunitx}

\begin{document}

\begin{tikzpicture}
  \draw (-0.5,5) -- (0,5) -- (0,0) -- (5,0) -- (5,5) -- (5.5,5);
  \draw[name path=A] (0,0)coordinate(o) -- (5,4.5)node[pos=0.8,sloped,auto]{\SI{10}{\meter}};
  \draw[name path=B] (0,3) -- (5,0)node[pos=0.2,sloped,auto]{\SI{8}{\meter}};
  \path[name intersections={of=A and B,by={a}}];
  \draw[dashed] (a)node[right=1mm]{M} -- (a|-o)node[pos=0.7,auto]{\SI{3}{\meter}};
\end{tikzpicture}

\end{document}

enter image description here

5
  • could you add some code to make this figure in left or right text
    – Educ
    Jan 20, 2015 at 15:45
  • How do I put this figure on the left of right-aligned text
    – Educ
    Jan 20, 2015 at 15:51
  • @Educ That qualifies as a separate question I suppose. You asked how to draw it! ;)
    – user11232
    Jan 20, 2015 at 15:54
  • okay i will ask another question
    – Educ
    Jan 20, 2015 at 15:54
  • @Educ You can use a minipage/wrapfigure etc. Please search in the site.
    – user11232
    Jan 20, 2015 at 15:55

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.