beamerfontthemeneo.dtx 14.4 KB
Newer Older
1
% \iffalse meta-comment -------------------------------------------------------
Bernhard Heinloth's avatar
Bernhard Heinloth committed
2
3
4
% i4neo template 2017 by Bernhard Heinloth
% based on the metropolis template by Matthias Vogelgesang et al.
%     https://github.com/matze/mtheme/
5
% and the original template was based on the HSRM theme by Benjamin Weiss.
Benjamin Weiss's avatar
Benjamin Weiss committed
6
%
7
8
9
% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
% International License (https://creativecommons.org/licenses/by-sa/4.0/).
% ------------------------------------------------------------------------- \fi
Benjamin Weiss's avatar
Benjamin Weiss committed
10
11
% \iffalse
%<*package>
12
\NeedsTeXFormat{LaTeX2e}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
13
\ProvidesPackage{beamerfontthemeneo}[2017/10/01 i4neo font theme]
Benjamin Weiss's avatar
Benjamin Weiss committed
14
15
16
17
18
19
%</package>
% \fi
% \CheckSum{0}
% \StopEventually{}
% \iffalse
%<*package>
20
% ------------------------------------------------------------------------- \fi
Benjamin Weiss's avatar
Benjamin Weiss committed
21
%
22
% \subsection{\themename font theme}
Benjamin Weiss's avatar
Benjamin Weiss committed
23
%
Ross Churchley's avatar
Ross Churchley committed
24
25
26
27
28
29
% A |beamer| font theme sets the style of the font used in the document.
%
%
%
% \subsubsection{Package dependencies}
%
Benjamin Weiss's avatar
Benjamin Weiss committed
30
%    \begin{macrocode}
Benjamin Weiss's avatar
Benjamin Weiss committed
31
32
33
\RequirePackage{etoolbox}
\RequirePackage{ifxetex}
\RequirePackage{ifluatex}
34
\RequirePackage{pgfopts}
Benjamin Weiss's avatar
Benjamin Weiss committed
35
36
%    \end{macrocode}
%
Ross Churchley's avatar
Ross Churchley committed
37
38
39
40
41
42
43
%
%
% \subsubsection{Load Fira fonts}
%
% If the presentation is compiled with Xe\LaTeX{} or Lua\LaTeX{}, the fontspec
% package is loaded and we search for the |Fira| fonts.
%
Benjamin Weiss's avatar
Benjamin Weiss committed
44
45
%    \begin{macrocode}
\ifboolexpr{bool {xetex} or bool {luatex}}{
46
47
48
49
50
  \@ifpackageloaded{fontspec}{
    \PassOptionsToPackage{no-math}{fontspec}
  }{
    \RequirePackage[no-math]{fontspec}
  }
Benjamin Weiss's avatar
Benjamin Weiss committed
51
52
53
%    \end{macrocode}
%
%    \begin{macrocode}
54
  \IfFileExists{FiraSans-Regular.otf}{
55
56
    \defaultfontfeatures{
          Scale     = 1.0,
Bernhard Heinloth's avatar
Bernhard Heinloth committed
57
58
          Extension = .otf
    }
59
  }{
60
61
62
    \PackageWarning{beamerthemeneo}{%
      FiraSans font not found in path, therefore using system fonts. %
      Make sure you have the fonts installed.%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
63
    }
64
65
66
67
68
  }
  \setmonofont
    [ Numbers = {Monospaced,Lining},
      UprightFont    = *-Regular ,
      ItalicFont     = *-Regular ,
Bernhard Heinloth's avatar
Bernhard Heinloth committed
69
70
      BoldFont       = *-Medium ,
      BoldItalicFont = *-Medium ,
71
72
73
    ]
    {FiraMono}
  \newcommand{\neo@fontsave}{
Bernhard Heinloth's avatar
Bernhard Heinloth committed
74
    \let\firaneofamily\sfdefault
75
76
77
78
79
80
81
    \renewcommand*\familydefault{\firaneofamily}
  }
  \newcommand{\neo@fontlight}{
    \setsansfont[
        Numbers = {OldStyle, Monospaced},
        UprightFont    = *-Light ,
        ItalicFont     = *-LightItalic ,
Bernhard Heinloth's avatar
Bernhard Heinloth committed
82
        BoldFont       = *-Regular ,
83
        BoldItalicFont = *-Italic ,
84
85
86
87
88
89
90
91
      ]{FiraSans}
    \neo@fontsave
  }
  \newcommand{\neo@fontbook}{
    \setsansfont[
        Numbers = {OldStyle, Monospaced},
        UprightFont    = *-Book ,
        ItalicFont     = *-BookItalic ,
Bernhard Heinloth's avatar
Bernhard Heinloth committed
92
93
        BoldFont       = *-Medium ,
        BoldItalicFont = *-MediumItalic ,
94
95
96
97
98
99
100
      ]{FiraSans}
    \neo@fontsave
  }
  \newcommand{\neo@fontregular}{
    \setsansfont[
        Numbers = {OldStyle, Monospaced},
        UprightFont    = *-Regular ,
101
        ItalicFont     = *-Italic ,
Bernhard Heinloth's avatar
Bernhard Heinloth committed
102
103
        BoldFont       = *-SemiBold ,
        BoldItalicFont = *-SemiBoldItalic ,
104
105
106
      ]{FiraSans}
    \neo@fontsave
  }
Benjamin Weiss's avatar
Benjamin Weiss committed
107
108
109
110
  \AtBeginEnvironment{tabular}{%
    \addfontfeature{Numbers={Monospaced}}%
  }
}{%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
111
112
113
114
  \RequirePackage[utf8]{inputenc}
  \IfFileExists{FiraSans.sty}{
    \RequirePackage[T1]{fontenc}
    \RequirePackage[sfdefault]{FiraSans}
115
    \RequirePackage[nomap,lining]{FiraMono}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
116
    \def\bfseries@tt{mb}
117
118
119
120
    \newcommand{\neo@fontsave}{
      \edef\familydefault{\sfdefault}
      \edef\seriesdefault{\mdseries@sf}
    }
Bernhard Heinloth's avatar
Bernhard Heinloth committed
121
122
123
    \newcommand{\neo@fontlight}{
      \def\mdseries@sf{l}
      \def\bfseries@sf{m}
124
125
126
      \neo@fontsave
    }
    \newcommand{\neo@fontbook}{
127
128
      \def\mdseries@sf{sl}
      \def\bfseries@sf{medium}
129
      \neo@fontsave
Bernhard Heinloth's avatar
Bernhard Heinloth committed
130
131
    }
    \newcommand{\neo@fontregular}{
132
      \def\mdseries@sf{sl}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
133
      \def\bfseries@sf{sb}
134
      \neo@fontsave
Bernhard Heinloth's avatar
Bernhard Heinloth committed
135
136
137
138
    }
  }{
    \PackageWarning{beamerthemeneo}{%
      You need to install the Fira Fonts package or compile with XeLaTeX or %
Bernhard Heinloth's avatar
Bernhard Heinloth committed
139
      LuaLaTeX to use the included Fira fonts%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
140
    }
Benjamin Weiss's avatar
Benjamin Weiss committed
141
142
143
144
  }
}
%    \end{macrocode}
%
Ross Churchley's avatar
Ross Churchley committed
145
146
147
148
% This concludes the portion of the code which is only run when compiled with
% Xe\LaTeX{} or Lua\LaTeX{}. The remainder of this package applies regardless
% of the compiling engine.
%
Benjamin Weiss's avatar
Benjamin Weiss committed
149
150
151
152
153
154
%
%
% \subsubsection{General font definitions}
%
%    \begin{macrocode}
\setbeamerfont{title}{size=\Large,%
155
                      series=\bfseries}
Benjamin Weiss's avatar
Benjamin Weiss committed
156
157
158
\setbeamerfont{author}{size=\small}
\setbeamerfont{date}{size=\small}
\setbeamerfont{section title}{size=\Large,%
159
                              series=\bfseries}
Benjamin Weiss's avatar
Benjamin Weiss committed
160
161
162
163
\setbeamerfont{block title}{size=\normalsize,%
                            series=\bfseries}
\setbeamerfont{block title alerted}{size=\normalsize,%
                                    series=\bfseries}
164
\setbeamerfont*{subtitle}{size=\large}
Benjamin Weiss's avatar
Benjamin Weiss committed
165
\setbeamerfont{frametitle}{size=\large,%
166
                           series=\bfseries}
167
168
\setbeamerfont{framesubtitle}{parent=frametitle,%
                              size=\footnotesize}
Benjamin Weiss's avatar
Benjamin Weiss committed
169
170
171
172
173
174
175
176
177
178
179
180
\setbeamerfont{caption}{size=\small}
\setbeamerfont{caption name}{series=\bfseries}
\setbeamerfont{description item}{series=\bfseries}
\setbeamerfont{page number in head/foot}{size=\scriptsize}
\setbeamerfont{bibliography entry author}{size=\normalsize,%
                                          series=\normalfont}
\setbeamerfont{bibliography entry title}{size=\normalsize,%
                                         series=\bfseries}
\setbeamerfont{bibliography entry location}{size=\normalsize,%
                                            series=\normalfont}
\setbeamerfont{bibliography entry note}{size=\small,%
                                        series=\normalfont}
181
182
\setbeamerfont{standout}{size=\Large,%
                         series=\bfseries}
Benjamin Weiss's avatar
Benjamin Weiss committed
183
184
%    \end{macrocode}
%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
185
186
187
188
189
190
191
192
193
% \subsubsection{Font style options}
%
% \begin{macro}{titleformat title}
%    Controls the overall font style.
%    \begin{macrocode}
\pgfkeys{
  /neo/font/style/.cd,
    .is choice,
    light/.code={\neo@fontlight},
194
    book/.code={\neo@fontbook},
Bernhard Heinloth's avatar
Bernhard Heinloth committed
195
196
197
198
    regular/.code={\neo@fontregular},
}
%    \end{macrocode}
% \end{macro}
199
200
201
202
%
%
% \subsubsection{Title format options}
%
203
% \begin{macro}{titleformat title}
204
205
206
%    Controls the format of the title.
%    \begin{macrocode}
\pgfkeys{
Bernhard Heinloth's avatar
Bernhard Heinloth committed
207
  /neo/font/titleformat title/.cd,
208
209
    .is choice,
    regular/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
210
      \let\neo@titleformat\@empty%
211
212
213
      \setbeamerfont{title}{shape=\normalfont}%
    },
    smallcaps/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
214
      \let\neo@titleformat\@empty%
215
216
217
      \setbeamerfont{title}{shape=\scshape}%
    },
    allsmallcaps/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
