20% off Stata Gift Shop purchases through 16 December. Use code GIFT20.
|Title||Output not aligned correctly on Stata for Unix|
|Author||Theresa Boswell, StataCorp|
Some Stata for Unix users may have output that is aligned incorrectly after commands. An example of this alignment problem is shown below.
. sysuse auto, clear (1978 Automobile Data) . summarize make mpg price Variable | Obs Mean Std. Dev. Min Max -------------+-------------------------------------------------------- make | 0 mpg | 74 21.2973 5.785503 12 41 price | 74 6165.257 2949.496 3291 15906
This problem can occur if the font alias that Stata requests does not exist on your system. By default, Stata requests the font “Fixed”, which typically points at the fixed-width font Monospace. We believe that this font looks better than Courier on many systems.
If this alias does not exist on a computer, the font-management library used by Stata may substitute a proportional-width font rather than a fixed-width font. This substitution will result in the misalignment shown above.
To fix this problem, do the following:
Classroom and web training
Teaching with Stata
Statalist: The Stata Forum
Last updated: 16 November 2022
StataCorp LLC (StataCorp) strives to provide our users with exceptional products and services. To do so, we must collect personal information from you. This information is necessary to conduct business with our existing and potential customers. We collect and use this information only where we may legally do so. This policy explains what personal information we collect, how we use it, and what rights you have to that information.
These cookies are essential for our website to function and do not store any personally identifiable information. These cookies cannot be disabled.
Please note: Clearing your browser cookies at any time will undo preferences saved here. The option selected here will apply only to the device you are currently using.