tudace / tuda_latex_templates

LaTeX Templates for TU Darmstadt
LaTeX Project Public License v1.3c
214 stars 71 forks source link

sublogo alignment in TUDabeamer 2023 #457

Closed TeXhackse closed 9 months ago

TeXhackse commented 9 months ago

I have a problem when try adding logo to the new design image

\sublogo*{\includegraphics{logo.png}\rule{\width}{\height}}

The result is less than satisfactory in comparison with PowerPoint. The Latex template is misaligned. image

_Originally posted by @long21wt in https://github.com/tudace/tuda_latex_templates/issues/444#issuecomment-1928114788_

TeXhackse commented 9 months ago

@long21wt actually everything is intended, as the logo is not only the visible part. The white space has to be there as well and therefore the alignment is identical. In case you want to have the visual alignment without having the same white space around you image you can add a horizontal space of .6\height on the right side.

\sublogo{\includegraphics[height=\height]{example-image}\hskip.6\height}

I will add an option or ** variant to do that by default to simplify usage. But it's not a bug at all – rather a feature request.

TeXhackse commented 9 months ago

Due to more flexibility it became a variant to be used like

\sublogo*{\includegraphics{logo.png}}*
\sublogo{\rule{\width}{\height}}*