Quantcast
Channel: Trying to get \zap@space and \lowercase to work on string comparison - TeX - LaTeX Stack Exchange
Browsing latest articles
Browse All 4 View Live

Answer by Joseph Wright for Trying to get \zap@space and \lowercase to work...

An expl3 solution. Here, I use the fact that \tl_map_function:nN will 'eat' spaces, and do proper case folding rather than lower casing (see the Unicode docs for the reasons that this is...

View Article



Image may be NSFW.
Clik here to view.

Answer by Ulrich Diez for Trying to get \zap@space and \lowercase to work on...

Be aware that \lowercase neither is expandable nor does trigger expansion of its argument. Thus you need to ensure that those tokens that expand to characters whose cases are to be changed are already...

View Article

Image may be NSFW.
Clik here to view.

Answer by David Carlisle for Trying to get \zap@space and \lowercase to work...

You need to apply lowercase to the strings before you compare, so it needs to be outside any \edef here I have used \pdfstrcmp to avoid having to define additional temp macros, this primitive is also...

View Article

Trying to get \zap@space and \lowercase to work on string comparison

I am trying to do a non-case-sensitive check on two strings that may or may not have spaces in them. I have googled this and there is quite a lot of literature on either of these problems, but I can't...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images