# fxpicture

Line styles for LaTeX's `picture` environment.

`fxpicture` builds on [pict2e](https://ctan.org/pkg/pict2e) and adds two declarations:

```latex
\linestyle{solid}   \linestyle{dashed}   \linestyle{dotted}   \linestyle{dashdot}
\dashpattern{3pt}{2pt}
```

Like `\linethickness`, they last until the end of the group, and they apply to every line pict2e
strokes: `\line`, `\vector`, `\Line`, `\polyline`, `\polygon`, `\circle`, `\oval`, `\arc`,
`\qbezier`, `\cbezier` and `\strokepath`.

```latex
\usepackage{fxpicture}
...
\begin{picture}(60,40)
  {\linestyle{dashed}
    \put(10,10){\line(1,0){40}}
    \put(10,20){\oval(40,10)}
    \put(10,30){\qbezier(0,0)(20,15)(40,0)}
  }
\end{picture}
```

It works with each of pict2e's drivers: pdfTeX, LuaTeX, XeTeX, dvips and dvipdfm(x).

For a working implementation in an online equation editor, see https://fxeditor.codecogs.com

## Files

- `fxpicture.sty`: the package
- `fxpicture-doc.tex`: the source of the documentation
- `fxpicture-doc.pdf`: the documentation

## Installation

Put `fxpicture.sty` in a directory where TeX can find it, for example
`TEXMFHOME/tex/latex/fxpicture/`. It needs pict2e, version 0.4b (2020/09/30) or later.

## Author and licence

Written by Claude AI (Anthropic), with direction from CodeCogs Ltd.

Copyright (C) 2026 CodeCogs Ltd.

This work may be distributed and/or modified under the conditions of the LaTeX Project Public
License, either version 1.3c of this license or (at your option) any later version. The latest
version of this license is in https://www.latex-project.org/lppl.txt

This work has the LPPL maintenance status `maintained`. The Current Maintainer of this work is
CodeCogs Ltd.
