Graphics, Figures & Tablespst-eucl | Marks for Right Angles

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

pst-eucl | Marks for Right Angles

Post by svend_tveskaeg »

Hi all.

Consider the following example:

Code: Select all

\documentclass[danish]{article}

\usepackage{babel}
\usepackage{pst-eucl,pstricks-add}

\begin{document}

\begin{figure}
 \centering
 \psset{unit=0.7cm,RightAngleSize=0.4}
  \begin{pspicture}(16.0,13.6)
   \pnode(0,0){A}
   \pnode(0,18.5){B}
   \pnode(5.1,18.5){C}
   \pnode(5.1,16.1){D}
   \pnode(8.3,13.7){E}
   \pnode(12.2,13.6){F}
   \pnode(16.0,1.6){G}
   \pnode(12.2,0.3){H}
   \pnode(0,13.7){P}
   \pnode(5.1,13.7){Q}
   \pspolygon[linewidth=2\pslinewidth,linecolor=blue](A)(B)(C)(D)(E)(F)(G)(H)
  \psset{linestyle=dashed}
   \pcline(D)(Q)
   \pcline(P)(E)
   \pcline(F)(H)
   \pstRightAngle{B}{P}{Q}
   \pstRightAngle{P}{B}{C}
   \pstRightAngle{B}{C}{D}
   \pstRightAngle{D}{Q}{E}
   \pstRightAngle{H}{G}{F}
  \end{pspicture}
\end{figure}

\end{document}
And there are two questions.
  1. Why is the mark at the right angle DQE not exactly at the `corner'?
  2. How do I mark the right angle FGH?
Thank you in advance!
Last edited by svend_tveskaeg on Sat Dec 01, 2012 5:11 pm, edited 1 time in total.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Re: pst-eucl | Marks for Right Angles

Post by svend_tveskaeg »

Question 1: I made a typo when typing the coordinate. :oops: (I have edited my initial post and fixed it.)

Question 2: I cannot figure out this one.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

pst-eucl | Marks for Right Angles

Post by CrazyHorse »

svend_tveskaeg wrote:Question 1: I made a typo when typing the coordinate. :oops: (I have edited my initial post and fixed it.)

Question 2: I cannot figure out this one.
Looks like a bug in pst-euclide.
However, think easy!

Code: Select all

\pstGeonode(0,0){A}(0,18.5){B}(5.1,18.5){C}(5.1,16.1){D}(8.3,13.7){E}%

  (12.2,13.6){F}(16.0,1.6){G}(12.2,0.3){H}(0,13.7){P}(5.1,13.7){Q}

User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Re: pst-eucl | Marks for Right Angles

Post by svend_tveskaeg »

Thank you for the explanations, Herbert!
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply