From 00e254c4b78aaaae4e3fbe2a3dc513216af77347 Mon Sep 17 00:00:00 2001
From: Marco Aceti <marco.aceti@studenti.unimi.it>
Date: Tue, 30 May 2023 15:17:00 +0200
Subject: [PATCH] Automatically center all images

---
 assets/custom.css | 6 ++++++
 book.toml         | 1 +
 2 files changed, 7 insertions(+)
 create mode 100644 assets/custom.css

diff --git a/assets/custom.css b/assets/custom.css
new file mode 100644
index 0000000..6aebbe8
--- /dev/null
+++ b/assets/custom.css
@@ -0,0 +1,6 @@
+/* Center images */
+img {
+    display: block;
+    margin-left: auto;
+    margin-right: auto;
+}
\ No newline at end of file
diff --git a/book.toml b/book.toml
index 716a32d..0407a44 100644
--- a/book.toml
+++ b/book.toml
@@ -11,3 +11,4 @@ clickable-img = true
 
 [output.html]
 mathjax-support = true
+additional-css = ["assets/custom.css"]
\ No newline at end of file
-- 
GitLab