SoftVarE-Group / SlideTemplate

A beamer latex template for slides and lectures at University of Ulm
Creative Commons Zero v1.0 Universal
13 stars 3 forks source link

custom logos #37

Closed EagleoutIce closed 2 years ago

EagleoutIce commented 2 years ago

Two new commands to set the logo[^1]:

\institutelogo[<includegraphics>]{<filename>}
\universitylogo[<includegraphics>]{<filename>}

Furthermore, two additional commands to remove the logo:

\clearinstitutelogo
\clearuniversitylogo

The default is:

\universitylogo{uulm}
\clearinstitutelogo

Including the sp-logo is easy with just: \institutelogo{sp} (i added lines to the demoSlides which are commented-out).

If someone adds a custom image it will be scaled to the same height. It is up to the user to ensure, that the scaled image remains readable and of a reasonable width (we could constraint that, or add some clippings, but at least in my opinion, that would only unnecessary complicate the code).

[^1]: With <includegraphics>, I refer to additional options accepted by the \includegraphics-command (e.g. width=.5\linewidth, keepaspectratio).

Benno2000 commented 2 years ago

Looks good to me! However I am not sure if we even need the commands to clear the logo when we for example can just use \institutelogo{}.

EagleoutIce commented 2 years ago

Now we have \uulmlogos[<includegraphics options>]{logos, ...}

Problem: if the logos are different in height or requiring different options using \uulmlogos[<opts>]{...} sets the same options for all logos.

Any previous and subsequent (!) usage of \institutelogo etc. does no longer work as the internal macro they rely on will be overwritten (hover, we could change that, if desired).

tthuem commented 2 years ago

@Benno2000 Please go ahead an merge this.