Graphics, Figures & Tablespstricks | Tick marks for Triangles

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
coachbennett1981
Posts: 269
Joined: Fri Feb 05, 2010 10:15 pm

pstricks | Tick marks for Triangles

Post by coachbennett1981 »

I beginning lessons on triangles and proofs with my students. Is there a way to easily make segments that have two tick marks, three tick marks to show to sides of different triangles are congruent. This is what I have tried so far, but with no luck. I have seen a great deal about arrows in the pstricks add macro.

Code: Select all

\documentclass[12pt]{article}
\usepackage{pst-all}
\usepackage{pstricks-add}

\begin{document}
  \begin{pspicture}(2,1)
    \psset{arrowscale=2}
    \pcline[ArrowInside=-|,ArrowInsidePos=0.75]{|-|}(0,0)(2,1)
  \end{pspicture}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
timd
Posts: 8
Joined: Tue Aug 12, 2008 7:45 pm

pstricks | Tick marks for Triangles

Post by timd »

Hi
For easy generation of pstricks for what I think you are after I use gclc at
http://www.emis.de/misc/software/gclc/

The graphical version which runs under wine is a quick and easy way of producing pstricks mark-up for geometry. I produced reasonable output after just a couple of hours playing around and now use it for my assignments with the Open University.
coachbennett1981
Posts: 269
Joined: Fri Feb 05, 2010 10:15 pm

Re: pstricks | Tick marks for Triangles

Post by coachbennett1981 »

Thank you, I will look in to it.

Nicholas
coachbennett1981
Posts: 269
Joined: Fri Feb 05, 2010 10:15 pm

Re: pstricks | Tick marks for Triangles

Post by coachbennett1981 »

I just happen to stumble across this literature:

http://ctan.org/tex-archive/graphics/ps ... b/pst-eucl
timd
Posts: 8
Joined: Tue Aug 12, 2008 7:45 pm

Re: pstricks | Tick marks for Triangles

Post by timd »

Looks interesting - I don't know how I missed that! Up to my neck in assignments at the moment so will stick with gclc for the time being but will definitely give that a look.
coachbennett1981
Posts: 269
Joined: Fri Feb 05, 2010 10:15 pm

pstricks | Tick marks for Triangles

Post by coachbennett1981 »

I love the package. It is very user friendly. There are a couple of errors in the documentation (e.g., do not use \pstslash, but pstslash; also, it is not pstMarkSegment but rather \pstSegmentMark.) I put a sample code of what I did for one problem. Use the \usepackage{eucl}


Code: Select all


\pstTriangle(0,-2){A}(0,2){B}(5,0){C}
\pstMiddleAB[PointSymbol=none]{A}{B}{E}
\pstMiddleAB[PointSymbol=none]{B}{C}{D}
\pstMiddleAB[PointSymbol=none,PosAngle={-90}]{A}{C}{F}
\pstSegmentMark[SegmentSymbol=pstslash]{A}{E}
\pstSegmentMark[SegmentSymbol=pstslash]{B}{E}
\pstLineAB[linecolor=blue]{A}{D}
\pstLineAB[linecolor=blue]{B}{F}
\pstLineAB[linecolor=blue]{C}{E}
\pstSegmentMark[SegmentSymbol=pstslashh]{A}{F}
\pstSegmentMark[SegmentSymbol=pstslashh]{C}{F}

\pstSegmentMark[SegmentSymbol=pstslashhh]{B}{D}
\pstSegmentMark[SegmentSymbol=pstslashhh]{C}{D}

Nick
Post Reply