Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: part page navigation bar #90

Merged
merged 2 commits into from
Mar 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion beamercolorthemesjtubeamer.sty

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion beamerfontthemesjtubeamer.sty

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion beamerinnerthemesjtubeamer.sty

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion beamerouterthemesjtubeamer.sty

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion beamerthemesjtubeamer.sty

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions sjtucover.sty

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sjtuvi.sty

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/source/beamercolorthemesjtubeamer.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
% \iffalse
%<*package>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamercolorthemesjtubeamer}[2022/03/10 sjtubeamer color theme v2.5.6]
\ProvidesPackage{beamercolorthemesjtubeamer}[2022/03/21 sjtubeamer color theme v2.5.7]
%</package>
% \fi
% \CheckSum{0}
Expand Down
2 changes: 1 addition & 1 deletion src/source/beamerfontthemesjtubeamer.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
% \iffalse
%<*package>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerfontthemesjtubeamer}[2022/03/10 sjtubeamer font theme v2.5.6]
\ProvidesPackage{beamerfontthemesjtubeamer}[2022/03/21 sjtubeamer font theme v2.5.7]
%</package>
% \fi
% \CheckSum{0}
Expand Down
2 changes: 1 addition & 1 deletion src/source/beamerinnerthemesjtubeamer.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
% \iffalse
%<*package>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerinnerthemesjtubeamer}[2022/03/10 sjtubeamer inner theme v2.5.6]
\ProvidesPackage{beamerinnerthemesjtubeamer}[2022/03/21 sjtubeamer inner theme v2.5.7]
%</package>
% \fi
% \CheckSum{0}
Expand Down
2 changes: 1 addition & 1 deletion src/source/beamerouterthemesjtubeamer.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
% \iffalse
%<*package>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerouterthemesjtubeamer}[2022/03/10 sjtubeamer outer theme v2.5.6]
\ProvidesPackage{beamerouterthemesjtubeamer}[2022/03/21 sjtubeamer outer theme v2.5.7]
%</package>
% \fi
% \CheckSum{0}
Expand Down
2 changes: 1 addition & 1 deletion src/source/beamerthemesjtubeamer.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
% ------------------------------------------------------------------- \fi
% \iffalse
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthemesjtubeamer}[2022/03/10 sjtubeamer parent theme v2.5.6]
\ProvidesPackage{beamerthemesjtubeamer}[2022/03/21 sjtubeamer parent theme v2.5.7]
% \fi
%
% \subsection{Parent Theme}
Expand Down
21 changes: 11 additions & 10 deletions src/source/sjtucover.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
% \iffalse
%<*package>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{sjtucover}[2022/03/10 cover library for sjtubeamer v2.5.6]
\ProvidesPackage{sjtucover}[2022/03/21 cover library for sjtubeamer v2.5.7]
%</package>
% \fi
% \CheckSum{0}
Expand Down Expand Up @@ -547,17 +547,18 @@
\par\vskip4pt
\usebeamerfont{part title}\insertpart\par
% \end{macrocode}
% Since navigation bar is packaged, to modify the color, you have to change the \verb"section in head/foot" beamer color. Here, the first move is to save the current color to a temporary variable. After the insertion, the previous color should be restored.
% Since navigation bar is packaged, to modify the color, you have to change the \verb"section in head/foot" beamer color. Here, use a group to make the temporary change.
% Instead of using \verb"\insertnavigation" macro, use \verb"\insertsectionnavigationhorizontal" macro for a better control of long navigation bar.
% \begin{macrocode}
\hbox to \textwidth{
\usebeamerfont{footline}%
\setbeamercolor{tempcolor}{fg=section in head/foot.fg}
\setbeamercolor{section in head/foot}{use=palette primary,
fg=palette primary.fg,bg=}
\hfill
\insertnavigation{0.4\textwidth}
\hspace*{1cm}
\setbeamercolor{section in head/foot}{fg=tempcolor.fg}
{
\usebeamerfont{footline}
\setbeamercolor{section in head/foot}{use=palette primary,
fg=palette primary.fg,bg=}
\let\navwidth\textwidth
\advance\navwidth by -32pt
\insertsectionnavigationhorizontal{\navwidth}{\hskip0pt plus1filll}{\hskip-.3cm}\hskip11pt
}
}
\end{beamercolorbox}
\endgroup
Expand Down
2 changes: 1 addition & 1 deletion src/source/sjtuvi.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
% \iffalse
%<*package>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{sjtuvi}[2022/03/10 Visual Identity System library for sjtubeamer v2.5.6]
\ProvidesPackage{sjtuvi}[2022/03/21 Visual Identity System library for sjtubeamer v2.5.7]
%</package>
% \fi
% \CheckSum{0}
Expand Down