Uploaded image for project: 'Numbered References'
  1. Numbered References
  2. NBREF-3

Add ability to number figures created using the {{figure}} macro

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 1.2
    • 1.1
    • None
    • Integration
    • Unknown
    • N/A

    Description

      Attachments

        Issue Links

          Activity

            [NBREF-3] Add ability to number figures created using the {{figure}} macro
            vmassol Vincent Massol added a comment - - edited

            Example content that results in the attached image:

            See figure {{reference figure="f1"/}}.
            
            {{figure}}
            [[image:http://www.clker.com/cliparts/3/m/v/Y/E/V/small-red-apple-md.png||width=100]]
            
            {{figureCaption}}{{id name="f1"/}}An image{{/figureCaption}}
            {{/figure}}
            
            See table {{reference figure="t1"/}}.
            
            {{figure}}
            |a|b
            
            {{figureCaption}}{{id name="t1"/}}A table{{/figureCaption}}
            {{/figure}}
            

            Note: the following CSS was used to style the figure/figureCaption elements;

            figure {
                position: relative;
                margin: 1.5em 0;
                display: block;
            }
            
            figcaption {
                clear: left;
                margin: .75em 0;
                text-align: center;
                font-style: italic;
                line-height: 1.5em;
                display: block;
            }
            
            figure img {
                display: block;
                margin-left: auto;
                margin-right: auto;
            }
            
            vmassol Vincent Massol added a comment - - edited Example content that results in the attached image: See figure {{reference figure="f1"/}}. {{figure}} [[image:http://www.clker.com/cliparts/3/m/v/Y/E/V/small-red-apple-md.png||width=100]] {{figureCaption}}{{id name="f1"/}}An image{{/figureCaption}} {{/figure}} See table {{reference figure="t1"/}}. {{figure}} |a|b {{figureCaption}}{{id name="t1"/}}A table{{/figureCaption}} {{/figure}} Note: the following CSS was used to style the figure/figureCaption elements; figure { position: relative; margin: 1.5em 0; display: block; } figcaption { clear: left; margin: .75em 0; text-align: center; font-style: italic; line-height: 1.5em; display: block; } figure img { display: block; margin-left: auto; margin-right: auto; }
            vmassol Vincent Massol added a comment -

            TODO: document

            vmassol Vincent Massol added a comment - TODO: document
            vmassol Vincent Massol added a comment -

            Example usage:

            {{reference figure="..."/}
            {{reference table="..."/}
            

            The Tx will prefix the caption in

            {{figureCaption}}

            macro with the number.

            vmassol Vincent Massol added a comment - Example usage: {{reference figure="..."/} {{reference table="..."/} The Tx will prefix the caption in {{figureCaption}} macro with the number.

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: