Difference between revisions of "Dotted number in caption"

From Wiki
Jump to navigation Jump to search
m (<pre> -> <texcode>)
(an example added and another question: how to do the same for \sections?)
Line 1: Line 1:
How to put a dot after the float number in a caption?
+
How to put something (a colon or dot for example) after the float number in a caption?
 +
 
 
<texcode>
 
<texcode>
\let\floatcaptionsuffix=.
+
\let\floatcaptionsuffix=:
 
</texcode>
 
</texcode>
 +
 +
<table style="border:1px solid #DDDDDD"><tr style="background-color:#EEEEEE"><td>
 +
 +
<texcode>
 +
\placefigure[fig:cow]{cow}{\externalfigure[cow]}
 +
</texcode>
 +
 +
</td><td>
 +
 +
<texcode>
 +
\let\floatcaptionsuffix=:
 +
\placefigure[fig:cow]{cow}{\externalfigure[cow]}
 +
</texcode>
 +
 +
</td></tr>
 +
<tr><td align="center">
 +
 +
<context>
 +
\placefigure[fig:cow]{cow}{\externalfigure[cow][width=3cm]}
 +
</context>
 +
 +
</td><td align="center">
 +
 +
<context>
 +
\let\floatcaptionsuffix=:
 +
\placefigure[fig:cow]{cow}{\externalfigure[cow][width=3cm]}
 +
</context>
 +
 +
</td></tr></table>
  
 
{{todo|This page could use some more description, and maybe elaboration with other float caption options.}}
 
{{todo|This page could use some more description, and maybe elaboration with other float caption options.}}
 +
 +
 +
How to do the same for sections?
 +
* 1. Section
 +
** 1.1. Subsection
 +
 +
{{howto}}

Revision as of 14:18, 7 September 2005

How to put something (a colon or dot for example) after the float number in a caption?

\let\floatcaptionsuffix=:
\placefigure[fig:cow]{cow}{\externalfigure[cow]}
\let\floatcaptionsuffix=:
\placefigure[fig:cow]{cow}{\externalfigure[cow]}


TODO: This page could use some more description, and maybe elaboration with other float caption options. (See: To-Do List)



How to do the same for sections?

  • 1. Section
    • 1.1. Subsection

The author of this entry is looking for a solution for the described problem. (See: How to?)