Uploaded image for project: 'LaTeX'
  1. LaTeX
  2. LATEX-87

Labels inside wiki macros are not working

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9.3
    • Fix Version/s: 1.9.4
    • Component/s: Syntax
    • Labels:
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The XWiki content

      {{figure}}
      {{figureCaption}}{{id name="t1"/}}A table{{/figureCaption}}
      |a|b
      |c|d
      {{/figure}}
      

      translates correctly to

      \begin{table}[h]
      \caption{\label{t1}A table}
      \begin{center}
      \begin{tabular}{|l|l|}
      \hline
      a & b\\
      \hline
      c & d\\
      \hline
      \end{tabular}
      \end{center}
      \end{table}
      

      Putting the same in a macro kido

      {{kido}}
      |a|b
      |c|d
      {{/kido}}
      

      that does

      {{groovy}}
      println "{{figure}}"
      println """{{figureCaption}}{{id name="t1"/}}A table{{/figureCaption}}"""
      println xcontext.macro.content
      println "{{/figure}}"
      {{/groovy}}
      

      the LaTeX export yields

      \begin{table}[h]
      \caption{A table}
      \begin{center}
      \begin{tabular}{|l|l|}
      \hline
      a & b\\
      \hline
      c & d\\
      \hline
      \end{tabular}
      \end{center}
      \end{table}
      

      That is, the label has vanished.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: