-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathfilesize_test.tex
More file actions
105 lines (91 loc) · 2.04 KB
/
filesize_test.tex
File metadata and controls
105 lines (91 loc) · 2.04 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
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
% Proof that file size does not increase with increased numbers of included files.
% Compile with `pfdLaTeX`.
% I did not know that it does not when you include the same file:http://tex.stackexchange.com/a/139405/828
% The file we include is 25 K according to "ls -lh *.jpg"
% Use the command below to keep an eye on the file size while uncommenting environments
% watch -n 2 "ls -lh file*.pdf"
% figenv pg Filesize
% lipsum 2 44K
% 1 3 69K
% 2 4 69K
% 3 5 70K
% 4 6 70K
% 5 7 70K
% 6 8 70K
% 8 10 73K
% 9 11 74K
% 10 12 74K
% So, while the file *does* grow, it does not scales linearly with the number of inclusions. Cool!
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{lipsum}
\title{Size test}
\author{David Haberthür}
\date{\today}
\begin{document}
\maketitle
\lipsum
\clearpage
\begin{figure}
\centering
\includegraphics[width=0.618\linewidth]{scalebarimage}
\caption{1}
\end{figure}
\clearpage
\begin{figure}
\centering
\includegraphics[width=0.618\linewidth]{scalebarimage}
\caption{2}
\end{figure}
\clearpage
\begin{figure}
\centering
\includegraphics[width=0.618\linewidth]{scalebarimage}
\caption{3}
\end{figure}
\clearpage
\begin{figure}
\centering
\includegraphics[width=0.618\linewidth]{scalebarimage}
\caption{4}
\end{figure}
\clearpage
\begin{figure}
\centering
\includegraphics[width=0.618\linewidth]{scalebarimage}
\caption{5}
\end{figure}
\clearpage
\begin{figure}
\centering
\includegraphics[width=0.618\linewidth]{scalebarimage}
\caption{6}
\end{figure}
\clearpage
\begin{figure}
\centering
\includegraphics[width=0.618\linewidth]{scalebarimage}
\caption{7}
\end{figure}
\clearpage
\begin{figure}
\centering
\includegraphics[width=0.618\linewidth]{scalebarimage}
\caption{8}
\end{figure}
\clearpage
\begin{figure}
\centering
\includegraphics[width=0.618\linewidth]{scalebarimage}
\caption{9}
\end{figure}
\clearpage
\begin{figure}
\centering
\includegraphics[width=0.618\linewidth]{scalebarimage}
\caption{10}
\end{figure}
\clearpage
\end{document}