Edit Article
Shortcuts and tips
Ctrl-S (or Cmd-S): To save the article.
Ctrl-R (or Cmd-R): To add references to the text.
For more shortcuts click here.
For more information on the Markdown markup language, visit this Markdown Guide.
Note 1: You can insert an image from your media library into the body of the article with an expression like this:
{{ img('image-id.jpg', a, {'width': '5cm', 'height': '4cm', 'title': true, 'caption': true, 'float': 'right', 'version': 'small'}) }}.
Remark: You can enter a string in the title/caption attribute if you want to use a text other than the one defined in the image record.
For example: {{ img('image-id.jpg', a, {'title': 'My tooltip'}) }}.
Note 2: You can use the declare function within the Twig code to change some template settings without having to change it for all the other articles.
For example, {{ declare('timeline-label', 'Events', a) }} changes the label of the list of events displayed on the Analysis page, which now displays the text "Events" instead of "Timeline".
To change the label of the "Key elements", type {{ declare('key-elements-label', 'New text', a) }}.
For the "Related Analyses" label, type {{ declare('related-analyses-label', 'New text', a) }}.
Note 3: To insert a code snippet into the head of the article, use {{ declare("head-snippet", "<script>...</script>", a) }}.
In the body, use {{ declare("body-snippet", "<script>...</script>", a) }}.
You can insert these codes (from notes 2 and 3) anywhere in your text, as they will not be displayed on the page.
Note 4: To insert a note: {{ note('My footnote', a) }}.
Note 5: If you want to create a LaTeX article, you can use the LaTeX commands shown in the Sections of this page, but there are some limitations:
- You can't create comments (%)
- To write math formulas, leave the $ or $$ on their own line. For example:
$$
f(x) = x + 1
$$
- To insert a LaTeX command, don't put spaces between the command and its braces, and don't break the command across lines. For example: \text{Example}
- Don't use HTML in the article (only Markdown, Twig, and LaTeX/TeX).
- Don't use: \! \, \: or \;
Note 6: You don't need to write raw LaTeX to create a LaTeX article. Basic Markdown is automatically converted to LaTeX, references become footnotes, images are inserted, and the summary becomes the abstract.
Note 7: LaTeX articles are not rendered in the preview window.
Note 8: In LaTeX articles you can only use these length units with image width and height: pt, bp, in, mm, cm, pc, em, ex, dd, cc and sp. Image captions and titles (alt) are not displayed.
Article Details