Skip to content

Commit

Permalink
add information and extra option to resolve #457
Browse files Browse the repository at this point in the history
  • Loading branch information
TeXhackse committed Feb 26, 2024
1 parent e079fd7 commit 18ede87
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/DEMO-TUDaBeamer2023-en.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
8 changes: 7 additions & 1 deletion tex/beamerinnerthemeTUDa2023.sty
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18ede87

Please sign in to comment.