It's better when it's simple

User Tools

Site Tools


latexcaption Plugin

Compatible with DokuWiki

  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" yes
  • 2020-07-29 "Hogfather" yes
  • 2018-04-22 "Greebo" yes

plugin Adds syntax for latex-like figure captions and numbering

Last updated on

Similar to caption, imagebox

Tagged with caption, figure, tables

A re-write of the caption plugin from Till Biskup. New plugin due to syntax change.


  • 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.
  • Add the ability to have subfigures/tables.
  • Add an option to change caption tag syntax.
  • Code easy to expand to caption label more tags if needed.
  • Updated some css styles to use flexbox.

All documentation for this plugin can be found at


The plugin provides two different syntax elements, similar to the blockquote plugin. One for the outer block/tag (figure, subfigure, table, subtable, codeblock, fileblock), and one for the caption. A caption cannot be used outside one of the main blocks.

A simple centered figure with only a caption number.

<figure center blank|fig_label>


<figure opts|fig_label>
 <subfigure opts|subfig_label1>
   <caption>subfigure caption1</caption>
 <subfigure opts|subfig_label2>
   <caption>subfigure caption2</caption>
 <caption>Main Caption</caption>

It is also possible to have more than one image in a figure/subfigure to group them with one caption:

<figure center>
<caption>A caption</caption>


Reference anywhere in text using:


Set counter

Set the counter anywhere on the page using:

<!-- Set the figure counter to 5 -->
<!-- Set the table counter to 3 -->

Example Output


  • Signatures begin with abbreviated or advertised “labels” (“Figure” vs. “Fig.” / “Table” vs. “Tab.”).
  • Caption tag syntax to avoid conflicts with bootswrapper plugin.


Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

plugin/latexcaption.txt · Last modified: 2023-10-30 22:29 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki