[texhax] need name of variable containing value of documentclass

Fehd, Ronald J. (CDC/OCOO/ITSO) rjf2 at cdc.gov
Tue Oct 4 20:49:36 CEST 2011


> From: Susan Dittmar [mailto:Susan.Dittmar at gmx.de]
> Sent: Tuesday, October 04, 2011 10:41 AM
> Subject: Re: [texhax] need name of variable containing value of
> documentclass
> 
> Try with the following (untested):
> 
> > \newcommand\addsectioning[1][chapter]{%
> > \ifthenelse{\equal{\DocClass}{refrep}}%
> > {\#1[\DocTitleShort]{\DocTitle}}{\relax}}%

> > \#1 did not work

> suggestion: 
> {\csname #1\endcsname[\DocTitleShort]{\DocTitle}}{\relax}}%
> 
> \#1 will be read as first \#, then 1, which is not what you expected.
> 
> Hope that helps,
> 
> 	Susan

yes, it did!
I love working with Whizards!

thnx
Ron Fehd  {SAS} macro maven



More information about the texhax mailing list