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

Roger


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.
Try:

#delimit ;
listtex make-foreign using "table.txt",
   head("`lab1'`tab'`lab2'`tab'`lab3'`tab'"
        "`lab4'`tab'`lab5'`tab'`lab6'`tab'"
        "`lab7'`tab'`lab8'`tab'`lab9'`tab'"
        "`lab10'`tab'`lab11'`tab'`lab12'")
   rstyle(tabdelim) replace ;
#delimit cr


Gerhard Sch�n

___________________________________________
Gerhard Schoen, Querschnittsprojekt des BBS
E-Mail: [email protected]
WWW: http://www2.hu-berlin.de/bbs


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

--
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]
Website: http://phs.kcl.ac.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