# Tag Info

## New answers tagged xstring

4

The error is because \textbackslash is a text command to typeset a backslash, not "the backslash character". Being so it contains font selection commands and many other things that make the string comparison choke. You're using expl3 syntax anyhow, so you can replace \textbackslash by \c_backslash_str, which is "the backslash character". Change this and the ...

2

Another simple way, beside the suggestions in the comments, is to use the e-TeX primitive \scantokens around the verbatim code in your macro defintion: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{xstring} \def\halo{% ...

Top 50 recent answers are included