1
0
forked from upb/FancyBeamerUPB

Compare commits

..

4 Commits
main ... pb

Author SHA1 Message Date
pmbittner
2d19749105 adjust bad hardcoded title pic pos 2024-07-12 15:45:10 +02:00
pmbittner
ce3ce1b820 delete default fancy logos
because we cannot overwrite them afterwards!
2024-07-09 21:23:22 +02:00
pmbittner
50597e4ca9 dropme: hardcoded image pos 2024-04-07 16:08:53 +02:00
pmbittner
e5ab968948 allow inclusion from anywhere 2024-04-07 16:08:44 +02:00
5 changed files with 6 additions and 7 deletions

View File

@ -151,21 +151,21 @@
\subsection{Advanced Management of Pictures} \subsection{Advanced Management of Pictures}
\begin{frame}{\insertsubsection} \begin{frame}{\insertsubsection}
\begin{fancycolumns}[t] \begin{mycolumns}[t]
\begin{example}{\texttt{\textbackslash pic} command} \begin{example}{\texttt{\textbackslash pic} command}
\centering\pic[width=0.5\textwidth,trim={.2\width} {.2\height} {.2\width} {.2\height},clip]{example-image} \centering\pic[width=0.5\textwidth,trim={.2\width} {.2\height} {.2\width} {.2\height},clip]{example-image}
\end{example} \end{example}
\begin{note}{Explanation} \begin{note}{Explanation}
Using the command \texttt{\textbackslash pic\{filename\}} a picture can be included. It works like \texttt{\textbackslash adjincludegraphics} and therefore supports advanced options like \texttt{trim}. Using the command \texttt{\textbackslash pic\{filename\}} a picture can be included. It works like \texttt{\textbackslash adjincludegraphics} and therefore supports advanced options like \texttt{trim}.
\end{note} \end{note}
\nextcolumn \mynextcolumn
\begin{example}{Automatic Links} \begin{example}{Automatic Links}
\centering\pic[width=0.5\textwidth]{example-image} % omit file extension of the image picture \centering\pic[width=0.5\textwidth]{example-image} % omit file extension of the image picture
\end{example} \end{example}
\begin{note}{Explanation} \begin{note}{Explanation}
In order to automatically add a (source) link to the picture, the link simply has to be stored in a txt-file with the same filename. In order to automatically add a (source) link to the picture, the link simply has to be stored in a txt-file with the same filename.
\end{note} \end{note}
\end{fancycolumns} \end{mycolumns}
\end{frame} \end{frame}
\subsection{Automatic Dark-Mode for Pictures} \subsection{Automatic Dark-Mode for Pictures}

View File

@ -1,4 +1,4 @@
\AtEndPreamble{\usepackage{../fancyupb}} % use the UPB look and feel \AtEndPreamble{\usepackage{\FancyBeamerUPBdir/fancyupb}} % use the UPB look and feel
% ============================================= % =============================================
% FANCY BEAMER % FANCY BEAMER
@ -136,7 +136,7 @@
\def\fancy@titlepage@margin{20pt} \def\fancy@titlepage@margin{20pt}
\newcommand{\@createtitleslide}{ \newcommand{\@createtitleslide}{
{ {
\ifx \fancytitlepicture \empty \else \usebackgroundtemplate{\pic[trim=0 0 0 \fancytitlepictureoffset,clip,width=\paperwidth]{\fancytitlepicture}} \fi \ifx \fancytitlepicture \empty \else \usebackgroundtemplate{\pic[trim=-1000 0 500 -235,width=.8\paperwidth]{\fancytitlepicture}} \fi
\begin{frame}[plain] \begin{frame}[plain]
\vskip0pt plus 1filll \vskip0pt plus 1filll
\begin{beamercolorbox}[wd=\paperwidth,ht=4.5ex,dp=2ex,right]{titlebox} \begin{beamercolorbox}[wd=\paperwidth,ht=4.5ex,dp=2ex,right]{titlebox}

View File

@ -43,5 +43,4 @@
\UpdateBoxColor{note}{red} \UpdateBoxColor{note}{red}
% use official logos % use official logos
\fancylogos{upb,upb-triangles} \setpaths{{pics/}{\FancyBeamerUPBdir/pics/}}
\setpaths{{pics/}{../pics/}}

Binary file not shown.