-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tex
148 lines (131 loc) · 3.88 KB
/
main.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
\documentclass[a5paper]{article}
\usepackage{amsmath}
\usepackage{amssymb} %for the items
% code for graph paper background - from https://tex.stackexchange.com/a/311407
\def\mygraphpaper{%
\begin{tikzpicture}
\draw[line width=.4pt,draw=black!30] (0,0) grid[step=1mm] (\paperwidth,\paperheight);
\draw[line width=.4pt,draw=red!50] (0,0) grid[step=1cm] (\paperwidth,\paperheight);
\end{tikzpicture}%
}
\usepackage{tikz}
\usepackage{background}
\backgroundsetup{
angle=0,
contents=\mygraphpaper,
color=black,
scale=1,
}
% code to make organic highlights - from https://tex.stackexchange.com/a/6029
\usepackage{soul}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathmorphing}
\makeatletter
\newcommand{\defhighlighter}[3][]{%
\tikzset{every highlighter/.style={color=#2, fill opacity=#3, #1}}%
}
\defhighlighter{yellow}{.5}
\newcommand{\highlight@DoHighlight}{
\fill [ decoration = {random steps, amplitude=1pt, segment length=15pt}
, outer sep = -15pt, inner sep = 0pt, decorate
, every highlighter, this highlighter ]
($(begin highlight)+(0,8pt)$) rectangle ($(end highlight)+(0,-3pt)$) ;
}
\newcommand{\highlight@BeginHighlight}{
\coordinate (begin highlight) at (0,0) ;
}
\newcommand{\highlight@EndHighlight}{
\coordinate (end highlight) at (0,0) ;
}
\newdimen\highlight@previous
\newdimen\highlight@current
\DeclareRobustCommand*\highlight[1][]{%
\tikzset{this highlighter/.style={#1}}%
\SOUL@setup
%
\def\SOUL@preamble{%
\begin{tikzpicture}[overlay, remember picture]
\highlight@BeginHighlight
\highlight@EndHighlight
\end{tikzpicture}%
}%
%
\def\SOUL@postamble{%
\begin{tikzpicture}[overlay, remember picture]
\highlight@EndHighlight
\highlight@DoHighlight
\end{tikzpicture}%
}%
%
\def\SOUL@everyhyphen{%
\discretionary{%
\SOUL@setkern\SOUL@hyphkern
\SOUL@sethyphenchar
\tikz[overlay, remember picture] \highlight@EndHighlight ;%
}{%
}{%
\SOUL@setkern\SOUL@charkern
}%
}%
%
\def\SOUL@everyexhyphen##1{%
\SOUL@setkern\SOUL@hyphkern
\hbox{##1}%
\discretionary{%
\tikz[overlay, remember picture] \highlight@EndHighlight ;%
}{%
}{%
\SOUL@setkern\SOUL@charkern
}%
}%
%
\def\SOUL@everysyllable{%
\begin{tikzpicture}[overlay, remember picture]
\path let \p0 = (begin highlight), \p1 = (0,0) in \pgfextra
\global\highlight@previous=\y0
\global\highlight@current =\y1
\endpgfextra (0,0) ;
\ifdim\highlight@current < \highlight@previous
\highlight@DoHighlight
\highlight@BeginHighlight
\fi
\end{tikzpicture}%
\the\SOUL@syllable
\tikz[overlay, remember picture] \highlight@EndHighlight ;%
}%
\SOUL@
}
\makeatother
% Some cute fonts
\usepackage{fontspec} %fontes diferentonas
\usepackage{wedn}
\usepackage[T1]{fontenc}
% from https://tug.org/FontCatalogue/calligraphicalfonts.html
\setmainfont{QTBlackForest}
\newfontfamily\myfont{QTArtiston}
% Some cute symbols
\usepackage{marvosym} % try \Bat, \Heart ...
%Pre-settings
\newenvironment{myitems}
{\renewcommand{\labelitemi}{\highlight[orange]{\Heart}}
\renewcommand\labelitemii{\highlight[pink]{$\square$}}
\begin{itemize}
\item
}
{ \end{itemize}
}
\newenvironment{mybox}
{\begin{tabular}{|p{0.7\textwidth}|}
\hline
\begin{center}\highlight[white]{\Heart}\end{center}\\
}
{
\\
\begin{center}\highlight[white]{\Heart}\end{center}
\\\\ \hline
\end{tabular}
}
\begin{document}
\input{page_model}
\end{document}