Quantcast
Channel: Check for group as argument (expandable) - TeX - LaTeX Stack Exchange
Browsing all 5 articles
Browse latest View live

Answer by wipet for Check for group as argument (expandable)

I don't understand what you exactly want, but maybe the following code can help you. (Edit: I added new version of the code which is full...

View Article



Answer by Joseph Wright for Check for group as argument (expandable)

Based on the expandable loop code in expl3, but as requested using no packages:\documentclass{article}\makeatletter\newcommand\MyIfGroupTF[1]{%...

View Article

Image may be NSFW.
Clik here to view.

Answer by egreg for Check for group as argument (expandable)

This ignores spaces (but doesn't deal with the edge case):\documentclass{article}\usepackage{xparse}\ExplSyntaxOn\NewDocumentCommand{\MyIfGroup}{mmm} { \regex_match:nnTF { \A\s*\cB\{.*\cE\}\s*\Z } { #1...

View Article

Image may be NSFW.
Clik here to view.

Answer by David Carlisle for Check for group as argument (expandable)

This doesn't ignore space, I think it's easier to use strcmp, I added one extra test for {a} at the...

View Article

Check for group as argument (expandable)

I want to check whether an argument of a command is fully contained in a pair of curly braces without using any extra packages. For this I define two macros containing { and } with catcode 12,...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images