\documentclass[10pt]{article}

\nofiles\usepackage[dvips]{color}
\usepackage{pstricks,pst-text}
\newcommand*{\Label}[1]{#1}
\newcommand*{\TextLabel}[1]{#1}
\newcommand*{\FlexLabel}[1]{#1}
\newcommand*{\Starname}[1]{#1}
\newcommand*{\Messier}[1]{M\,#1}
\newcommand*{\NGC}[1]{NGC\,#1}
\newcommand*{\IC}[1]{IC\,#1}

\usepackage{mathptmx}
\usepackage{helvet}
\AtBeginDocument{\sffamily}

\begin{document}
\newwrite\labelsfile
\catcode`\_=11  % for underscores in the filename
\immediate\openout\labelsfile=pp3temp.dat
\catcode`\_=8
\setbox0 = \vbox{\hbox{\FlexLabel{Leo}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\FlexLabel{Leo Minor}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\FlexLabel{Ursa Major}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\FlexLabel{Virgo}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\TextLabel{\psdots[dotstyle=+,dotangle=45](0,0)\small\ Wolf 359}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Messier{95}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Messier{96}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Messier{105}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Messier{65}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Messier{66}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\varepsilon$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$o$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\mu$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\lambda$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$10$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\nu$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$22$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\psi$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$18$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$15$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$8$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$20$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$13$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$7$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$19$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$23$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\alpha$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\beta$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\delta$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\gamma$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\vartheta$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\zeta$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\eta$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\rho$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\iota$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\nu$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\sigma$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$31$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$60$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$54$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$93$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$72$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\chi$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\pi$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$40$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\xi$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$59$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$41$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$48$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$92$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$73$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$4$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$53$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$23$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\omega$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$37$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$46$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$52$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$51$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$40$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$86$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$95$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$81$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$6$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$44$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$49$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$67$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$85$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$56$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$39$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$90$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$35$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$45$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$44$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$43$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$42$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$43$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$48$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$88$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$50$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$34$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$64$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$24$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$2$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$37$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$30$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$20$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$28$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$33$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$22$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\nu$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$\xi$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$46$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$42$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{$62$}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\setbox0 = \vbox{\hbox{\Starname{}}\hrule height 0pt}
  \immediate\write\labelsfile{\the\wd0s \the\ht0s}
\immediate\closeout\labelsfile
\end{document}
