In this MWE, I demonstrate my problem:
\documentclass{article}
\usepackage{seqsplit}
\newcommand{\dosomething}[1]{\uppercase{#1}}
\newcommand{\dosomethingelse}[1]{\seqsplit{#1}}
\begin{document}
\dosomething{looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong}
% works with extra {...}
\dosomething{{looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong}}
\dosomethingelse{looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong}
% does not work with extra {...}
\dosomethingelse{{looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong}}
\end{document}
Some commands work with extra curly braces, some don't. Why is that, and how can I make them work by preprocessing my arguments when they do have extra curly braces?
{...}in\dosomethingelsearound{#1}it works with the doubled{...}as well. – Mar 25 '16 at 18:23{...}(example 3) will stop working... (it still compiles, but it stops doing what it should, which is breaking the line). – bers Mar 25 '16 at 18:24{....}forms a group that can't be used by theseqsplitcommand in order to split it – Mar 25 '16 at 18:31