TeXnik - Tips TeX and LaTeX


Welcome to the TeXnik website (under construction)

Pentagon Symbol
TUG logo

Main page

Index
UK FAQ
Documentation
Software
CTAN
Search CTAN:

Statistics

Google c.t.t.

Google d.c.t.t.

 


 


The is part of the \Huge\pentagon.

Especially for greater pentagons I wrote a newcommand \myPentagon{radian}, which draws with the package pstricks pentagons in any size. The parameter is the radius of the surrounding area. \myPentagon{2.5cm} gives a pantagon with diameter of 6cm of the surrounding area: The pentagon is like a single character with the same baseline. The latex preamble looks like:

\usepackage{pstricks} 
\newlength{\myL} 
\newcommand\myPentagon[1]{% 
  \setlength{\myL}{#1} 
  \psset{unit=1.0}
   \begin{pspicture}(-0.9511\myL,-0.8090\myL)(0.9511\myL,\myL) 
   \psline(0.5877\myL,-0.8090\myL)(-0.5877\myL,-0.8090\myL)%
    (-0.9511\myL,0.3090\myL)(0,\myL)% 
    (0.9511\myL,0.3090\myL)(0.5877\myL,-0.8090\myL) 
  \end{pspicture}% 
}
It draws only one pentagon as a polygon in any valid unit, like
  1. 2cm
  2. 3inch
  3. 12pt

You can change the linewidth for example with \psline[linewidth=1pt](...)

local time: Sat Aug 24 02:22:27 CEST 2019 ; file is: 56.45125 days old
contact webmaster _at_ TeXnik.de