I am currently using \StrLen{#1}
inside my \newcommand
. This works flawlessly for any common string written in latin alphabet.
"Hello" has string length of 5 for example. Problem is with chinese characters. String length of "容容" is 8 which is technically corrent, but I wasn't able to find multibyte alternative to StrLen which would return 2.
Note: I am using pdflatex.
Regards, Jan
\documentclass{...}
and ending with\end{document}
.\StrLen
?