Surajit Das ([email protected]) is trying to display an asterisk
surrounded by curly braces {*} in Stata:
> I am trying to get an output in stata which can go into a latex file to
> make the tables. I need to print a latex command like
> \multirow{2}{*}{State}&\multicolumn......
>
> Hence I give the following command in stata.
> di "\multirow{2}{*}{State}&...."
>
> But the output does not contain the expression {*}
>
> Here is the command and output.
> . di "{*}"
>
> .
> . di "{**}"
> {**}
Others have explained that this is caused by anything contained in curly
braces being interpreted by -display- as SMCL output. If SMCL does not
understand what is inbetween the braces, it will display it as-is. However,
if it is a valid SMCL tag, it will be interpreted. A * is the SMCL comment
tag.
The proper way to -display- things as-is is to use the SMCL tag {asis}.
This will prevent anything on the line which looks like a SMCL tag from
being interpreted as one:
. display "{asis}\multirow{2}{*}{State}&...."
\multirow{2}{*}{State}&....
See -help smcl- for more information.
--Alan
([email protected])
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/