How do you draw a triangular prism like this in LaTex? Thank you
I also please need help in labeling all the vertices, thank you
How do you draw a triangular prism like this in LaTex? Thank you
I also please need help in labeling all the vertices, thank you
Welcome to TeX.SE!
\documentclass[tikz,border=3.14mm]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[dashed,thick] (-1,0) -- (0,0.5) edge (0,2.5) -- (1,0);
\draw[thick] (-1,0) rectangle (1,2) -- (0,2.5) -- (-1,2);
\end{tikzpicture}
\end{document}
For more advanced applications I'd recommend tikz-3dplot or asymptote.
Some labels, as requested. Just to make sure: this is not a typesetting service. So please try doing something on your own!
\documentclass[tikz,border=3.14mm]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[dashed,thick] (-1,0) -- (0,0.5) edge (0,2.5) -- (1,0) coordinate(BR);
\draw[thick] (-1,0) coordinate(BL) rectangle (1,2) coordinate(TR)
-- (0,2.5) coordinate(T) -- (-1,2) coordinate(TL);
\foreach \X [remember=\X as \Y (initially TL),count=\Z] in {BL,BR,TR,T,TL}
{\path (\Y) -- (\X) node[midway,anchor={90*\Z-90-ifthenelse(\Z==4,45,0)-ifthenelse(\Z==5,45,0)}]{label \Z}; }
\end{tikzpicture}
\end{document}
\path (-1,0) -- (1,0) node[midway,below] {$L$};, you will put a label L below the lower edge and so on. Just try out if you can arrange for the labels this way, if not, you have at least a code that shows others what you've tried, and you will receive more enthusiastic feedback.
–
Nov 23 '18 at 18:47
A nice solution with PSTricks.
\documentclass[pstricks,12pt]{standalone}
\usepackage{pst-eucl}
\begin{document}
\begin{pspicture}(8,10)
\pstGeonode[PosAngle={180,0,45}](1,1){A}(7,1){B}(4,4){C}(4,9){F}
\pstTranslation[PosAngle={180,0}]{C}{F}{A,B}[D,E]
\psline(E)(F)(D)(A)(B)(E)(D)
\psset{linestyle=dashed}
\psline(A)(C)(B)
\psline(C)(F)
\end{pspicture}
\end{document}
xeletax you will get a pdf output. So what is the problem? The pdf output can be imported from your document using \includegraphics.
– Display Name
Nov 23 '18 at 19:27
pdflatex so importing pdf is not a problem.
– Display Name
Nov 23 '18 at 19:31
tikzmark and tikzmarmots. ;-) I am really really grateful that I do not have to go through this any more. I guess that if you reread this conversation in a few years you might see things differently...
–
Nov 23 '18 at 20:41
tikzmark-like annotations in the texts or equations. :-)
– Display Name
Nov 23 '18 at 21:02
\includegraphics. (Why not draw it with some simple external program like inkscape, and use your font trick when including your result?) (BTW, tikmark can do much more than one realizes at first sight, including detecting the mode.)
–
Nov 23 '18 at 21:04
tikzmark cannot be regarded as useful when a mark is referenced across pages.
– Display Name
Nov 23 '18 at 21:26