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

Re: st: Display {*}


From   Ulrich Kohler <[email protected]>
To   [email protected]
Subject   Re: st: Display {*}
Date   Tue, 6 Jul 2004 13:45:08 +0200

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 don't know. The problem only arise if you want to display the star within 
braces. However my impression is that -display- tends to be a bit cumbersome 
to deal with your problem. -file- might be a better alternative.  -file- also 
has no problems with the star:

. file open test using 11.txt, write replace
. file write test "{*}"
. file close test
. cat 11.txt
{*}


Another point is, that Roger Newson, Ben Jann and others has already done a 
great deal of work to produce several sorts of LaTeX tables with Stata. Roger 
Newson made an excellent talk about that topic on the 10th uk user meeting, 
which can be found on http://ideas.repec.org/p/boc/usug04/16.html. 

many regards
uli

-- 
[email protected]
+49 (030) 25491-361


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