I have two words that I would like to split into two variables. For instance:
Word 1 [Word 2]
Minimal Working Example:
I have not been able to generate a minimal working example as I have not been able to find anything similar to this issue, either on Google or SO. The specific issue with this problem is the delimiters
Based on the delimiters
], the output should enable formatting either word in its own way. I have looked into
xparse package but could not manage to figure out how to tackle the delimiter issue.
Word 1 could be coloured in blue
[Word 2] could be coloured in red (braces to be included in output).