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/VERSION | 2 +- src/output/header.tex | 13 +++++++++++++ src/output/index.php | 16 +++++++++++++--- 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/src/VERSION b/src/VERSION index 98781e0..7676773 100644 --- a/src/VERSION +++ b/src/VERSION @@ -1 +1 @@ -2026.01.13-2226 +2026.02.22-0252 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 diff --git a/src/output/index.php b/src/output/index.php index 9f683d1..47d8843 100644 --- a/src/output/index.php +++ b/src/output/index.php @@ -1,11 +1,21 @@
+ + + + + - -If you are not redirected, click here for folder contents.
+sorry, there was an error generating your pdf.
+please check your input and try again.
+