I would like to take a string containing underscores and convert it to CamelCase. I am attempting to do this using the stringstrings
package. Here is my code:
\documentclass[11pt]{report}
\usepackage{amsmath}
\usepackage{stringstrings}
\begin{document}
\convertchar[q]{test_string}{\textunderscore}{ ??? }
\capitalizewords[q]{\thestring}
\noblanks{\thestring}
\end{document}
I am not sure what to put as the third argument to \convertchar
to convert the underscores to spaces. I have tried ~
, quad
, and . They all produce strange errors. What can I use as the third argument, or, is there another way to obtain camelcase?
[e]
(encoded) option instead of[q]
tostringstrings
functions.stringstrings
and providing the CamelCase), you should move the accept mark to it, as this helps further visitors to figure what has solved your requirements. Note that at this site it is considered generally a good idea to wait for a couple of days before accepting an answer.