Skip to content

Commit 0dbae0b

Browse files
Improve title legibility on the L08 dividers and mini-lecture subtitles
Four Lecture 8 section dividers use light-background images (the Jupiter, Earth and Mercury interiors and the seismic-ray diagram), so the white section title washed out under the navy overlay. Give the section-divider macro an optional overlay-opacity argument and raise it to 0.65 on those four dividers; every other deck keeps the 0.45 default. The mini-lecture title slides set their subtitle in a near-white fill that reads poorly where the background image is light, as on the Tutorial 4 slide over the Earth-interior image. Set the subtitle to solid white and bold in the shared title-page template, so it stays legible on every mini-lecture. Rebuild the Lecture 8 web PDF and the four mini-lecture web PDFs.
1 parent 2387161 commit 0dbae0b

7 files changed

Lines changed: 12 additions & 10 deletions

File tree

168 KB
Binary file not shown.
-5.08 KB
Binary file not shown.
5 Bytes
Binary file not shown.
2 Bytes
Binary file not shown.

book/_static/slides/lecture08.pdf

46 Bytes
Binary file not shown.

slides/common/beamerthemeIPS.sty

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
\setbeamercolor{framesubtitle}{fg=ipsAccent}
2727

2828
\setbeamercolor{title}{fg=ipsBackground, bg=ipsPrimary}
29-
\setbeamercolor{subtitle}{fg=ipsLightFill}
29+
\setbeamercolor{subtitle}{fg=white}
3030
\setbeamercolor{author}{fg=ipsLightFill}
3131
\setbeamercolor{institute}{fg=ipsLightFill}
3232
\setbeamercolor{date}{fg=ipsLightFill}
@@ -63,7 +63,7 @@
6363
\renewcommand{\familydefault}{\sfdefault}
6464

6565
\setbeamerfont{title}{size=\Large, series=\bfseries}
66-
\setbeamerfont{subtitle}{size=\normalsize}
66+
\setbeamerfont{subtitle}{size=\normalsize, series=\bfseries}
6767
\setbeamerfont{frametitle}{size=\large, series=\bfseries}
6868
\setbeamerfont{framesubtitle}{size=\small}
6969
\setbeamerfont{footline}{size=\tiny}
@@ -185,8 +185,10 @@
185185
}
186186

187187
% ── Section divider slides ──────────────────────────────────
188-
% Set per-section background: \sectionimage{filename}{credit text}
189-
\newcommand{\sectionimage}[2]{\def\ips@secimg{#1}\def\ips@seccredit{#2}}
188+
% Set per-section background: \sectionimage[overlay opacity]{filename}{credit text}
189+
% The optional first argument darkens the navy overlay for light-background
190+
% images so the white title stays legible; it defaults to 0.45.
191+
\newcommand{\sectionimage}[3][0.45]{\def\ips@secimg{#2}\def\ips@seccredit{#3}\def\ips@secopacity{#1}}
190192
\sectionimage{}{}% default empty
191193

192194
\AtBeginSection[]{%
@@ -197,7 +199,7 @@
197199
\fill[ipsPrimary] (current page.north west) rectangle (current page.south east);
198200
\else
199201
\ipscontain{\ips@secimg}
200-
\fill[ipsPrimary, opacity=0.45] (current page.north west) rectangle (current page.south east);
202+
\fill[ipsPrimary, opacity=\ips@secopacity] (current page.north west) rectangle (current page.south east);
201203
\fi
202204
% Section title
203205
\node[anchor=center] at (current page.center) {%

slides/lecture08/lecture08.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353

5454
% ════════════════════════════════════════════════════════════
55-
\sectionimage{seismic_waves}{Seismic P-wave paths through Earth. Credit: Wikimedia Commons, public domain}
55+
\sectionimage[0.65]{seismic_waves}{Seismic P-wave paths through Earth. Credit: Wikimedia Commons, public domain}
5656
\section{Probing planetary interiors}
5757
% ════════════════════════════════════════════════════════════
5858

@@ -271,7 +271,7 @@ \section{Blackboard derivation: moment of inertia factor}
271271

272272

273273
% ════════════════════════════════════════════════════════════
274-
\sectionimage{jupiter_interior}{Jupiter's interior. Credit: NASA/JPL-Caltech/SwRI/John E. Connerney (PIA25062)}
274+
\sectionimage[0.65]{jupiter_interior}{Jupiter's interior. Credit: NASA/JPL-Caltech/SwRI/John E. Connerney (PIA25062)}
275275
\section{Equations of state}
276276
% ════════════════════════════════════════════════════════════
277277

@@ -394,7 +394,7 @@ \section{Equations of state}
394394

395395

396396
% ════════════════════════════════════════════════════════════
397-
\sectionimage{earth_interior}{Earth's interior. Credit: NASA/JPL-Caltech/SwRI/John E. Connerney (PIA25063)}
397+
\sectionimage[0.65]{earth_interior}{Earth's interior. Credit: NASA/JPL-Caltech/SwRI/John E. Connerney (PIA25063)}
398398
\section{Earth's interior}
399399
% ════════════════════════════════════════════════════════════
400400

@@ -642,7 +642,7 @@ \section{Mantle rheology \& convection}
642642
\breakslide
643643

644644
% ════════════════════════════════════════════════════════════
645-
\sectionimage{earth_interior}{Earth's interior. Credit: NASA/JPL-Caltech/SwRI/John E. Connerney (PIA25063)}
645+
\sectionimage[0.65]{earth_interior}{Earth's interior. Credit: NASA/JPL-Caltech/SwRI/John E. Connerney (PIA25063)}
646646
\section{Phase transitions in the mantle}
647647
% ════════════════════════════════════════════════════════════
648648

@@ -731,7 +731,7 @@ \section{Phase transitions in the mantle}
731731

732732

733733
% ════════════════════════════════════════════════════════════
734-
\sectionimage{mercury_interior}{Mercury's layered interior. After Margot et al.\ (2018)}
734+
\sectionimage[0.65]{mercury_interior}{Mercury's layered interior. After Margot et al.\ (2018)}
735735
\section{Comparative terrestrial interiors}
736736
% ════════════════════════════════════════════════════════════
737737

0 commit comments

Comments
 (0)