-
Notifications
You must be signed in to change notification settings - Fork 0
/
note.tex
94 lines (82 loc) · 2.15 KB
/
note.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
% Author: ph-u
% Script: note.tex
% Desc: R statistics note
% Input: none
% Output: none
% Arguments: 0
% Date: Jan 2020
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath,amssymb}
\usepackage{multirow}
\usepackage{float}
\usepackage{xcolor,colortbl}
\definecolor{grey}{rgb}{.95,.95,.95}
\definecolor{green}{rgb}{0,.4,0}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=green,
filecolor=red,
urlcolor=blue,
citecolor=orange
}
%% new environments
\newsavebox{\coloredbgbox}
\newenvironment{greybox}
{\begin{lrbox}{\coloredbgbox}\begin{minipage}{0.95\textwidth}}
{\end{minipage}\end{lrbox}%
\begin{center}\colorbox{grey}{\usebox{\coloredbgbox}}\end{center}} %% https://tex.stackexchange.com/questions/29060/newenvironment-issues-with-environment-comment
\newenvironment{scripting}{\fontfamily{qcr}\selectfont}{\par} %% https://tex.stackexchange.com/questions/25249/how-do-i-use-a-particular-font-for-a-small-section-of-text-in-my-document
\newenvironment{code} %% https://www.overleaf.com/learn/latex/Environments#Defining_a_new_environment
{
\begin{center}
\begin{greybox}
\begin{scripting}
\begin{tabular}{|p{.97\linewidth}|}
\hline\\
}{
\\\\\hline
\end{tabular}
\end{scripting}
\end{greybox}
\end{center}
}
\usepackage{graphicx}
\graphicspath{{graph/}{graph/}}
\title{Playing Data in R}
\author{PokMan HO}
\date{}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[L]{written by: PokMan HO}
\fancyhead[C]{Playing Data in R}
\fancyhead[R]{started: 26 Jan 2020}
\fancyfoot[C]{\thepage}
\fancyfoot[L]{scripted at: Silwood Park, ICL}
\fancyfoot[R]{last update: Apr 2020}
\usepackage[
autocite = superscript,
backend = biber,
sortcites = true,
style = nature,
]{biblatex}
\bibliography{Rbib.bib}
\usepackage{subfiles} %% load last
\begin{document}
\maketitle
\tableofcontents
\clearpage
\subfile{parts/intro}
\subfile{parts/choice}
\subfile{parts/admin}
\subfile{parts/subset}
\subfile{parts/npara}
\subfile{parts/para}
\subfile{parts/normality}
\subfile{parts/plot}
\subfile{parts/nlls}
\subfile{parts/heatmap}
\nocite{*}\printbibliography
\end{document}