Skip to content

Commit

Permalink
Use Fira font also for math
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasquale Africa committed Mar 9, 2022
1 parent e169076 commit c8e4e08
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Fix frame numbering on frames when both `noframenumbering` and `allowframebreaks` options are used.
Use Fira font also for math.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Focus v3.2.0
# Focus v3.3.0
A presentation theme for LaTeX Beamer that aims at a clean and minimalist design,
so to minimize distractions and put the focus directly on the content.

Expand Down
2 changes: 1 addition & 1 deletion beamerouterthemefocus.sty
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@

% Enable noframenumbering option.
\define@key{beamerframe}{noframenumbering}[true]{%
\setbeamertemplate{footline}[none]%
\setbeamertemplate{footline}[noframenumbering]%
\setlength{\focus@pbar@height}{0cm}%
\focus@calculatefootheight%
}
Expand Down
14 changes: 10 additions & 4 deletions beamerthemefocus.sty
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
% along with beamerthemefocus. If not, see <http://www.gnu.org/licenses/>.

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthemefocus}[2022/02/21 v3.2.0 Focus Beamer theme]
\ProvidesPackage{beamerthemefocus}[2022/03/09 v3.3.0 Focus Beamer theme]

\mode<presentation>

Expand All @@ -44,11 +44,17 @@
\if@focus@loadfirafonts
\RequirePackage[T1]{fontenc}

\PassOptionsToPackage{type1}{FiraSans}
\PassOptionsToPackage{type1}{FiraMono}

\PassOptionsToPackage{sfdefault}{FiraSans}
\RequirePackage{FiraSans}

\RequirePackage{FiraMono}

\RequirePackage{firamath-otf}
\unimathsetup{
math-style = ISO,
bold-style = ISO,
mathrm = sym
}
\fi

\usecolortheme{focus}
Expand Down
Binary file modified focus-demo.pdf
100644 → 100755
Binary file not shown.
13 changes: 8 additions & 5 deletions focus-demo.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
% !TeX TS-program = xelatex
% !BIB TS-program = bibtex

% Full instructions available at:
% https://github.com/elauksap/focus-beamertheme

Expand Down Expand Up @@ -41,14 +44,15 @@
\end{frame}

\begin{frame}{Typesetting and Math}
The packages \texttt{inputenc} and \texttt{FiraSans}\footnote{\url{https://fonts.google.com/specimen/Fira+Sans}}\textsuperscript{,}\footnote{\url{http://mozilla.github.io/Fira/}} are used to properly set the main fonts.
The packages \texttt{fontenc} and \texttt{FiraSans}\footnote{\url{https://fonts.google.com/specimen/Fira+Sans}}\textsuperscript{,}\footnote{\url{http://mozilla.github.io/Fira/}} are used to properly set the main fonts.
\vfill
This theme provides styling commands to typeset \emph{emphasized}, \alert{alerted}, \textbf{bold}, \textcolor{example}{example text}, \dots
\vfill
\texttt{FiraSans} also provides support for mathematical symbols:
\begin{equation*}
e^{i\pi} + 1 = 0.
\end{equation*}
\begin{align*}
e^{i\pi} + 1 & = 0, \\
\int_{-\infty}^\infty e^{-x^2}\,\mathrm{d}x & = \sqrt{\pi}.
\end{align*}
\end{frame}

\section{Section 2}
Expand Down Expand Up @@ -138,7 +142,6 @@
\end{frame}

\begin{frame}{Backup frame}
\usebeamercolor[fg]{normal text}
This is a backup frame, useful to include additional material for questions from the audience.
\vfill
The package \texttt{appendixnumberbeamer} is used not to number appendix frames.
Expand Down
Binary file modified focus-demo/demo-typeset.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c8e4e08

Please sign in to comment.