218
      \let\neo@titleformat\lowercase%
219
      \setbeamerfont{title}{shape=\scshape}%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
220
      \PackageWarning{beamerthemeneo}{%
221
        Be aware that titleformat title=allsmallcaps can lead to problems%
222
223
224
      }
    },
    allcaps/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
225
      \let\neo@titleformat\uppercase%
226
      \setbeamerfont{title}{shape=\normalfont}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
227
      \PackageWarning{beamerthemeneo}{%
228
        Be aware that titleformat title=allcaps can lead to problems%
229
230
231
232
233
234
      }
    },
}
%    \end{macrocode}
% \end{macro}
%
235
% \begin{macro}{titleformat subtitle}
236
237
238
%    Control the format of the subtitle.
%    \begin{macrocode}
\pgfkeys{
Bernhard Heinloth's avatar
Bernhard Heinloth committed
239
  /neo/font/titleformat subtitle/.cd,
240
241
    .is choice,
    regular/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
242
      \let\neo@subtitleformat\@empty%
243
244
245
      \setbeamerfont{subtitle}{shape=\normalfont}%
    },
    smallcaps/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
246
      \let\neo@subtitleformat\@empty%
247
248
249
      \setbeamerfont{subtitle}{shape=\scshape}%
    },
    allsmallcaps/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
