Quantcast
Channel: Formatting Strings in Dynamic Variables with xstring - TeX - LaTeX Stack Exchange
Browsing latest articles
Browse All 3 View Live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

Answer 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 Article

Formatting 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
Browsing latest articles
Browse All 3 View Live




Latest Images