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

Unwanted quote in caption when using the figure/figureCaption macros

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.1
    • Fix Version/s: 1.9.2
    • Component/s: None
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: