Comments (8)
So will the issue disappear if we change the .sty name to a different one? What should be renamed to?
Hmm, probably not, sorry for causing confusion here :/
Background: I had the above issue for another theme derived from metropolis. But this theme has renamed source files, so the hooks did not trigger. What I then did was:
(Please note that THEME
here constitutes a placeholder for the derived theme)
\@ifclasslater{beamer}{2023/02/20}{%
% The hooks where first defined for v3.69
\AddToHook{file/beamerfontthemeTHEME.sty/before}{\UseHook{file/beamerfontthememetropolis.sty/before}}
\AddToHook{file/beamerfontthemeTHEME.sty/after}{%
\let\metropolis@frametitleformat\THEME@frametitleformat
\UseHook{file/beamerfontthememetropolis.sty/after}
}
}{}
This triggeres beamer's patching hooks even though your sty was renamed. That way, beamer's compatibilitypatches got applied and compilation was fixed for me.
But this is only necessary if your theme variation actually renames the file. For the vanilla metropolis theme, beamerfontthememetropolis.sty
should be present and get patched correctly (given an up to date Beamer version, so 2023/02/20
as can be seen in the snippet above).
So if you use the standard metropolis theme, your best chances are to check whether you are using an up to date beamer version. If this does not work or is not an valid option, you could take a look at what the beamerbasecompatibility.sty
-patches that beamer-version applies do and try to manually apply them/copy them to your metropolis variation/document.
Edit to add: This is the relevant beamer issue: josephwright/beamer#802
from mtheme.
Hmm, actually, beamer itself seems to have implemented a workaround for that one:
Please note that this only triggeres if the .sty
is called beamerfontthememetropolis.sty
.
from mtheme.
I get a similar error
Package beamerfontthememetropolis Error: Patching section title failed.
I am using [2017/01/23 v1.2 Metropolis Beamer theme] and [2023/05/15 v3.70 A class for typesetting presentations] plus pdfTeX 3.141592653-2.6-1.40.25 (TeX Live 2023).
from mtheme.
I have the same issue with Texlive and Miktex.
Any solution?
from mtheme.
Hmm, actually, beamer itself seems to have implemented a workaround for that one:
Please note that this only triggeres if the
.sty
is calledbeamerfontthememetropolis.sty
.
So will the issue disappear if we change the .sty name to a different one? What should be renamed to?
from mtheme.
Well, a standard metropolis works ok. However, when using it with Polyglossia I get the error.
from mtheme.
This line triggers the error:
\setdefaultlanguage[numerals=maghrib]{arabic}
from mtheme.
I solved my own problem by calling this:
\usetheme[progressbar=frametitle,sectionpage=none]{metropolis}
Before this:
\usepackage{polyglossia}
Thx
from mtheme.
Related Issues (20)
- Italic in verbatim environment
- Tikz node color changes to black after \color{} HOT 1
- Fix make demo
- How can I change the font of this theme?
- Create a whiteboard sidebar when aspectratio=169
- page number in frame title
- Change mtheme license
- allowframebreaks breaks frame very strange
- Don't include appendix pages in progress bar without use of appendixnumberbeamer
- Switch sectionpage and subsectionpage to standout mode HOT 1
- .
- The manual contains outdated pandoc instructions
- Make word color Green HOT 1
- How to get inverted section slides?
- `pgfplotsthemetol` puts `\pgfplotsset{compat=1.9}` at end of preamble, overriding other settings
- How can I make the title page background dark (inverted colors)? HOT 1
- Metropolis design with typst implementation HOT 2
- How to change color of inverted section pages? HOT 2
- Footnotes in combination with `\fullcite` are very large and their font size cannot be adjusted HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mtheme.