summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pstricks/examples/tp-test.tex
blob: 355851eee331a1aa0deaa8bc7198c829b6813951 (plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
%% BEGIN tp-test.tex
%%
%% LaTeX test file for textpath.tex/textpath.sty.
%%
%% To use PostScript fonts with the New Font Selection Scheme:
%%   - Include the style option "npsfont".
%%   - You may have to change the font file names given below.
%%   - "npsfont.sty" is distributed with PSTricks.

\documentclass[11pt,a4paper]{article}

\makeatletter

%% INPUT FANCYBOX.STY HERE TO CHECK FILE VERSION.

\usepackage{fancybox}
\usepackage[T1]{fontenc}
\usepackage[dvips]{geometry}
\geometry{tmargin=2cm,bmargin=3.3cm,headheight=20pt,headsep=10pt,
textheight=9in, footskip=.625in}
\usepackage[scaled]{luximono}
\usepackage{mathptmx}
\usepackage{pstricks,pst-text}

\begin{document}
The first sample shows that math works. I let the line be drawn to make the sample clearer.
\begin{verbatim}
   \large
    \pstextpath[c]%
      {\pscurve[linecolor=gray](0,1)(4,3)(6,2)(9,0)(12,1)(15,1)}%
      {$S_\alpha=\Omega(\gamma_\beta)$ is a connected snarf and
      $B=(\otimes,\rightarrow,\theta)$ is Boolean left subideal.}
\end{verbatim}

\vskip 3.5cm

\begin{large}
    \pstextpath[c]%
      {\pscurve[linecolor=gray](0,1)(4,3)(6,2)(9,0)(12,1)(15,1)}%
      {$S_\alpha=\Omega(\gamma_\beta)$ is a connected snarf and
      $B=(\otimes,\rightarrow,\theta)$ is Boolean left subideal.}
\end{large}

\vskip 1cm

\begin{verbatim}
    \psset{linestyle=none}
    \pstextpath[c]{\psarcn(0,0){73pt}{180}{0}}%
      {Centre National de la}
    \pstextpath[c]{\psarc(0,0){73pt}{180}{0}}%
      {Recherche Scientifique}
\end{verbatim}

\begin{center}
    \vskip 2cm
    \Huge
    \psset{linestyle=none}
    \pstextpath[c]{\psarcn(0,0){73pt}{180}{0}}%
      {Centre National de la}
    \pstextpath[c]{\psarc(0,0){73pt}{180}{0}}%
      {Recherche Scientifique}
    \vskip 2cm
\end{center}

\begin{center}
  \pstextpath[c](0,0){\psarcn[linestyle=none](0,-6){4}{180}{0}}%
    {\parbox{3.5in}{In principle, it is possible to use
    parbox, but let's see what really happens. It seems
    hard to believe that someone would want to do this.}}
\end{center}
\end{document}
%% END tp-test.tex