0

In a follow up of Highlighting words only the first time they appear it was suggested to use \seq_use:Nn to display the content of a sequence. It works really nice but it concatenates the items with a given separator (like join in Python). Is there a way to loop through the elements and do something with each of them?

Hernan
  • 237
  • Yes, of course: \seq_map_inline:Nn and \seq_map_function:NN – egreg Sep 23 '15 at 21:43
  • I've added an expl3 tag as that seems to be what you're asking about. Basic LateX (non expl3) strategies would include using macros with counters and conditionals, making csname arrays, or using packages like pgf or datatool. – musarithmia Sep 23 '15 at 21:45
  • 1
    @Werner Only tangentially – egreg Sep 23 '15 at 21:45
  • http://tex.stackexchange.com/search?q=seq_map_inline%3ANn lists 220 entries. – egreg Sep 23 '15 at 21:47

0 Answers0