diff --git a/css/neobeam.css b/css/neobeam.css index 618c85c..7e3886e 100644 --- a/css/neobeam.css +++ b/css/neobeam.css @@ -21,7 +21,7 @@ /* Defaults */ /************/ :root { - --build-multiplier: 100; /* Set to 1 when working in vscode, 100 when building */ + --build-multiplier: 100; /* Might need to be set to 1 in some cases to fix color issues */ /* -- Colors -- */ /* Primary, and variations */ @@ -187,7 +187,7 @@ section::after { height: var(--footer-height); line-height: var(--footer-height); - width: var(--footer-height); + width: calc(2*var(--footer-height)); /* Give more space as necessary */ color: var(--text-color-negative); font-size: calc(0.65 * var(--font-size)); /* For some reason simply writing 0.65rem won't do here */ @@ -244,7 +244,7 @@ footer > *:last-child { z-index: 1; /* Leave space for pagination number */ - --pagination-space: calc(var(--footer-height) + 2 * var(--text-padding)); + --pagination-space: calc(2*var(--footer-height) + 2 * var(--text-padding)); margin-left: calc(-2 * var(--radius-space) - var(--pagination-space)); padding-left: calc(var(--text-padding) + var(--radius-space)); padding-right: var(--pagination-space); diff --git a/example/example.md b/example/example.md index 49c6b01..23fb88f 100644 --- a/example/example.md +++ b/example/example.md @@ -5,7 +5,7 @@ paginate: true math: katex footer: '**mikael-ros** **A modern take on the LaTeX beamer theme** - **Version 0.6, 2024**' + **Version 0.7, 2024**' --- # A modern take on the LaTeX beamer theme @@ -15,7 +15,7 @@ footer: '**mikael-ros** > ### Faculty of GitHub > University of Marp -## Version 0.6, 2024 +## Version 0.7, 2024 ![logo GitHub Logo](../assets/github-mark.svg) @@ -89,4 +89,4 @@ Text can be marked, abbr and you c You can embed audio like: + \ No newline at end of file diff --git a/previews/beamer/beamer-0.png b/previews/beamer/beamer-0.png index c645e8d..07b5a2b 100644 Binary files a/previews/beamer/beamer-0.png and b/previews/beamer/beamer-0.png differ diff --git a/previews/beamer/beamer-1.png b/previews/beamer/beamer-1.png index 7f780fc..bda3992 100644 Binary files a/previews/beamer/beamer-1.png and b/previews/beamer/beamer-1.png differ diff --git a/previews/beamer/beamer-2.png b/previews/beamer/beamer-2.png index 1c1f36d..18c8d93 100644 Binary files a/previews/beamer/beamer-2.png and b/previews/beamer/beamer-2.png differ diff --git a/previews/beamer/beamer-3.png b/previews/beamer/beamer-3.png index c12a38a..dc6895a 100644 Binary files a/previews/beamer/beamer-3.png and b/previews/beamer/beamer-3.png differ diff --git a/previews/beamer/beamer-4.png b/previews/beamer/beamer-4.png index 9eaa513..4434bd9 100644 Binary files a/previews/beamer/beamer-4.png and b/previews/beamer/beamer-4.png differ diff --git a/previews/beamer/beamer-5.png b/previews/beamer/beamer-5.png index d49b8ed..b8f202d 100644 Binary files a/previews/beamer/beamer-5.png and b/previews/beamer/beamer-5.png differ diff --git a/previews/beamer/beamer-6.png b/previews/beamer/beamer-6.png index 536e3be..e206207 100644 Binary files a/previews/beamer/beamer-6.png and b/previews/beamer/beamer-6.png differ diff --git a/previews/beamer/beamer-7.png b/previews/beamer/beamer-7.png index ee2bd82..1d2538d 100644 Binary files a/previews/beamer/beamer-7.png and b/previews/beamer/beamer-7.png differ diff --git a/previews/csek/csek-0.png b/previews/csek/csek-0.png index d4e0997..7235bf2 100644 Binary files a/previews/csek/csek-0.png and b/previews/csek/csek-0.png differ diff --git a/previews/csek/csek-1.png b/previews/csek/csek-1.png index 5ecaab7..ac21883 100644 Binary files a/previews/csek/csek-1.png and b/previews/csek/csek-1.png differ diff --git a/previews/csek/csek-2.png b/previews/csek/csek-2.png index 3cee985..764c097 100644 Binary files a/previews/csek/csek-2.png and b/previews/csek/csek-2.png differ diff --git a/previews/csek/csek-3.png b/previews/csek/csek-3.png index a913875..dfb9dad 100644 Binary files a/previews/csek/csek-3.png and b/previews/csek/csek-3.png differ diff --git a/previews/csek/csek-4.png b/previews/csek/csek-4.png index 2c2aaa3..28695c2 100644 Binary files a/previews/csek/csek-4.png and b/previews/csek/csek-4.png differ diff --git a/previews/csek/csek-5.png b/previews/csek/csek-5.png index dc0f6f0..520b1f6 100644 Binary files a/previews/csek/csek-5.png and b/previews/csek/csek-5.png differ diff --git a/previews/csek/csek-6.png b/previews/csek/csek-6.png index 740d252..60fecc9 100644 Binary files a/previews/csek/csek-6.png and b/previews/csek/csek-6.png differ diff --git a/previews/csek/csek-7.png b/previews/csek/csek-7.png index d50e122..24954bb 100644 Binary files a/previews/csek/csek-7.png and b/previews/csek/csek-7.png differ diff --git a/previews/dsek/dsek-0.png b/previews/dsek/dsek-0.png index f081822..1a22445 100644 Binary files a/previews/dsek/dsek-0.png and b/previews/dsek/dsek-0.png differ diff --git a/previews/dsek/dsek-1.png b/previews/dsek/dsek-1.png index 17e07ec..be8387f 100644 Binary files a/previews/dsek/dsek-1.png and b/previews/dsek/dsek-1.png differ diff --git a/previews/dsek/dsek-2.png b/previews/dsek/dsek-2.png index d060fc7..af6b571 100644 Binary files a/previews/dsek/dsek-2.png and b/previews/dsek/dsek-2.png differ diff --git a/previews/dsek/dsek-3.png b/previews/dsek/dsek-3.png index 6968206..d3ce181 100644 Binary files a/previews/dsek/dsek-3.png and b/previews/dsek/dsek-3.png differ diff --git a/previews/dsek/dsek-4.png b/previews/dsek/dsek-4.png index 7d7222b..64f257a 100644 Binary files a/previews/dsek/dsek-4.png and b/previews/dsek/dsek-4.png differ diff --git a/previews/dsek/dsek-5.png b/previews/dsek/dsek-5.png index e704e82..b395396 100644 Binary files a/previews/dsek/dsek-5.png and b/previews/dsek/dsek-5.png differ diff --git a/previews/dsek/dsek-6.png b/previews/dsek/dsek-6.png index d3d0154..2c83b17 100644 Binary files a/previews/dsek/dsek-6.png and b/previews/dsek/dsek-6.png differ diff --git a/previews/dsek/dsek-7.png b/previews/dsek/dsek-7.png index ef8e62c..5d76c05 100644 Binary files a/previews/dsek/dsek-7.png and b/previews/dsek/dsek-7.png differ diff --git a/previews/lund/lund-0.png b/previews/lund/lund-0.png index 8a36c88..4db44d7 100644 Binary files a/previews/lund/lund-0.png and b/previews/lund/lund-0.png differ diff --git a/previews/lund/lund-1.png b/previews/lund/lund-1.png index dd03c9f..94c1a90 100644 Binary files a/previews/lund/lund-1.png and b/previews/lund/lund-1.png differ diff --git a/previews/lund/lund-2.png b/previews/lund/lund-2.png index a3df67d..b223073 100644 Binary files a/previews/lund/lund-2.png and b/previews/lund/lund-2.png differ diff --git a/previews/lund/lund-3.png b/previews/lund/lund-3.png index b50a073..7ce1218 100644 Binary files a/previews/lund/lund-3.png and b/previews/lund/lund-3.png differ diff --git a/previews/lund/lund-4.png b/previews/lund/lund-4.png index 59f9a76..b04a423 100644 Binary files a/previews/lund/lund-4.png and b/previews/lund/lund-4.png differ diff --git a/previews/lund/lund-5.png b/previews/lund/lund-5.png index cd1ce93..c2a92fd 100644 Binary files a/previews/lund/lund-5.png and b/previews/lund/lund-5.png differ diff --git a/previews/lund/lund-6.png b/previews/lund/lund-6.png index bc94e54..03ac882 100644 Binary files a/previews/lund/lund-6.png and b/previews/lund/lund-6.png differ diff --git a/previews/lund/lund-7.png b/previews/lund/lund-7.png index 66ffe11..e282ecb 100644 Binary files a/previews/lund/lund-7.png and b/previews/lund/lund-7.png differ diff --git a/previews/neobeam/neobeam-0.png b/previews/neobeam/neobeam-0.png index 7796084..a0ad166 100644 Binary files a/previews/neobeam/neobeam-0.png and b/previews/neobeam/neobeam-0.png differ diff --git a/previews/neobeam/neobeam-1.png b/previews/neobeam/neobeam-1.png index 5f5f36a..9a4057f 100644 Binary files a/previews/neobeam/neobeam-1.png and b/previews/neobeam/neobeam-1.png differ diff --git a/previews/neobeam/neobeam-2.png b/previews/neobeam/neobeam-2.png index 4b37c6e..179b8d9 100644 Binary files a/previews/neobeam/neobeam-2.png and b/previews/neobeam/neobeam-2.png differ diff --git a/previews/neobeam/neobeam-3.png b/previews/neobeam/neobeam-3.png index 2ec79ff..bca7a41 100644 Binary files a/previews/neobeam/neobeam-3.png and b/previews/neobeam/neobeam-3.png differ diff --git a/previews/neobeam/neobeam-4.png b/previews/neobeam/neobeam-4.png index fa2af34..22479e7 100644 Binary files a/previews/neobeam/neobeam-4.png and b/previews/neobeam/neobeam-4.png differ diff --git a/previews/neobeam/neobeam-5.png b/previews/neobeam/neobeam-5.png index 1ee5ed6..2dedf11 100644 Binary files a/previews/neobeam/neobeam-5.png and b/previews/neobeam/neobeam-5.png differ diff --git a/previews/neobeam/neobeam-6.png b/previews/neobeam/neobeam-6.png index 6364fba..8a6479a 100644 Binary files a/previews/neobeam/neobeam-6.png and b/previews/neobeam/neobeam-6.png differ diff --git a/previews/neobeam/neobeam-7.png b/previews/neobeam/neobeam-7.png index d26d48d..e616e22 100644 Binary files a/previews/neobeam/neobeam-7.png and b/previews/neobeam/neobeam-7.png differ diff --git a/readme.md b/readme.md index 7c2dd08..74058b3 100644 --- a/readme.md +++ b/readme.md @@ -90,7 +90,7 @@ Theme | Based on > This theme by default uses the fonts Roboto, Roboto Mono (for code) and Noto Sans Math (for math). These are imported in the CSS file, but you can aquire them yourself too, or change them out. In the LTH C-sektionen and D-sektionen themes, Roboto is switched out for Helvetica. > [!WARNING] -> For reasons beyond my comprehension, it is necessary to use different notation for ``hsl`` in CSS in the Marp VS code preview as compared to the build version. To mitigate this I have added a ``build-multiplier`` variable to the CSS files. Set this to ``1`` when working in VS code, and ``100`` when exporting (or working in other ways). +> For reasons beyond my comprehension, it is necessary to use different notation for ``hsl`` in CSS in the Marp VS code preview as compared to the build version sometimes. To mitigate this I have added a ``build-multiplier`` variable to the CSS files. Set this to ``1`` when necessary, otherwise ``100``. #### 📥 In an existing presentation 1. Download or copy the neobeam.css file into your project OR use the direct link. If using specific themes, do remember they are dependent on the base theme. @@ -121,6 +121,8 @@ footer: '**Author** The theme names are written as presented in the table in the previews section. 4. Change ``build-multiplier`` to ``1``, if the preview looks wrong. Do not forget to change it back before you build. +> If you are, against all odds, using more than 1000 slides, and the pagination wraps, go into [``neobeam.css``](css/neobeam.css) and modify ``section::after``'s ``width``, and correspondingly the ``--pagination-space`` in ``footer > *:last-child``. + #### ✨️ As a template Simply clone or fork this repo or download the release. If you wish, you can delete the previews folder.