Pentagon symbols[⬟,⬠] in LaTeX

The blog will cover some packages that will help you create pentagon symbols in LaTeX documents.

Here is the oplotsymbl package to create a pentagon symbol

\usepackage{oplotsymbl}

Rendered by QuickLaTeX.com


\pentago

Rendered by QuickLaTeX.com


\pentagocross

Rendered by QuickLaTeX.com


\pentagodot

Rendered by QuickLaTeX.com


\pentagofill

Rendered by QuickLaTeX.com


\pentagofillha

Rendered by QuickLaTeX.com


\pentagofillhb

Rendered by QuickLaTeX.com


\pentagofillhl

Rendered by QuickLaTeX.com


\pentagofillhr

Rendered by QuickLaTeX.com


\pentagolineh

Rendered by QuickLaTeX.com


\pentagolinev

Rendered by QuickLaTeX.com


\pentagolinevh

Color the pentagon symbol with oplotsymbl package

Rendered by QuickLaTeX.com


\pentagofill[red]

Rendered by QuickLaTeX.com


\pentagofill[green]

Rendered by QuickLaTeX.com


\pentagofill[blue ]

Rendered by QuickLaTeX.com


\pentagofill[cyan]

Rendered by QuickLaTeX.com


\pentagofillhl [ored]

Rendered by QuickLaTeX.com


\pentagofillhr [ored]

Rendered by QuickLaTeX.com


\pentagofillhb [ored]

Rendered by QuickLaTeX.com


\pentagofillha [ored]

Rendered by QuickLaTeX.com


\pentagocross [oblue]

Rendered by QuickLaTeX.com


\pentagolinevh [oblue]

Rendered by QuickLaTeX.com


\pentagolineh [oyellow]

Rendered by QuickLaTeX.com


\pentago [ored]

furthermore, you can customize the Pentagon symbol size by using a package called lmodern

\usepackage{lmodern}

Rendered by QuickLaTeX.com

{\fontsize{100}{10.5}{ $\pentago [ored]$}}

Now, let’s build some custom commands with tikz

Let’s dive in

First, add tikz package to your document

\usepackage{tikz}

Second, add these \newcommand lines to your document

Thats it! our job is done

Not much of a pep talk, right?

\newcommand{\penta}[1]{\begin{tikzpicture}
    \draw [line width=0.05em,{#1}] 
      (18:0.34em) -- (90:0.34em) -- (162:0.34em) -- (234:0.34em) 
      -- (306:0.34em) -- cycle; \end{tikzpicture}}

Here are the commands

\penta {}
\penta {help lines}
\penta {double}
\penta{dotted}
\penta {densely dotted}
\penta {densely dashed}
\penta {red}
\penta {cyan}
\penta {yellow}
\penta {purple}
\penta {green}
\penta {blue}
\penta {violet}
\penta {ultra thin}
\penta {very thin}
\penta {thin}
\penta {semithick}
\penta {thick}
\penta {very thick}
\penta {ultra thick}
\penta {dash pattern=on 1pt off 1pt}
\penta {dash pattern=on 2pt off 2pt}
\penta {dash pattern=on 0.3pt off 0.3pt}
\penta {dash pattern=on 0.5pt off 0.5pt}
\penta {dash pattern=on 0.8pt off 0.8pt}
\penta {double distance=2pt}
\penta{double distance=3pt}
\penta {double distance=1pt}
\penta {double distance=0.5pt}
\penta{dash pattern=on 0.5mm off 0.1mm on 1mm off 0.2mm}
\penta{dash pattern=on 0.5mm off 0.1mm on 0.11mm off 0.2mm}

Oh, one more thing, you can adjust the size of a pentagon size by changing the scale size.

\penta  {scale=2.135}  
\penta  {scale=4.135}
\penta  {scale=6.135}

Mohammed Anees

Hey there, welcome to aneescraftsmanship I am Mohammed Anees an independent developer/blogger. I like to share and discuss the craft with others plus the things which I have learned because I believe that through discussion and sharing a new world opens up

Leave a Reply

Your email address will not be published.