Skip to content

kpym/tikz-rightangles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tikz-rightangles

This is a TikZ library named rightangles that provides a way to draw right angles.

The library is a simple modification of the original library angles.

Note

The code of this library was merged on 2018-06-21 with the standard tikzlibraryangles.code.tex. So after the next official realease of TikZ this library will become useless.

How to use it

  • Put tikzlibraryrightangles.code.tex file in a folder accessible by latex. For example in the same folder as your main file.
  • Load the library with
\usetikzlibrary{rightangles}

Basic usage examples

You can use right angle pics in the same way you use angle pics.

For example the code

\documentclass[tikz,border=7pt]{standalone}
\usetikzlibrary{rightangles}
\begin{document}
  \tikz \draw (2,0) coordinate (A) -- (1,1) coordinate (B)
    -- ([turn]90:1) coordinate (C)
    pic [draw=red,fill=lightgray,angle eccentricity=.5,pic text=$\cdot$] {right angle = C--B--A};
\end{document}

example basic usage

And you can use it also to obtain right angles in perspective

\documentclass[tikz,border=7pt]{standalone}
\usetikzlibrary{rightangles}
\begin{document}
  \tikz \draw (2,0) coordinate (A) -- (1,1) coordinate (B)
    -- ([turn]49:1) coordinate (C)
    pic [draw=red,fill=lightgray] {right angle = A--B--C};
\end{document}

example basic usage

License

This file may be distributed and/or modified

  1. under the LaTeX Project Public License and/or
  2. under the GNU Public License.

Both licenses are available in the LICENSES folder.

About

tikz library to draw right angles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages