Skip to content
Snippets Groups Projects
Commit ae64e813 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

documentation, many other things

parent 7d71265b
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@
\definecolor{PTBgray}{RGB}{139,139,139}
%\definecolor{PTBbackground}{RGB}{245,244,230}
%\definecolor{PTBbackground}{RGB}{255,255,221}
\definecolor{citecolor}{RGB}{94,186,125}
\setbeamercolor*{normal text}{fg=black}
\setbeamercolor*{frametitle}{fg=black}
......@@ -19,6 +20,13 @@
\setbeamercolor{item projected}{bg=PTBblue}
\setbeamercolor{bibliography entry author}{fg=black}
\setbeamercolor{bibliography entry title}{fg=black}
\setbeamercolor{bibliography entry location}{fg=black}
\setbeamercolor{bibliography entry note}{fg=black}
%\setbeamercolor{bibliography item}{fg=black}
\setbeamercolor*{bibliography item}{fg=citecolor}
%\setbeamercolor{background canvas}{bg=PTBbackground}
\mode <all>
......
......@@ -62,6 +62,6 @@
\setbeamerfont*{subtitle}{size=\small,series=\mdseries}
\setbeamerfont*{author}{size=\small,series=\mdseries}
\setbeamerfont*{date}{size=\small,series=\mdseries}
\setbeamerfont*{frametitle}{size=\Large,series=\bfseries}
\setbeamerfont*{frametitle}{size=\Large,series=\bfseries}
\endinput
......@@ -2,10 +2,20 @@
\mode<presentation>
\setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
%\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.0ex]{headline}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=.02876\paperheight,%
dp=.011504\paperheight]{headline}%
\end{beamercolorbox}}%
\vskip0pt%
}
% Title page
\defbeamertemplate*{title page}{PTB}[1][]{%
\begin{picture}(0,\paperheight)%
\unitlength=.001\paperheight% auf 1000 Höheneinheiten normieren
\unitlength=.001\paperheight% normalized to 1000 height units
\normalcolor\normalfont
\put(.5\textwidth,460){%
\makebox(0,0)[c]{%
......@@ -17,7 +27,7 @@
\IfIsEmpty{\insertsubtitle}{\vfill}{%
\usebeamerfont{subtitle}\insertsubtitle\\[3.5ex]
}
\usebeamerfont{author}\insertauthor\\[2ex]
\mbox{}\usebeamerfont{author}\insertauthor\\[2ex]
\usebeamerfont{date}\insertdate
\end{minipage}}%
}
......@@ -25,7 +35,7 @@
}
\setbeamertemplate{background canvas}{%
\unitlength=.001\paperheight% auf 1000 Höheneinheiten normieren
\unitlength=.001\paperheight% normalized to 1000 height units
\ifnum \insertpagenumber > 1 %
\begin{picture}(0,\paperheight)%
\color{PTBblue}%
......@@ -140,6 +150,8 @@
\fi
}
%\setbeamertemplate{background}[grid][step=1cm]
\mode<all>
\endinput
......@@ -3,8 +3,8 @@
\mode<presentation>
\setbeamertemplate{frametitle}{%
\unitlength=.001\paperheight% auf 1000 Höheneinheiten normieren
\raisebox{-55\unitlength}[0pt][0pt]{%
\unitlength=.001\paperheight% normalized to 1000 height units
\raisebox{-13\unitlength}[0pt][0pt]{%
\begin{minipage}[b]{\textwidth}%
\usebeamercolor{frametitle}\usebeamerfont{frametitle}%
\insertframetitle
......
\listfiles
\documentclass[aspectratio=169]{ptbbeamer}
\newcommand\DeEn[2]{%
\begingroup
\selectlanguage{ngerman}#1\,/\,\selectlanguage{english}\itshape#2%
\endgroup
}
\newcommand*\cmd[1]{\texttt{\textbackslash #1}}
\title[ptbbeamer -- Dokumentation / documentation]{ptbbeamer}
\subtitle{Dokumentation\,/\,\textit{documentation}}
\date{2022/08/01}
\author{Rolf~Niepraschk}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}[t,allowframebreaks]
\frametitle{\DeEn{Anwendung}{Usage}}
\begin{columns}[T]%
\begin{column}{.475\textwidth}
\setlength\rightskip{0pt}% allow hyphenation
\selectlanguage{ngerman}
Die Dokumentenklasse »ptbbeamer« basiert auf der Dokumentenklasse »beamer«,
an die sämtliche Klassenparameter weitergeleitet werden (zu Details
siehe:~\cite{BEAMER}). Dieses Layout entspricht der PTB-Vorgabe (Powerpoint).
Standardmäßig ist die deutsche Spracheinstellung mit neuer Rechtschreibung
aktiviert (\texttt{ngerman}). Die englische Spracheinstellung wird
zusätzlich geladen und kann bei Bedarf aktiviert werden. Ohne besondere
Angabe ist das Seitenverhältnis 4:3. Mit der Klassenoption \texttt{169}
kann das Seitenverhältnis auf 16:9 geändert werden.\\[1ex]
Zum Kompilieren muss \texttt{lualatex} oder \texttt{xelatex} verwendet werden.
\end{column}%
\hfill
\begin{column}{.475\textwidth}
\setlength\rightskip{0pt}% allow hyphenation
\selectlanguage{english} \itshape
The document class ``ptbbeamer'' is based on the document class ``beamer'',
to which all class parameters are forwarded (for details
see:~\cite{BEAMER}). This layout corresponds to the PTB specification
(Powerpoint). By default, the language setting is German with new spelling
activated (\texttt{ngerman}). The English language setting will be
additionally loaded and can be activated if required. Unless otherwise
specified, the aspect ratio is 4:3. With the class option \texttt{169} the
aspect ratio can be changed to 16:9. \\[1ex]
\texttt{lualatex} or \texttt{xelatex} must be used for compiling.
\end{column}%
\end{columns}
\framebreak
\begin{columns}[T]%
\begin{column}{.475\textwidth}
\setlength\rightskip{0pt}% allow hyphenation
\selectlanguage{ngerman}
Die folgenden Makros können verwendet werden:
\begin{itemize}
\setlength\rightskip{0pt}% allow hyphenation
\item\cmd{orgLogo}: Fügt das Logo der betreffenden Organisationseinheit
rechtsbündig im Kopf der Titelseite ein. Als Parameter wird der Dateiname
einer Grafikdatei erwartet (erlaubte Dateitypen: {\ttfamily .pdf, .mps,
.png, .jpg}).
\item\cmd{finalpage}: Fügt innerhalb einer frame-Umgebung eine spezielle
Schlussseite ein. Mit der Angabe der Werte für \texttt{name},
\texttt{email}, \texttt{phone} und \texttt{location} erfolgt die
Konfiguration.
\end{itemize}
\end{column}%
\hfill
\begin{column}{.475\textwidth}
\setlength\rightskip{0pt}% allow hyphenation
\selectlanguage{english} \itshape
The following macros can be used:
\begin{itemize}
\setlength\rightskip{0pt}% allow hyphenation
\item\cmd{orgLogo}: Inserts the logo of the relevant organizational unit
right-aligned in the header of the title page. The file name of a
graphics file is expected as a parameter (permitted file types:
{\ttfamily .pdf, .mps, .png, .jpg}).
\item\cmd{finalpage}: Inserts a special final page within a frame
environment. By specifying the values for \texttt{name}, \texttt{email},
\texttt{phone} and \texttt{location} takes place Configuration.
\end{itemize}
\end{column}%
\end{columns}
\end{frame}
\begin{frame}
\frametitle{\DeEn{\bibname}{\bibname}}
\begin{thebibliography}{99}
\bibitem{BEAMER}[1]
Till Tantau, Joseph Wright, Vedran Miletić:
\newblock The beamer class -- User Guide for version 3.67; May 17, 2022;
\newblock
\href{https://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf}%
{CTAN:~macros/latex/contrib/beamer/doc/beameruserguide.pdf}.
\end{thebibliography}
\end{frame}
\begin{frame}
\finalpage[name=Rolf Niepraschk,email=Rolf.Niepraschk@ptb.de,%
phone=(030) 3481-7316,location=BLN]%
\end{frame}
\end{document}
......@@ -35,7 +35,7 @@
\LoadClass[onlytextwidth]{beamer}
\RequirePackage{babel}
\RequirePackage{amsmath}
\RequirePackage{bookmark,amsmath,ragged2e}
\RequirePackage{unicode-math}
\setsansfont{texgyreheros}[
......@@ -84,18 +84,22 @@
\newcommand*\PTB@contactEMail{}
\newcommand*\PTB@location{}
\newcommand*\orgLogo[1]{%
\gdef\PTB@orgLogo{#1}}
\gdef\PTB@orgLogo{#1}}
%%%citecolor
%\let\raggedright=\RaggedRight
\deftranslation[to = German]{email}{E-Mail}
\deftranslation[to = German]{phone}{Telefon}
\deftranslation[to = German]{NMI}{Nationales Metrologieinstitut}
\deftranslation[to = English]{NMI}{National Metrology Institute}
\hypersetup{%
,bookmarks
,colorlinks
,linkcolor=%
,urlcolor=PTBblue
,citecolor=green,
,breaklinks
,linktocpage
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment