Here’s a way to create simple tables in Dynalist using the Katex ‘array’ function.
For example, this text:
Will display as this table:
By entering CTRL-SHIFT-ENTER to start a new line when you enter the text in Dynalist, the individual table rows remain as separate lines in Dynalist, so they are quite easy to maintain.
The table text is also fully searchable.
The ‘{ccc}’ on the first line of the Katex specification indicates there are three columns, and the text is centred in each. You can use ‘l’ for left justified or ‘r’ for right justified text. You can also add either ‘:’ or ‘|’ between the characters to add dotted or full vertical lines. You can add extra lines between the rows by adding ‘\hline’ or ‘\hdashline’.
Spaces in the text to display are ignored, but you can use ‘~’ instead as I have done in the example above. You can also enter text with spaces by using this syntax: ‘\text{Text with spaces}’.
Here’s another example with 4 columns. Enter this:
To see this:
If you add ‘\left[’ after the initial ‘$$’ and ‘\right]’ just before the final ‘$$’ then braces will be added to both sides of the table, like this:
I think this is a relatively simple way to add basic table functionality to Dynalist that I have not seen mentioned before. Enjoy!
Cheers,
Stephen