summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pstricks/pst-news14.tex
blob: 255267180d3ef384f25754e1aa8d851947ac2d05 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
%% $Id: pst-news13.tex 856 2013-12-09 10:34:40Z herbert $
\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings
    headexclude,footexclude,oneside]{pst-doc}
\listfiles
\let\Lfile\LFile
\usepackage[utf8]{inputenc}
\usepackage{pst-node}
\let\pstnodeFV\fileversion
\let\pstnodeFD\filedate
\usepackage{pst-plot}
\usepackage{xkvview}
\renewcommand\bgImage{\psscalebox{15}{\color{blue!20}2014}}
\def\textat{\char064}
\lstset{explpreset={pos=l,width=-99pt,overhang=0pt,hsep=\columnsep,vsep=\bigskipamount,rframe={}},
    escapechar=?}
\begin{document}

%\psset{PstDebug=1}
\title{\texttt{News -- 2014}\\ \Large new macros and bugfixes for the
basic package \nxLFile{pstricks}}
\author{Herbert Voß}
\date{\today}

\maketitle

\clearpage
\tableofcontents

\clearpage
\part{\texttt{pstricks} -- package}

%--------------------------------------------------------------------------------------
%\section{\texttt{pstricks.sty}}
%--------------------------------------------------------------------------------------


%--------------------------------------------------------------------------------------
\section{\texttt{pstricks.tex} (\pstricksFV -- \pstricksFD)}
%--------------------------------------------------------------------------------------
\subsection{PostScript notation for numbers}
Optional arguments which expects a real number can now have a preceeding ! character for
a PostScript notation which is directly passed to PostScript. The user has take care that
such a number isn't use before in another \TeX\ macro. In such a case it gives an error.

\begin{LTXexample}[width=5cm]
\pstVerb{ 1234321 srand }
\begin{pspicture}[showgrid](-2,-2)(2,2)
\psframe*[linecolor=blue,opacity=!Rand](2,2)
\psframe*[linecolor=red,opacity=!Rand](-1,-1)(1,1)
\psframe*[linecolor=green,opacity=!Rand](-2,-2)(0,0)
\end{pspicture}
\end{LTXexample}


\subsection{Fillstyle \texttt{eofill}}

It is an experimental fillstyle. PostScript knows only the \Lkeyval{eofill} and the other way round
needs some tricky internal commands and may not work in all cases.

\begin{LTXexample}[pos=t]
\begin{pspicture}[linewidth=2pt](12,4)    
\pscustom[linestyle=none,fillstyle=eofill,fillcolor=blue!40]{%
   \psellipse(4,2)(2,2)\psellipse(2,2)(2,2)}
\psellipse[linecolor=red](4,2)(2,2)
\psellipse[linecolor=green](2,2)(2,2)
%
\pscustom[linestyle=none,fillstyle=oefill,fillcolor=blue!40]{%
   \psellipse(10,2)(2,2)\psellipse(8,2)(2,2)}
\psellipse[linecolor=red](10,2)(2,2)
\psellipse[linecolor=green](8,2)(2,2)
\end{pspicture}
\end{LTXexample}



\subsection{New macro \nxLcs{psRing}}

\begin{BDef}
\LcsStar{psRing}\OptArgs\Largr{\CAny}\OptArg{start,end}\Largb{Inner Radius}\Largb{Outer Radius}
\end{BDef}


\begin{LTXexample}[width=5cm]
\begin{pspicture}[showgrid](4,4)
  \psRing(2,2){0.3}{0.8}
  \psRing*[opacity=0.5](2,2){1}{2}
\psdot(2,2)
\end{pspicture}
\end{LTXexample}


\begin{LTXexample}[width=5cm]
\begin{pspicture}[showgrid](4,4)
  \psRing[linecolor=red](2,2)[30,60]{1}{2}
  \psRing[opacity=0.5,fillstyle=solid,
    fillcolor=red](2,2)[60,30]{1}{2}
\psdot(2,2)
\end{pspicture}
\end{LTXexample}


\clearpage
\nocite{*}
\bibliographystyle{plain}
\bibliography{PSTricks}

\printindex


\end{document}