[pstricks] WriteBig.tex
Herbert Voss
LaTeX at zedat.fu-berlin.de
Sat Dec 3 13:22:12 CET 2005
Christopher Ellison wrote:
> http://tug.org/PSTricks/main.cgi?file=Examples/Text/WriteBig
>
> How can I get \WriteBig working with math fonts? For instance, I would
> like to do the following:
>
> \WriteBig{$\pi$}{4.5cm}{3mm}{blue}{white}
>
> \WriteBig{$\nabla \cdot A$}{4.5cm}{3mm}{blue}{white}
This is only possible with PostScript fonts, which do not
know a math mode. You have to choose the symbol font.
Herbert
\documentclass{article}
\usepackage{pstricks} % PSTricks with the `color' extension
\usepackage[tiling]{pst-fill} % PSTricks package for filling/tiling
\usepackage{pst-char} % PSTricks package for character path
\usepackage{pst-grad} % PSTricks package for gradient filling
\usepackage{listings}
%
\begin{document}
\thispagestyle{empty}
\DeclareFixedFont{\ptsmall}{T1}{ptm}{m}{sc}{5mm}% times
\DeclareFixedFont{\ps}{U}{psy}{m}{n}{6cm} % symbol
\DeclareFixedFont{\pt}{T1}{ptm}{m}{n}{6cm} % times
\psboxfill{\ptsmall PSTricks}
\begin{pspicture}(0,0)(18,3)
\centerline{%
\pscharpath[gradbegin=magenta,gradend=cyan,
fillstyle=gradient,gradangle=-30,
gradmidpoint=0.5,addfillstyle=boxfill,
fillangle=30,fillsep=0.6mm]%
{\rput[b](-0.5,0){\ps\char209\kern-.2em\pt A}}}
\end{pspicture}
\vspace{3cm}
\psboxfill{\ptsmall$\pi$}
\begin{pspicture}(0,0)(18,3)
\centerline{%
\pscharpath[fillstyle=solid,fillcolor=cyan!20,addfillstyle=boxfill,
fillangle=30,fillsep=0.6mm]%
{\rput[b](-0.5,0){\ps\char112}}}
\end{pspicture}
\end{document}
More information about the PSTricks
mailing list