Skip to content

Commit f1a3fc3

Browse files
author
Clément
committed
Improved insertion of images.
1 parent dac2b75 commit f1a3fc3

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

md_version/main.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ Note that the drawing presented in \autoref{fig:language} was obtained using \La
291291
\vspace*{\fill}
292292
\begin{figure}
293293
\centering
294-
\includegraphics{pictures/languages_overview.pdf}
294+
\includegraphics[width=\textheight]{pictures/languages_overview.pdf}
295295
\caption{Difference between programming languages (simplified)}
296296
\label{fig:language}
297297
\end{figure}

md_version/main.pdf

34 Bytes
Binary file not shown.

md_version/templates/head_b.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@
1616
\usepackage[english]{datetime2} % To extract the month and year from the date.
1717
\usepackage{chngcntr} % To obtain a "global numbering" of tables and figures.
1818

19+
% Package to display images
20+
\usepackage{graphicx}
21+
% Option to set maximum width, courtesy of https://github.com/jgm/pandoc-templates/blob/master/default.latex.orig
22+
\makeatletter
23+
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
24+
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
25+
\makeatother
26+
% Scale images if necessary, so that they will not overflow the page
27+
1928
%%%%%%%%%%%%%%
2029
% Cover page %
2130
%%%%%%%%%%%%%%

0 commit comments

Comments
 (0)