From 4e842852b13d84daede1b6b5db5c592fab4d3ff5 Mon Sep 17 00:00:00 2001
From: kj_sh604
Date: Sun, 22 Feb 2026 02:52:34 -0500
Subject: refactor: images fix

---
 src/output/header.tex | 13 +++++++++++++
 1 file changed, 13 insertions(+)

(limited to 'src/output/header.tex')

diff --git a/src/output/header.tex b/src/output/header.tex
index e5a5c37..92c6c74 100644
--- a/src/output/header.tex
+++ b/src/output/header.tex
@@ -1,2 +1,15 @@
 \usepackage[utf8]{inputenc}
 \usepackage[T1]{fontenc}
+\let\origfigure\figure
+\let\endorigfigure\endfigure
+\renewenvironment{figure}{
+    \origfigure[H]
+}{
+    \endorigfigure
+}
+\usepackage{graphicx}
+\usepackage[export]{adjustbox}
+\let\origincludegraphics\includegraphics
+\renewcommand{\includegraphics}[2][]{%
+    \origincludegraphics[max width=\textwidth,max height=0.8\textheight,keepaspectratio,#1]{#2}%
+}
\ No newline at end of file
-- 
cgit v1.2.3

