Code Monkey home page Code Monkey logo

Comments (9)

benjamin-weiss avatar benjamin-weiss commented on June 2, 2024 13

As far as I remember the additional space is not there anymore. But you can still increase/decrease the space, if you want:

\documentclass{beamer}
\usetheme{metropolis}
\addtobeamertemplate{frametitle}{}{\vspace{1em}} % increase
\addtobeamertemplate{frametitle}{}{\vspace{-1em}} % decrease
\begin{document}
\begin{frame}[t]{Title}
    Lorem ipsum ...
\end{frame}
\end{document}

from mtheme.

matze avatar matze commented on June 2, 2024

The margin is caused by this vspace. I added that in order to center "normal sized" content vertically. I would also like to fix this with Beamer tools but as you noticed it is not possible to change vertical frame margins.

Now, I don't know how to proceed. The margin definitely looks bad but on the other hand overly full slides also don't leave the best impressions.

from mtheme.

gmbrauer avatar gmbrauer commented on June 2, 2024

Thank you very much, that was helpful. It didn't spot the \vspace{2em} straight away but now I removed it I feel my slides already look much better. If I come across a more general solution I'll let you know. And thanks again for this very nice style.

from mtheme.

jdahm avatar jdahm commented on June 2, 2024

I gave a presentation this week using this theme and I too found the vspace odd looking. LaTeX/Beamer do a nice job of placing content without this. Was there another reason for adding it, other than forcing less content per slide?

from mtheme.

matze avatar matze commented on June 2, 2024

I am not forcing less content but centering vertically. For example, if you just set one line of text it looks oddly out of place, maybe also due to the vast amount of available whitespace. If this is a serious problem for most of the users, I might add an option which adds the \vspace on an optional basis.

from mtheme.

AndySchroder avatar AndySchroder commented on June 2, 2024

Could you give an example on how to use the optionally added vspace? I don't see it described in the documentation anywhere.

from mtheme.

AndySchroder avatar AndySchroder commented on June 2, 2024

Thanks for the example on how to manually change the spacing.

In the commit referenced above, there is a nooffset option that changes something called voffset that looks like it is a variable of some kind. However, I don't understand enough about what is going on in that code to use the nooffset or choose a user defined voffset.

Were you aware of that code change? If not, can you now understand it enough to provide an example to use that new option? I'm thinking it may be a little cleaner than what you have suggested above.

Thanks.

from mtheme.

benjamin-weiss avatar benjamin-weiss commented on June 2, 2024

Again: there is no additional space anymore and therefore no theme option to disable it. And I don't think it is necessary to add an option to the theme to change the space.

Be aware that the commit referenced is over a year old. Really a lot has changed over the last year. Just use my example code if you need to reduce the space. It is a clean solution.

from mtheme.

AndySchroder avatar AndySchroder commented on June 2, 2024

Thanks for the clarification, and apologies for not realizing that the changes in the commit referenced above were overwritten at a later time.

Thanks.

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.