From 18ede87f9c64b2d70738dfc8bff3a1cb6ffe1306 Mon Sep 17 00:00:00 2001 From: "Marei (peiTeX)" Date: Mon, 26 Feb 2024 22:22:06 +0100 Subject: [PATCH] add information and extra option to resolve #457 --- examples/DEMO-TUDaBeamer2023-en.tex | 2 ++ tex/beamerinnerthemeTUDa2023.sty | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/DEMO-TUDaBeamer2023-en.tex b/examples/DEMO-TUDaBeamer2023-en.tex index 04156c9..6da8a77 100644 --- a/examples/DEMO-TUDaBeamer2023-en.tex +++ b/examples/DEMO-TUDaBeamer2023-en.tex @@ -96,6 +96,8 @@ \section{Documentation} \begin{itemize} \item The commands shown on previous slide support \code{\textbackslash{}height}/\code{\textbackslash{}width} to adjust the size to be used for graphic scaling. \item All have a starred variant (e.\,g. \code{\textbackslash{}sublogo*\{\textbackslash{}includegraphics\{example-image\}\}}). This will automaticcaly scale/clip the logo/image to desired size. + +To align the sublogo together with the visible part of the TUDa logo there also exists the possibility to add a second star behind the mandatory argument. This will move the logo to the left to match. This variant is only available for the sublogo. \end{itemize} \end{frame} diff --git a/tex/beamerinnerthemeTUDa2023.sty b/tex/beamerinnerthemeTUDa2023.sty index 960ec79..e6c7823 100644 --- a/tex/beamerinnerthemeTUDa2023.sty +++ b/tex/beamerinnerthemeTUDa2023.sty @@ -139,8 +139,14 @@ \__ptxcd_setup_logo_box:nnn {#1} {partnerlogo} {#2} } -\NewDocumentCommand{\sublogo}{sm}{ +\NewDocumentCommand{\sublogo}{sms}{ \__ptxcd_setup_logo_box:nnn {#1} {sublogo} {#2} + \IfBooleanT{#3}{ + \hbox_gset:Nn \g__ptxcd_sublogo_box { + \hbox_unpack_drop:N \g__ptxcd_sublogo_box + \hskip.6\l__ptxcd_sublogo_ht_dim + } + } } % section page