# Tag Info

11

\newcommand{\version}[2]{\marginpar{% \expandafter\colorbox{% \csname \ifthenelse{% \equal{#1}{1}}{green}{red}\endcsname}{% \begin{minipage}{\marginparwidth} \expandafter works at the level of tokens. The token after \colorbox is { so \expandafter here does nothing as { is not expandable. The tokens between \csname and \endcsname ...

2

You have to expand both macros passed to \ifstrequal, but the string of \expandafters you're using only affects the first (and not really, I'd say). The standard technique, if the data is ASCII strings, is to use \edef: \begin{filecontents*}{\jobname.csv} "TRANSID","DATE","QUANTITY" "141f8b4a-e83e-4222-911a-5a977b4d0afca","11/9/2015","10" ...

2

You can do the following, I also removed all the unneeded % which had come back:-) \documentclass{article} \usepackage{xparse} \usepackage{environ,longtable,threeparttablex,booktabs,multirow,array,adjustbox,supertabular}% table adjustment packages % change spacing/padding of long table: ...

Top 50 recent answers are included