CTAN Comprehensive TeX Archive Network

Directory graphics/pgf/contrib/stanli


TikZ Library for Structural Analysis


At university it is always a very time consuming work to create new assignments, and tests; especially when those tasks include drawing graphics.

In the field of structural engineering those small structures are a key part for teaching. For this reason I developed, in cooperation with the Institute for Structural Analysis at the Graz University of Technology, a TikZ library for Structural Analysis.

With the package stanli, 2D and 3D structures can be created. In the following article only the 2D library will be discussed, but the principles and methods are the same for 3D structures.


TikZ is a very powerful tool; however, unfortunately not everyone is used to this part of . Therefore, in addition to the creation of the library the second goal was to keep the usage as simple as possible. So that:

  • anyone can use this library without (deeper) knowledge in TikZ
  • skilled users can easily modify and customise the code
  • the principle of this library can be used for any other library

Getting Started


Like every TikZ graph, needs also this library the




Basic Commands

The library provides 10 different commands:

  • point
  • beam
  • support
  • hinge
  • load or lineload and temperature
  • internalforces
  • dimensioning
  • influenceline
  • notation
  • addon

For each element (command) are different options available. Obligatory options are marked with {curley brackets} and optional values are marked with square brackets. The first type is a must have criteria. In contrast, the optional input is not required to be entered.

An easy example is the following single force:

### Manual

More specific information about the elements and their options can be found in
the manual. The manual is written in English. Section 1 provides a table
with all elements and options; furthermore, the code is also given for each
picture in the manual.

### Examples

The easiest way to create a structure is the list above, starting with ``\point``
and ending with ``\addon``.

The following examples shall give a first impression how drawings can be
generated. In the manual the example is explained in more detail.

#### 2D Simplified Roof

By using the library ``stanli``, the following graph can be created
in a very short time:

begin{tikzpicture} scaling{.65};

 \notation{1}{b}{$2$}[below right=2mm];



#### 3D Support Construction

By using the library ``stanli``, the following 3D structure can be created in a very short time with few lines of code:

setcoords{-25}{10}1 setaxis{2} %showpoint begin{tikzpicture}coords dpoint{a}{0}{0}{0}; dpoint{b}{3}{0}{0}; dpoint{c}{6}{0}{0}; dpoint{d}{9}{0}{0}; dpoint{e}{12}{0}{0}; dpoint{f}{0}{3}{0}; dpoint{g}{3}{3}{0}; dpoint{h}{6}{3}{0}; dpoint{i}{9}{3}{0}; dpoint{j}{12}{3}{0};

 \dnotation{1}{f}{$q=10~kN/m$}[above left=3mm];
 \dnotation{1}{b}{$A$}[below left];
 \dnotation{1}{d}{$B$}[below left];



## Author

Copyright (c) 2016 [Juergen Hackl](mailto:hackl.j@gmx.at)

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

stanli – TikZ Library for Structural Analysis

stanli is a STructural ANalysis LIbrary based on PGF/TikZ.

Creating new assignments and tests, at university, is usually a very time-consuming task, especially when this includes drawing graphics.

In the field of structural engineering, those small structures are a key part for teaching. This package permits to create such 2D and 3D structures in a very fast and simple way.

Version3.0 2016-12-21
LicensesThe Project Public License 1.3
GNU General Public License
Copyright2011–2016 Jürgen Hackl
MaintainerJürgen Hackl
Contained inTeX Live as stanli
MiKTeX as stanli
Guest Book Sitemap Contact Contact Author