250
      \let\neo@subtitleformat\lowercase%
251
      \setbeamerfont{subtitle}{shape=\scshape}%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
252
      \PackageWarning{beamerthemeneo}{%
253
        Be aware that titleformat subtitle=allsmallcaps can lead to problems%
254
255
256
      }
    },
    allcaps/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
257
      \let\neo@subtitleformat\uppercase%
258
      \setbeamerfont{subtitle}{shape=\normalfont}%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
259
      \PackageWarning{beamerthemeneo}{%
260
        Be aware that titleformat subtitle=allcaps can lead to problems%
261
262
263
264
265
266
      }
    },
}
%    \end{macrocode}
% \end{macro}
%
267
% \begin{macro}{titleformat section}
268
269
270
%    Controls the format of the section title.
%    \begin{macrocode}
\pgfkeys{
Bernhard Heinloth's avatar
Bernhard Heinloth committed
271
  /neo/font/titleformat section/.cd,
272
273
    .is choice,
    regular/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
274
      \let\neo@sectiontitleformat\@empty%
275
276
277
      \setbeamerfont{section title}{shape=\normalfont}%
    },
    smallcaps/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
278
      \let\neo@sectiontitleformat\@empty%
279
280
281
      \setbeamerfont{section title}{shape=\scshape}%
    },
    allsmallcaps/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
