endnote in "long" caption is printed twice

Create issue
Issue #8 resolved
Former user created an issue

As reprted here, endnote process the content of its command twice. It produces only one endnote tag but creates two enteries in the endnotes.

Comments (1)

  1. Clemens Niederberger repo owner

    Recommended solution with v0.9:

    \documentclass[11pt,b5paper,draft]{book}
    
    \usepackage{geometry}
    \usepackage[split=chapter,reset=true]{enotez}
    \usepackage{graphicx}
    
    \begin{document}
    
    \chapter{title}
    More generally, `it is to this source we must look for the increase of
    property of every description\endnote{Some text.}
    
    \begin{figure}
      \centering
      \addtocounter{endnote}{-1}
      \caption{for five British manufacturing sectors, 1730–1820. 1780 =
        100.\endnotemark}\label{figure31}
      \endnotetext{Data from R. V. Jackson, ‘Rates of Industrial Growth during the
        Industrial Revolution,’ EHR 45 (1992), 18.}
    \end{figure}
    
    \printendnotes
    
    \end{document}
    
  2. Log in to comment