...
 
Commits (3)
......@@ -8,7 +8,7 @@
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% https://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
......@@ -28,6 +28,7 @@
\RequirePackage{graphicx}
\RequirePackage{hyperref}
\RequirePackage{ifthen}
\RequirePackage{xargs}
\RequirePackage[overlay,absolute]{textpos}
% counter to build references between linked images
......@@ -46,17 +47,21 @@
% use this command to link some content to a large picture at the end of your slides
% example:
% \linkimage{\copyrightbox{\includegraphics[height=3em]{photo2}}{Thomas Fischer}}{photo2}
% \linkimage[optional cation]{\beamerbutton{Show Photo}}{photo2}
\newcommand{\linkimage}[3][]{%
% \linkimage[optional caption]{\beamerbutton{Show Photo}}{photo2}
% \linkimage[optional caption][green]{\beamerbutton{Show Photo}}{photo2}
\newcommandx*{\linkimage}[4][1=,2=black]{%
% create link anchor where link from document's end points to
\hypertarget{linkimagerefbackward\arabic{linkimagecounter}}{%
% create link pointing forward to link source in frames at document's end
\hyperlink{linkimagerefforward\arabic{linkimagecounter}}{%
#2%
#3%
}} % close both hypertarget and hyperlink
\immediate\write\linkimageoutputstream{#3}%
% write image filename
\immediate\write\linkimageoutputstream{#4}%
% write caption for target's beamer frame
\immediate\write\linkimageoutputstream{#1}%
% write background color for target's beamer frame
\immediate\write\linkimageoutputstream{#2}%
% step counter
\addtocounter{linkimagecounter}{1}%
}
......@@ -79,14 +84,17 @@
\endlinechar=-1\immediate\read\linkimageinputstream to \linkimagefilename
% read caption for target's beamer frame
\endlinechar=-1\immediate\read\linkimageinputstream to \linkimagecaption
% read background color for target's beamer frame
\endlinechar=-1\immediate\read\linkimageinputstream to \linkimagebackgroundcolor
\begingroup%
\ifthenelse{\equal{\linkimagecaption}{}}{%
% no title
\colorlet{backgroundcolor}{black}%
\colorlet{backgroundcolor}{\linkimagebackgroundcolor}%
\mode<handout>{%
% handouts always have white background to save paper
\colorlet{backgroundcolor}{white}%
}% \mode<handout>
% black background
% set background
\setbeamercolor{background canvas}{bg=backgroundcolor}
\begin{frame}[plain]%
\begin{textblock*}{\paperwidth}(0mm,0mm)%
......@@ -106,6 +114,7 @@
\end{frame}
}{%
% with title
% do not set background color if title is given as this frame shall look like a normal frame
% base height for image shall be text body's height
\setlength{\imageheight}{\textheight}
% substract estimated title height from max image height
......
......@@ -160,7 +160,7 @@
\RequirePackage{ragged2e}
\renewcommand{\dot}{%
\DeclareRobustCommand{\senderlinedot}{%
\begin{tikzpicture}[line width=1pt,inner sep=0pt]%
\draw[white](-0.6ex,-0.5ex) rectangle (0.6ex,0.5ex);%
\draw[black,fill](0,0) circle(0.05ex);%
......@@ -305,19 +305,19 @@
% sender's name
\ifthenelse{\equal{\TheFromNameShort}{}}{\TheFromName}{\TheFromNameShort}%
% street's (short) name
\dot\ifthenelse{\equal{\TheFromStreetShort}{}}{\TheFromStreet}{\TheFromStreetShort}%
\senderlinedot\ifthenelse{\equal{\TheFromStreetShort}{}}{\TheFromStreet}{\TheFromStreetShort}%
% city code and city's (short) name
\dot\ifthenelse{\equal{\TheFromCityCode}{}}{}{\ifthenelse{\equal{\TheFromCityCC}{}}{\TheFromCityCode}{\TheFromCityCC{}--\TheFromCityCode}} \ifthenelse{\equal{\TheFromCityShort}{}}{\TheFromCity}{\TheFromCityShort}
\ifthenelse{\equal{\TheFromCountryWindow}{}}{}{$\cdot$ \TheFromCountryWindow}
\senderlinedot\ifthenelse{\equal{\TheFromCityCode}{}}{}{\ifthenelse{\equal{\TheFromCityCC}{}}{\TheFromCityCode}{\TheFromCityCC{}--\TheFromCityCode}} \ifthenelse{\equal{\TheFromCityShort}{}}{\TheFromCity}{\TheFromCityShort}%
\ifthenelse{\equal{\TheFromCountryWindow}{}}{}{\senderlinedot\TheFromCountryWindow}
\vspace{-1ex}\rule{0cm}{0cm}\\\hrule\rule{0cm}{0cm}}
\TheToName \\
\ifthenelse{\equal{\TheToStreet}{}}{\vspace*{0.75ex}\\}{\TheToStreet\vspace*{0.6ex}\\}
{\bfseries \ifthenelse{\equal{\TheToCityCC}{}}{\TheToCityCode}{\TheToCityCC --\TheToCityCode} \TheToCity}
\ifthenelse{\equal{\TheToCountry}{}}{}{\vspace*{0.6ex}\\\textbf{\MakeTextUppercase{\TheToCountry}}}
\ifthenelse{\equal{\TheToFax}{}}{}{
\vspace{0.5em}
\TheToName\\%
\ifthenelse{\equal{\TheToStreet}{}}{\vspace*{0.75ex}\\}{\TheToStreet\vspace*{0.6ex}\\}%
{\bfseries\ifthenelse{\equal{\TheToCityCC}{}}{\TheToCityCode}{\TheToCityCC --\TheToCityCode} \TheToCity}%
\ifthenelse{\equal{\TheToCountry}{}}{}{\vspace*{0.6ex}\\\textbf{\MakeTextUppercase{\TheToCountry}}}%
\ifthenelse{\equal{\TheToFax}{}}{}{%
\par%
\vspace{0.5em}%
\fbox{\footnotesize\labelviafaxto{\TheToFax}}}
\ifthenelse{\equal{\TheToEMail}{}}{}{
......@@ -386,7 +386,7 @@
\vspace{2cm plus 3.5cm minus 1.75cm}
{\bfseries \TheSubject}
{\bfseries\TheSubject}
\vspace{1cm plus 1cm minus 0.75cm}
......