282
      \let\neo@sectiontitleformat\MakeLowercase%
283
      \setbeamerfont{section title}{shape=\scshape}%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
284
      \PackageWarning{beamerthemeneo}{%
285
        Be aware that titleformat section=allsmallcaps can lead to problems%
286
287
288
      }
    },
    allcaps/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
289
      \let\neo@sectiontitleformat\MakeUppercase%
290
      \setbeamerfont{section title}{shape=\normalfont}%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
291
      \PackageWarning{beamerthemeneo}{%
292
        Be aware that titleformat section=allcaps can lead to problems%
293
294
295
296
297
298
299
300
301
302
      }
    },
}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{frametitleformat}
%    Control the format of the frame title.
%    \begin{macrocode}
\pgfkeys{
Bernhard Heinloth's avatar
Bernhard Heinloth committed
303
  /neo/font/titleformat frame/.cd,
304
305
    .is choice,
    regular/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
306
      \let\neo@frametitleformat\@empty%
307
308
309
      \setbeamerfont{frametitle}{shape=\normalfont}%
    },
    smallcaps/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
310
      \let\neo@frametitleformat\@empty%
311
312
313
      \setbeamerfont{frametitle}{shape=\scshape}%
    },
    allsmallcaps/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
314
      \let\neo@frametitleformat\MakeLowercase%
315
      \setbeamerfont{frametitle}{shape=\scshape}%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
