-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathUnBeamer.dtx
1142 lines (1055 loc) · 41.3 KB
/
UnBeamer.dtx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
% \iffalse meta-comment
%
% Copyright (C) 2012 by Guilherme N. Ramos ([email protected])
%
% Este arquivo pode ser distribuído e/ou modificado conforme:
% 1. LaTeX Project Public License e/ou
% 2. GNU Public License.
%
% \fi
%
% \iffalse
%<*driver>
\ProvidesFile{UnBeamer.dtx}
%</driver>
%<*all>
\NeedsTeXFormat{LaTeX2e}[1999/12/01]%
%</all>
%
%<theme>\ProvidesPackage{beamerthemeUnB}[2011/08/01 Tema para apresentações usando Beamer no estilo UnB.]%
%<theme>
%<theme>\ProvidesFile{UnBMarca.pdf}%
%<*theme>
%</theme>
%<theme>\mode<presentation>{
%<theme> \IfFileExists{UnBMarca.pdf}{}% Marca da UnB
%<theme> {%
%<theme> \PackageError{beamerthemeUnB}%
%<theme> {Arquivo 'UnBMarca.pdf' não encontrado.}%
%<theme> {O arquivo com a marca da UnB é fornecido no arquivo ZIP do tema UnBeamer.}%
%<theme> }%
%<*theme>
%</theme>
%<theme> \useinnertheme{UnB}%
%<theme> \useoutertheme{UnB}%
%<theme> \usecolortheme{UnB}%
%<theme> \usefonttheme{UnB}%
%<*theme>
%</theme>
%<theme> % Redefine o frame de título.
%<theme> \titlegraphic{\includegraphics[height=3\baselineskip]{UnBMarca}}%
%<theme> \defbeamertemplate*{title page}{customized}[1][]{%
%<theme> \vbox{}%
%<theme> \vfill%
%<theme> \begin{centering}%
%<theme> \begin{beamercolorbox}[sep=8pt,center,#1]{title}%
%<theme> \usebeamerfont{title}\inserttitle\par%
%<theme> \ifx\insertsubtitle\@empty%
%<theme> \else%
%<theme> \vskip0.25em%
%<theme> {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
%<theme> \fi%
%<theme> \end{beamercolorbox}%
%<theme> %\vskip1em\par
%<theme> \ifx\insertauthor\@empty%
%<theme> \else%
%<theme> \begin{beamercolorbox}[sep=8pt,center,#1]{author}%
%<theme> \usebeamerfont{author}\insertauthor%
%<theme> \end{beamercolorbox}%
%<theme> \fi%
%<theme> \ifx\insertinstitute\@empty%
%<theme> \else%
%<theme> \begin{beamercolorbox}[sep=8pt,center,#1]{institute}%
%<theme> \usebeamerfont{institute}\insertinstitute%
%<theme> \end{beamercolorbox}%
%<theme> \fi%
%<theme> \ifx\insertdate\@empty%
%<theme> \else%
%<theme> \begin{beamercolorbox}[sep=8pt,center,#1]{date}%
%<theme> \usebeamerfont{date}\insertdate%
%<theme> \end{beamercolorbox}\vskip0.5em%
%<theme> \fi%
%<theme> {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}%
%<theme> \end{centering}%
%<theme> \vfill%
%<theme> }%
%<theme>}
%<*theme>
%</theme>
%<theme>\mode<all>
%
%<color>\ProvidesPackage{beamercolorthemeUnB}[2011/08/01 Estilo de cores para UnBeamer.]%
%<*color>
%</color>
%<color>\definecolor{greenUnB}{HTML}{00822E}% Valor web safe: 006633
%<color>\definecolor{blueUnB}{HTML}{003A7A}% Valor web safe: 003366
%<color>\definecolor{redUnB}{HTML}{BC0000}%
%<*color>
%</color>
%<color>\mode<presentation>{
%<color> \setbeamercolor{titlelike}{fg=blueUnB}%
%<*color>
%</color>
%<color> \setbeamercolor{title in head/foot}{fg=blueUnB}%
%<color> \setbeamercolor{author in head/foot}{fg=blueUnB}%
%<color> \setbeamercolor{institute in head/foot}{fg=blueUnB}%
%<*color>
%</color>
%<color> \setbeamercolor{section in toc}{fg=blueUnB}%
%<*color>
%</color>
%<color> \setbeamercolor{alerted text}{fg=redUnB}%
%<color> \setbeamercolor{example text}{fg=greenUnB}%
%<*color>
%</color>
%<color> \setbeamercolor{block body}{bg=blueUnB!10}%
%<color> \setbeamercolor{block body alerted}{bg=redUnB!10}%
%<color> \setbeamercolor{block body example}{bg=greenUnB!10}%
%<color> \setbeamercolor{block title}{fg=white,bg=blueUnB}%
%<color> \setbeamercolor{block title alerted}{fg=white,bg=redUnB}%
%<color> \setbeamercolor{block title example}{fg=white,bg=greenUnB}%
%<color> %%\setbeamercolor{block title}{fg=blueUnB!80!black,bg=blueUnB!30}%
%<color> %%\setbeamercolor{block title alerted}{fg=redUnB!80!black,bg=redUnB!30}%
%<color> %%\setbeamercolor{block title example}{fg=greenUnB!80!black,bg=greenUnB!30}%
%<*color>
%</color>
%<color> \setbeamercolor{description item}{fg=blueUnB}%
%<color> \setbeamercolor{description subitem}{fg=blueUnB}%
%<color> \setbeamercolor{description subsubitem}{fg=blueUnB}%
%<color> \setbeamercolor{enumerate item}{fg=blueUnB}%
%<color> \setbeamercolor{enumerate subitem}{fg=blueUnB}%
%<color> \setbeamercolor{enumerate subsubitem}{fg=blueUnB}%
%<color> \setbeamercolor{itemize item}{fg=blueUnB}%
%<color> \setbeamercolor{itemize subitem}{fg=blueUnB}%
%<color> \setbeamercolor{itemize subsubitem}{fg=blueUnB}%
%<*color>
%</color>
%<color> \setbeamercolor{upper separation line foot}{bg=blueUnB}%
%<color>}
%<*color>
%</color>
%<color>\mode<all>
%
%<font>\ProvidesPackage{beamerfontthemeUnB}[2011/08/01 Estilo de fontes para UnBeamer.]%
%<*font>
%</font>
%<font>\mode<presentation>{
%<font> \setbeamerfont{title}{size=\Huge,parent=structure}%
%<font> \setbeamerfont{subtitle}{size=\Large}%
%<*font>
%</font>
%<font> \setbeamerfont{framesubtitle}{parent=frametitle,size=\normalsize}%
%<*font>
%</font>
%<font> \setbeamerfont{enumerate item}{size=\small}%
%<font> \setbeamerfont{enumerate subitem}{size=\footnotesize}%
%<font> \setbeamerfont{enumerate subsubitem}{size=\scriptsize}%
%<font>}
%<*font>
%</font>
%<font>\mode<all>
%
%<inner>\ProvidesPackage{beamerinnerthemeUnB}[2011/08/01 Formatação interna para UnBeamer.]%
%<inner>\mode<presentation>{
%<inner> \useinnertheme{rounded}%
%<*inner>
%</inner>
%<inner> \setbeamertemplate{itemize items}{-}%
%<inner> \setbeamertemplate{enumerate item} {\insertenumlabel}%
%<inner> \setbeamertemplate{enumerate subitem} {\insertenumlabel.\insertsubenumlabel}%
%<inner> \setbeamertemplate{enumerate subsubitem} {\insertenumlabel.\insertsubenumlabel.\insertsubsubenumlabel}%
%<inner> \setbeamertemplate{sections/subsections in toc}[default]%
%<inner>}
%<*inner>
%</inner>
%<inner>\mode<all>
%
%<outer>\ProvidesPackage{beamerouterthemeUnB}[2011/08/01 Formatação externa para UnBeamer.]%
%<outer>\mode<presentation>{
%<outer> \setbeamertemplate{navigation symbols}{}%
%<*outer>
%</outer>
%<outer> % Liberar o nome da subseção a cada nova seção (inseridos automaticamente pelo slide)
%<outer> \newcommand{\unbeamer@emptySubSubSecName}{\@ifundefined{subsubsecname}{}{\let\subsubsecname\@empty}}%
%<outer> \let\unbeamer@oldSubSection\subsection% http://www.latex-community.org/forum/viewtopic.php?f=31&t=2022&p=7858
%<outer> \newcommand{\unbeamer@subsection}[1]{\unbeamer@emptySubSubSecName\unbeamer@oldSubSection{#1}}%
%<outer> \newcommand{\unbeamer@subsectionStar}{\unbeamer@emptySubSubSecName\unbeamer@oldSubSection*}%
%<outer> \renewcommand{\subsection}{\@ifstar\unbeamer@subsectionStar\unbeamer@subsection}%
%<*outer>
%</outer>
%<outer> \newcommand{\unbeamer@emptySubSecName}{\@ifundefined{subsecname}{}{\let\subsecname\@empty\unbeamer@emptySubSubSecName}}%
%<outer> \let\unbeamer@oldSection\section%
%<outer> \newcommand{\unbeamer@section}[1]{\unbeamer@emptySubSecName\unbeamer@oldSection{#1}}%
%<outer> \newcommand{\unbeamer@sectionStar}{\unbeamer@emptySubSecName\unbeamer@oldSection*}%
%<outer> \renewcommand{\section}{\@ifstar\unbeamer@sectionStar\unbeamer@section}%
%<*outer>
%</outer>
%<outer> % Definir automaticamente o título do frame conforme a [sub]seção.
%<outer> \let\unbeamer@oldbeamer@checkframetitle\beamer@checkframetitle%
%<outer> \renewcommand{\beamer@checkframetitle}{%
%<outer> \ifnum\c@framenumber>1%
%<outer> \frametitle{\secname}%
%<outer> \ifx\subsecname\@empty%
%<outer> \else%
%<outer> \frametitle{\subsecname}%
%<outer> \ifx\subsubsecname\@empty%
%<outer> \else%
%<outer> \framesubtitle{\subsubsecname}%
%<outer> \fi%
%<outer> \fi%
%<outer> \unbeamer@oldbeamer@checkframetitle%
%<outer> \fi%
%<outer> }%
%<*outer>
%</outer>
%<outer> % Formatação do slide. (tamanhos padrões: 12.80cm% \beamer@paperheight 9.60cm)
%<outer> \newlength{\unbeamer@halfMarginWidth}\setlength{\unbeamer@halfMarginWidth}{0.0125\paperwidth}%
%<outer> \setbeamersize{text margin left=2\unbeamer@halfMarginWidth, text margin right=2\unbeamer@halfMarginWidth}%
%<*outer>
%</outer>
%<outer> % Definição do conteúdo do rodapé.
%<outer> \newlength{\unbeamer@footerheight}\setlength{\unbeamer@footerheight}{\unbeamer@halfMarginWidth}%
%<outer> \newcommand{\unbeamerleftfooter}{%
%<outer> % rodapé a esquerda, ocupa 25% do espaço.
%<outer> \mbox{\hspace*{\unbeamer@halfMarginWidth}\includegraphics[height=2ex]{UnBMarca}}%
%<outer> \usebeamerfont{institute in head/foot}{\ }\insertshortinstitute%
%<outer> }%
%<*outer>
%</outer>
%<outer> \newcommand{\unbeamercentralfooter}{%
%<outer> % rodapé central, ocupa 50% do espaço.
%<outer> \usebeamerfont{title in head/foot}%
%<outer> \ifnum\c@framenumber>1%
%<outer> \ifx\insertshorttitle\@empty%
%<outer> \else%
%<outer> \insertshorttitle%
%<outer> \fi%
%<outer> \ifx\secname\@empty%
%<outer> \else%
%<outer> \ifx\insertshorttitle\@empty%
%<outer> \else%
%<outer> \ -\ %
%<outer> \fi%
%<outer> \secname%
%<outer> \fi%
%<outer> \fi%
%<outer> }%
%<*outer>
%</outer>
%<outer> \newcommand{\unbeamerrightfooter}{%
%<outer> % rodapé a direita, ocupa 25% do espaço.
%<outer> \usebeamerfont{author in head/foot}%
%<outer> \insertframenumber\hspace*{\unbeamer@halfMarginWidth}%
%<outer> }%
%<*outer>
%</outer>
%<outer> \setbeamertemplate{footline}{%
%<outer> \leavevmode%
%<outer> %\begin{beamercolorbox}[ht=1pt,colsep=1.5pt]{upper separation line foot}
%<outer> %\end{beamercolorbox}
%<outer> \begin{beamercolorbox}[wd=.2\paperwidth, ht=\unbeamer@footerheight, dp=.5\unbeamer@footerheight, left]{author in head/foot}%
%<outer> \unbeamerleftfooter%
%<outer> \end{beamercolorbox}%
%<outer> \begin{beamercolorbox}[wd=.6\paperwidth,ht=\unbeamer@footerheight,dp=.5\unbeamer@footerheight,center]{title in head/foot}%
%<outer> \unbeamercentralfooter%
%<outer> \end{beamercolorbox}%
%<outer> \begin{beamercolorbox}[wd=.2\paperwidth,ht=\unbeamer@footerheight,dp=.5\unbeamer@footerheight,right]{author in head/foot}%
%<outer> \unbeamerrightfooter%
%<outer> \end{beamercolorbox}%
%<outer>}%
%<*outer>
%</outer>
%<outer>% -------------- Fix number of frames in footer ------------- %
%<*outer>
%</outer>
%<outer>% Downloaded from http://www-ljk.imag.fr/membres/Jerome.Lelong/latex/appendixnumberbeamer.sty
%<*outer>
%</outer>
%<outer>%% Jérôme LELONG (September 2007)
%<outer>%%
%<outer>%% this stuff fixes the frame numbering in beamer when using an appendix such
%<outer>%% that the slides of the appendix are not counted in the total framenumber
%<*outer>
%</outer>
%<outer>\let\appendixtotalframenumber\empty
%<outer>\def\mainend{-1}
%<outer>\let\appendixorig\appendix
%<*outer>
%</outer>
%<outer>\def\appendix{
%<outer> \edef\mainend{\theframenumber}
%<outer> \immediate\write\@auxout{\string\global\string\@namedef{mainendframenumber}{\mainend}}
%<outer> \appendixorig
%<outer> \def\inserttotalframenumber{\appendixtotalframenumber}%
%<outer> \setcounter{framenumber}{0}
%<outer>}
%<*outer>
%</outer>
%<outer>\def\pageatend{
%<outer> \edef\appendixend{\theframenumber}
%<outer> \ifnum\mainend>0%
%<outer> \immediate\write\@auxout{\string\global\string\@namedef{appendixtotalframenumber}{\appendixend}}%
%<outer> \immediate\write\@auxout{\string\global\string\@namedef{inserttotalframenumber}{\mainend}}%
%<outer> \immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand {%
%<outer> \noexpand \def\noexpand \inserttotalframenumber{\mainend}}}}%
%<outer> \immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand {%
%<outer> \noexpand \def\noexpand \appendixtotalframenumber{\appendixend}}}}%
%<outer> \else
%<outer> \fi
%<outer>}
%<*outer>
%</outer>
%<outer>\AtEndDocument{\pageatend}
%<outer>}
%<*outer>
%</outer>
%<outer>\mode<all>
%
%<class>\ProvidesClass{UnBeamer}[2011/08/01 Classe para apresentações no estilo UnB usando Beamer.]%
%<*class>
%</class>
%<class>\DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}%
%<*class>
%</class>
%<class>%Para gerar notas de aula (4 slides por folha, formato paisagem).
%<class>\DeclareOption{notasDeAula}{%
%<class> \def\unbeamer@notasDeAula{1}%
%<class> \PassOptionsToClass{handout}{beamer}%
%<class>}%
%<*class>
%</class>
%<class>% Para imprimir linhas ao lado dos slides para anotações.
%<class>\DeclareOption{comAnotacoes}{%
%<class> \def\unbeamer@comAnotacoes{1}%
%<class> \PassOptionsToClass{handout}{beamer}%
%<class>}%
%<*class>
%</class>
%<class>% Para mostrar slides com o conteúdo (índice) da apresentação (a cada nova seção).
%<class>\DeclareOption{mostraConteudo}{\def\unbeamer@mostraConteudo{1}}%
%<*class>
%</class>
%<class>% Criar um poster.
%<class>\DeclareOption{poster}{%
%<class> \def\unbeamer@poster{1}%
%<class> \PassOptionsToClass{final}{beamer}%
%<class>}%
%<class>\def\unbeamer@posterorientation{portrait}
%<class>\DeclareOption{orientation=landscape}{\def\unbeamer@posterorientation{landscape}}%
%<*class>
%</class>
%<class>\ProcessOptions\relax%
%<class>\LoadClass{beamer}%
%<*class>
%</class>
%<class>\usetheme{UnB}%
%<*class>
%</class>
%<class>%% Carrega o arquivo que gera as notas (divide a folha em 4 slides).
%<class>\newcommand{\unbeamer@handoutWithNotes}[2][portrait]{%
%<class> \IfFileExists{handoutWithNotes.sty}{}%
%<class> {% não é possível usar algumas opções.
%<class> \ClassError{UnBeamer}%
%<class> {Arquivo 'handoutWithNotes.sty' não encontrado.}%
%<class> {O arquivo é fornecido no arquivo ZIP do tema UnBeamer, mas pode
%<class> ser encontrado em http://www.guidodiepen.nl/2009/07/creating-latex-beamer-handouts-with-notes/ .}%
%<class> }%
%<class> \RequirePackage{etex}%
%<class> \RequirePackage{handoutWithNotes}%
%<class> \pgfpagesuselayout{#2}[a4paper, #1, border shrink=5mm]%
%<class> \pgfpageslogicalpageoptions{1}{border code=\pgfusepath{stroke}}%
%<class> \pgfpageslogicalpageoptions{2}{border code=\pgfusepath{stroke}}%
%<class> \pgfpageslogicalpageoptions{3}{border code=\pgfusepath{stroke}}%
%<class> \pgfpageslogicalpageoptions{4}{border code=\pgfusepath{stroke}}%
%<class>}%
%<*class>
%</class>
%<class>% Definir layout da página conforme as opções.
%<class>\ifcsname unbeamer@notasDeAula\endcsname \unbeamer@handoutWithNotes[landscape]{4 on 1} \fi\par%
%<class>\ifcsname unbeamer@comAnotacoes\endcsname \unbeamer@handoutWithNotes{4 on 1 with notes} \fi\par%
%<class>\ifcsname unbeamer@mostraConteudo\endcsname
%<class> \AtBeginSection[]{%
%<class> \begin{frame}%
%<class> \frametitle{Conte\'{u}do}%
%<class> \tableofcontents[currentsection,hideallsubsections]%
%<class> \end{frame}%
%<class> }%
%<class>\fi\par%
%<*class>
%</class>
%<class>\ifcsname unbeamer@poster\endcsname
%<class> \RequirePackage[orientation=\unbeamer@posterorientation,size=a0,scale=1.4]{beamerposter}%
%<class> \RequirePackage{tikz}%
%<class> \RequirePackage{ifthen}%
%<*class>
%</class>
%<class> \usetikzlibrary{shadows}%
%<class> \pgfdeclarelayer{background}%
%<class> \pgfdeclarelayer{foreground}%
%<class> \pgfsetlayers{background,main,foreground}%
%<*class>
%</class>
%<class> \newcommand{\contact}[1]{\gdef\unbeamerpresentation@contact{#1}}%
%<class> \newcommand{\insertcontact}{\unbeamerpresentation@contact}%
%<*class>
%</class>
%<class> \renewcommand{\maketitle}{%
%<class> \begin{columns}[c]%
%<class> \column{.4\textwidth}\centering%
%<class> \huge \insertauthor\\%
%<class> \Large \insertcontact%
%<class> \column{.2\textwidth}\centering%
%<class> \includegraphics[width=.75\textwidth]{UnBMarca.pdf}%
%<class> \column{.4\textwidth}\centering%
%<class> \Large \insertinstitute%
%<class> \end{columns}%
%<class> }%
%<*class>
%</class>
%<class> \renewcommand{\unbeamerleftfooter}{}%
%<class> \renewcommand{\unbeamerrightfooter}{}%
%<*class>
%</class>
%<class> \newlength{\unbeamer@titlewidth}%
%<class> \newcommand{\setTitleFontSize}{%
%<class> \VERYHuge%
%<class> \settowidth{\unbeamer@titlewidth}{\inserttitle}%
%<class> \ifthenelse{\lengthtest{\paperwidth>\unbeamer@titlewidth}}{}%
%<class> {\VeryHuge%
%<class> \settowidth{\unbeamer@titlewidth}{\inserttitle}%
%<class> \ifthenelse{\lengthtest{\paperwidth>\unbeamer@titlewidth}}{}%
%<class> {\veryHuge%
%<class> \settowidth{\unbeamer@titlewidth}{\inserttitle}%
%<class> \ifthenelse{\lengthtest{\paperwidth>\unbeamer@titlewidth}}{}%
%<class> {\Huge%
%<class> \ifthenelse{\lengthtest{\paperwidth>\unbeamer@titlewidth}}{}%
%<class> {\huge%
%<class> \ifthenelse{\lengthtest{\paperwidth>\unbeamer@titlewidth}}{}%
%<class> {\LARGE%
%<class> \settowidth{\unbeamer@titlewidth}{\inserttitle}%
%<class> \ifthenelse{\lengthtest{\paperwidth>\unbeamer@titlewidth}}{}%
%<class> {\Large%
%<class> \settowidth{\unbeamer@titlewidth}{\inserttitle}%
%<class> \ifthenelse{\lengthtest{\paperwidth>\unbeamer@titlewidth}}{}%
%<class> {\large}%
%<class> }%
%<class> }%
%<class> }%
%<class> }%
%<class> }%
%<class> }%
%<class> }%
%<*class>
%</class>
%<class> \newlength{\unbeamer@headerheight}%
%<class> \setbeamertemplate{headline}{%
%<class> \leavevmode%
%<class> \settoheight{\unbeamer@headerheight}{\setTitleFontSize\inserttitle}%
%<class> \begin{tikzpicture}
%<class> \begin{pgfonlayer}{background}
%<class> \draw[top color=greenUnB,bottom color=blueUnB] (-.1\paperwidth,0) rectangle (0.9\paperwidth, 1.8\unbeamer@headerheight);
%<class> \end{pgfonlayer}
%<class> \begin{pgfonlayer}{foreground}
%<class> \node at (.4\paperwidth, .9\unbeamer@headerheight) {\setTitleFontSize\textcolor{white}{\inserttitle}};
%<class> \end{pgfonlayer}
%<class> \end{tikzpicture}
%<class> }%
%<*class>
%</class>
%<class> \setbeamerfont{block title}{size=\LARGE}%
%<class> \fi\par%
%<*class>
%</class>
%<class>% Redefinir cores dos blocos (block, alertblock e exampleblock) e possibilitar largura variável.
%<class>\newlength{\unbeamer@previousTextWidth}%
%<class>\let\unbeamer@oldBlock=\block%
%<class>\let\unbeamer@endOldBlock=\endblock%
%<class>\renewenvironment{block}[2][\textwidth]{%
%<class> \setlength{\unbeamer@previousTextWidth}{\textwidth}%
%<class> \setlength{\textwidth}{#1}%
%<class> \unbeamer@oldBlock{\ifx#2\@empty\else\textbf{#2}\fi}%
%<class>}{%
%<class> \unbeamer@endOldBlock%
%<class> \setlength{\textwidth}{\unbeamer@previousTextWidth}%
%<class>}%
%<*class>
%</class>
%<class>\let\unbeamer@oldAlertBlock=\alertblock%
%<class>\let\unbeamer@endOldAlertBlock=\endalertblock%
%<class>\renewenvironment{alertblock}[2][\textwidth]{%
%<class> \setlength{\unbeamer@previousTextWidth}{\textwidth}%
%<class> \setlength{\textwidth}{#1}%
%<class> \unbeamer@oldAlertBlock{\ifx#2\@empty\else\textbf{#2}\fi}%
%<class>}{%
%<class> \unbeamer@endOldAlertBlock%
%<class> \setlength{\textwidth}{\unbeamer@previousTextWidth}%
%<class>}%
%<*class>
%</class>
%<class>\let\unbeamer@oldExampleBlock=\exampleblock%
%<class>\let\unbeamer@endOldExampleBlock=\endexampleblock%
%<class>\renewenvironment{exampleblock}[2][\textwidth]{%
%<class> \setlength{\unbeamer@previousTextWidth}{\textwidth}%
%<class> \setlength{\textwidth}{#1}%
%<class> \unbeamer@oldExampleBlock{\ifx#2\@empty\else\textbf{#2}\fi}%
%<class>}{%
%<class> \unbeamer@endOldExampleBlock%
%<class> \setlength{\textwidth}{\unbeamer@previousTextWidth}%
%<class>}%
%<*class>
%</class>
%<class>%% Insere um frame com uma imagem ocupando todo o espaço.
%<class>\newcommand{\imageFrame}{\begingroup\catcode`_=12\relax\@doimageFrame}%
%<class>\newcommand<>{\@doimageFrame}[1]{%
%<class> \only#2{{\usebackgroundtemplate{\includegraphics[height=\paperheight,width=\paperwidth]{#1}}%
%<class> \begin{frame}#2[plain]\frametitle{\@empty}\framesubtitle{\@empty}\end{frame}}}%
%<class> \endgroup%
%<class>}% Ex: \imageFrame{UnBMarca}%
%<*class>
%</class>
%<class>%% Insere um frame com uma imagem ocupando todo o espaço horizontal e o centraliza %<class>verticalmente.
%<class>\newcommand{\horizImageFrame}{\begingroup\catcode`_=12\relax\@horizImageFrame}%
%<class>\newcommand<>{\@horizImageFrame}[1]{%
%<class> \only#2{{\usebackgroundtemplate{%
%<class> \vbox to \paperheight{%
%<class> \vfil%
%<class> \hbox to \paperwidth{\includegraphics[width=\paperwidth]{#1}}
%<class> \vfil}}%
%<class> \begin{frame}#2[plain]\frametitle{\@empty}\framesubtitle{\@empty}\end{frame}}}%
%<class> \endgroup%
%<class>}% Ex: \horizImageFrame{UnBMarca}%
%<*class>
%</class>
%<class>%% Insere um frame com uma imagem ocupando todo o espaço vertical e centraliza horizontalmente.
%<class>\newcommand{\vertImageFrame}{\begingroup\catcode`_=12\relax\@dovertImageFrame}%
%<class>\newcommand<>{\@dovertImageFrame}[1]{%
%<class> \only#2{{\usebackgroundtemplate{%
%<class> \vbox to \paperheight{%
%<class> \hbox to \paperwidth{%
%<class> \hfil\includegraphics[height=\paperheight]{#1}\hfil}}}%
%<class> \begin{frame}#2[plain]\frametitle{\@empty}\framesubtitle{\@empty}\end{frame}}}%
%<class> \endgroup%
%<class>}% Ex: \vertImageFrame{UnBMarca}%
%<*class>
%</class>
%<class>%% Risca a palavra
%<class>\newlength{\unbeamer@strikeLength}%
%<class>\newcommand<>{\strikeText}[1]{%
%<class> \settowidth{\unbeamer@strikeLength}{#1}%
%<class> \mbox{#1}%
%<class> \only#2{\hspace{-\unbeamer@strikeLength}\rule[.5ex]{\unbeamer@strikeLength}{1pt}}%
%<class>}% Ex: \strikeText<2->{Lorem ipsum}
%<*class>
%</class>
%<class>%% Cria uma lista (itemize) com um único item.
%<class>%% #1 - símbolo do item (default: -).
%<class>%% #2 - texto do item.
%<class>\newcommand<>{\subitem}[2][-]{%
%<class> \only#3{\begin{itemize}%
%<class> \item[#1] #2%
%<class> \end{itemize}}%
%<class>}%% Ex: \subitem[$\rightarrow$]{Lorem Ipsum}
%
%<*batchfile>
\begingroup
\input docstrip.tex
\keepsilent
\preamble
Arquivo gerado automaticamente.
Copyright (C) 2012 by Guilherme N. Ramos ([email protected])
Este arquivo pode ser distribuído e/ou modificado conforme:
1. LaTeX Project Public License e/ou
2. GNU Public License.
\endpreamble
\askforoverwritefalse
\generate{\file{UnBeamer.cls}{\from{UnBeamer.dtx}{all,class}}
\file{theme/beamerthemeUnB.sty}{\from{UnBeamer.dtx}{all,theme}}
\file{theme/beamercolorthemeUnB.sty}{\from{UnBeamer.dtx}{all,color}}
\file{theme/beamerfontthemeUnB.sty}{\from{UnBeamer.dtx}{all,font}}
\file{theme/beamerinnerthemeUnB.sty}{\from{UnBeamer.dtx}{all,inner}}
\file{theme/beamerouterthemeUnB.sty}{\from{UnBeamer.dtx}{all,outer}}
\file{ex_apresentacao.tex}{\from{UnBeamer.dtx}{presentation}}
\file{ex_poster.tex}{\from{UnBeamer.dtx}{poster}}
}
\obeyspaces
\endgroup
%</batchfile>
%
%<*driver>
\documentclass{ltxdoc}%
\usepackage[portuges]{babel}%
\usepackage[utf8]{inputenc}%
\usepackage{lmodern}%
\usepackage{beamerarticle}%
\usepackage{xcolor}%
\usepackage{graphicx}%
\usepackage[hidelinks]{hyperref}%
\usepackage{theme/beamercolorthemeUnB}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
\begin{document}
\DocInput{UnBeamer.dtx}
\end{document}
%</driver>
% \fi
%
% \CheckSum{0}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
% Digits \0\1\2\3\4\5\6\7\8\9
% Exclamation \! Double quote \" Hash (number) \#
% Dollar \$ Percent \% Ampersand \&
% Acute accent \' Left paren \( Right paren \)
% Asterisk \* Plus \+ Comma \,
% Minus \- Point \. Solidus \/
% Colon \: Semicolon \; Less than \<
% Equals \= Greater than \> Question mark \?
% Commercial at \@ Left bracket \[ Backslash \\
% Right bracket \] Circumflex \^ Underscore \_
% Grave accent \` Left brace \{ Vertical bar \|
% Right brace \} Tilde \~}
%
%
% \changes{v1.0}{2012/08/20}{Versão Inicial}
%
% \GetFileInfo{UnBeamer.dtx}
%
% \DoNotIndex{\newcommand,\newenvironment}
%
% \newcommand{\tema}{\textsf{\textcolor{blueUnB}{UnB}}}%
% \newcommand{\unbeamer}{\tema{\sc{eamer}}}%
% \newcommand{\beamer}{{\sc{beamer}}}%
% \newcommand{\sq}[1]{\textcolor{#1}{$\blacksquare$}#1\textcolor{#1}{$\blacksquare$}}%
%
% \title{Tema \tema\thanks{Este documento corresponde a versão \fileversion, de \filedate.}}
% \author{Guilherme N. Ramos \\ \texttt{[email protected]}}
%
% \maketitle
%
% \StopEventually{\PrintIndex\PrintChanges}
%
% \begin{abstract}
% O tema \tema\ define a aparência de uma apresentação criada com \LaTeX\ e
% \beamer. A proposta é ter uma identidade unificada para apresentações cujo
% escopo seja relacionado a \href{http://www.unb.br}{Universidade de Brasília},
% buscando um visual simples.
% \end{abstract}
%
% \section{Introdução}
% \tema\ é um tema para \beamer, a classe \LaTeX\ para criar apresentações.
% \unbeamer\ é uma classe que utiliza o tema \tema\ e implementa algumas
% facilidades para criar uma apresentação.
%
% \subsection{Requisitos}
% Assume-se que a classe \beamer\footnote{Disponível em
% \url{http://bitbucket.org/rivanvx/beamer/}} já esteja disponível, e que haja
% certa familiaridade com seu uso para criar apresentações. Um pouco de
% conhecimento sobre \LaTeX\ também é bem vindo.
%
% \subsection{Instalação}
% Basta copiar o diretório UnBeamer pra um local que \TeX\ conheça, como
% \begin{center}\texttt{\textasciitilde/texmf/tex/latex/}\end{center}
%
% O diretório tem a seguinte estrutura:
% \begin{description}
% \item[\texttt{UnBeamer.cls}] classe para apresentações.
% \item[\texttt{handoutWithNotes.sty}] pacote auxiliar da classe.
% \item[\texttt{theme}] diretório contendo os arquivos do tema:
% \begin{description}
% \item[\texttt{beamerthemeUnB.sty}]
% \item[\texttt{beamercolorUnB.sty}]
% \item[\texttt{beamerfontUnB.sty}]
% \item[\texttt{beamerinnerUnB.sty}]
% \item[\texttt{beamerouterUnB.sty}]
% \end{description}
% \item[\texttt{ex\_apresentacao.tex}] exemplo de como criar uma apresentação.
% \item[\texttt{ex\_poster.tex}] exemplo de como criar um pôster.
% \end{description}
%
% O pacote exige o arquivo \texttt{UnBMarca.pdf} contendo a imagem da marca da UnB.
%
% \section{Tema \protect\tema}
% Um tema para \beamer\ define, conceitualmente, todos os detalhes da aparência
% uma apresentação. O tema \tema\ seleciona as características dos subtemas que,
% juntos, proporcionam um conjunto agradável (na opinião do criador). Por exemplo,
% uma escolha definiria quais números (e em que cores e fontes) seriam
% utilizados em uma enumeração, se há alguma imagem relacionada a isto, etc.
%
% \subsection{Marca UnB}
% A \href{http://www.marca.unb.br/}{marca UnB} é o item principal da identidade
% visual da universidade, e tem suas características bem definidas para que haja
% a normatização de seu uso da marca UnB e a uniformização dos padrões de
% comunicação visual da universidade.
%
% Essencialmente, \beamer\ utiliza um tema para cada aspecto da apresentação,
% portanto é simples mudar a aparência desta (ou apenas determinadas partes).
%
% A marca serve de base para os tons de verde e azul do tema.
% \begin{figure}[h]
% \centering
% \includegraphics[scale=0.5]{UnBMarca}
% \caption{Arquivo \texttt{UnBMarca.pdf}.}
% \end{figure}
%
% A UnB fornece, gratuitamente, duas famílias tipográficas oficiais: UnB Office
% e UnB Pro, que são compatíveis com os sistemas operacionais Linux, Windows e
% MacOS. Elas podem ser utilizadas com Xe\TeX\footnote{http://tug.org/xetex/}.
%
% \subsection{Cor}
% Um tema de cores define quais cores são usadas na apresentação, possivelmente
% com detalhes muito específicos. \tema\ define a paleta de cores do tema,
% ajustando os itens da apresentação conforme três cores básicas:\\
% \sq{redUnB}\hfill\sq{greenUnB}\hfill\sq{blueUnB}
%
% \subsection{Fonte}
% Um tema de fontes define as fontes a serem utilizadas nos itens da apresentação,
% ajustando tamanhos conforme a paleta de cores definida (mas podem ser
% especificados de forma independente).
%
% \subsection{Estrutura Interna}
% Define os detalhes das estruturas internas ao frame (onde fica o conteúdo),
% tais como itens e enumerações. São as partes da apresentação que não estão no
% cabeçalho ou rodapé (já que \tema\ não implementa barras laterais).
%
% \subsection{Estrutura Externa}
% Define os detalhes das estruturas externas ao frame. Redefine o título do frame
% como o nome da subseção, se houver, como o nome da seção caso contrário. Define
% o rodapé como um bloco de três partes em que:
% \begin{itemize}
% \item a esquerda (25\% da área) há um indicador da unidade acadêmica;
% \item ao centro (50\% da área) há o nome da seção do frame,
% \item a direita (25\% da área) há um indicador da página do frame.
% \end{itemize}
% Estes blocos são definidos pelos comandos\footnote{Podem ser alterados via
% |{\textbackslash}renewcommand|.}: \\
% |\unbeamerleftfooter|, |\unbeamercentralfooter| e |\unbeamerrightfooter|.
%
% \section{Classe \protect\unbeamer}
% A classe adiciona certas facilidades para deixar a utilização do tema \tema\
% ainda menos complexa.
% \subsection{Opções}
% A classe \unbeamer\ oferece algumas opções de uso que alteram a formatação
% resultante. Todas as opções fornecidas a classe serão repassadas a classe
% \beamer, exceto pelas seguintes:
% \begin{macro}{notasDeAula} Formata o arquivo PDF resultante com 4 frames por
% página, com orientação de \emph{paisagem}. Esta opção é a melhor forma de
% disponibilizar os frames como material auxiliar para acompanhar as apresentações.
% \end{macro}
%
% \begin{macro}{comAnotacoes} Formata o arquivo PDF resultante com 4 frames por
% página, com orientação de \emph{retrato}, com linhas para anotações ao lado de
% cada frame. Esta opção é a melhor forma de disponibilizar os frames como
% material auxiliar de estudo das apresentações.
% \end{macro}
%
% \begin{macro}{mostraConteudo} Insere na apresentação, antes de cada nova seção,
% um frame contendo o conteúdo (índice) da mesma.
% \end{macro}
%
% \begin{macro}{poster} Formata o arquivo PDF resultante como um pôster no tamanho
% \href{https://pt.wikipedia.org/wiki/ISO_216}{A0}, a ser preenchido como um único
% frame. Formata o título e o autor, implementando os comandos |\contact| e
% |\insertcontact|.
% \end{macro}
%
% \subsection{Blocos}
% Os principais blocos são redefinidos para aceitarem um argumento opcional de
% largura. O valor padrão é |\textwidth|
%
% \begin{macro}{block} Bloco em tons de azul.
% \end{macro}
%
% \begin{macro}{alertblock} Bloco em tons de vermelho.
% \end{macro}
%
% \begin{macro}{exampleblock} Bloco em tons de verde.
% \end{macro}
%
% A utilização é trival:\par\vspace{1ex}
% |\begin|\{block\}[3cm]\{Exemplo de Aplicação\}\par
% \ \ \ \ Basta indicar a largura do bloco como argument opcional.\par
% |\end|\{block\}
%
% \subsection{Comandos Auxiliares}
% A classe \unbeamer\ define alguns comandos úteis em apresentações.
%
% \begin{macro}{\imageFrame} \marg{imagem}\\
% Insere um frame com a imagem dada ocupando todo o espaço horizontal (aceita configuração de overlay).
% \end{macro}
%
% \begin{macro}{\horizImageFrame} \marg{imagem}\\
% Insere um frame com a imagem dada ocupando todo o espaço horizontal (aceita configuração de overlay).
% \end{macro}
%
% \begin{macro}{\vertImageFrame} \marg{imagem}\\
% Insere um frame com a imagem dada ocupando todo o espaço vertical (aceita configuração de overlay).
% \end{macro}
%
% \begin{macro}{\strikeText<>} \marg{texto}\\
% Risca o texto dado. Aceita o parâmetro opcional indicando a partir de qual
% instante o texto deve ser riscado.
% \end{macro}
%
% \begin{macro}{\subitem} \oarg{símbolo} \marg{texto}\\
% Cria uma lista (itemize) com um único item.
% \end{macro}
%
% \subsection{Exemplo de Apresentação}
% O arquivo \texttt{ex\_apresentacao.tex} mostra uma apresentação com o tema \tema\ e
% exemplifica as ``facilidades'' possíveis com a classe \unbeamer. Idealmente,
% tenha uma cópia do arquivo PDF gerado por ele para verificar os resultados da
% formatação descrita aqui.
%
% O início\footnote{Na verdade, para utilizar apenas o tema, este comando seria
% substituído por:\\
% |{\textbackslash}documentclass\{beamer\}|\\
% |{\textbackslash}usetheme\{UnB\}|}.
% não é surpreendente...
%\setcounter{CodelineNo}{-1}
% \begin{macrocode}
%<*presentation>
% \end{macrocode}
% \begin{macrocode}
%% Exemplo de utilização do tema UnB.
\documentclass{UnBeamer}%
% \end{macrocode}
%
% Como o texto é na língua portuguesa:
% \begin{macrocode}
\usepackage[brazilian]{babel}%
\usepackage[utf8]{inputenc}%
\usepackage{lmodern}%
% \end{macrocode}
%
% Identificação da apresentação. Elas podem (e vão) ser aproveitadas em outros
% momentos.
% \begin{macrocode}
%% ------------ Autor, Título, etc. ------------ %%
\title[Beamer + UnB]{Tema/Classe para apresentações utilizando Beamer}%
\subtitle{Exemplo Funcional}%
\author[gnramos]{Guilherme N. Ramos\\%
\texttt{[email protected]}}%
\institute[CIC]{Departamento de Ciência da Computação\\%
Universidade de Brasília}%
\date[2012]{}%
% \end{macrocode}
%
% Comando auxiliar:
% \begin{macrocode}
%% Formata um comando.
\makeatletter%
\newcommand{\comm}[2][]{%
\texttt{{\textbackslash}#2}%
\if#1\@empty%
\else\{#1\}\fi%
}%
\makeatother
% \end{macrocode}
%
% O passo seguinte é começar o documento:
% \begin{macrocode}
%% ------------ Documento ------------ %%
\begin{document}%
% \end{macrocode}
%
% Pronto. De agora em diante basta definir o conteúdo dos frames. Como toda boa
% apresentação, vamos começar indicando título, autores e filiações. Isso evita
% que alguém saia no meio da apresentação por estar na sala errada...
% \begin{macrocode}
\frame{\titlepage}%
% \end{macrocode}
%
% Agora seria uma boa hora para reler o
% \href{http://www.tex.ac.uk/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf}{manual do beamer},
% há ótimas sugestões para se criar uma apresentação (outras
% \href{http://research.microsoft.com/pubs/67052/giving-a-talk-slides.pdf}{aqui}).
% Como aqui o escopo é apenas o uso do tema e da classe, vamos em frente:
% \begin{macrocode}
\section{Tema UnB}%
\begin{frame}%
\begin{itemize}%
\item Simples%
\item Definição automática:%
\begin{itemize}%
\item título: nome da [sub]seção%
\item rodapé: versão curta do título - nome da seção%
\end{itemize}%
\item Rodapé%
\begin{description}%
\item[\comm{unbeamerleftfooter}] instituto%
\item[\comm{unbeamercentralfooter}] título resumido - nome da seção%
\item[\comm{unbeamerrightfooter}] número de páginas/total de páginas%
\end{description}%
\item Definição de cores %
\item Definição de listas%
\end{itemize}%
\end{frame}%
% \end{macrocode}
%
% E agora um novo frame para exibir o tema.
% \begin{macrocode}
\section{Listas \& Cores}%
\begin{frame}%
\begin{columns}[T]%
\column{.45\textwidth}%
Itens:\\%
\begin{itemize}%
\item {\color{redUnB}redUnB}%
\begin{itemize}%
\item {\color{greenUnB}greenUnB}%
\begin{itemize}%
\item {\color{blueUnB}blueUnB}%
\end{itemize}%
\end{itemize}%
\end{itemize}%
\column{.45\textwidth}%
Enumerações:%
\begin{enumerate}%
\item \colorbox{redUnB}{\color{white}{redUnB}}%
\begin{enumerate}%
\item \colorbox{greenUnB}{\color{white}{greenUnB}}%
\begin{enumerate}%
\item \colorbox{blueUnB}{\color{white}{blueUnB}}%
\end{enumerate}%
\end{enumerate}%
\end{enumerate}%
\end{columns}%
\vfill%
Descrições:%
\begin{description}%