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

Re: st: Maximum length of -listtex- headline

From   Roger Newson <[email protected]>
To   [email protected]
Subject   Re: st: Maximum length of -listtex- headline
Date   Tue, 22 Mar 2005 13:55:10 +0000

Thanks to Friedrich Huebler for alerting us all to this awkward feature of -listtex- (at least under Windows), and thanks to Gerhard Schoen for proposing a partial fix.

I too would like to know the root cause of the problem. -listtex- uses the -file- command of Stata, together with the -macval()- macro function, to output the headlines and footlines provided by the user. The mutilation of long lines described by Friedrich is clearly taking place on a level beyond the control of -listtex-. I do not know whether the problem is a bug in the Stata -file- command or an "issue" in the Microsoft operating system, and would try to run Friedrich's sample code on a non-Microsoft operating system if only I had access to one.

Best wishes


At 07:21 22/03/2005, Gerhard Schoen wrote:

Am 21 Mar 2005 um 12:54, Friedrich Huebler schrieb:

> The solution is of course to abbreviate the variable labels. I am
> writing to the list in the hope that someone can explain this limit
> and describe a way around it. Thank you.

You can divide the head of listtex into several lines
starting and ending with a quotation mark.

#delimit ;
listtex make-foreign using "table.txt",
   rstyle(tabdelim) replace ;
#delimit cr

Gerhard Sch�n

Gerhard Schoen, Querschnittsprojekt des BBS
E-Mail: [email protected]

*   For searches and help try:

Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
Division of Asthma, Allergy and Lung Biology
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]

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

*   For searches and help try:

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