Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to use \StrSubstitute, but what I want is to expand it all the way to get the result string.

\StrSubstitute{Řepa}{Ř}{Rzzz}

then i use it with

% somehow define \a as the result string of the above macro
% \def\b{Strom}

\pdf@strcmp{\a}{\b}

I want to use it to bypass the fact that czech characters are after A-Z which does not reflect how czech people order the characters in their alphabet

share|improve this question
    
In what context do you want to use this? –  egreg Feb 9 '13 at 13:23
    
Thank you very much, that solved it. Should have thought about that. Thanks a lot. –  user25713 Feb 9 '13 at 13:36
add comment

1 Answer

All xstring macros starting with \Str accept one last optional argument in brackets [ ] where the resulting expandable output is stored in.

Your problem could been solved with

\StrSubstitute{Řepa}{Ř}{Rzzz}[\a]
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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