Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Display {*}


From   Roger Newson <[email protected]>
To   [email protected]
Subject   Re: st: Display {*}
Date   Tue, 06 Jul 2004 13:54:53 +0100

Surajit Das wrote:
>  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 "{**}"
> {**}
>
> .
>
> Can anyone please explain me why this discrimination against single star
> {*}?
I think the problem with the single star is that, in SCML, a single star is a comment indicator, indicating that what follows (after at least one space but inside the braces) is a comment. Therefore

. display "{* Nuts 2 U}"


will produce no visible display, whereas


. display "{*Nuts 2 U}"

produces the display

{*Nuts 2 U}

Evidently, the single star in "{*}" is not followed immediately by a non-space non-control character, and is therefore taken as being a word, and that word is the comment indicator. In the second example, the first word is "*Nuts", which is a non-special word.

I hope this helps.

Roger


--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]
Website: http://www.kcl-phs.org.uk/rogernewson

Opinions expressed are those of the author, not the institution.

*
* 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/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index