# How to align text left in psTextFrame

How can I align text left in a psTextFrame?

Here's the example:

\documentclass[letterpaper,dvips]{article}

\usepackage[utf8]{inputenc}
\usepackage{textcomp}

\usepackage{pst-all}
\usepackage{pst-eps}

\begin{document}

\pagestyle{empty}
\begin{TeXtoEPS}
\fontfamily{phv}\selectfont
\psset{xunit=1cm,yunit=1cm,runit=1cm}
\begin{pspicture}(0,0)(5,2)
\psset{linewidth=1pt}
\psframe[fillstyle=solid, linewidth=1pt](0,0)(5,2)
\psTextFrame(0.5,0.5)(4.5,1.5){\large\textbf{Left}}
\end{pspicture}

\end{TeXtoEPS}

\end{document}


use the ref parameter:

\documentclass[letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage{pst-all}
\begin{document}

\begin{pspicture}(0,0)(5,2)
\psset{linewidth=1pt}
\psframe[fillstyle=solid, linewidth=1pt](0,0)(5,2)
\psTextFrame[ref=lb](0.5,0.5)(4.5,1.5){\large\textbf{Left}}
\end{pspicture}
\end{document}

• set it left but doesn't look great - so I tried framesept but doesn't change anything. Is \space the only solution, moving text to the right? – PascalTurbo Sep 20 '12 at 13:31
• ref=lc, ref=rt and so on. What exactly do you want? – user2478 Sep 20 '12 at 15:45
• When text is positioned left in the psTextFrame there is absolutely no spacing between the left margin of the frame and the text. – PascalTurbo Sep 30 '12 at 18:00
• and where is the problem to write ~foo? – user2478 Sep 30 '12 at 19:02