plugin:latexcaption
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:latexcaption [2021-11-12 00:26] – [Syntax] ben_van | plugin:latexcaption [2023-10-30 22:29] (current) – Klap-in | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : ben.vanmagill16@gmail.com | email : ben.vanmagill16@gmail.com | ||
type : syntax | type : syntax | ||
- | lastupdate : 2021-11-12 | + | lastupdate : 2022-11-09 |
- | compatible : "Elenor of Tsort", "Frusterick Manners", "Greebo", Hogfather | + | compatible : Elenor of Tsort, Frusterick Manners, Greebo, Hogfather, Igor |
depends | depends | ||
conflicts | conflicts | ||
- | similar | + | similar |
tags : caption, figure, tables | tags : caption, figure, tables | ||
Line 20: | Line 20: | ||
---- | ---- | ||
- | A re-write of the [[https:// | + | A re-write of the [[plugin: |
- | Changes: | + | Fixes: |
- | * No string searches to set reference links that appear before a label definition. All figure labels are stored in a global variable during syntax handling and saved in page metadata upon rendering only if a reference is used. | + | * No string searches to set reference links that appear before a label definition. |
- | * Change syntax to allow multiple classes to be used eg. left, center, right. | + | * Change syntax to allow multiple classes to be used eg. left, center, right. |
- | * Add ability to have subfigures/ | + | * Add the ability to have subfigures/ |
- | * Add option to change caption tag syntax. | + | * Add an option to change caption tag syntax. |
* Code easy to expand to caption label more tags if needed. | * Code easy to expand to caption label more tags if needed. | ||
* Updated some css styles to use flexbox. | * Updated some css styles to use flexbox. | ||
Line 38: | Line 38: | ||
A simple centered figure with only a caption number. | A simple centered figure with only a caption number. | ||
- | | + | |
- | {{image.jpg}} | + | |
- | < | + | {{image.jpg}} |
- | </ | + | < |
+ | </ | ||
===== Syntax ===== | ===== Syntax ===== | ||
- | <figure opts|fig_label> | + | |
- | < | + | |
- | | + | |
- | | + | |
- | </ | + | |
- | < | + | |
- | | + | |
- | | + | |
- | </ | + | |
- | < | + | |
- | </ | + | </ |
It is also possible to have more than one image in a figure/ | It is also possible to have more than one image in a figure/ | ||
- | | + | |
- | {{image1.jpg}} | + | {{image1.jpg}} |
- | {{image2.jpg}} | + | {{image2.jpg}} |
- | | + | < |
- | </ | + | </ |
====Referencing==== | ====Referencing==== | ||
+ | |||
Reference anywhere in text using: | Reference anywhere in text using: | ||
- | | + | |
- | + | ||
====Set counter==== | ====Set counter==== | ||
+ | |||
Set the counter anywhere on the page using: | Set the counter anywhere on the page using: | ||
- | | + | |
- | {{setcounter> | + | {{setcounter> |
- | | + | |
- | {{setcounter> | + | {{setcounter> |
====Example Output==== | ====Example Output==== | ||
- | {{ https:// | + | {{ https:// |
- | {{ https:// | + | |
+ | {{ https:// | ||
====Configuration==== | ====Configuration==== | ||
Line 90: | Line 94: | ||
Search and install the plugin using the [[plugin: | Search and install the plugin using the [[plugin: | ||
- | |||
- | |||
plugin/latexcaption.1636673205.txt.gz · Last modified: 2021-11-12 00:26 by ben_van