Featured Book

LaTeX Beginners Guide

Supporters and Partners

Sponsored by DANTE e.V.: The German speaking TeX Users Group
TeXnique.fr - questions & réponses sur LaTeX
TeXwelt - Fragen und Antworten zu LaTeX
TikZ Library for Structural Analysis PDF Print E-mail
(21 votes, average: 4.86 out of 5)
LaTeX - Graphics, Figures & Tables
Written by Jürgen Hackl   
Sunday, 10 March 2013 11:58

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.

There are two different types of libraries available: one for 2D structures (structuralanalysis.sty) and one for 3D structures (3dstructuralanalysis.sty). 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 LaTeX. 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


Download the .sty file in the right directory and add it to the LaTeX file like:

LaTeX Environment

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:

\load{type}{insertion point}[rotation][length or included angle][loaddistance];


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


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 both examples are explained in detail.

2D Simplified Roof









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

2D Simplified Roof

3D Support Construction

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









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

3D Support Construction



Please login to post comments or replies.

Latest Forum Posts

30/08/2016 09:20, dbstjsge582d

30/08/2016 09:19, dbstjsge582d

30/08/2016 09:19, dbstjsge582d

30/08/2016 09:19, dbstjsge582d

30/08/2016 09:18, dbstjsge582d

30/08/2016 09:18, dbstjsge582d

30/08/2016 09:18, dbstjsge582d

30/08/2016 09:17, dbstjsge582d

30/08/2016 09:17, dbstjsge582d

30/08/2016 09:17, dbstjsge582d