Menu

#5 Option -r (no-ranges) does not work

v3.1
open
7
2019-12-17
2004-08-10
No

Email from Lars Madsen, at 10 Aug 2004:

When I use the -r option to texindy, TLC2 says that the
page collection, say 1--4, is turned off.
Ok, then I would expect that instead of getting 1--4
I'd get 1,2,3,4, but I get 14!
--

The location class arabic-page-numbers is defined in
latex.xdy. No min range length definition there. I
assume that -r (that triggers that page-ranges.xdy is
not used) only turns off the markup, but not the range
building.

Discussion

  • Joachim Schrod

    Joachim Schrod - 2006-09-11
    • milestone: 422834 --> 422835
     
  • Joachim Schrod

    Joachim Schrod - 2008-01-09
    • milestone: 422835 --> v3.1
     
  • Juergen Spitzmueller

    I think what needs to be done is to add a module no-page-ranges.xdy which holds

    (define-location-class "arabic-page-numbers" ("arabic-numbers") :min-range-length 100000)
    (define-location-class "roman-page-numbers"  ("roman-numbers-lowercase") :min-range-length 100000)
    (define-location-class "Roman-page-numbers"  ("roman-numbers-uppercase") :min-range-length 100000)
    (define-location-class "alpha-page-numbers"  ("alpha") :min-range-length 100000)
    (define-location-class "Alpha-page-numbers"  ("ALPHA") :min-range-length 100000)
    

    and then in texindy:

    - unshift (@modules, 'page-ranges')  unless $no_ranges;
    + unshift (@modules, ($no_ranges ? 'no-page-ranges' : 'page-ranges'));
    

    This module would probably also help to solve https://github.com/jschrod/xindy.ctan/issues/3

     

    Last edit: Juergen Spitzmueller 2019-12-17

Log in to post a comment.