| 1 |
;;;;;;;;;;;;;;;; |
| 2 |
;; This file provides an example of xindy configuration file to use with eledmac. |
| 3 |
;; To complete the eledmac Handbook, one can read the French online article on |
| 4 |
;; http://geekographie.maieul.net/174 |
| 5 |
;;;;;;;;;;;;;;;; |
| 6 |
|
| 7 |
;;;; Mandatory lines for eledmac |
| 8 |
;; The following lines are mandatory. |
| 9 |
;; they let eledmac understand the references |
| 10 |
;; in the form of: |
| 11 |
;; pagenumber-linenumber |
| 12 |
;; which are provided by \edtext. |
| 13 |
(define-location-class "eledmac" |
| 14 |
("arabic-numbers" :sep"-" "arabic-numbers") |
| 15 |
:hierdepth 2 |
| 16 |
) |
| 17 |
|
| 18 |
;; The following lines require the file |
| 19 |
;; eledmac-markup-attr.xdy which is automatically generated by the |
| 20 |
;; xindy option. |
| 21 |
;; This file defines some markup attributes that are required |
| 22 |
;; for building the index with both footnote and xindy+hyperref options. |
| 23 |
(require "eledmac-markup-attr.xdy") |
| 24 |
|
| 25 |
;; The following lines are to print |
| 26 |
;; the line number in parenthesis |
| 27 |
;; after the page number, with a comma between line numbers if there is more than |
| 28 |
;; one line number. |
| 29 |
;; |
| 30 |
;; This setting is strongly recommended, in order to make a distinction |
| 31 |
;; between page ranges which are marked with a dash and |
| 32 |
;; line numbers, which are by default also marked with a dash. |
| 33 |
;; |
| 34 |
;; Of course, you can use your own settings |
| 35 |
|
| 36 |
|
| 37 |
(markup-locref-list :open " (" :sep ", " :close ")" |
| 38 |
:depth 1 :class "eledmac") |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
;;;; The following lines should be uncommented if you use xindy + hyperref package |
| 43 |
;; This group is not directly linked to eledmac, |
| 44 |
;; but is required to have internal hyperlinking in the index |
| 45 |
;; if you used the hyperindex=false option of hyperref. |
| 46 |
;; Generally, this option and these lines are recommended |
| 47 |
;; to provide the best possible compatibility between hyperref and xindy. |
| 48 |
;; Read http://geekographie.maieul.net/172 for further explanations. |
| 49 |
;; The first line of the first group is just to allow |emph markup in indexing, |
| 50 |
;; and is not directly related to eledmac nor to hyperref. |
| 51 |
|
| 52 |
;(define-attributes ("emph")) |
| 53 |
;(markup-locref :open "\hyperpage{" :close "}" :attr "default") |
| 54 |
;(markup-locref :open "\textbf{\hyperpage{" :close "}}" :attr "textbf") |
| 55 |
;(markup-locref :open "\textit{\hyperpage{" :close "}}" :attr "textit") |
| 56 |
;(markup-locref :open "\emph{\hyperpage{" :close "}}" :attr "emph") |
| 57 |
|
| 58 |
|