Skip to content

Flowcharts for teaching materials, in batches

Writing a course handbook, lecture notes or a distance course, and need dozens of flowcharts in one consistent style? By hand that’s days of work — and if you tweak one code example, you redraw the chart. rombik takes your code files and returns the whole set of standards-compliant charts at once: in batch via API or CLI, with continuous “Figure N” numbering and editable Word export. Here’s how it works.

Towers of Hanoi: the same program as a structogram, in one style with the rest of the handout. More examples

The author’s pain, not the student’s

A handbook or lecture course needs dozens of flowcharts in one style. Draw them by hand and it’s days of work — and a single tweaked code example means redrawing the chart. rombik generates the whole set from your code files at once.

  • Dozens, not one

    A course handbook can carry 30–50 charts. rombik renders them in a single batch, not one screenshot at a time.

  • One consistent style

    Every figure uses the same shapes, spacing and layout — built to ISO 5807, so nothing looks glued together from different tools.

  • Change code → re-render

    Edited an example between editions? Re-run the batch and the whole figure set updates. No manual redrawing.

  • Editable in the manuscript

    Export native Word (.docx) shapes you can nudge and relabel right in the document — not flat pictures.

Generate many at once

Point rombik at your code files (or URLs) and get one bundle back: a multi-page PDF, or a ZIP with one file per figure. Three ways: in the browser, from the command line, or from your own script.

In the browser — nothing to install

The editor has a «Batch» button: drop your files, see how many exports it will cost, take the archive. The simplest route if the terminal is not your thing.

Open the editor
Command line — the rombik CLI

One command over a folder of examples. Each file becomes its own captioned figure. Needs the Pro plan.

rombik batch lecture-*.py \
  --format docx --figStart 1 \
  --out handbook-figures.zip
HTTP API — POST /api/v1/render/batch

1–100 items per call, one export per new code file. Needs the Pro plan. Wire it into your own build script.

curl -X POST https://rombik.app/api/v1/render/batch \
  -H "X-API-Key: rk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "items": [
        {"code": "def gcd(a,b): ...", "lang": "python", "name": "gcd"},
        {"url": "https://.../sort.cpp"}
      ], "format": "pdf" }' -o figures.pdf

One numbering across the whole handbook

Set the caption word (Figure or Fig.) and a starting number, and every chart is captioned in sequence — “Figure 1”, “Figure 2”, “Figure 3”… — so the handbook’s figure list stays continuous no matter how many you generate.

StartInput nn > 0Print “Positive”Print “Non-positive”EndYesNo

Figure 1 — Linear search

StartInput nn > 0Print “Positive”Print “Non-positive”EndYesNo

Figure 2 — Bubble sort

StartInput nn > 0Print “Positive”Print “Non-positive”EndYesNo

Figure 3 — Euclid’s GCD

By hand vs in batch

By hand
  • Days for one handbook
  • 50 charts drift out of one style
  • Redraw everything for the next edition
Batch with rombik
  • The whole set in one run
  • Identical ISO 5807 shapes everywhere
  • Re-run → figures update in place

Eleven languages for any course

Teaching Pascal to first-years, C++ in algorithms, Java in OOP? Mix languages in one batch — the output shapes are identical, so a mixed-language handbook still looks uniform.

  • Python
  • C
  • C++
  • C#
  • Java
  • Pascal
  • JavaScript
  • TypeScript
  • Go
  • Rust
  • PHP

Frequently asked questions

Can I generate many flowcharts at once?

Yes, and not only from a terminal: the editor has a «Batch» button — drop your files and take the archive. For scripts there is POST /api/v1/render/batch and the rombik CLI (Pro plan); all three take 1–100 code files or URLs and return one PDF (a page per figure) or a ZIP with one file per figure.

Will every figure look the same?

Yes — all charts are built to the ISO 5807 standard (GOST 19.701-90) with identical shapes and layout, so a handbook full of them stays visually uniform.

Can figures be numbered continuously?

Set the caption word (Figure or Fig.) and a starting number, and rombik numbers every chart in sequence across the batch — matching your figure list.

Are the charts editable in Word?

Export .docx and the shapes are native Word objects — move and relabel them straight in the manuscript. Visio, PDF, SVG and PNG are available too.

Which languages can I mix?

Eleven: Python, C, C++, C#, Java, Pascal, JavaScript, TypeScript, Go, Rust, PHP — combine them in one batch without breaking the visual style.