Skip to content

Flowplan est désormais disponible en version hébergéeServeurs en Allemagne, sauvegardes et mises à jour comprises – vous n’avez rien à gérer. L’auto-hébergement reste gratuit et complet.

Voir les offres
flowplanDocumentationCommunityMarketplaceStart page

Formulas, citations and presenting

Math, diagrams, code and calculations

LaTeX formulas, Mermaid diagrams and code blocks with highlighting, calculating right in the text and figures from databases.

12 min read

On this page
  1. Formulas, diagrams and code
  2. Calculating in text
  3. Calculus
  4. Dashboards and metrics

Formulas, diagrams and code

  • Formulas in LaTeX: as a block with /math, inside the text with /inlinemath. The preview appears while you type. Building blocks such as fraction, root, superscript, subscript, vector, cross product, ±, π and sum sit above the input.
    • From the keyboard Since 0.11.6: with the cursor right after a formula, ⌫ opens it for editing – with the cursor at the end of its LaTeX – instead of deleting it; Delete right before it opens it at the start. The arrow keys also lead into a formula (←/→ for inline formulas, ↑/↓ for formula blocks) and back out at its edges, saving the change. The editor appears right at the formula, as a window on phones. Esc cancels, and a formula saved empty is removed.
    • With dollar signs Since 0.11.3: type $x^2$ inside a sentence – as soon as you type the closing $, it becomes an inline formula. Amounts like "costs $5 and $10" stay text: no space after the opening $ or before the closing one, and no digit right after it; \$ is always a dollar sign. For a formula block, type $$ in an empty line, then Space or Enter – the formula dialog opens as with /math; $$…$$ alone on a line becomes a formula block too. ⌘Z or ⌫ right afterwards brings back the typed text. Markdown imports turn $…$ and $$…$$ into formulas the same way; pasted text only when the formula looks like LaTeX (with \, ^, _, = or {).
    • In the formula dialog Since 0.11.3, ⌘Enter inserts or saves, for inline formulas Enter does too (⇧Enter: new line); Esc cancels.
  • Mermaid diagrams: a click or Enter opens the source and preview. Up to 20,000 characters and 500 edges. In dark mode Mermaid diagrams are drawn dark, and redrawn when you switch; downloads (SVG/PNG) and printouts stay light.
  • draw.io diagrams (/drawio): open the draw.io editor in a large window; Save applies the diagram as one step you can undo. A double-click, Enter or the pencil on the block opens it again. Flowplan stores the drawing and a picture of it: when viewing – on shared pages, in presentations and offline too – it doesn't load draw.io at all and only shows the picture (cleaned, without scripts and without content from elsewhere). Drawing and picture may each be up to 800 kB.
    • Maximize: the arrows button at the top right of the window (next to the close button) enlarges draw.io to the whole browser window; the same button (Restore size) brings the window back. It works from the keyboard too. The diagram stays open and unsaved changes are not lost; Esc and Close ask before discarding changes as before. The device remembers the choice: the next diagram opens the way you left the last one. On a phone draw.io fills the screen anyway (keeping clear of the notch and the home indicator), so there is no button there.
    • A page for one diagram: the Diagram page template (under Templates, category Knowledge & documentation) creates a full-width page with one empty draw.io diagram and opens draw.io right away. On a full-width page the saved picture uses the whole width, and an empty diagram is a large area rather than a thin strip. There is no separate page type for this as there is for whiteboards – the diagram page is a document, so you can add text, more diagrams or other blocks.
    • Where draw.io runs Since 0.11.4: Flowplan ships draw.io itself. The editor comes from your Flowplan instance, not from diagrams.net, and sends your diagram to no other service. With offline use switched on for a device, Flowplan keeps draw.io there as soon as you open a page with a diagram, so you can edit and save diagrams without a connection too; the change is uploaded once you are back online. With DRAWIO_URL the instance uses another draw.io instead (for example your own jgraph/drawio container or embed.diagrams.net – then the content goes there while you draw, and the window says so; see Configuration).
    • Look: under Settings → Appearance → Editor: draw.io theme Automatic (follows Flowplan), Light or Dark, and draw.io interface Default, Minimal or Sketch. The choice applies to this device.
    • Export: in the ZIP export every diagram becomes a .drawio.svg file that draw.io can open again; in a single Markdown file and in the Git export it is a ```drawio block with the drawing, which the import turns back into a diagram (the picture is made the next time it is saved). PDF and EPUB show the picture.
  • Sankey diagrams (/sankey, also found as flow): show how amounts split up – a salary into fixed costs, savings and spending, for example. You write one line per flow, Source -> Target: amount (→ or => work too), such as Salary -> Budget: 2,750.00 and Budget -> Savings: 1250. The diagram changes while you type and is saved a moment later. Amounts may use decimal commas or points and thousands separators; equal pairs add up. Name #f5c542 gives a node a colour of its own, lines starting with // are comments. Unit takes e.g. €, $ or kWh – currencies appear in your language's format (€1,100.00). What Flowplan cannot draw – a cycle such as A -> B and B -> A, negative amounts, the same source and target, a line without an amount – is listed with its line number below the text; the rest stays drawn. Up to 200 flows and 10,000 characters. Done hides the text, Edit flows shows it again. Shared pages, presentations, PDF and EPUB show the diagram; Markdown writes it as a ```flow unit=€ block that the import turns back into the diagram. The chart view draws a flow diagram from a database.
  • Code blocks: the language is shown in the block's header with its full name ("JavaScript", "C++", "Angular TypeScript", "Plain text"). A click opens a list with a search – it finds names, aliases and file extensions (ts, py, yml, tf, .rs …). The languages you chose last come first (remembered in this browser). There are more than 240 languages with the same grammars as in VS Code – among them Svelte, Vue, Astro, JSX/TSX, Terraform, TOML, Typst, Zig, Prisma, GDScript, Nushell, systemd units, SSH config, Git commit messages, log files, CSV/TSV and .env files. Line wrap and Copy are at hand. Tab indents by two spaces.
  • Language detection: when you paste code into a block without a language (plain text), Flowplan suggests a language if it is clearly recognisable – "Looks like Python – set?". One click sets it, the × dismisses the suggestion. Flowplan never changes the language by itself.
  • Preview: code blocks in HTML, SVG (language XML with <svg>), Markdown, Mermaid, LaTeX and Typst show the switch Code / Preview / Split in their header. Split puts code and preview side by side, on a phone one below the other. The view is stored in the block; people who only read a page (read access, published pages, presentations) see the preview unless the block says otherwise, and can switch for themselves without changing anything. Errors (such as a typo in the diagram or in Typst, with the line number) show in place of the preview.
    • HTML runs in a sealed frame: no scripts, no forms, no access to Flowplan or the network. Pictures from the web stay blank; embedded pictures (data:) and styles work. The height follows the content.
    • SVG, Mermaid and Typst show as a picture – without scripts or links.
    • Markdown is converted as on import, LaTeX shows formulas with KaTeX (separated by blank lines, with or without $$ … $$; not whole LaTeX documents with \documentclass).
    • Typst loads the first time it is used (a few MB, from your own server, not from the web); Typst packages (@preview/…) and files are not available.
    • New Mermaid code blocks (```mermaid or the language Mermaid chosen) show the diagram right away, empty ones code and diagram side by side. The separate Mermaid block (/mermaid) stays.
  • Line numbers: the … menu in a code block's header turns Line numbers on or off for that block, sets the First line number (say 10 for an excerpt) and highlights lines – e.g. 3-5, 8, counted as shown. The numbers cannot be selected and are not copied; with line wrap they stand at the first row of a wrapped line. Blocks without a setting of their own follow Settings → Appearance & language → Editor → Show line numbers by default (on this device).
  • Collapse: code blocks with more than 25 lines appear collapsed – 10 lines high, scrolling inside, faded at the bottom. Show all N lines expands them, Collapse folds them again (both reachable by keyboard). People who may edit store the state in the block; readers only expand for themselves. The … menu sets Collapsed and the Collapsed height (5, 10, 15, 20 or 30 lines). Printing and every export always show the whole code.
  • A language's highlighting loads with the first code block of that language; until then the code shows briefly without colours. Very long code blocks (more than 50,000 characters) stay without highlighting.
  • Fractions: /Fraction (or /Bruch) inserts a formula inside the sentence.
A Markdown code block in the split view: the code with line numbers and a highlighted line on the left, the rendered release notes on the right
A code block in Markdown, with line numbers, a highlighted line and the preview beside it.

Calculating in text

Flowplan only calculates when you want it to – exactly, with fractions, in German or English notation (2,5 or 2.5, ×, ², √, €):

  • Hint after "=": type a calculation followed by =, such as 12 × 2,400 € = or 3/4 + 1/6 =, and the result appears greyed out behind it. Tab accepts it, Esc or typing on dismisses it.
  • Selected text: select a calculation, a term or an equation; the text menu (also on right-click) shows what is possible under Calculate and inserts the result after it with one click:
    • Result and Reduce as an exact fraction, plus As a decimal – 12/18 = 2/3
    • Expand, including the binomial formulas – (a + b)² = a² + 2ab + b²
    • Factor – x² − 9 = (x − 3)(x + 3), 4x² − 12x + 9 = (2x − 3)², 6x² + 9x = 3x(2x + 3), also with several variables: a³ − b³ = (a − b)(a² + ab + b²), x² + 2xy + y² − 1 = (x + y − 1)(x + y + 1), by grouping ax + ay + bx + by = (x + y)(a + b); Factor with roots splits further into real factors: x² − 2 = (x − √2)(x + √2)
    • Simplify algebraic fractions – (x² − 1)/(x − 1) = x + 1, 1/x + 1/(x + 1) = (2x + 1)/(x(x + 1))
    • Solve for x – linear and quadratic equations exactly (x² + 2x − 4 = 0 ⇒ x = −1 ± √5), higher degrees exactly where possible (x³ = 2 ⇒ x = ∛2, x⁴ − 5x² + 6 = 0 ⇒ x = ±√2, ±√3), otherwise as rounded decimals (x³ + x − 1 = 0 ⇒ x ≈ 0.682328); with several variables, for each one that appears linearly. Equations with x in a denominator are solved with the common denominator; values that would make a denominator 0 are excluded and named (x/(x − 1) = 1/(x − 1) ⇒ no solution (x = 1 excluded)).
    • Copy result: the button at the end of each result row copies the result as shown (such as y² − 16y + 64) to the clipboard as plain text – for pasting into other apps. Clicking the row itself still inserts it after the selection.
  • Function graph: select a term in x, such as x² − 2 or f(x) = 2x + 1, and choose Draw graph in the text menu – a graph with axes, grid and marked zeros appears below. /Function graph inserts one too. The functions are edited below the graph: it changes while you type, + Function adds up to six functions in their own colours (sin(x), cos, tan, exp, ln, abs, √ and π work). Dragging moves the view, +/− or ⌘/Ctrl + scrolling zoom, ⟲ resets the view. On published pages the graph can be moved and zoomed but not changed.
  • Vectors: write vectors as (1 | 2 | 3), (1; 2; 3) or (1, 2, 3). Flowplan calculates sums and multiples (2 · (1; −2) − (3; 1) = (−1; −5)), the dot product with · including the angle ((1, 0) · (0, 1) = 0 ⇒ ∠ = 90°), the cross product with × ((1|0|0) × (0|1|0) = (0 | 0 | 1)) and the magnitude with |…| (|(1, 1)| = √2). A vector selected on its own shows its magnitude and unit vector ((3, 4) ⇒ v⁰ = (3/5, 4/5)). Draw vectors in the text menu shows vectors in the plane as arrows in a coordinate system – for (1, 2) + (3, 1) both vectors and their sum. More vectors such as (3, 2) can be entered in the graph next to functions. Vectors in space such as (1, 2, 3) – cross products too – are drawn in a 3D coordinate system with x, y and z axes, a floor grid and dashed guides to the floor; dragging turns the view, and the view is saved with the page. The formula editor has the building blocks Vector (column vector), Vector arrow and Cross product; column vectors in formulas are calculated the same way.
  • In formulas: the formula editor shows the same options under Calculate and appends the result in LaTeX, such as \frac{3}{4} + \frac{1}{6} = \frac{11}{12}.

Calculus Since 0.12.3

Select a function such as f(x) = (x + 3)·eˣ or f(t) = ½·t³·e^(−t/3 − 3/5) (any variable name). Calculus in the text menu offers, inserted with one click:

  • First and second derivative (product, quotient and chain rule), written as in a notebook: f′(x) = (x + 4)·eˣ, f′(x) = 84x·(2x² − 13)²⁰
  • Zeros, extreme points with their type (min (−4 | −e⁻⁴ ≈ −0.01832)), inflection points, monotonicity and curvature
  • Antiderivative for polynomials, e^(ax + b), sin/cos(ax + b), 1/x, x·eˣ, x·ln(x) and simple chains – otherwise it says none was found; the area with the x-axis
  • Limits as x → ±∞ and at gaps, asymptotes and the inflection tangent
  • with x₀ = 1 after the function: function value, tangent and normal; with two functions: their intersections

Selected limits and integrals work too: lim x→0 sin(x)/x gives 1, ∫₀² x² dx gives 8/3 and the mean value 4/3. What the algebra allows is exact; anything else is numeric and marked ≈.

The hint after "=" knows functions written above: below f(x) = (x + 3)·eˣ, f′(x) = suggests (x + 4)·eˣ; F(x) =, f(2) =, lim x→∞ f(x) = and ∫₀¹ f(x) dx = work too.

In a function graph, ƒ′ next to a function shows f′ and f″, marks points and hatches an area between two bounds, with the integral and mean value.

Dashboards and metrics

/Metric inserts a card with a number from a database, /Dashboard three side by side. With the gear you choose:

  • the database (every database in the workspace you can read),
  • optionally a view – then only the records its filters show count, such as “Open tickets”,
  • the calculation: number of records, sum, average, minimum or maximum of a number, formula or rollup property,
  • a label.

The server calculates the number for the person looking at the page and refreshes it every minute; private records only count for people allowed to see them. On published pages, visitors without access see a dash. Add charts by inserting a linked database below the metrics and choosing a chart view there – that makes a dashboard from several databases.

Was this helpful?
YesThanks!
No – tell us what's missing

Found a mistake or something missing?Edit on GitHub