Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Germain-C2S
Beamer TPT NG
Commits
75a201b1
Commit
75a201b1
authored
May 16, 2020
by
Cédric Ware
Browse files
Fix helvet font selection.
More flexible dimensions in frame title, enable on-the-fly change.
parent
8a9bbddf
Changes
1
Hide whitespace changes
Inline
Side-by-side
texinputs/beamerthemetptnew.sty
View file @
75a201b1
...
...
@@ -56,8 +56,8 @@
logoipp/.is if=tpt@logoipp,
helvet/.is choice,
helvet/.default=true,
helvet/false/.code=
{
\let\sfdefault
=
\tpt
@save@sffamily
}
,
helvet/true/.code=
{
\renewcommand\sfdefault
{
phv
}}
,
helvet/false/.code=
{
\let\sfdefault
=
\tpt
@save@sffamily
\normalfont
}
,
helvet/true/.code=
{
\renewcommand\sfdefault
{
phv
}
\normalfont
}
,
nohelvet/.style=
{
helvet=false
}
,
framecount/.is choice,
framecount/false/.code=
{
\setbeamertemplate
{
page in head/foot
}
[plain]
}
,
...
...
@@ -366,23 +366,28 @@
% Frame title
\tpt
@deflength
{
\tptframetitlesep
}{
3ex
}
\tpt
@deflength
{
\tptframetitlefriezewidth
}{
19.5mm
}
\tpt
@deflength
{
\tptframetitlefriezeheight
}{
5mm
}
\defbeamertemplate*
{
frametitle
}{
tpt default
}
[1][left]
{
\ifbeamercolorempty
[bg]
{
frametitle
}{}{
\nointerlineskip
}
%
\
@
tempdima=
\paperwidth
%
\
advance\@
tempdima by -1.95cm
% les 3 blocs de couleur
\advance\@
tempdima by -3ex
%
\
setlength
{
\@
tempdima
}{
%
\
dimexpr
\paperwidth
-
\tptframetitlefriezewidth
-
\tptframetitlesep
\relax
}
%
\begin{beamercolorbox}
[sep=0cm,#1,wd=
\paperwidth
]
{
frametitle
}
\usebeamerfont
{
frametitle
}
%
\if
@tempswa
\else\csname
beamer@fte#1
\endcsname\fi
%
\begin{minipage}
[b]
{
1.95cm
}
\begin{minipage}
[b]
{
\tptframetitlefriezewidth
}
\iftpt
@infolines
\vspace*
{
.15cm
}
\else\vspace*
{
.5cm
}
\fi
\mbox
{
%
\tptfrieze
{
0.65cm
}{
.5cm
}{
%
\tptfrieze
{
%
0.333
\tptframetitlefriezewidth
}{
\tptframetitlefriezeheight
}{
%
page in head/foot.bg,dept in head/foot.bg,title in head/foot.bg
}
}
\par
%
\end{minipage}
\hspace*
{
1ex
}
\end{minipage}
%
\hspace*
{
\tptframetitlesep
}
%
\begin{minipage}
[c]
{
\@
tempdima
}
\ifx\insertframesubtitle\@
empty
%
\strut\insertframetitle\strut\par
%
...
...
@@ -448,6 +453,10 @@
\fi
}
%
% Macro pour recalculer la hauteur des haut et bas de page.
%
\newcommand*\tptcalculateheadfoot
{
\beamer
@calculateheadfoot
}
% .. from tptthemtheme?
% Contents frame (FIXME part frame option).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment