↧
Answer by egreg for Formatting Strings in Dynamic Variables with xstring
Here's a modification of the former solution that uses a different workaround:\documentclass{article}\usepackage{amsmath}\usepackage{color}\usepackage{xstring}\makeatletter\newcommand{\ChgFmt}[1]{%...
View ArticleAnswer by Steven B. Segletes for Formatting Strings in Dynamic Variables with...
Would this one-line parsing suffice, without use of xstring? This problem is really tailor-made for an \if-#1 construct for two reasons: \if fully expands its arguments before the test (which matters...
View ArticleFormatting Strings in Dynamic Variables with xstring
I need to format a string resulting from a dynamic variable set in a separate program for a LaTeX generated report. In particular, if a variable has a negative value (starts with a minus sign), I want...
View Article