galaaz 2.1.8 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/Rakefile +20 -2
- data/bin/check_gemfile_lock_version +46 -0
- data/bin/release_bump +26 -0
- data/blogs/README.md +4 -0
- data/blogs/galaaz_2_0/galaaz_2_0.Rmd +385 -0
- data/blogs/galaaz_2_0/galaaz_2_0.md +409 -0
- data/blogs/galaaz_2_0/galaaz_2_0.tex +756 -0
- data/blogs/galaaz_2_0/images/galaaz-header.png +0 -0
- data/blogs/galaaz_2_0/images/galaaz-lockup-stacked.png +0 -0
- data/blogs/galaaz_ggplot/galaaz_ggplot.Rmd +14 -1
- data/blogs/galaaz_ggplot/galaaz_ggplot.md +123 -103
- data/blogs/galaaz_ggplot/galaaz_ggplot.tex +60 -23
- data/blogs/galaaz_ggplot/images/galaaz-lockup-stacked.png +0 -0
- data/blogs/gknit/gknit.Rmd +16 -1
- data/blogs/gknit/gknit.md +13 -1
- data/blogs/gknit/gknit.tex +64 -23
- data/blogs/gknit/gknit_files/figure-html/bubble-1.png +0 -0
- data/blogs/gknit/gknit_files/figure-html/diverging_bar.png +0 -0
- data/blogs/gknit/gknit_files/figure-latex/bubble-1.png +0 -0
- data/blogs/gknit/images/galaaz-lockup-stacked.png +0 -0
- data/blogs/manual/images/galaaz-lockup-stacked.png +0 -0
- data/blogs/manual/manual.Rmd +32 -11
- data/blogs/manual/manual.md +30 -23
- data/blogs/manual/manual.tex +88 -66
- data/blogs/manual/manual_files/figure-html/bubble-1.png +0 -0
- data/blogs/manual/manual_files/figure-latex/bubble-1.png +0 -0
- data/blogs/nse_dplyr/images/galaaz-lockup-stacked.png +0 -0
- data/blogs/nse_dplyr/nse_dplyr.Rmd +14 -1
- data/blogs/nse_dplyr/nse_dplyr.md +697 -649
- data/blogs/nse_dplyr/nse_dplyr.tex +61 -24
- data/blogs/oh_my/images/galaaz-lockup-stacked.png +0 -0
- data/blogs/oh_my/oh_my.Rmd +14 -1
- data/blogs/oh_my/oh_my.md +36 -26
- data/blogs/oh_my/oh_my.tex +95 -58
- data/blogs/r_on_rails_ledger/images/00_portfolio_page.png +0 -0
- data/blogs/r_on_rails_ledger/images/01_results_panel.png +0 -0
- data/blogs/r_on_rails_ledger/images/02_density_tail_risk.png +0 -0
- data/blogs/r_on_rails_ledger/images/03_mc_cone.png +0 -0
- data/blogs/r_on_rails_ledger/images/04_rolling_var.png +0 -0
- data/blogs/r_on_rails_ledger/images/galaaz-lockup-stacked.png +0 -0
- data/blogs/r_on_rails_ledger/r_on_rails_ledger.Rmd +354 -0
- data/blogs/r_on_rails_ledger/r_on_rails_ledger.md +365 -0
- data/blogs/r_on_rails_ledger/r_on_rails_ledger.tex +670 -0
- data/blogs/ruby_plot/images/galaaz-lockup-stacked.png +0 -0
- data/blogs/ruby_plot/ruby_plot.Rmd +14 -1
- data/blogs/ruby_plot/ruby_plot.md +11 -1
- data/blogs/ruby_plot/ruby_plot.tex +60 -23
- data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_jitter.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-html/final_violin_plot.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-html/violin_with_jitter.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-latex/facets_with_jitter.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-latex/final_violin_plot.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-latex/violin_with_jitter.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/ruby_plot_files/figure-latex/facets_with_jitter.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/ruby_plot_files/figure-latex/final_violin_plot.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/ruby_plot_files/figure-latex/violin_with_jitter.png +0 -0
- data/lib/galaaz/cli.rb +47 -3
- data/logos/icon-font/README.md +27 -0
- data/logos/icon-font/build_font.py +130 -0
- data/logos/icon-font/galaaz-mark.svg +34 -0
- data/script/omarchy/README.md +8 -1
- data/script/omarchy/fonts/galaaz.ttf +0 -0
- data/script/omarchy/install-galaaz.sh +8 -1
- data/script/omarchy/omarchy-menu.jsonc +21 -9
- data/sty/galaaz-header.png +0 -0
- data/sty/galaaz-headers-from-p3.tex +4 -0
- data/sty/galaaz.sty +54 -23
- data/version.rb +1 -1
- metadata +30 -9
- data/blogs/galaaz_ggplot/galaaz_ggplot.log +0 -745
- data/blogs/gknit/gknit_files/gknit_files/figure-latex/bubble-1.png +0 -0
- data/blogs/manual/manual.log +0 -1530
- data/blogs/manual/manual_files/manual_files/figure-latex/bubble-1.png +0 -0
- data/blogs/nse_dplyr/nse_dplyr.log +0 -824
- data/blogs/oh_my/oh_my.log +0 -974
- data/blogs/ruby_plot/ruby_plot.log +0 -887
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
\usepackage[utf8]{inputenc}
|
|
102
102
|
|
|
103
103
|
\usepackage{geometry}
|
|
104
|
-
\geometry{a4paper, top=
|
|
104
|
+
\geometry{a4paper, top=1.05in, headheight=30pt, headsep=14pt}
|
|
105
105
|
|
|
106
106
|
% needed for kableExtra
|
|
107
107
|
\usepackage{longtable}
|
|
@@ -122,29 +122,60 @@
|
|
|
122
122
|
\usepackage{graphicx}
|
|
123
123
|
|
|
124
124
|
\usepackage{fancyhdr}
|
|
125
|
-
%
|
|
126
|
-
%
|
|
127
|
-
%
|
|
125
|
+
% Header: small Galaaz mark (left); page number + section title (right),
|
|
126
|
+
% matching classic LaTeX style: "4 AN EXTENSION TO THE EXAMPLE"
|
|
127
|
+
% (upright page number, uppercase italic section name).
|
|
128
|
+
% Logo paths cover repo blogs (../../sty/), installed ~/sty/, and local images/.
|
|
129
|
+
% Blogs may delay headers with \renewcommand{\galaazheaderfrompage}{3} after this sty
|
|
130
|
+
% (e.g. skip title/TOC and a logo splash page).
|
|
131
|
+
\newcommand{\galaazheaderfrompage}{1}
|
|
132
|
+
\newcommand{\galaazheaderlogo}{%
|
|
133
|
+
\raisebox{-0.12\height}{%
|
|
134
|
+
\IfFileExists{../../sty/galaaz-header.png}{%
|
|
135
|
+
\includegraphics[height=0.32in]{../../sty/galaaz-header.png}%
|
|
136
|
+
}{%
|
|
137
|
+
\IfFileExists{galaaz-header.png}{%
|
|
138
|
+
\includegraphics[height=0.32in]{galaaz-header.png}%
|
|
139
|
+
}{%
|
|
140
|
+
\IfFileExists{images/galaaz-header.png}{%
|
|
141
|
+
\includegraphics[height=0.32in]{images/galaaz-header.png}%
|
|
142
|
+
}{}%
|
|
143
|
+
}%
|
|
144
|
+
}%
|
|
145
|
+
}%
|
|
146
|
+
}
|
|
147
|
+
% Section title only in marks (no \thesection); page number is separate.
|
|
148
|
+
\renewcommand{\sectionmark}[1]{\markboth{#1}{}}
|
|
149
|
+
\renewcommand{\subsectionmark}[1]{}% keep the current section in the header
|
|
150
|
+
\newcommand{\galaazmaybeheaderlogo}{%
|
|
151
|
+
\ifnum\value{page}<\galaazheaderfrompage\relax\else\galaazheaderlogo\fi}
|
|
152
|
+
\newcommand{\galaazmayberighthead}{%
|
|
153
|
+
\ifnum\value{page}<\galaazheaderfrompage\relax
|
|
154
|
+
\else
|
|
155
|
+
\textup{\thepage}\hspace{1em}\textit{\MakeUppercase{\leftmark}}%
|
|
156
|
+
\fi
|
|
157
|
+
}
|
|
128
158
|
\pagestyle{fancy}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
%
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
%
|
|
143
|
-
%
|
|
144
|
-
%
|
|
145
|
-
%
|
|
146
|
-
|
|
147
|
-
|
|
159
|
+
\fancyhf{}
|
|
160
|
+
\fancyhead[L]{\galaazmaybeheaderlogo}
|
|
161
|
+
\fancyhead[R]{\galaazmayberighthead}
|
|
162
|
+
\renewcommand{\headrulewidth}{0.3pt}
|
|
163
|
+
\makeatletter
|
|
164
|
+
\renewcommand{\headrule}{%
|
|
165
|
+
\ifnum\value{page}<\galaazheaderfrompage\relax
|
|
166
|
+
\else
|
|
167
|
+
\hrule\@height\headrulewidth\@width\headwidth
|
|
168
|
+
\vskip-\headrulewidth
|
|
169
|
+
\fi
|
|
170
|
+
}
|
|
171
|
+
\makeatother
|
|
172
|
+
% First page often uses plain; same conditional header logic.
|
|
173
|
+
\fancypagestyle{plain}{%
|
|
174
|
+
\fancyhf{}%
|
|
175
|
+
\fancyhead[L]{\galaazmaybeheaderlogo}%
|
|
176
|
+
\fancyhead[R]{\galaazmayberighthead}%
|
|
177
|
+
\renewcommand{\headrulewidth}{0.3pt}%
|
|
178
|
+
}
|
|
148
179
|
|
|
149
180
|
% make available command lastpage
|
|
150
181
|
\usepackage{lastpage}
|
|
@@ -189,6 +220,10 @@
|
|
|
189
220
|
|
|
190
221
|
%
|
|
191
222
|
%\newcommand{\atraso}[1]{\color{red} \textbf {Tempo desde a Assinatura do Contrato: #1 dias}}
|
|
223
|
+
% No header on title/TOC (p.1) or splash logo page (p.2);
|
|
224
|
+
% logo + page number + section title from page 3 onward.
|
|
225
|
+
% Load after galaaz.sty.
|
|
226
|
+
\renewcommand{\galaazheaderfrompage}{3}
|
|
192
227
|
\usepackage{bookmark}
|
|
193
228
|
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
|
|
194
229
|
\urlstyle{same}
|
|
@@ -209,6 +244,8 @@
|
|
|
209
244
|
\setcounter{tocdepth}{2}
|
|
210
245
|
\tableofcontents
|
|
211
246
|
}
|
|
247
|
+
\begin{center}\includegraphics[width=0.45\linewidth]{images/galaaz-lockup-stacked} \end{center}
|
|
248
|
+
|
|
212
249
|
\section{Introduction}\label{introduction}
|
|
213
250
|
|
|
214
251
|
According to Steven Sagaert's answer on Quora about ``Is programming
|
|
@@ -796,7 +833,7 @@ Let's start by taking a look at this dataset:
|
|
|
796
833
|
|
|
797
834
|
\begin{verbatim}
|
|
798
835
|
## ~(dim(flights))
|
|
799
|
-
## <environment:
|
|
836
|
+
## <environment: 0x5acac1752f98>
|
|
800
837
|
\end{verbatim}
|
|
801
838
|
|
|
802
839
|
Now, let's use a first verb of \emph{dplyr}: `filter'. This verb,
|
|
Binary file
|
data/blogs/oh_my/oh_my.Rmd
CHANGED
|
@@ -9,9 +9,17 @@ output:
|
|
|
9
9
|
html_document:
|
|
10
10
|
self_contained: true
|
|
11
11
|
keep_md: true
|
|
12
|
+
toc: true
|
|
13
|
+
toc_float: true
|
|
14
|
+
toc_depth: 2
|
|
15
|
+
number_sections: true
|
|
16
|
+
includes:
|
|
17
|
+
before_body: _logo_before_body.html
|
|
12
18
|
pdf_document:
|
|
13
19
|
includes:
|
|
14
|
-
in_header:
|
|
20
|
+
in_header:
|
|
21
|
+
- "../../sty/galaaz.sty"
|
|
22
|
+
- "../../sty/galaaz-headers-from-p3.tex"
|
|
15
23
|
keep_tex: yes
|
|
16
24
|
number_sections: yes
|
|
17
25
|
toc: true
|
|
@@ -23,6 +31,11 @@ fontsize: 11pt
|
|
|
23
31
|
options(width = 70)
|
|
24
32
|
```
|
|
25
33
|
|
|
34
|
+
```{r brand_logo, echo=FALSE, fig.align='center', out.width='45%', eval=knitr::is_latex_output()}
|
|
35
|
+
# PDF only — HTML uses _logo_before_body.html (above the TOC).
|
|
36
|
+
knitr::include_graphics("images/galaaz-lockup-stacked.png")
|
|
37
|
+
```
|
|
38
|
+
|
|
26
39
|
# Introduction
|
|
27
40
|
|
|
28
41
|
This paper introduces and compares Galaaz with R's S4. It is **modeled closely** on
|
data/blogs/oh_my/oh_my.md
CHANGED
|
@@ -9,9 +9,17 @@ output:
|
|
|
9
9
|
html_document:
|
|
10
10
|
self_contained: true
|
|
11
11
|
keep_md: true
|
|
12
|
+
toc: true
|
|
13
|
+
toc_float: true
|
|
14
|
+
toc_depth: 2
|
|
15
|
+
number_sections: true
|
|
16
|
+
includes:
|
|
17
|
+
before_body: _logo_before_body.html
|
|
12
18
|
pdf_document:
|
|
13
19
|
includes:
|
|
14
|
-
in_header:
|
|
20
|
+
in_header:
|
|
21
|
+
- "../../sty/galaaz.sty"
|
|
22
|
+
- "../../sty/galaaz-headers-from-p3.tex"
|
|
15
23
|
keep_tex: yes
|
|
16
24
|
number_sections: yes
|
|
17
25
|
toc: true
|
|
@@ -21,6 +29,8 @@ fontsize: 11pt
|
|
|
21
29
|
|
|
22
30
|
|
|
23
31
|
|
|
32
|
+
|
|
33
|
+
|
|
24
34
|
# Introduction
|
|
25
35
|
|
|
26
36
|
This paper introduces and compares Galaaz with R's S4. It is **modeled closely** on
|
|
@@ -104,7 +114,7 @@ puts @traj
|
|
|
104
114
|
```
|
|
105
115
|
|
|
106
116
|
```
|
|
107
|
-
## #<RC::Trajectories:
|
|
117
|
+
## #<RC::Trajectories:0x3cbcf7a0>
|
|
108
118
|
```
|
|
109
119
|
|
|
110
120
|
To see the contents of an object, one needs to access its components using the '.' operator:
|
|
@@ -587,27 +597,27 @@ end
|
|
|
587
597
|
## 32
|
|
588
598
|
## * Traj (limited to a matrix 10x10) =
|
|
589
599
|
## [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
|
|
590
|
-
## [1,] "
|
|
591
|
-
## [2,] "
|
|
592
|
-
## [3,] "16.
|
|
593
|
-
## [4,] "
|
|
594
|
-
## [5,] "
|
|
595
|
-
## [6,] "
|
|
596
|
-
## [7,] "16.
|
|
597
|
-
## [8,] "15.
|
|
598
|
-
## [9,] "
|
|
599
|
-
## [10,] "16.
|
|
600
|
+
## [1,] "15.85" "16.10" "16.34" "16.33" "16.58" "16.91" "16.89" "16.99"
|
|
601
|
+
## [2,] "15.67" "16.28" "16.37" "16.34" "16.31" "16.39" "17.19" "16.84"
|
|
602
|
+
## [3,] "16.02" "16.03" "16.40" "16.52" "16.68" "16.99" "16.87" "17.26"
|
|
603
|
+
## [4,] "15.99" "16.24" "16.30" "16.38" "16.76" "16.84" "16.60" "16.96"
|
|
604
|
+
## [5,] "15.89" "15.96" "16.43" "16.68" "16.48" "16.68" "16.87" "16.59"
|
|
605
|
+
## [6,] "16.35" "15.97" "16.04" "16.65" "16.66" "16.58" "16.95" "17.01"
|
|
606
|
+
## [7,] "16.17" "16.22" "16.37" "16.34" "16.53" "16.34" "16.93" "16.96"
|
|
607
|
+
## [8,] "15.98" "15.97" "16.08" "16.49" "16.91" "16.97" "16.91" "17.43"
|
|
608
|
+
## [9,] "16.49" "16.26" "16.08" "16.44" "16.57" "16.92" "17.14" "17.46"
|
|
609
|
+
## [10,] "16.10" "15.95" "16.19" "16.16" "16.66" "16.99" "17.03" "17.12"
|
|
600
610
|
## [,9] [,10]
|
|
601
|
-
## [1,] "17.
|
|
602
|
-
## [2,] "17.
|
|
603
|
-
## [3,] "17.
|
|
604
|
-
## [4,] "17.
|
|
605
|
-
## [5,] "17.
|
|
606
|
-
## [6,] "
|
|
607
|
-
## [7,] "
|
|
608
|
-
## [8,] "17.
|
|
609
|
-
## [9,] "17.
|
|
610
|
-
## [10,] "17.
|
|
611
|
+
## [1,] "17.38" "17.30"
|
|
612
|
+
## [2,] "17.00" "17.47"
|
|
613
|
+
## [3,] "17.02" "17.28"
|
|
614
|
+
## [4,] "17.06" "17.28"
|
|
615
|
+
## [5,] "17.01" "17.14"
|
|
616
|
+
## [6,] "16.95" "17.14"
|
|
617
|
+
## [7,] "17.02" "17.08"
|
|
618
|
+
## [8,] "17.15" "17.67"
|
|
619
|
+
## [9,] "17.06" "17.43"
|
|
620
|
+
## [10,] "17.10" "17.57"
|
|
611
621
|
## ******* End Show (trajectories) *******
|
|
612
622
|
```
|
|
613
623
|
|
|
@@ -2104,7 +2114,7 @@ puts @a
|
|
|
2104
2114
|
## [1] A B C B B A
|
|
2105
2115
|
## Levels: A B C
|
|
2106
2116
|
##
|
|
2107
|
-
## #<RC::PartitionSimple:
|
|
2117
|
+
## #<RC::PartitionSimple:0x5520a83a>
|
|
2108
2118
|
```
|
|
2109
2119
|
|
|
2110
2120
|
|
|
@@ -2132,7 +2142,7 @@ puts @b
|
|
|
2132
2142
|
## [1] A E C D B D
|
|
2133
2143
|
## Levels: A < B < C < D < E
|
|
2134
2144
|
##
|
|
2135
|
-
## #<RC::PartitionEval:
|
|
2145
|
+
## #<RC::PartitionEval:0x6b85a357>
|
|
2136
2146
|
```
|
|
2137
2147
|
|
|
2138
2148
|
|
|
@@ -2174,7 +2184,7 @@ puts @a
|
|
|
2174
2184
|
## [1] A B C B B A
|
|
2175
2185
|
## Levels: A B C
|
|
2176
2186
|
##
|
|
2177
|
-
## #<RC::PartitionSimple:
|
|
2187
|
+
## #<RC::PartitionSimple:0x5520a83a>
|
|
2178
2188
|
```
|
|
2179
2189
|
|
|
2180
2190
|
As can be seen, 'puts @a' now calls method 'to_s' defined in class PartitionSimple. This
|
|
@@ -2197,7 +2207,7 @@ puts @b
|
|
|
2197
2207
|
## [1] A E C D B D
|
|
2198
2208
|
## Levels: A < B < C < D < E
|
|
2199
2209
|
##
|
|
2200
|
-
## #<RC::PartitionEval:
|
|
2210
|
+
## #<RC::PartitionEval:0x6b85a357>
|
|
2201
2211
|
```
|
|
2202
2212
|
|
|
2203
2213
|
# Internal Modification of an Object
|
data/blogs/oh_my/oh_my.tex
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
\usepackage[utf8]{inputenc}
|
|
102
102
|
|
|
103
103
|
\usepackage{geometry}
|
|
104
|
-
\geometry{a4paper, top=
|
|
104
|
+
\geometry{a4paper, top=1.05in, headheight=30pt, headsep=14pt}
|
|
105
105
|
|
|
106
106
|
% needed for kableExtra
|
|
107
107
|
\usepackage{longtable}
|
|
@@ -122,29 +122,60 @@
|
|
|
122
122
|
\usepackage{graphicx}
|
|
123
123
|
|
|
124
124
|
\usepackage{fancyhdr}
|
|
125
|
-
%
|
|
126
|
-
%
|
|
127
|
-
%
|
|
125
|
+
% Header: small Galaaz mark (left); page number + section title (right),
|
|
126
|
+
% matching classic LaTeX style: "4 AN EXTENSION TO THE EXAMPLE"
|
|
127
|
+
% (upright page number, uppercase italic section name).
|
|
128
|
+
% Logo paths cover repo blogs (../../sty/), installed ~/sty/, and local images/.
|
|
129
|
+
% Blogs may delay headers with \renewcommand{\galaazheaderfrompage}{3} after this sty
|
|
130
|
+
% (e.g. skip title/TOC and a logo splash page).
|
|
131
|
+
\newcommand{\galaazheaderfrompage}{1}
|
|
132
|
+
\newcommand{\galaazheaderlogo}{%
|
|
133
|
+
\raisebox{-0.12\height}{%
|
|
134
|
+
\IfFileExists{../../sty/galaaz-header.png}{%
|
|
135
|
+
\includegraphics[height=0.32in]{../../sty/galaaz-header.png}%
|
|
136
|
+
}{%
|
|
137
|
+
\IfFileExists{galaaz-header.png}{%
|
|
138
|
+
\includegraphics[height=0.32in]{galaaz-header.png}%
|
|
139
|
+
}{%
|
|
140
|
+
\IfFileExists{images/galaaz-header.png}{%
|
|
141
|
+
\includegraphics[height=0.32in]{images/galaaz-header.png}%
|
|
142
|
+
}{}%
|
|
143
|
+
}%
|
|
144
|
+
}%
|
|
145
|
+
}%
|
|
146
|
+
}
|
|
147
|
+
% Section title only in marks (no \thesection); page number is separate.
|
|
148
|
+
\renewcommand{\sectionmark}[1]{\markboth{#1}{}}
|
|
149
|
+
\renewcommand{\subsectionmark}[1]{}% keep the current section in the header
|
|
150
|
+
\newcommand{\galaazmaybeheaderlogo}{%
|
|
151
|
+
\ifnum\value{page}<\galaazheaderfrompage\relax\else\galaazheaderlogo\fi}
|
|
152
|
+
\newcommand{\galaazmayberighthead}{%
|
|
153
|
+
\ifnum\value{page}<\galaazheaderfrompage\relax
|
|
154
|
+
\else
|
|
155
|
+
\textup{\thepage}\hspace{1em}\textit{\MakeUppercase{\leftmark}}%
|
|
156
|
+
\fi
|
|
157
|
+
}
|
|
128
158
|
\pagestyle{fancy}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
%
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
%
|
|
143
|
-
%
|
|
144
|
-
%
|
|
145
|
-
%
|
|
146
|
-
|
|
147
|
-
|
|
159
|
+
\fancyhf{}
|
|
160
|
+
\fancyhead[L]{\galaazmaybeheaderlogo}
|
|
161
|
+
\fancyhead[R]{\galaazmayberighthead}
|
|
162
|
+
\renewcommand{\headrulewidth}{0.3pt}
|
|
163
|
+
\makeatletter
|
|
164
|
+
\renewcommand{\headrule}{%
|
|
165
|
+
\ifnum\value{page}<\galaazheaderfrompage\relax
|
|
166
|
+
\else
|
|
167
|
+
\hrule\@height\headrulewidth\@width\headwidth
|
|
168
|
+
\vskip-\headrulewidth
|
|
169
|
+
\fi
|
|
170
|
+
}
|
|
171
|
+
\makeatother
|
|
172
|
+
% First page often uses plain; same conditional header logic.
|
|
173
|
+
\fancypagestyle{plain}{%
|
|
174
|
+
\fancyhf{}%
|
|
175
|
+
\fancyhead[L]{\galaazmaybeheaderlogo}%
|
|
176
|
+
\fancyhead[R]{\galaazmayberighthead}%
|
|
177
|
+
\renewcommand{\headrulewidth}{0.3pt}%
|
|
178
|
+
}
|
|
148
179
|
|
|
149
180
|
% make available command lastpage
|
|
150
181
|
\usepackage{lastpage}
|
|
@@ -189,6 +220,10 @@
|
|
|
189
220
|
|
|
190
221
|
%
|
|
191
222
|
%\newcommand{\atraso}[1]{\color{red} \textbf {Tempo desde a Assinatura do Contrato: #1 dias}}
|
|
223
|
+
% No header on title/TOC (p.1) or splash logo page (p.2);
|
|
224
|
+
% logo + page number + section title from page 3 onward.
|
|
225
|
+
% Load after galaaz.sty.
|
|
226
|
+
\renewcommand{\galaazheaderfrompage}{3}
|
|
192
227
|
\usepackage{bookmark}
|
|
193
228
|
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
|
|
194
229
|
\urlstyle{same}
|
|
@@ -209,6 +244,8 @@
|
|
|
209
244
|
\setcounter{tocdepth}{2}
|
|
210
245
|
\tableofcontents
|
|
211
246
|
}
|
|
247
|
+
\begin{center}\includegraphics[width=0.45\linewidth]{images/galaaz-lockup-stacked} \end{center}
|
|
248
|
+
|
|
212
249
|
\section{Introduction}\label{introduction}
|
|
213
250
|
|
|
214
251
|
This paper introduces and compares Galaaz with R's S4. It is
|
|
@@ -301,7 +338,7 @@ contents as in R.
|
|
|
301
338
|
\end{Shaded}
|
|
302
339
|
|
|
303
340
|
\begin{verbatim}
|
|
304
|
-
## #<RC::Trajectories:
|
|
341
|
+
## #<RC::Trajectories:0x7df91b21>
|
|
305
342
|
\end{verbatim}
|
|
306
343
|
|
|
307
344
|
To see the contents of an object, one needs to access its components
|
|
@@ -483,11 +520,11 @@ correctly set:
|
|
|
483
520
|
\begin{verbatim}
|
|
484
521
|
## [1] 1 3 4 5
|
|
485
522
|
##
|
|
486
|
-
##
|
|
487
|
-
##
|
|
488
|
-
##
|
|
489
|
-
##
|
|
490
|
-
##
|
|
523
|
+
## [,1] [,2] [,3] [,4]
|
|
524
|
+
## g2_v729 15.0 15.1 15.2 15.2
|
|
525
|
+
## g2_v730 16.0 15.9 16.0 16.4
|
|
526
|
+
## g2_v731 15.2 NA 15.3 15.3
|
|
527
|
+
## g2_v732 15.7 15.6 15.8 16.0
|
|
491
528
|
##
|
|
492
529
|
## [1] 1 2 3 4 5 6 7 8 9 10 12 14 16 18 20 22 24 26 28 30 32
|
|
493
530
|
\end{verbatim}
|
|
@@ -700,11 +737,11 @@ Trajectories's print we need to write `Kernel.print'.
|
|
|
700
737
|
## 4
|
|
701
738
|
## 5
|
|
702
739
|
## traj =
|
|
703
|
-
##
|
|
704
|
-
##
|
|
705
|
-
##
|
|
706
|
-
##
|
|
707
|
-
##
|
|
740
|
+
## [,1] [,2] [,3] [,4]
|
|
741
|
+
## g2_v729 15.0 15.1 15.2 15.2
|
|
742
|
+
## g2_v730 16.0 15.9 16.0 16.4
|
|
743
|
+
## g2_v731 15.2 NA 15.3 15.3
|
|
744
|
+
## g2_v732 15.7 15.6 15.8 16.0
|
|
708
745
|
## ******* End Print (trajectories) *******
|
|
709
746
|
\end{verbatim}
|
|
710
747
|
|
|
@@ -831,27 +868,27 @@ we have already seen, others will be described now:
|
|
|
831
868
|
## 32
|
|
832
869
|
## * Traj (limited to a matrix 10x10) =
|
|
833
870
|
## [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
|
|
834
|
-
## [1,] "16.
|
|
835
|
-
## [2,] "16.
|
|
836
|
-
## [3,] "
|
|
837
|
-
## [4,] "
|
|
838
|
-
## [5,] "16.
|
|
839
|
-
## [6,] "16.
|
|
840
|
-
## [7,] "
|
|
841
|
-
## [8,] "16.
|
|
842
|
-
## [9,] "
|
|
843
|
-
## [10,] "
|
|
871
|
+
## [1,] "16.25" "16.49" "16.28" "16.18" "16.59" "16.78" "16.93" "17.34"
|
|
872
|
+
## [2,] "16.00" "16.39" "16.54" "16.74" "16.74" "16.69" "16.52" "16.79"
|
|
873
|
+
## [3,] "16.03" "16.48" "16.21" "16.34" "16.46" "16.99" "17.07" "17.04"
|
|
874
|
+
## [4,] "16.18" "16.03" "16.22" "16.38" "16.74" "16.83" "16.94" "17.04"
|
|
875
|
+
## [5,] "16.11" "15.72" "16.01" "16.32" "16.27" "16.68" "17.18" "16.95"
|
|
876
|
+
## [6,] "16.03" "16.17" "16.13" "16.60" "17.02" "16.57" "17.26" "16.91"
|
|
877
|
+
## [7,] "15.99" "16.10" "16.51" "16.39" "16.97" "16.82" "16.74" "17.10"
|
|
878
|
+
## [8,] "16.32" "15.85" "16.65" "16.33" "16.60" "15.93" "16.77" "17.19"
|
|
879
|
+
## [9,] "16.13" "16.41" "16.56" "16.47" "16.71" "16.59" "16.94" "16.83"
|
|
880
|
+
## [10,] "15.77" "16.23" "16.28" "16.27" "16.83" "16.32" "16.86" "16.74"
|
|
844
881
|
## [,9] [,10]
|
|
845
|
-
## [1,] "17.
|
|
846
|
-
## [2,] "
|
|
847
|
-
## [3,] "
|
|
848
|
-
## [4,] "
|
|
849
|
-
## [5,] "17.
|
|
850
|
-
## [6,] "
|
|
851
|
-
## [7,] "17.
|
|
852
|
-
## [8,] "
|
|
853
|
-
## [9,] "17.
|
|
854
|
-
## [10,] "
|
|
882
|
+
## [1,] "17.20" "17.30"
|
|
883
|
+
## [2,] "17.26" "17.50"
|
|
884
|
+
## [3,] "17.10" "17.00"
|
|
885
|
+
## [4,] "17.20" "17.33"
|
|
886
|
+
## [5,] "17.33" "17.15"
|
|
887
|
+
## [6,] "17.24" "17.45"
|
|
888
|
+
## [7,] "17.07" "17.65"
|
|
889
|
+
## [8,] "16.81" "17.63"
|
|
890
|
+
## [9,] "17.24" "17.47"
|
|
891
|
+
## [10,] "16.92" "17.42"
|
|
855
892
|
## ******* End Show (trajectories) *******
|
|
856
893
|
\end{verbatim}
|
|
857
894
|
|
|
@@ -2484,7 +2521,7 @@ to show Ruby's inheritance:
|
|
|
2484
2521
|
## [1] A B C B B A
|
|
2485
2522
|
## Levels: A B C
|
|
2486
2523
|
##
|
|
2487
|
-
## #<RC::PartitionSimple:
|
|
2524
|
+
## #<RC::PartitionSimple:0x6b85a357>
|
|
2488
2525
|
\end{verbatim}
|
|
2489
2526
|
|
|
2490
2527
|
\begin{Shaded}
|
|
@@ -2514,7 +2551,7 @@ to show Ruby's inheritance:
|
|
|
2514
2551
|
## [1] A E C D B D
|
|
2515
2552
|
## Levels: A < B < C < D < E
|
|
2516
2553
|
##
|
|
2517
|
-
## #<RC::PartitionEval:
|
|
2554
|
+
## #<RC::PartitionEval:0x462891eb>
|
|
2518
2555
|
\end{verbatim}
|
|
2519
2556
|
|
|
2520
2557
|
\begin{Shaded}
|
|
@@ -2560,7 +2597,7 @@ name of the class:
|
|
|
2560
2597
|
## [1] A B C B B A
|
|
2561
2598
|
## Levels: A B C
|
|
2562
2599
|
##
|
|
2563
|
-
## #<RC::PartitionSimple:
|
|
2600
|
+
## #<RC::PartitionSimple:0x6b85a357>
|
|
2564
2601
|
\end{verbatim}
|
|
2565
2602
|
|
|
2566
2603
|
As can be seen, `puts @a' now calls method `to\_s' defined in class
|
|
@@ -2584,7 +2621,7 @@ particular `to\_s' method.
|
|
|
2584
2621
|
## [1] A E C D B D
|
|
2585
2622
|
## Levels: A < B < C < D < E
|
|
2586
2623
|
##
|
|
2587
|
-
## #<RC::PartitionEval:
|
|
2624
|
+
## #<RC::PartitionEval:0x462891eb>
|
|
2588
2625
|
\end{verbatim}
|
|
2589
2626
|
|
|
2590
2627
|
\section{Internal Modification of an
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|