Skip to main content
Department of Information Technology

Various Tools

Uppmax job submission script for the Kalkyl cluster

A script file that submits a series of jobs to the Kalkyl cluster at Uppmax contributed by Elias Rudberg. This gives an example usage of the queuing system.
submitjobs.sh.

Draw circles of arbitrary size in Latex

In the Latex picture environment, it is only possible to draw circles up to a certain radius. The program is based on Bezier curves to draw circles of arbitrary size in a Latex picture environment, contributed by Martin Kronbichler. The user specifies x and y position of the circle and the radius, and the result is the input desired by Latex. (Of course, there are many other ways to realize this...)

Example usage in Linux

> g++ latex_create_circle_qbezier.cpp -o latex_circles && ./latex_circles
Give center of circle, x: 20
Give center of circle, y: 13
Give radius of circle: 3.14159
--- Paste the following into Latex ---
\qbezier(23.14,13)(23.14,14.3)(22.22,15.22)
\qbezier(20,16.14)(21.3,16.14)(22.22,15.22)
\qbezier(16.86,13)(16.86,14.3)(17.78,15.22)
\qbezier(20,16.14)(18.7,16.14)(17.78,15.22)
\qbezier(23.14,13)(23.14,11.7)(22.22,10.78)
\qbezier(20,9.858)(21.3,9.858)(22.22,10.78)
\qbezier(16.86,13)(16.86,11.7)(17.78,10.78)
\qbezier(20,9.858)(18.7,9.858)(17.78,10.78)

Paste the eight lines starting with \qbezier into a picture environment in Latex

latex_create_circle_qbezier.cpp

Updated  2015-07-14 14:45:56 by Kurt Otto.