[pstricks] FW: playing with font sizes
Luís Lopes
qed_texte at hotmail.com
Fri Aug 20 19:12:19 CEST 2010
Dear all,
Apparently this message didn't come in.
I hope it is relevant.
Luis
From: qed_texte at hotmail.com
To: pstricks-request at tug.org
Subject: playing with font sizes
Date: Thu, 19 Aug 2010 22:31:48 +0000
Dear all,
\rput[tl](0.81,0.45){\fontsize{8}{8}\selectfont $\alpha$}
\rput[tl](6.84,2.71){\fontsize{9}{9}\selectfont $M_{_a}$}
\rput[tl](5.00,3.42){\fontsize{9}{9}\selectfont $M'_{_a}$}
work fine.
But
\rput[tl](5.00,3.42){\fontsize{8}{8}\selectfont $M'_{_a}$}
\rput[bl](4.50,0.11){\fontsize{9}{9}\selectfont $\mathrm{C'}$}
crashed. The dvi is ok but I couldn't generate the ps.
It took me a while to figure out the two lines above were to blame.
I "solved" the problem putting
\rput[tl](5.08,3.42){\scriptsize $M'_{_a}$}
\rput[bl](3.82,0.11){\scriptsize $\mathrm{C'}$}
but \scriptsize is a bit too small.
So be careful when playing with font sizes.
In a last test I found out that the same two lines
\rput[tl](5.00,3.42){\fontsize{8}{8}\selectfont $M'_{_a}$}
\rput[bl](4.50,0.11){\fontsize{9}{9}\selectfont $\mathrm{C'}$}
work if they are (\rput) put outside the area of the triangle
\pspolygon[linestyle=none,fillstyle=solid,fillcolor=yellow,opacity=0.1](0,0)(6.29,4.95)(7,0)
Compare
%\rput[bl](4.50,0.11){\fontsize{9}{9}\selectfont $\mathrm{C'}$} %zut
%\rput[bl](4.50,-0.51){\fontsize{9}{9}\selectfont $\mathrm{C'}$} %ok outside the triangle
I hope this is useful. Well, I think I should add all the figure.
%%%%%%%%
\begin{figure}[ht!] %[H]
%\noindent\rule{12cm}{2pt}
\begin{center}
\setlength{\fboxrule}{1pt} \setlength{\fboxsep}{1.5mm} %{3mm}
\fbox{%\framebox[\textwidth]{}
\newrgbcolor{qqwuqq}{0 0.39 0}
\newrgbcolor{wwwwww}{0.4 0.4 0.4}
\newrgbcolor{xdxdff}{0.49 0.49 1}
\newrgbcolor{zzttqq}{0.6 0.2 0}
\psset{xunit=0.6cm,yunit=0.6cm,algebraic=true,dotstyle=o,dotsize=3pt 0,linewidth=0.8pt,arrowsize=3pt 2,arrowinset=0.25}
\begin{pspicture*}(-1.5,-4.1)(17.1,9.3)
\pspolygon[linestyle=none,fillstyle=solid,fillcolor=yellow,opacity=0.1](0,0)(6.29,4.95)(7,0)
\pscustom[linecolor=qqwuqq,fillcolor=qqwuqq,fillstyle=solid,opacity=0.1]{\parametricplot{0.0}{0.6669463445036642}{0.74*cos(t)+0|0.74*sin(t)+0}\lineto(0,0)\closepath}
\rput[tl](0.81,0.45){\fontsize{8}{8}\selectfont $\alpha$}
\rput{11.75}(15.72,4.72){\parametricplot[linecolor=blue]{-0.99}{0.99}{9.19*(1+t^2)/(1-t^2)|1.91*2*t/(1-t^2)}}
\rput{11.75}(15.72,4.72){\parametricplot[linecolor=blue]{-0.99}{0.99}{9.19*(-1-t^2)/(1-t^2)|1.91*(-2)*t/(1-t^2)}}
\psline(4.16,0)(8.39,6.6)
\psplot[linecolor=red]{-7.01}{21.02}{(-18.19--3.74*x)/8.61}
\psplot[linecolor=red]{-7.01}{21.02}{(-44.33-0*x)/-9.39}
\psline(13.29,4.95)(7,0)
\psline[linewidth=1.2pt](6.29,4.95)(7,0)
\psline[linewidth=1.2pt](0,0)(7,0)
\psline(7,0)(11.06,0)
\psline(12.55,6.6)(8.39,6.6)
\psline(6.29,4.95)(11.34,8.92)
\psline[linewidth=1.2pt](0,0)(6.29,4.95)
\rput[tl](6.84,2.71){\fontsize{9}{9}\selectfont $M_{_a}$}
%\rput[tl](2.00,3.42){\fontsize{9}{9}\selectfont $M_{\subfino{a}}^{\superfino{'}}$} %ok
%\rput[tl](5.08,3.42){\fontsize{8}{8}\selectfont $M_{\subfino{a}}^{\superfino{'}}$} %zut
%\rput[tl](5.08,3.42){\scriptsize $M_{\subfino{a}}^{\superfino{'}}$}
\rput[tl](2.00,3.42){\fontsize{9}{9}\selectfont $M'_{_a}$} %ok
\parametricplot[linecolor=darkgray]{0.09082356404896082}{1.356095706514928}{1*7.09*cos(t)+0*7.09*sin(t)+0|0*7.09*cos(t)+1*7.09*sin(t)+0}
\rput[tl](15.53,4.52){$\red{\mathfrak C}$}
\rput[tl](3.71,6.68){$\darkgray{\phi}$}
\rput[tl](3.91,4.42){$\blue{\mathfrak H}$}
\psdots[dotstyle=*,linecolor=blue](0,0)
\rput[bl](-0.30,-0.62){A}
\psdots[dotstyle=*,linecolor=blue](7,0)
\rput[bl](6.77,-0.62){C}
\psdots[dotstyle=*,linecolor=blue](6.29,4.95)
\rput[bl](6.01,5.23){B}
\psdots[dotsize=2pt 0,linecolor=darkgray](6.27,3.3)
\psdots[dotsize=2pt 0,linecolor=darkgray](6.64,2.47)
\psdots[dotsize=2pt 0,linecolor=darkgray](-5.73,-4.18)
\psdots[dotsize=2pt 0,linecolor=darkgray](-5.64,4.29)
\psdots[dotsize=2pt 0](13.29,4.95)
\rput[bl](13.07,5.16){$\mathrm A'$}
\psdots[dotsize=2pt 0](12.55,6.6)
\rput[bl](12.29,6.86){$\mathrm A''$}
\psdots[dotsize=2pt 0](4.16,0)
%\rput[bl](4.50,0.11){\fontsize{9}{9}\selectfont $\mathrm{C'}$} %zut
%\rput[bl](4.50,-0.51){\fontsize{9}{9}\selectfont $\mathrm{C'}$} %ok fora do triangulo
\rput[bl](3.82,0.11){\scriptsize $\mathrm{C'}$}
\psdots[dotsize=2pt 0](8.39,6.6)
\rput[bl](8.18,6.88){$\mathrm B'$}
\psdots[dotsize=2pt 0](15.72,4.72)
\rput[tc](7.3,-3.5){Triângulo dados \texttt<$\,\alpha,a+b,m_{_a}$\texttt>}
\end{pspicture*}}
\caption{Exercício 1.}
\label{figuraexer1}
\end{center}
\end{figure}
%%%%%%%%
Regards,
Luis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100820/7b8789ca/attachment.html>
More information about the PSTricks
mailing list