-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxy-with-raster.tex
108 lines (106 loc) · 3.41 KB
/
xy-with-raster.tex
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
\newpage
\section{rasters}
\noindent
\fbox{
\begin{tcboxedraster}[
% raster options:
raster columns=3,
raster equal height=rows, % none, rows, all
raster valign = top, % if the boxes do not have equal height
raster column skip = 1em,
raster row skip = 1em,
raster every box/.style={
size=small,
colframe=black,
colback=white,
colbacktitle=black,
valign=center,
halign=left,
title={plot},
},
raster column 1/.style={
size=small,
colframe=red!50,
colback=gray,
colbacktitle=red,
valign=center,
halign=left,
title={description},
}
]
{
% outer box options:
colback=yellow!10,
fonttitle=\bfseries,
title=Boxed Raster
}
\begin{tcolorbox}[
raster multicolumn=3,
]
This is a wide box.
\vspace{1em}
And this is a second paragraph.
\end{tcolorbox}
\begin{tcolorbox}
This is a tall box.
\vspace{1em}
And this is a second paragraph.
\end{tcolorbox}
\begin{tcolorbox}
\begin{tikzpicture}[scale=0.75]
\tkzInit[xmin=-2,xmax=2,xstep=1,
ymin=-8,ymax=24,ystep=8]
\tkzGrid[] \tkzAxeXY
\tkzFct[domain =-1.5:2]{3.0-1.3125*x**5-2.5*x**3}
\tkzDefPointByFct(.5) \tkzGetPoint{A}\tkzDrawPoint(A)
\tkzLabelPoint[above right](A){$A_0$}
\tkzDefPointByFct(-1) \tkzGetPoint{A1}\tkzDrawPoint(A1)
\tkzLabelPoint[above right](A1){$A_1$}
\end{tikzpicture}
\end{tcolorbox}
\begin{tcolorbox}
\tiny
\begin{tikzpicture}[scale=0.75]
\tkzInit[xmin=-2,xmax=2,xstep=1,
ymin=-8,ymax=24,ystep=8]
\tkzGrid[] \tkzAxeXY
\tkzFct[domain =-1.5:2]{3.0-1.3125*x**5-2.5*x**3}
\tkzDefPointByFct(.5) \tkzGetPoint{A}\tkzDrawPoint(A)
\tkzLabelPoint[above right](A){\tiny $A_0$}
\tkzDefPointByFct(-1) \tkzGetPoint{A1}\tkzDrawPoint(A1)
\tkzLabelPoint[below left](A1){\tiny $A_1$}
\end{tikzpicture}
\end{tcolorbox}
%
%
%
\begin{tcolorbox}
This is a table with two graphs in it.
\end{tcolorbox}
\begin{tcolorbox}
\begin{tikzpicture}[scale=0.5]
\tkzInit[xmin=-2,xmax=2,xstep=1,
ymin=-8,ymax=24,ystep=8]
\tkzGrid[] \tkzAxeXY
\tkzFct[domain =-1.5:2]{3.0-1.3125*x**5-2.5*x**3}
\tkzDefPointByFct(.5) \tkzGetPoint{A}\tkzDrawPoint(A)
\tkzLabelPoint[above right](A){$A_0$}
\tkzDefPointByFct(-1) \tkzGetPoint{A1}\tkzDrawPoint(A1)
\tkzLabelPoint[above right](A1){$A_1$}
\end{tikzpicture}
\end{tcolorbox}
\begin{tcolorbox}
\tiny
\begin{tikzpicture}[scale=0.5]
\tkzInit[xmin=-2,xmax=2,xstep=1,
ymin=-8,ymax=24,ystep=8]
\tkzGrid[] \tkzAxeXY
\tkzFct[domain =-1.5:2]{3.0-1.3125*x**5-2.5*x**3}
\tkzDefPointByFct(.5) \tkzGetPoint{A}\tkzDrawPoint(A)
\tkzLabelPoint[above right](A){\tiny $A_0$}
\tkzDefPointByFct(-1) \tkzGetPoint{A1}\tkzDrawPoint(A1)
\tkzLabelPoint[below left](A1){\tiny $A_1$}
\end{tikzpicture}
\end{tcolorbox}
\end{tcboxedraster}
}%fbox