CTAN Comprehensive TeX Archive Network

Directory graphics/pgf/contrib/optikz

README.md

README for optikz.sty

optikz – Draw Optical Setups in TikZ

Author: Martin Beyer Released: July 29, 2025 License: Project Public License (LPPL Version 1.3c 2008-05-04) Contact: martinbeyer99@googlemail.com

See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html for the details of the license.

Overview

optikz is a package that provides a library of customizable optical components for drawing laser setups and optical systems using TikZ.

It includes a variety of elements such as:

  • Lenses (convex, concave, etc.)
  • Mirrors (flat, curved)
  • Detectors (cameras, spectrometers, photodiodes)
  • Devices (Faraday rotator, Pockels cell, microscope objective, laser head)
  • Other components waveplates, splitters, parabolas, gratings
  • Rays and beams rainbow beam for stretchers and compressors, single color beams

Each component can be easily customized with intuitive optional arguments to control angle, size, color, thickness, labels, and more.

Features

  • Built entirely on TikZ – no external dependencies (other than xparse and xcolor)
  • Consistent usage of arguments and minimal syntax
  • Showcase of sophisticated setups and examples in the documentation
  • Compatibility with TikZ coordinates
  • Customizable styling (color, rotation, labels)
  • Easily extendable and changeable

Usage

Include the package in your document:

\usepackage{optikz}

Download the contents of this package in one zip archive (437.5k).

optikz – Customizable optical components for drawing laser setups and optical systems using TikZ

This package provides a collection of TikZ-based commands for drawing laser setups and optical systems. It includes components such as lenses, mirrors, beamsplitters, cameras, spectrometers, detectors and more. Each element is highly customizable through optional key-value arguments (e.g. angle, width, thickness, color). Furthermore, rainbow and single color beams can be drawn to visualize beam size and dispersion in e.g. stretcher-compressor setups.

Packageoptikz
Repositoryhttps://github.com/Tatze99/optikz
Version1.0.0
LicensesThe Project Public License 1.3c
Copyright2025 Martin Beyer
MaintainerMartin Beyer
Contained inTeX Live as optikz
TopicsPGF TikZ
Physics
Optics
Graphics in
...
Guest Book Sitemap Contact Contact Author