Features
The Table from Source (with Rendering) macro is an advanced formatting macro for Confluence.
This macro is only available in the commercial cloud version of the app – available December 2023.
It has the following features:
Takes data from a macro source in
table-adf
format, such as a native Confluence tableDisplays a table based on the source dat it receivees from a source macro or table
Filter/search field for quick access to data
Sort the table by clicking on the header cells
Wrap cell content, or not
Renders the following
LaTeX notation to mathematical & chemical equations - where the table header is named “LaTeX”
SMILES format to 2D chemical structures - where the table header is named “SMILES”
URLs and email addresses are hyperlinked
Links in markup language are hyperlinked e.g.
[David Simpson Apps website](https://dsapps.dev)
are rendered in HTML
Horizontal scrollbars for large content with shaded indicators to suggest you can scroll horizontally
Tables can be connected to Charts using the Manage connected data context menu item:
How to use
To use this macro, you neeed a source of data, such as a Confluence table.
In the Confluence editor, add a Confluence table and add some SMILES and/or LaTeX to the table cells.
Make sure to label your column headers with SMILES and LaTeX if you wish to use the rendering capabilities.
Your table should look something like this:
Name | SMILES | LaTeX |
---|---|---|
Phenol | C1=CC=C(C=C1)OC1=CC=C(C=C1)O |
|
Aspirin | CC(=O)OC1=CC=CC=C1C(=O)O |
|
c=ccc=c-c(=O)O |
|
Tip: Copy the table above and paste it into the Confluence editor to get started.
Click in a table cell and then click on the “Manage connected data“ icon:
In the macro properties panel, select “Add Target“ then ““:
Then select “Table from Source (with Rendering)”:
A new macro will appear below the existing table. CLick on the macro, then the “Edit” icon:
The macro properties panel will appear.
Add the width and height for any rendered SMILES structures, or leave for the default size.
Choose whether or not to wrap the cell content.
Save the Confluence page and the table will be rendered: