-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: rename blog to "Blog" (not "Posts")
- Loading branch information
Showing
104 changed files
with
1,031 additions
and
23 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
12 changes: 12 additions & 0 deletions
12
_freeze/blog/2024-05-25-moloch/index/execute-results/html.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"hash": "6bb6c4fffa3862292ae04c3ce364c261", | ||
"result": { | ||
"engine": "jupyter", | ||
"markdown": "---\ntitle: \"Moloch: A Revival of the Metropolis LaTeX Beamer Theme\"\nauthor: Johan Larsson\ndate: \"2024-05-15\"\ndescription: |\n Metropolis is a popular and modern beamer theme for LaTeX, but it is\n unfortunately no longer actively maintained and contains several bugs. \n Moloch is a fork of Metropolis that aims to fix these issues and add\n a few new features.\ncategories:\n - latex\n - software\n - presentations\n - beamer\nimage: moloch-logo.svg\nfig-cap-location: margin\n---\n\nMy beamer configuration for LaTeX presentations has been in a state of flux for as long as I can remember. \nI have tried many different themes and configurations, and have typically tried to keep the theme minimalisic\nbut at the same time functional and visually appealing. Nevertheless, I have frequently found\nmyself scrapping my custom modifications and returning to the [Metropolis theme](https://github.com/matze/mtheme),\nwhich I think is the most well-designed theme that I have so far encountered for beamer.\n\nThe only problem is that Metropolis is no longer actively maintained. The latest update (at the time of writing)\nwas six years ago and since then a number of issues have cropped up. Most of them are not major and can\nbe circumvented through various hacks and workarounds, but I have grown increasingly frustrated with the\nseparate file of Metropolis patches that I've had to keep around to fix these issues.\nBeamer tself in fact even includes several patches now in order to stop the theme from breaking (see \n[here](https://github.com/josephwright/beamer/blob/c0d91f15165421646b5383546e6195187b7f97c9/base/beamerbasecompatibility.sty#L253),\n[here](https://github.com/josephwright/beamer/blob/c0d91f15165421646b5383546e6195187b7f97c9/base/beamerbasesection.sty#L209), and \n[here](https://github.com/josephwright/beamer/blob/c0d91f15165421646b5383546e6195187b7f97c9/base/beamerbaselocalstructure.sty#L29).)\n\n## Moloch\n\nThis has now (since some months back actually) led me to fork Metropolis to try to fix these outstanding issues.\nI call the new theme *Moloch* (which is likely familiar to you if you know your Metropolis).\nThe original design is still pretty much intact save for a few minor tweaks, such as changing the green\ncolor from Metropolis to a teal color that is a little more color-blind friendly. The largest differences,\nexcept for pure bug fixes, is that the code for the theme has been simplified and made more robust.\nMetropolis, for instance, made much use of `\\patchcmd` from the etoolbox package to patch beamer \ntheme internals in order to support modifications to, for instance, frame titles. This was what\nlead the theme to break in the first place as beamer introduced changes in these commands and I \nhave thus opted to remove all this kind of patching in favor of relying on standard functionality\nfrom the beamer theme instead.\n\nThis comes at the price of sacrificing some features, such as toggling title formatting between uppercase,\nsmall caps, and regular text. But, as the Metropolis documentation itself noted, these\nmodifications were problematic in the first place and I therefore think that the removal of these\nfeatures is on the whole a good thing.\n\nI've also removed the pgfplots theme that was included in Metropolis. I don't mind the theme per se,\nbut I believe it was only of limited use and \n\n## Changes\n\nI've tried to outline the main changes that I can think of in the following sections.\n\n### New Secondary Color\n\nI always though the green color in Metropolis was lurid and not exactly color-blind friendly.\nI therefore changed it to a teal color that I think is a little more subdued and easier on the eyes.\n\nYou can see the difference in the figure below. I hope you agree that the\nnew color is an improvement!\n\n![The old versus the new secondary color.](new-secondary-color.svg){width=100%}\n\nOne of the future plans for Moloch is to make these colors more easily customizable.\n\n### Subtitles\n\nSubtitles are now supported in Moloch. They were were not supported in Metropolis\nbecause the author [thought subtitles were a bad idea i general](https://github.com/matze/mtheme/issues/135).\nOn the whole I agree that subtitles are usually best avoided, but I didn't see any reason\nto impose this opinion on others. Subtitles are therefore supported in Moloch.\n\n![Subtitles are supported in Moloch.](subtitles.png)\n\n### Frame Numbering\n\nMetropolis sported its own frame numbering system. There was nothing wrong with this \nsystem except it necessitated a separate package (appendixframenumber) to get frame/page numbers \nto restart (and not count towards the total number) for appendix slides.\nBeamer has, however, improved its own system in recent years and there is no longer\nany need for a custom solution (or separate package) to support this functionality.\nAs a result, Moloch just relies on beamer templates for the frame numbering.\nThe design is *slightly* different, with smaller font size and somewhat different margins,\nbut I only think this is for the better anyway.\n\nNow, you can just change it via the standard beamer commands for frame numbering, like so:\n\n```latex\n\\setbeamertemplate{page number in head/foot}[appendixframenumber]\n```\n\n### Title Page Redesign\n\nThe title page has been redesigned. The primary changes are\n\n1. The institute is now positioned below the author (rather than the date), which I think makes more sense.\n This was suggested in [an issue on the Metropolis repo](https://github.com/matze/mtheme/issues/180).\n2. The titlegraphic now has margins added above and below. It was previously put in a zero-height\n `vbox`, but this caused inconsistent bottom-top margins for the content on the title page.\n You can still achieve the behavior just be wrapping the title graphic in the same kind of\n `vbox`, however, so I see this as a less imposing default.\n3. The margins around the elements on the title page were changed everywhere. Please see the screenshots\n below to see what I mean, but the main change is that there is less spacing between the title and the\n subtitle and even spacing above and below the orange line.\n\n![The old title page from Metropolis](metropolis-titlepage.svg){width=100%}\n\n![The new title page in Moloch](moloch-titlepage.svg){width=100%}\n\nFor reference, the code for generating the slides is given below\n\n\n```{latex}\n#| code-fold: true\n#| eval: false\n\\documentclass[10pt]{beamer}\n\n\\usetheme{moloch}\n\n\\title{Title}\n\\subtitle{Subtitle}\n\\author{Author}\n\\institute{Institute}\n\\date{\\today}\n\\titlegraphic{\\hfill\\includegraphics[height=2cm]{logo.pdf}}\n\n\\begin{document}\n\\maketitle\n\\end{document}\n```\n\n\n### Better Support for Wide Presentations\n\nhttps://github.com/matze/mtheme/pull/384\n\n", | ||
"supporting": [ | ||
"index_files" | ||
], | ||
"filters": [], | ||
"includes": {} | ||
} | ||
} |
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
_freeze/blog/slope-0-2-0/index/figure-html/unnamed-chunk-3-1.png
Oops, something went wrong.
Binary file modified
BIN
+511 Bytes
(100%)
_freeze/blog/slope-0-2-0/index/figure-html/unnamed-chunk-5-1.png
Oops, something went wrong.
File renamed without changes.
File renamed without changes
Oops, something went wrong.