To construct a lower-case filename out of the mixed-case argument given to a command, I used stringstrings in LaTeX.

Now I switched to XeTeX and it seems the fontspec-package has some interference with stringstrings:


Produces an error message only when fontspec is used:

! Missing control sequence inserted.
<inserted text> 
l.4 \thestring

Just using \lowercase for display won't work, because I need to use it like


(there seems to be a similar clash between stringstrings and polyglossia)

So: what would be other string manipulation packages for LaTeX and XeTeX (coolstr is mentioned, but only supports substring operations I don't need)? Or is there a fix by redefining something?

  • 1
    Your example works on my machine with current TeX Live. – Philipp Dec 23 '10 at 0:05
  • Then my Ubuntu version of TeX Live is outdated… (looks like they have a reputation for lagging horribly behind with TeX versions) Thanks. – pascal Dec 31 '10 at 13:04

Fixed in TeX Live 2010, thx Philipp.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.