Create tables using graphviz (deprecated)

pihentagy edited this page Nov 16, 2016 · 1 revision
Clone this wiki locally

We have tables in current version of Zim. Insert -> Table

While we're waiting and hoping for someone to add table support to Zim :^) here's a quick and dirty workaround.

Requirements

  • Graphviz installed in your system
  • Zim "Insert Diagram" plugin enabled
  • Basic knowledge of HTML

Procedure

  • Position the cursor where you would like to create a table.
  • InsertDiagram
  • Paste in the following template:
digraph structs {
node [shape=plaintext]
struct1 [label=<
<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="0">

<tr><td>a</td><td>b</td></tr>
<tr><td>c</td><td>d</td></tr>

</TABLE>
>];
}
  • Fill in all your rows and columns inside struct1's label as you would in normal HTML. Preview and click OK.