Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for table of figures / tables / formulas #12

Closed
marcel-hofer opened this issue Oct 21, 2017 · 0 comments
Closed

Add support for table of figures / tables / formulas #12

marcel-hofer opened this issue Oct 21, 2017 · 0 comments
Assignees

Comments

@marcel-hofer
Copy link
Owner

marcel-hofer commented Oct 21, 2017

Using a remarkable plugin or something else, it should be possible to list all figures / tables / formulas inside any template.

Markdown syntax

Because it should be possible to create listings for multiple kind of elements, there must be a syntax addition for this feature.

Example markdown:

![Awesome figure](link/to/image.png)
[figure][Awesome figure]

[table][Awesome table]
| Col 1 | Col 2|
|---|---|
| Row 1 | Row 2 |

$$
c = \pm\sqrt{a^2 + b^2}
$$
[formula][Awesome formula]

Templating

The data passed to the templates could look like:

{
  "listings": {
     "figures": [{  "": 1, "link": "#figure-1", "title": "Awesome figure" }, ...],
     "tables": [{ "": 1, "link": "#table-1", "title": "Awesome table" }, ...],
     "formulas": [{ "": 1, "link": "#formula-1", "title": "Awesome formula" }, ...]
  }
}

HTML

Because these types of elements often have a caption, captions should be auto-added to the resulting HTML.
Using HTML and CSS the caption must be able to be transformed to things like Figure 42: Awesome figure.

This feature (caption) should be configurable inside the layout config.

@marcel-hofer marcel-hofer changed the title Add support for table of figures Add support for table of figures / tables / formulas Oct 21, 2017
@marcel-hofer marcel-hofer self-assigned this Oct 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant