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

Unwanted quote in caption when using the figure/figureCaption macros

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.9.2
    • 1.9.1
    • None
    • None
    • Unknown
    • N/A
    • N/A

    Description

      The latest implementation of LATEX-64 and LATEX-74 has an unwanted influence on the LaTeX figure captions: The figure number is now prefixed by some kind of quote. To reproduce, create a page with the following contents

      {{figure}}
      |= Headcell1 |= Headcell2
      | cell1 | cell2
      
      {{figureCaption}}Table caption{{/figureCaption}}
      {{/figure}}   
      

      LaTeX-export, LaTeX-compile and look at the table caption.

      Since the package csquotes is already used, I'd suggest to replace the tricky

      %% Use LaTeX quotes by default but allow users to change that here to use << >> for example
      \catcode`\"=\active % lets you define `"` as a macro
      \makeatletter
      \@ifundefined{ifquoteopen}{%
        \expandafter\newif\csname ifquoteopen\endcsname
        \DeclareRobustCommand*{"}{%
          \ifquoteopen
            \quoteopenfalse ''%
          \else
            \quoteopentrue ``%
          \fi
        }
      }{}
      \makeatother
      

      by

      \MakeOuterQuote{"}
      

      which fixes the problem.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            Kido Guido Kracke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: