0

How do draw a right triangular prism in latex in this point of view? enter image description here

And moreover, how can I add the right angle label like this? enter image description here

Finally, how to add lines in the same figure? enter image description here

Thank you so much

  • Welcome to TeX.SX. Questions about how to draw specific graphics that just post an image of the desired result are really not reasonable questions to ask on the site. Please post a minimal compilable document showing that you've tried to produce the image and then people will be happy to help you with any specific problems you may have. See minimal working example (MWE) for what needs to go into such a document. – dexteritas Jun 6 '18 at 15:36
  • You could start with tikZ (see examples). – dexteritas Jun 6 '18 at 15:38
2
\documentclass[tikz,margin=3.14mm]{standalone}
\usetikzlibrary{3d,calc} % 3d is not really needed here but convenient for extensions

\begin{document}

\begin{tikzpicture}[y={(0.5cm,0.5cm)},x={(1cm,0cm)},
z={(0cm,1cm)},font=\sffamily]
\pgfmathsetmacro{\CornerScale}{1.5}
\draw (0,0,0) coordinate[label=below:A] (A) -- ++ (8,0,0)
coordinate[label=below:B] (B) -- ++ (0,5,0)
coordinate[label=below right:C] (C)  -- ++ (0,0,2)
coordinate[label=right:F] (F) -- (B)
(F) -- ++(-8,0,0) coordinate[label=left:E] (E) -- (A) (E) -- (B);
\draw[dashed] (A) -- ++(0,5,0) coordinate[label=left:D] (D) -- (E)
(D) -- (C) (D) -- (B);
\draw[red] (A) ++ ($\CornerScale*(1,0,0)$) --++ ($\CornerScale*(0,0.75,0.3)$) 
-- ++($\CornerScale*(-1,0,0)$)
(C) ++ ($\CornerScale*(0,-0.75,0)$) --++ ($\CornerScale*(0,0,0.6)$) -- 
++ ($\CornerScale*(0,0.75,0)$)
(F) ++ ($\CornerScale*(0,-0.75,-0.3)$) --++ ($\CornerScale*(-1,0,0)$) -- 
++($\CornerScale*(0,0.75,0.3)$);
\end{tikzpicture}
\end{document}

enter image description here

  • How can I edit the size of the right angle? Thank you. – Alsace lei Jun 6 '18 at 16:47
  • @Alsacelei I added a parameter \CornerScale which with you can play. – user121799 Jun 6 '18 at 18:13

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.