-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdata-types-cards.tex
More file actions
77 lines (67 loc) · 1.89 KB
/
data-types-cards.tex
File metadata and controls
77 lines (67 loc) · 1.89 KB
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
\documentclass[12pt,a5paper]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[margin=1cm]{geometry}
\usepackage{cmap} % Make PDF file searchable and copyable (ASCII characters)
\usepackage{lmodern} % Make PDF file searchable and copyable (Accented characters)
\usepackage[T1]{fontenc} % Hyphenate accented words
\usepackage{inconsolata}
\usepackage{graphicx}
\usepackage{array}
\usepackage{colortbl}
\usepackage[protrusion]{microtype} % Better typeset results
% Typeset in typewriter font
\makeatletter
\renewenvironment{table}%
{\renewcommand{\familydefault}{\ttdefault}\selectfont
\@float{table}}
{\end@float}
\makeatother
\newcolumntype{a}{>{\columncolor[gray]{0.8}}p{1.1cm}}
\newcolumntype{b}{p{2cm}}
\renewcommand*\arraystretch{2}
\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,landscape]
\date{}
\author{Valdemar Švábenský}
\title{Data types assignment}
\begin{document}
\pagenumbering{gobble} % Remove page numbers (and reset to 1)
\begin{table}[t]
\resizebox{\textwidth}{!}{%
\centering
\begin{tabular}{|a|a|a|}
\hline
bool & int & float\\ \hline
\end{tabular}}
\resizebox{\textwidth}{!}{%
\centering
\begin{tabular}{|b|b|b|}
\hline
True & False & 8 != 6 + 3 \\[0.4cm] \hline
4 > 5 and 5 > 4 & not 1/3 == 0.33 & 12345678 + int(7.2) \\ \hline
0 & 42 & -7 \\[0.4cm] \hline
3 // 2 + 15 \% 2 & 1.6258e2 & 4**2 + 1/4 \\ \hline
0.0 & 12.3 & -4.56 \\[0.4cm] \hline
\end{tabular}}
\end{table}
%copy paste
\begin{table}[t]
\resizebox{\textwidth}{!}{%
\centering
\begin{tabular}{|a|a|a|}
\hline
bool & int & float\\ \hline
\end{tabular}}
\resizebox{\textwidth}{!}{%
\centering
\begin{tabular}{|b|b|b|}
\hline
True & False & 8 != 6 + 3 \\[0.4cm] \hline
4 > 5 and 5 > 4 & not 1/3 == 0.33 & 12345678 + int(7.2) \\ \hline
0 & 42 & -7 \\[0.4cm] \hline
3 // 2 + 15 \% 2 & 1.6258e2 & 4**2 + 1/4 \\ \hline
0.0 & 12.3 & -4.56 \\[0.4cm] \hline
\end{tabular}}
\end{table}
\end{document}