File notes/Makefile changed (mode: 100644) (index 13d7159..2df94cf) |
... |
... |
$(VEC): |
15 |
15 |
|
|
16 |
16 |
# Rule to compile the pdf |
# Rule to compile the pdf |
17 |
17 |
|
|
18 |
|
pdf: lectures_notes.md | $(PDF) # $(PDF) is an "order-only" pre-requisite. Cf. http://www.gnu.org/software/make/manual/make.html#Types-of-Prerequisites |
|
|
18 |
|
pdf: lectures_notes.md | $(VEC) # $(VEC) is an "order-only" pre-requisite. Cf. http://www.gnu.org/software/make/manual/make.html#Types-of-Prerequisites |
19 |
19 |
pandoc --pdf-engine=xelatex --pdf-engine-opt=-shell-escape --toc --filter pandoc-numbering --filter pandoc-citeproc --top-level-division=chapter -V links-as-notes -M date="$$(LANG=en_us_88591 date '+%B %e, %Y (%r)')" -o lectures_notes.pdf $< |
pandoc --pdf-engine=xelatex --pdf-engine-opt=-shell-escape --toc --filter pandoc-numbering --filter pandoc-citeproc --top-level-division=chapter -V links-as-notes -M date="$$(LANG=en_us_88591 date '+%B %e, %Y (%r)')" -o lectures_notes.pdf $< |
20 |
20 |
|
|
21 |
21 |
# |
# |
File notes/vec/rel_mod/template.def added (mode: 100644) (index 0000000..f4ca1d8) |
|
1 |
|
\renewcommand\familydefault{\sfdefault} % Default family: serif |
|
2 |
|
\usepackage[usenames,dvipsnames]{xcolor} |
|
3 |
|
\usepackage{tikz} |
|
4 |
|
\usepackage{soul} |
|
5 |
|
\usetikzlibrary{calc} |
|
6 |
|
\usetikzlibrary{arrows, decorations.markings,positioning,backgrounds,shapes} |
|
7 |
|
\definecolor{WIRE}{HTML}{002FA7} % Klein Blue |
|
8 |
|
\usepackage{ulem} |
|
9 |
|
\renewcommand{\ULdepth}{3pt} |
|
10 |
|
|
|
11 |
|
\newcommand\whiteuline{\bgroup\markoverwith |
|
12 |
|
{\textcolor{white}{\rule[-0.5ex]{2pt}{0.4pt}}}\ULon} |
|
13 |
|
|
|
14 |
|
\tikzset{FK/.style={thick,<-,thick,>=latex}} |
|
15 |
|
|
|
16 |
|
\newbox\ubox |
|
17 |
|
\begin{document} |
|
18 |
|
\begin{tikzpicture}[ |
|
19 |
|
PK/.style={% Style for empatized boxes |
|
20 |
|
rectangle, line width =1pt, |
|
21 |
|
anchor=west, |
|
22 |
|
underline, % new property |
|
23 |
|
align=center, |
|
24 |
|
text=white, |
|
25 |
|
minimum height=.8cm, |
|
26 |
|
text height=1.5ex, |
|
27 |
|
text depth=.25ex, |
|
28 |
|
fill=WIRE!50, |
|
29 |
|
draw=black, |
|
30 |
|
}, |
|
31 |
|
A/.style={% Style for normal boxes. |
|
32 |
|
rectangle, |
|
33 |
|
line width =1pt, |
|
34 |
|
anchor=west, |
|
35 |
|
align=left, |
|
36 |
|
minimum height=.6cm, |
|
37 |
|
text height=1.5ex, |
|
38 |
|
text depth=.25ex, |
|
39 |
|
fill=WIRE!10, |
|
40 |
|
draw=black, |
|
41 |
|
inner ysep=5pt |
|
42 |
|
}, |
|
43 |
|
underline/.append style={% define new style property |
|
44 |
|
execute at begin node={% |
|
45 |
|
\setbox\ubox=\hbox\bgroup |
|
46 |
|
}, |
|
47 |
|
execute at end node={% |
|
48 |
|
\egroup\whiteuline{\box\ubox}% |
|
49 |
|
} |
|
50 |
|
}, |
|
51 |
|
] % Uff that is all the configuration for tickzpicture xD |
|
52 |
|
|
|
53 |
|
% Define an brute force objet "Frame" |
|
54 |
|
% Variables 1:Position, 2: Identifier, 3: Title of frame 4: Subframe/Boxtype |
|
55 |
|
\def\Frame(#1)#2[#3]#4{% |
|
56 |
|
\begin{scope}[shift={(#1)}] |
|
57 |
|
\node[font=\bf, anchor=west] (Title) at (-0.2,0.7) {#3}; |
|
58 |
|
\edef\k{0}% Variable for box positión |
|
59 |
|
\edef\x{0}% Variable for named coordinate centering - below box |
|
60 |
|
\foreach \id/\style in {#4} {%enter sub frame data Name/Boxtype ,Name2/Boxtype | An space before Boxtype is needed |
|
61 |
|
\node[\style] (h) at (\k pt,0) {\id}; % % Draw a node depending on the variables. |
|
62 |
|
\pgfmathparse{\k+0.5*width{"\id"}+3.4pt} % Uses the textwidth to calculate named coordinate |
|
63 |
|
\xdef\x{\pgfmathresult} % The resul is saved in the variable \x |
|
64 |
|
\draw (\x pt,-0.4) coordinate (\id#2); %Create a named coordinate concatenated: "sub frame data Name"+"identifier" |
|
65 |
|
\pgfmathparse{\k+width{"\id"}+6.8pt}% Calculate positión for each subframe box. |
|
66 |
|
\xdef\k{\pgfmathresult}% Save the value to be added to the next iteration value. |
|
67 |
|
} |
|
68 |
|
\end{scope} |
|
69 |
|
}% disadvantages: Is not posible to use Frame data Name like: Name_another_desc instead I use Name-another-desc |