316
      \PackageWarning{beamerthemeneo}{%
317
        Be aware that titleformat frame=allsmallcaps can lead to problems%
318
319
320
      }
    },
    allcaps/.code={%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
321
      \let\neo@frametitleformat\MakeUppercase%
322
      \setbeamerfont{frametitle}{shape=\normalfont}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
323
      \PackageWarning{beamerthemeneo}{%
324
        Be aware that titleformat frame=allcaps can lead to problems%
325
326
327
328
329
330
      }
    },
}
%    \end{macrocode}
% \end{macro}
%
331
332
333
334
335
% \begin{macro}{titleformat aliases}
%    Allows |titleformat title| et al. to be used in the |\usetheme|
%    declaration, where \LaTeX{} automatically removes all spaces.
%    \begin{macrocode}
\pgfkeys{
Bernhard Heinloth's avatar
Bernhard Heinloth committed
336
  /neo/font/.cd,
337
338
339
340
341
342
343
344
  titleformattitle/.code=\pgfkeysalso{titleformat title=#1},
  titleformatsubtitle/.code=\pgfkeysalso{titleformat subtitle=#1},
  titleformatsection/.code=\pgfkeysalso{titleformat section=#1},
  titleformatframe/.code=\pgfkeysalso{titleformat frame=#1},
}
%    \end{macrocode}
% \end{macro}
%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
345
% \begin{macro}{\neo@font@setdefaults}
346
347
%    Sets default values for font theme options.
%    \begin{macrocode}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
348
349
\newcommand{\neo@font@setdefaults}{
  \pgfkeys{/neo/font/.cd,
350
    style=book,
351
352
353
354
    titleformat title=regular,
    titleformat subtitle=regular,
    titleformat section=regular,
    titleformat frame=regular,
355
356
357
358
359
360
361
362
  }
}
%    \end{macrocode}
% \end{macro}
%
% We first define hooks to change the case format of the titles.
%
%    \begin{macrocode}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
363
364
365
366
\def\neo@titleformat#1{#1}
\def\neo@subtitleformat#1{#1}
\def\neo@sectiontitleformat#1{#1}
\def\neo@frametitleformat#1{#1}
367
368
369
370
371
372
373
374
375
376
377
%    \end{macrocode}
%
% To make the uppercase and lowercase macros work in the title, subtitle, etc.,
% we have to patch the appropriate |beamer| commands that set their values.
% This solution was suggested by Enrico Gregorio in an answer to
% \href{http://tex.stackexchange.com/questions/112526/}{this StackExchange
% question}.
%
%    \begin{macrocode}
\patchcmd{\beamer@title}%
  {\def\inserttitle{#2}}%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
378
  {\def\inserttitle{\neo@titleformat{#2}}}%
379
  {}%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
380
  {\PackageError{beamerfontthemeneo}{Patching title failed}\@ehc}
381
382
\patchcmd{\beamer@subtitle}%
  {\def\insertsubtitle{#2}}%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
383
  {\def\insertsubtitle{\neo@subtitleformat{#2}}}%
384
  {}%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
385
  {\PackageError{beamerfontthemeneo}{Patching subtitle failed}\@ehc}
386
387
\patchcmd{\sectionentry}
  {\def\insertsectionhead{#2}}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
388
  {\def\insertsectionhead{\neo@sectiontitleformat{#2}}}
389
  {}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
390
  {\PackageError{beamerfontthemeneo}{Patching section title failed}\@ehc}
391
\@tempswafalse
392
393
394
\patchcmd{\beamer@section}
  {\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}}
  {\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
395
    \noexpand\neo@sectiontitleformat{\unexpanded{#1}}}}}
396
397
  {\@tempswatrue}
  {}
398
399
400
\patchcmd{\beamer@section}
  {\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
  {\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
401
    \neo@sectiontitleformat{#1}}}}
402
  {\@tempswatrue}
403
  {}
404
405
406
407
408
409
\patchcmd{\beamer@section}
  {\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}}
  {\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
    \noexpand\neo@sectiontitleformat{\unexpanded{#1}}}}}
  {\@tempswatrue}
  {}
410
411
412
\patchcmd{\beamer@section}
  {\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
  {\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
413
    \noexpand\neo@sectiontitleformat{#1}}}}
414
415
416
  {\@tempswatrue}
  {}
\if@tempswa\else
Bernhard Heinloth's avatar
Bernhard Heinloth committed
417
  \PackageError{beamerfontthemeneo}{Patching section title failed}\@ehc
418
419
\fi
\@tempswafalse
420
421
422
423
424
425
\patchcmd{\beamer@subsection}
  {\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}}
  {\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
    \noexpand\neo@sectiontitleformat{\unexpanded{#1}}}}}
  {\@tempswatrue}
  {}
426
427
428
\patchcmd{\beamer@subsection}
  {\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
  {\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
429
    \neo@sectiontitleformat{#1}}}}
430
  {\@tempswatrue}
431
  {}
432
433
434
\patchcmd{\beamer@subsection}
  {\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
  {\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
435
    \noexpand\neo@sectiontitleformat{#1}}}}
436
437
438
  {\@tempswatrue}
  {}
\if@tempswa\else
Bernhard Heinloth's avatar
Bernhard Heinloth committed
439
  \PackageError{beamerfontthemeneo}{Patching section title failed}\@ehc
440
\fi
441
442
443
444
445
446
447
%    \end{macrocode}
%
% Similarly, to make the |\MakeLowercase| and |\MakeUppercase| macros work in
% the frame title we have to patch |\beamer@@frametitle|.
%
%    \begin{macrocode}
\patchcmd{\beamer@@frametitle}
Joseph Wright's avatar
Joseph Wright committed
448
  {{%
449
450
451
452
453
      \gdef\insertframetitle{{#2\ifnum\beamer@autobreakcount>0\relax{}\space%
      \usebeamertemplate*{frametitle continuation}\fi}}%
    \gdef\beamer@frametitle{#2}%
    \gdef\beamer@shortframetitle{#1}%
    }}
Joseph Wright's avatar
Joseph Wright committed
454
  {{%
Bernhard Heinloth's avatar
Bernhard Heinloth committed
455
      \gdef\insertframetitle{{\neo@frametitleformat{#2}\ifnum%
456
457
458
459
460
461
      \beamer@autobreakcount>0\relax{}\space%
      \usebeamertemplate*{frametitle continuation}\fi}}%
    \gdef\beamer@frametitle{#2}%
    \gdef\beamer@shortframetitle{#1}%
    }}
  {}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
462
  {\PackageError{beamerfontthemeneo}{Patching frame title failed}\@ehc}
463
464
465
466
467
468
469
%    \end{macrocode}
%
%
%
% \subsubsection{Process package options}
%
%    \begin{macrocode}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
470
471
\neo@font@setdefaults
\ProcessPgfPackageOptions{/neo/font}
472
%    \end{macrocode}
Benjamin Weiss's avatar
Benjamin Weiss committed
473
474
475
476
477
% \iffalse
%</package>
% \fi
% \Finale
\endinput