Git Product home page Git Product logo

Comments (8)

noctux avatar noctux commented on May 26, 2024 1

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.

noctux avatar noctux commented on May 26, 2024

Hmm, actually, beamer itself seems to have implemented a workaround for that one:

https://github.com/josephwright/beamer/blob/a9b7aefd30d6a46824de01a5220209045c2c7f7d/base/beamerbasecompatibility.sty#L254

Please note that this only triggeres if the .sty is called beamerfontthememetropolis.sty.

from mtheme.

ArneMeier avatar ArneMeier commented on May 26, 2024

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.

hbjaili avatar hbjaili commented on May 26, 2024

I have the same issue with Texlive and Miktex.
Any solution?

from mtheme.

hbjaili avatar hbjaili commented on May 26, 2024

Hmm, actually, beamer itself seems to have implemented a workaround for that one:

https://github.com/josephwright/beamer/blob/a9b7aefd30d6a46824de01a5220209045c2c7f7d/base/beamerbasecompatibility.sty#L254

Please note that this only triggeres if the .sty is called beamerfontthememetropolis.sty.

So will the issue disappear if we change the .sty name to a different one? What should be renamed to?

from mtheme.

hbjaili avatar hbjaili commented on May 26, 2024

Well, a standard metropolis works ok. However, when using it with Polyglossia I get the error.

from mtheme.

hbjaili avatar hbjaili commented on May 26, 2024

This line triggers the error:

\setdefaultlanguage[numerals=maghrib]{arabic}

from mtheme.

hbjaili avatar hbjaili commented on May 26, 2024

I solved my own problem by calling this:

\usetheme[progressbar=frametitle,sectionpage=none]{metropolis}

Before this:
\usepackage{polyglossia}

Thx

from mtheme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.