| 1 |
%% |
| 2 |
%% --------------------------------------------------------------- |
| 3 |
%% Copyright (C) 2012-2018 Gang Li |
| 4 |
%% --------------------------------------------------------------- |
| 5 |
%% |
| 6 |
%% This work is distributed and/or modified under the conditions of the LaTeX Project Public |
| 7 |
%% License, either version 1.3 of this license or (at your option) any later |
| 8 |
%% version. The latest version of this license is in |
| 9 |
%% http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all |
| 10 |
%% distributions of LaTeX version 2003/12/01 or later. |
| 11 |
%% |
| 12 |
%% This work has the LPPL maintenance status "maintained". |
| 13 |
%% |
| 14 |
%% This Current Maintainer of this work is Gang Li. |
| 15 |
%% |
| 16 |
%% |
| 17 |
|
| 18 |
\documentclass[12pt]{article} |
| 19 |
\usepackage{pstricks-add} |
| 20 |
\usepackage{pst-node, pst-tree} |
| 21 |
\usepackage{color} |
| 22 |
|
| 23 |
|
| 24 |
\psset{braceWidthInner=7\pslinewidth,braceWidthOuter=5\pslinewidth} |
| 25 |
\def\Wert#1{\makebox[1.75em][r]{$#1$}~} |
| 26 |
|
| 27 |
|
| 28 |
\begin{document} |
| 29 |
|
| 30 |
%%========================================================================================== |
| 31 |
%% |
| 32 |
\begin{pspicture} |
| 33 |
\psset{arrowscale=2,arrows=->} |
| 34 |
\def\psBox#1#2{\psframebox[fillcolor=#1,fillstyle=solid]{\parbox{1.5cm}{\centering #2}}} |
| 35 |
|
| 36 |
$ |
| 37 |
\psmatrix[colsep= 1cm] |
| 38 |
& |
| 39 |
\psBox{green!30}{$v(1,2,3)$} \\ |
| 40 |
\psBox{green!30}{$v(1,2)$} & \psBox{green!30}{$v(1,3)$} & \psBox{green!30}{$v(2,3)$} \\ |
| 41 |
\psBox{green!30}{$v(1)$} & \psBox{green!30}{$v(2)$} & \psBox{green!30}{$v(3)$} \\ |
| 42 |
& |
| 43 |
\psBox{green!30}{$0$} |
| 44 |
\endpsmatrix |
| 45 |
$ |
| 46 |
\end{pspicture} |
| 47 |
|
| 48 |
|
| 49 |
%%========================================================================================== |
| 50 |
%% |
| 51 |
\begin{pspicture} |
| 52 |
\psset{arrowscale=2,arrows=->} |
| 53 |
\def\psBox#1#2{\psframebox[fillcolor=#1,fillstyle=solid]{\parbox{1.5cm}{\centering #2}}} |
| 54 |
|
| 55 |
$ |
| 56 |
\psmatrix[colsep= 1cm] |
| 57 |
& |
| 58 |
\psBox{orange}{$v(1,2,3)$} \\ |
| 59 |
\psBox{green!30}{$v(1,2)$} & \psBox{orange}{$v(1,3)$} & \psBox{green!30}{$v(2,3)$} \\ |
| 60 |
\psBox{green!30}{$v(1)$} & \psBox{green!30}{$v(2)$} & \psBox{orange}{$v(3)$} \\ |
| 61 |
& |
| 62 |
\psBox{orange}{$0$} |
| 63 |
\endpsmatrix |
| 64 |
$ |
| 65 |
|
| 66 |
\ncline{1,2}{2,2} |
| 67 |
\ncline{2,2}{3,3} |
| 68 |
\ncline{3,3}{4,2} |
| 69 |
\end{pspicture} |
| 70 |
|
| 71 |
|
| 72 |
%%========================================================================================== |
| 73 |
%% |
| 74 |
\begin{pspicture} |
| 75 |
\psset{arrowscale=2,arrows=<-} |
| 76 |
\def\psBox#1#2{\psdblframebox[fillcolor=#1,fillstyle=solid]{\parbox{1cm}{\centering #2}}} |
| 77 |
\def\psedge{\ncdiag[angleA=180,angleB=0,arm=1.5]} |
| 78 |
% \psset{angleB=180,linearc=5pt} |
| 79 |
|
| 80 |
\pstree[levelsep=145pt,treemode=L]{ |
| 81 |
\TR[name=aggresult]{\psBox{green!30}{\Huge ?}} |
| 82 |
} |
| 83 |
{\pstree[levelsep=145pt,treemode=L]{ |
| 84 |
\TR[name=aggfunc]{\psdblframebox[fillcolor=green!30,fillstyle=solid] |
| 85 |
{\parbox{2.2cm}{\centering Aggregation\\Function}}} |
| 86 |
} |
| 87 |
{ |
| 88 |
\TR[name=M1]{\psBox{white}{$0.6$}} |
| 89 |
\TR[name=EN]{\psBox{white}{$0.3$}} |
| 90 |
\TR[name=M2]{\psBox{white}{$0.2$}} |
| 91 |
\TR[name=P1]{\psBox{white}{$0.8$}} |
| 92 |
\TR[name=P2]{\psBox{white}{$0.7$}} |
| 93 |
\TR[name=EM]{\psBox{white}{$0.6$}} |
| 94 |
} |
| 95 |
} |
| 96 |
\nput*{180}{M1}{ Maths $1$} |
| 97 |
\nput*{180}{EN}{ English} |
| 98 |
\nput*{180}{M2}{ Maths $2$} |
| 99 |
\nput*{180}{P1}{ \begin{tabular}{r}Physics\\ \footnotesize (mathematical) \end{tabular}} |
| 100 |
\nput*{180}{P2}{ Physics $1$} |
| 101 |
\nput*{180}{EM}{ Extra Maths} |
| 102 |
|
| 103 |
% \nput*{90}{aggfunc}{\large Aggregation\\Function} |
| 104 |
\nput*{90}{aggresult}{\large Output} |
| 105 |
\end{pspicture} |
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
%%========================================================================================== |
| 112 |
%% |
| 113 |
\begin{pspicture} |
| 114 |
\pstree[levelsep=35pt,ArrowInside=->,ArrowInsidePos=.75, |
| 115 |
arrowscale=2,labelsep=14pt] |
| 116 |
{\Tr{$\{1,2,3\}$}}{ |
| 117 |
\pstree{\Tr[name=OT]{$\{1,2\}$}}{ |
| 118 |
\Tr[name=One]{$\{1\}$} |
| 119 |
} |
| 120 |
\pstree{\Tr[name=OThree]{$\{1,3\}$}}{ |
| 121 |
\psset{linestyle=none,ArrowInside=none}{ |
| 122 |
\pstree{\Tr[name=Two]{$\{2\}$}} |
| 123 |
{\psset{linestyle=solid,ArrowInside=->}\Tr[name=Phi]{$\{\phi\}$}}} |
| 124 |
} |
| 125 |
\pstree{\Tr[name=TThree]{$\{2,3\}$}}{ |
| 126 |
{\Tr[name=Three]{$\{3\}$}} |
| 127 |
\ncline[ArrowInsidePos=.9]{TThree}{Two} |
| 128 |
\ncline[ArrowInsidePos=.9]{OThree}{One} |
| 129 |
\ncline[ArrowInsidePos=.9]{OThree}{Three} |
| 130 |
\ncline{One}{Phi} |
| 131 |
\ncline{Three}{Phi} |
| 132 |
\ncline[ArrowInsidePos=.9]{OT}{Two} |
| 133 |
} |
| 134 |
} |
| 135 |
\end{pspicture} |
| 136 |
|
| 137 |
|
| 138 |
%%========================================================================================== |
| 139 |
%% |
| 140 |
\begin{figure} |
| 141 |
% \def\VPh{\vphantom{\displaystyle\sum_{i=n}^m {i^2}}} |
| 142 |
\psset{arrowscale=2,arrows=->} |
| 143 |
\def\psBox#1#2{\psframebox[fillcolor=#1,fillstyle=solid]{#2}} |
| 144 |
% |
| 145 |
\rnode{t1}{\psBox{green!30}{abc}} |
| 146 |
\begin{itemize} |
| 147 |
\item Try this one \rnode[rc]{T1}{series} \nccurve[angleB=-75]{T1}{t1} |
| 148 |
\end{itemize} |
| 149 |
% |
| 150 |
% {\psframebox[fillcolor=#1,fillstyle=solid]{\VPh\displaystyle#2}} |
| 151 |
% |
| 152 |
\end{figure} |
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
\end{document} |