Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Update to index choices from 1 #242

josephwright opened this Issue · 6 comments

4 participants


The latest l3kernel update switches choice indexing from 0 to 1. This means that any use of \l_keys_choice_int needs to be updated. A quick sweep over how this is used in unicode-math suggests simply search-and-replacing with \l_keys_choice_int \or does the trick.


Sorry again for this. I don't really like the way I've done this coding after all. I've revamped this with some internal syntax so instead of what's there currently (using either .choice: or .generate_choices:n, I can write:

\um_keys_choices:nn {vargreek-shape}
  {{unicode} {\bool_set_false:N \g_um_texgreek_bool}}
  {{TeX}     {\bool_set_true:N  \g_um_texgreek_bool}}

Would like to remove the double braces, but that's just syntactic sugar. I find this easier to read, but obviously it's a perversion of l3keys.


Ah, also there is \peek_ code in unicode-math that needs updating. Naughtily, I'm just switching it over to \__peek_ for now :(


I have a similar issue in siunitx, which suggests to me we should fix things in l3token: one for another place :-)


Hopefully fixed in v0.7a on its way to CTAN

@wspr wspr closed this

I see the new tag but no commits to master, did you forget to push the commits?


@khaledhosny, the commits were pushed, but not on the master branch; see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.