Skip to main content
added 32 characters in body
Source Link
Svend Tveskæg
  • 31.5k
  • 18
  • 81
  • 191

A PSTricks solution:

\documentclass{article}

\usepackage{pstricks}

\begin{document}

\begin{pspicturecenter}(4,2.5)
 \psset{
   dimen = m,
   linejoin = 1,
   fillstyle = solid,
   fillcolor = yellow!30
 }
\begin{pspicture}(4,2.5)
  \psframe(0,0)(3.5,2)
  \pspolygon(3.5,0)(3.5,2)(4,2.5)(4,0.5)
  \pspolygon(0,2)(0.5,2.5)(4,2.5)(3.5,2)
  \rput(1.75,1){Node}
\end{pspicture}
\end{center}

\end{document}

output

A PSTricks solution:

\documentclass{article}

\usepackage{pstricks}

\begin{document}

\begin{pspicture}(4,2.5)
 \psset{
   dimen = m,
   linejoin = 1,
   fillstyle = solid,
   fillcolor = yellow!30
 }
  \psframe(0,0)(3.5,2)
  \pspolygon(3.5,0)(3.5,2)(4,2.5)(4,0.5)
  \pspolygon(0,2)(0.5,2.5)(4,2.5)(3.5,2)
  \rput(1.75,1){Node}
\end{pspicture}

\end{document}

output

A PSTricks solution:

\documentclass{article}

\usepackage{pstricks}

\begin{document}

\begin{center}
\psset{
  dimen = m,
  linejoin = 1,
  fillstyle = solid,
  fillcolor = yellow!30
}
\begin{pspicture}(4,2.5)
  \psframe(0,0)(3.5,2)
  \pspolygon(3.5,0)(3.5,2)(4,2.5)(4,0.5)
  \pspolygon(0,2)(0.5,2.5)(4,2.5)(3.5,2)
  \rput(1.75,1){Node}
\end{pspicture}
\end{center}

\end{document}

output

deleted 763 characters in body
Source Link
Svend Tveskæg
  • 31.5k
  • 18
  • 81
  • 191

A PSTricks approach giving "standard" boxes using the pst-3dplot package:

\documentclass{article}

\usepackage{pst-3dplot}

\begin{document}

\begin{pspicture}(-1.23,-0.98)(2.6,3.8)
 \psset{Alpha = 30, Beta = 30}
  \pstThreeDCoor[xMin = -3, xMax = 1, yMin = -1, yMax = 2, zMin = -1, zMax= 4]
  \pstThreeDBox[hiddenLine](-1,1,2)(0,0,2)(2,0,0)(0,1,0)
\end{pspicture}

\begin{pspicture}(-4.12,-0.97)(1.7,3.27)
 \psset{Alpha = 20, Beta = 10, xyzLight = -7 3 4}
  \pstThreeDCoor[zMax = 3]
  \psBox(0,0,0){2}{2}{3}
\end{pspicture}

\end{document}

output1

Update

Here is the box which is actually asked for in the questionsolution:

\documentclass{article}

\usepackage{pstricks}

\begin{document}

\begin{pspicture}(4,2.5)
 \psset{
   dimen = m,
   linejoin = 1,
   fillstyle = solid,
   fillcolor = yellow!30
 }
  \psframe(0,0)(3.5,2)
  \pspolygon(3.5,0)(3.5,2)(4,2.5)(4,0.5)
  \pspolygon(0,2)(0.5,2.5)(4,2.5)(3.5,2)
  \rput(1.75,1){Node}
\end{pspicture}

\end{document}

output2output

A PSTricks approach giving "standard" boxes using the pst-3dplot package:

\documentclass{article}

\usepackage{pst-3dplot}

\begin{document}

\begin{pspicture}(-1.23,-0.98)(2.6,3.8)
 \psset{Alpha = 30, Beta = 30}
  \pstThreeDCoor[xMin = -3, xMax = 1, yMin = -1, yMax = 2, zMin = -1, zMax= 4]
  \pstThreeDBox[hiddenLine](-1,1,2)(0,0,2)(2,0,0)(0,1,0)
\end{pspicture}

\begin{pspicture}(-4.12,-0.97)(1.7,3.27)
 \psset{Alpha = 20, Beta = 10, xyzLight = -7 3 4}
  \pstThreeDCoor[zMax = 3]
  \psBox(0,0,0){2}{2}{3}
\end{pspicture}

\end{document}

output1

Update

Here is the box which is actually asked for in the question:

\documentclass{article}

\usepackage{pstricks}

\begin{document}

\begin{pspicture}(4,2.5)
 \psset{
   dimen = m,
   linejoin = 1,
   fillstyle = solid,
   fillcolor = yellow!30
 }
  \psframe(0,0)(3.5,2)
  \pspolygon(3.5,0)(3.5,2)(4,2.5)(4,0.5)
  \pspolygon(0,2)(0.5,2.5)(4,2.5)(3.5,2)
  \rput(1.75,1){Node}
