2

When I have bibleref in \Xfootnote and use index, in index entry appears line number of the footnote. I'd prefer instead of line number of footnote would be line number what footnote refers. Or footnote number (this seems harder, right?)

Here is MWE:

        \documentclass[twoside,14pt,onecolumn,openright ,a4paper]{memoir}
        \usepackage{lipsum}
        %\usepackage[none]{hyphenat}
        \usepackage{fontspec}
        \usepackage[english]{babel}
        \usepackage{xunicode}
        \usepackage[nonewpage]{indextools}
        % \usepackage[xindy,splitindex,nonewpage]{indextools}
        \usepackage[series={A,B,C,D,E}]{reledmac}
        %\usepackage[hyperindex=false]{hyperref}
        \usepackage{perpage}
        %\renewcommand{\afterpartskip}{\vfil\newpage}
        \MakePerPage{footnoteA}
        \renewcommand*{\thefootnoteA}{(\roman{footnoteA})}
        \setmainfont{Dejavu Serif}
        \fnpos{critical-familiar}
        \linenummargin{outer}
        \lineation{page}
        \sidenotemargin{inner}
        %\let\footnoteruleA=\footnoterule
        \usepackage{bibleref}
        \Xparindent
        \Xafterrule[A]{0pt}  % n
        \Xbhooknote[A]{\vskip 0pt\noindent} 
        \Xinplaceoflemmaseparator{0pt}
        \Xlemmadisablefontselection{}
        \Xarrangement{paragraph}
        \arrangementX{paragraph}


        \Xlemmafont{}
        %\Xendlemmafont{\bfseries}

        \renewcommand\footnoteruleA{ %
            \kern-3pt \hrule width 5.5cm \kern 2.6pt
        }
        \renewcommand\Afootnoterule{ %
            \kern-3pt \hrule width 3.5cm \kern 2.6pt
        }
        \setlength{\linenumsep}{16pt}
        \setlength{\parindent}{0pt}
        \setlength{\parskip}{0pt}
        \MakePerPage{footnote@typeset}
        \MakePerPage{footnoteA@typeset}
        \MakePerPage{footnoteB@typeset}
        \AtEveryPend{\par\medskip} 
        \usepackage[usenames, dvipsnames]{color}

        \usepackage[bookmarks, unicode]{hyperref}

        \makeindex
        \makeindex[title=Bible index,name=bible]
        \renewcommand{\biblerefindex}{\edindex[bible]}
        \begin{document}
        \chapter{Test chapter}
            \beginnumbering
            \pstart
            \lipsum[1]
        Testing Bible referencing\footnoteA{\ibibleverse{Matthew}(12:1)} 
        \lipsum[1]
        \pend

            \pstart 
        \lipsum[1]


            An old testament reference \footnoteA{\ibibleverse{Gn}(1:1-10)}.\\
            An old testament reference \footnoteA{\ibibleverse{Gn}(3:1-10)}.\\
            An old testament reference \footnoteA{\ibibleverse{Gn}(4:1-10)}.\\
            An old testament reference \footnoteA{\ibibleverse{Ex}(1:1-10)}.\\
            An old testament reference \footnoteA{\ibibleverse{Lv}(1:1-10)}.\\
            \lipsum[1]
            \pend
            \endnumbering

            \backmatter
            \printindex[bible]
        \end{document}

enter image description here

For sample output see picture above. Index shows line number 22. What i want is line number 16 (where footnote refers).. Yes , i can use familiar 'index ' command, but i'll loose line number and for many biblerefs is will be hard to find reference.

18
  • I can use ledsidenotes, but....question remains Commented Jan 9, 2016 at 4:55
  • the lastest version of indextools provides "notesnumber" option to add the notes number. But it seems to bug with \bibleref. I am looking for it.
    – Maïeul
    Commented Jan 9, 2016 at 9:21
  • It's a problem with \ibibleverse. I am looking on it. github.com/maieul/indextools/issues/6
    – Maïeul
    Commented Jan 9, 2016 at 9:46
  • I have found a solution, but the solution could depend of some correction in bibleref-french. I send an email to Nicolas Talbot, and I will wait some days.
    – Maïeul
    Commented Jan 9, 2016 at 10:39
  • I am waiting for answer.
    – Maïeul
    Commented Jan 9, 2016 at 19:13

1 Answer 1

1

The version 2.16.0, just send on CTAN, solves the problem:

  • \edindex in familiar footnote refer to the position where the footnote are are called
  • the "notenumber" option of indextools works.
  • However, you should use version 1.16 of bibleref and add this line on your preamble \renewcommand{\bvidxpgformat}{}
4
  • Bibleref line number appears correctly in index now, But there is one minor problem in footnotes i get 1,2,3 instead of (i),(ii),(iii) Commented Oct 3, 2016 at 14:24
  • hum, I have to look on it
    – Maïeul
    Commented Oct 3, 2016 at 15:42
  • I have just send ton CTAN a version 2.16.1 which solves this problem.
    – Maïeul
    Commented Oct 4, 2016 at 9:45
  • but please, next time you have what is manifestly a bug of reledmac, use the normal way and open an issue on github.com/maieul/ledmac/issues
    – Maïeul
    Commented Oct 4, 2016 at 10:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .