maieul / ledmac

package reledmac for latex
http://www.ctan.org/tex-archive/macros/latex/contrib/reledmac
54 stars 28 forks source link

\ibibleverse command in footnoteX series #932

Closed shoshia closed 2 years ago

shoshia commented 2 years ago

Reledmac 2.39.0

TeX Engine: xelatex; lualatex

In 2016 I did not notice this problem

When I use \ibibleverse command inside \footnoteX I get error ! Undefined control sequence. \@ledinnote@command ...@command }{\@currentseries }{\@currentnotetype }

Minimal Working Example

\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{Sylfaen}
\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}

Workaround

Can not find any, but output pdf is fine

maieul commented 2 years ago

Please try branch issue932.

shoshia commented 2 years ago

Run branch issue932 It compiles without error, but ind file is empty idx file


\indexentry{Matthew\relax \relax @\BRbooktitlestyle {Mt}!012:001@\BRchapterstyle {12}\BRchvsep \BRversestyle {1}|(ledinnote[$&1]{}{A}{familiar}}{1-13}
\indexentry{Matthew\relax \relax @\BRbooktitlestyle {Mt}!012:001@\BRchapterstyle {12}\BRchvsep \BRversestyle {1}|)ledinnote[$&1]{}{A}{familiar}}{1-13}
\indexentry{Gn\relax \relax @\BRbooktitlestyle {Gn}!001:001-010@\BRchapterstyle {1}\BRchvsep \BRversestyle {1}\BRvrsep \BRversestyle {10}|(ledinnote[$&2]{}{A}{familiar}}{2-16}
\indexentry{Gn\relax \relax @\BRbooktitlestyle {Gn}!001:001-010@\BRchapterstyle {1}\BRchvsep \BRversestyle {1}\BRvrsep \BRversestyle {10}|)ledinnote[$&2]{}{A}{familiar}}{2-16}
\indexentry{Gn\relax \relax @\BRbooktitlestyle {Gn}!003:001-010@\BRchapterstyle {3}\BRchvsep \BRversestyle {1}\BRvrsep \BRversestyle {10}|(ledinnote[$&3]{}{A}{familiar}}{2-17}
\indexentry{Gn\relax \relax @\BRbooktitlestyle {Gn}!003:001-010@\BRchapterstyle {3}\BRchvsep \BRversestyle {1}\BRvrsep \BRversestyle {10}|)ledinnote[$&3]{}{A}{familiar}}{2-17}
\indexentry{Gn\relax \relax @\BRbooktitlestyle {Gn}!004:001-010@\BRchapterstyle {4}\BRchvsep \BRversestyle {1}\BRvrsep \BRversestyle {10}|(ledinnote[$&4]{}{A}{familiar}}{2-18}
\indexentry{Gn\relax \relax @\BRbooktitlestyle {Gn}!004:001-010@\BRchapterstyle {4}\BRchvsep \BRversestyle {1}\BRvrsep \BRversestyle {10}|)ledinnote[$&4]{}{A}{familiar}}{2-18}
\indexentry{Ex\relax \relax @\BRbooktitlestyle {Ex}!001:001-010@\BRchapterstyle {1}\BRchvsep \BRversestyle {1}\BRvrsep \BRversestyle {10}|(ledinnote[$&5]{}{A}{familiar}}{2-19}
\indexentry{Ex\relax \relax @\BRbooktitlestyle {Ex}!001:001-010@\BRchapterstyle {1}\BRchvsep \BRversestyle {1}\BRvrsep \BRversestyle {10}|)ledinnote[$&5]{}{A}{familiar}}{2-19}
\indexentry{Lv\relax \relax @\BRbooktitlestyle {Lv}!001:001-010@\BRchapterstyle {1}\BRchvsep \BRversestyle {1}\BRvrsep \BRversestyle {10}|(ledinnote[$&6]{}{A}{familiar}}{2-20}
\indexentry{Lv\relax \relax @\BRbooktitlestyle {Lv}!001:001-010@\BRchapterstyle {1}\BRchvsep \BRversestyle {1}\BRvrsep \BRversestyle {10}|)ledinnote[$&6]{}{A}{familiar}}{2-20}
I run this on idx file
`texindy  -C utf8 -M reledmac.xdy   bible.idx -o bible.ind`
output warnings:
`WARNING: unknown cross-reference-class `ledinnote[$&1]'! (ignored)`
shoshia commented 2 years ago

Without multiple indexes it makes bible index , but when i do \makeindex[title=Bible Boocks,name=bibel] idx is generated but texindy bibel.idx -o bibel.ind generates ind file without indexes

shoshia commented 2 years ago

Ok figured it out. I needed to uncomment some lines in xdy file to work with hyperref, when i generate separate index files. With just one file no hyperlinks are generated. Issue is closed

Thank you

maieul commented 2 years ago

Please don't close the issue. I will do it myself after releasing, i hope this afternoon.

shoshia commented 2 years ago

Please don't close the issue. I will do it myself after releasing, i hope this afternoon.

Ok ..Sorry..I'm new in github

maieul commented 2 years ago

no problem. And also, on github, the policy depends of package maintener...

I have sent the new version to CTAN.