-
Notifications
You must be signed in to change notification settings - Fork 0
/
sciences.mrk
116 lines (96 loc) · 2.55 KB
/
sciences.mrk
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
\documentclass[12pt,t]{beamer}
\usepackage{url}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{grffile}
\usepackage{color}
\usetheme{CambridgeUS}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{headline}{}{}
\addtobeamertemplate{headline}{}{\textcolor{white}{\rule{\paperwidth}{5pt}}
}
\setbeamertemplate{footline}[frame number]{}
\usebackgroundtemplate{\includegraphics[width=\paperwidth,height=\paperheight]{beamer.jpg}}
\usepackage{calc}
\newcommand{\unifig}[2]{
\begin{center}
\hspace{-1cm}\includegraphics[width=#2\textwidth*\real{0.91},keepaspectratio]{#1}
\end{center}
}
\usepackage{xparse,calc}
\newlength\fitimageht
\newlength\fitotherht
\newsavebox\fitimagebox
\NewDocumentCommand \fitimageab { m m m O {} }{%
\sbox\fitimagebox{%
\parbox{\textwidth}{%
#1\par
#4
}%
}%
\settototalheight{\fitotherht}{%
\usebox\fitimagebox
}%
\setlength\fitimageht{\textheight}%
\addtolength\fitimageht{-\fitotherht-\topskip-\footskip-3\baselineskip}%
#1\par
\begin{columns}[onlytextwidth]
\column{.48\linewidth}
\centering
\includegraphics[width=\textwidth,height=\fitimageht,keepaspectratio]{#2}
\column{.48\linewidth}
\centering
\includegraphics[width=\textwidth,height=\fitimageht,keepaspectratio]{#3}
\end{columns}\par
#4}
\usepackage{xparse,calc}
%\newlength\fitimageht
%\newlength\fitotherht
%\newsavebox\fitimagebox
\NewDocumentCommand \fitimage { m m O {} }{%
\sbox\fitimagebox{%
\parbox{\textwidth}{%
#1\par
#3
}%
}%
\settototalheight{\fitotherht}{%
\usebox\fitimagebox
}%
\setlength\fitimageht{\textheight}%
\addtolength\fitimageht{-\fitotherht-\topskip-\footskip-3\baselineskip}%
#1\par
\centering
\includegraphics[width=\textwidth,height=\fitimageht,keepaspectratio]{#2}\par
#3}
\usepackage{xparse,calc}
\NewDocumentCommand \fitimageat { m m m O {} }{%
\sbox\fitimagebox{%
\parbox{\textwidth}{%
#1\par
#4
}%
}%
\settototalheight{\fitotherht}{%
\usebox\fitimagebox
}%
\setlength\fitimageht{\textheight}%
\addtolength\fitimageht{-\fitotherht-\topskip-\footskip-3\baselineskip}%
#1\par
\begin{columns}[onlytextwidth]
\column{.48\linewidth}
\centering
\begin{tabular}{c}
\includegraphics[width=\textwidth,height=\fitimageht,keepaspectratio]{#2}
\end{tabular}
\column{.48\linewidth}
\centering
\begin{tabular}{c}
%\includegraphics[width=\textwidth,height=\fitimageht,keepaspectratio]{#2}
\parbox{0.42\linewidth}
{
#3
}
\end{tabular}
\end{columns}\par
#4}