File: bsp19.tex

package info (click to toggle)
tetex-src 3.0.dfsg.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 122,292 kB
  • ctags: 2,709
  • sloc: makefile: 2,323; perl: 1,820; sh: 1,378; lisp: 448; python: 335; xml: 175; sed: 138; ansic: 138; yacc: 52
file content (28 lines) | stat: -rw-r--r-- 863 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
\documentclass[12pt]{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
%
\newcommand{\WriteBig}[5] {%
  \DeclareFixedFont{\bigsf}{T1}{phv}{b}{n}{#2}%
  \DeclareFixedFont{\smallrm}{T1}{ptm}{m}{n}{#3}%
  \psboxfill{\small #1} %
      \centerline{%
         \pscharpath[fillstyle=gradient,%
	    gradangle=-45,%
	    gradmidpoint=0.5,%
	    addfillstyle=boxfill,%
		gradbegin=#4,%
		gradend=#5,%
	    fillangle=45,%
	    fillsep=0.7mm]{\rput[b](0,0){\bigsf#1}}}
}

\begin{document}
\thispagestyle{empty}
\WriteBig{Java}{4.5cm}{3mm}{blue}{white}

\vspace*{7cm}
\WriteBig{2004}{7cm}{7mm}{red}{green}
\end{document}