\end{pspicture}

\end{document}

output2

A PSTricks solution:

\documentclass{article}

\usepackage{pstricks}

\begin{document}

\begin{pspicture}(4,2.5)
 \psset{
   dimen = m,
   linejoin = 1,
   fillstyle = solid,
   fillcolor = yellow!30
 }
  \psframe(0,0)(3.5,2)
  \pspolygon(3.5,0)(3.5,2)(4,2.5)(4,0.5)
  \pspolygon(0,2)(0.5,2.5)(4,2.5)(3.5,2)
  \rput(1.75,1){Node}
\end{pspicture}

\end{document}

output

added 605 characters in body
Source Link
Svend Tveskæg
  • 31.5k
  • 18
  • 81
  • 191

A PSTricks solutionapproach giving "standard" boxes using the pst-3dplot package:

\documentclass{article}

\usepackage{pst-3dplot}

\begin{document}

\begin{pspicture}(-1.23,-0.98)(2.6,3.8)
 \psset{Alpha = 30, Beta = 30}
  \pstThreeDCoor[xMin = -3, xMax = 1, yMin = -1, yMax = 2, zMin = -1, zMax= 4]
  \pstThreeDBox[hiddenLine](-1,1,2)(0,0,2)(2,0,0)(0,1,0)
\end{pspicture}

\begin{pspicture}(-4.12,-0.97)(1.7,3.27)
 \psset{Alpha = 20, Beta = 10, xyzLight = -7 3 4}
  \pstThreeDCoor[zMax = 3]
  \psBox(0,0,0){2}{2}{3}
\end{pspicture}

\end{document}

outputoutput1

Update

Here is the box which is actually asked for in the question:

\documentclass{article}

\usepackage{pstricks}

\begin{document}

\begin{pspicture}(4,2.5)
 \psset{
   dimen = m,
   linejoin = 1,
   fillstyle = solid,
   fillcolor = yellow!30
 }
  \psframe(0,0)(3.5,2)
  \pspolygon(3.5,0)(3.5,2)(4,2.5)(4,0.5)
  \pspolygon(0,2)(0.5,2.5)(4,2.5)(3.5,2)
  \rput(1.75,1){Node}
\end{pspicture}

\end{document}

output2

A PSTricks solution using the pst-3dplot package:

\documentclass{article}

\usepackage{pst-3dplot}

\begin{document}

\begin{pspicture}(-1.23,-0.98)(2.6,3.8)
 \psset{Alpha = 30, Beta = 30}
  \pstThreeDCoor[xMin = -3, xMax = 1, yMin = -1, yMax = 2, zMin = -1, zMax= 4]
  \pstThreeDBox[hiddenLine](-1,1,2)(0,0,2)(2,0,0)(0,1,0)
\end{pspicture}

\begin{pspicture}(-4.12,-0.97)(1.7,3.27)
 \psset{Alpha = 20, Beta = 10, xyzLight = -7 3 4}
  \pstThreeDCoor[zMax = 3]
  \psBox(0,0,0){2}{2}{3}
\end{pspicture}

\end{document}

output

A PSTricks approach giving "standard" boxes using the pst-3dplot package:

\documentclass{article}

\usepackage{pst-3dplot}

\begin{document}

\begin{pspicture}(-1.23,-0.98)(2.6,3.8)
 \psset{Alpha = 30, Beta = 30}
  \pstThreeDCoor[xMin = -3, xMax = 1, yMin = -1, yMax = 2, zMin = -1, zMax= 4]
  \pstThreeDBox[hiddenLine](-1,1,2)(0,0,2)(2,0,0)(0,1,0)
\end{pspicture}

\begin{pspicture}(-4.12,-0.97)(1.7,3.27)
 \psset{Alpha = 20, Beta = 10, xyzLight = -7 3 4}
  \pstThreeDCoor[zMax = 3]
  \psBox(0,0,0){2}{2}{3}
\end{pspicture}

\end{document}

output1

Update

Here is the box which is actually asked for in the question:

\documentclass{article}

\usepackage{pstricks}

\begin{document}

\begin{pspicture}(4,2.5)
 \psset{
   dimen = m,
   linejoin = 1,
   fillstyle = solid,
   fillcolor = yellow!30
 }
  \psframe(0,0)(3.5,2)
  \pspolygon(3.5,0)(3.5,2)(4,2.5)(4,0.5)
  \pspolygon(0,2)(0.5,2.5)(4,2.5)(3.5,2)
  \rput(1.75,1){Node}
\end{pspicture}

\end{document}

output2

deleted 1 character in body
Source Link
Svend Tveskæg
  • 31.5k
  • 18
  • 81
  • 191
Loading
Source Link
Svend Tveskæg
  • 31.5k
  • 18
  • 81
  • 191
Loading