-
Notifications
You must be signed in to change notification settings - Fork 0
/
BerlinLaTeXSlides.tex
1376 lines (1189 loc) · 35.5 KB
/
BerlinLaTeXSlides.tex
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
% !TEX TS-program = pdflatex --shell-escape
%\documentclass[handout]{beamer} %slides+notes only
%\documentclass[10pt,t]{beamer} %slides only
% The laulatex is being updated. The following RequirePackage line is needed for now.
\documentclass{beamer}
\RequirePackage{luatex85}
%% uncomment the following to get the notes shows on interleaved pages
%\setbeameroption{show notes}
%\setbeamertemplate{note page}[plain]
\usepackage{pgfpages}
%\pgfpagesuselayout{2 on 1}[letterpaper,border shrink=2mm]
\usepackage{moresize}
%\setbeameroption{show notes}
%\setbeameroption{show notes on second screen}
%%%\setbeamertemplate{note page}[plain]
%
% lualatex --shell-escape 23July2015.tex
%
% Code for making handouts
%
%\documentclass[handout,dvips,11pt,gray]{beamer}
%\usetheme[secheader]{Boadilla}
%\setbeameroption{show notes}
%\usefonttheme[onlylarge]{structurebold}
%\setbeamerfont*{frametitle}{size=\normalsize,series=\bfseries}
%\setbeamertemplate{navigation symbols}{}
%\setbeamertemplate{note page}[plain]
%\usepackage[english]{babel}
%\usepackage[latin1]{inputenc}
%\usepackage{times}
%\usepackage[T1]{fontenc}
%\usepackage{pst-all} % PStricks
%%%\usepackage{pgfpages}
%\pgfpagesuselayout{4 on 1}[letterpaper,landscape,border shrink=5mm]
%\useoutertheme{miniframes}
\usetheme{default}
\beamertemplatenavigationsymbolsempty
\hypersetup{pdfpagemode=UseNone} % don't show bookmarks on initial view
%tables
\usepackage{booktabs}% http://ctan.org/pkg/booktabs
% font
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{minted}
%\usepackage{comment}
\usepackage{fix-cm}
\usepackage{fontspec}
\usepackage{gensymb}
%\usepackage{graphicx}
\newminted{python}{fontsize=\nornalsize,
linenos=true,
numbersep=8pt,
gobble=4,
frame=lines,
bgcolor=bgpython,
framesep=3mm}
\newminted{bash}{fontsize=\nornalsize,
linenos=true,
numbersep=8pt,
gobble=4,
frame=lines,
bgcolor=bgbash,
framesep=3mm}
\newminted{R}{fontsize=\nornalsize,
linenos=true,
numbersep=8pt,
gobble=4,
frame=lines,
bgcolor=bgr,
framesep=3mm}
\setsansfont{TeX Gyre Heros}
\setbeamerfont{note page}{family*=pplx,size=\footnotesize} % Palatino for notes
% "TeX Gyre Heros can be used as a replacement for Helvetica"
% In Unix, unzip the following into ~/.fonts
% In Mac, unzip it, double-click the .otf files, and install using "FontBook"
% http://www.gust.org.pl/projects/e-foundry/tex-gyre/heros/qhv2.004otf.zip
% Center the title and increase its size
\setbeamertemplate{frametitle}[default][center]
\setbeamerfont{frametitle}{size=\huge}
% named colors
\definecolor{offwhite}{RGB}{249,242,255}
\definecolor{foreground}{RGB}{25,25,25}
\definecolor{background}{RGB}{255,255,255}
\definecolor{title}{RGB}{100,0,0}
\definecolor{gray}{RGB}{155,155,155}
\definecolor{subtitle}{RGB}{50,0,0}
\definecolor{hilight}{RGB}{102,255,204}
\definecolor{vhilight}{RGB}{255,111,207}
\definecolor{lolight}{RGB}{155,155,155}
%\definecolor{green}{RGB}{125,250,125}
% use those colors
\setbeamercolor{titlelike}{fg=title}
\setbeamercolor{subtitle}{fg=subtitle}
\setbeamercolor{institute}{fg=gray}
\setbeamercolor{normal text}{fg=foreground,bg=background}
\setbeamercolor{item}{fg=foreground} % color of bullets
\setbeamercolor{subitem}{fg=gray}
\setbeamercolor{itemize/enumerate subbody}{fg=gray}
\setbeamertemplate{itemize subitem}{{\textendash}}
\setbeamerfont{itemize/enumerate subbody}{size=\footnotesize}
\setbeamerfont{itemize/enumerate subitem}{size=\footnotesize}
% page number
\setbeamertemplate{footline}{%
\raisebox{5pt}{\makebox[\paperwidth]{\hfill\makebox[20pt]{\color{gray}
\scriptsize\insertframenumber}}}\hspace*{5pt}}
% add a bit of space at the top of the notes page
\addtobeamertemplate{note page}{\setlength{\parskip}{12pt}}
% a few macros
\newcommand{\bi}{\begin{itemize}}
\newcommand{\ei}{\end{itemize}}
\newcommand{\ig}{\includegraphics}
\newcommand{\subt}[1]{{\footnotesize \color{subtitle} {#1}}}
\definecolor{bgpython}{rgb}{0.95,0.95,0.95}
\definecolor{bgbash}{rgb}{0.95,0.85,0.75}
\definecolor{bgr}{rgb}{0.95,0.95,0.85}
\usepackage{enumitem}
\usepackage{latexsym} % for squares for the check-list environment
\newenvironment{checklist}{%
\begin{list}{}{}% whatever you want the list to be
\let\olditem\item
\renewcommand\item{\olditem[$\Box$] }
}{%
\end{list}
}
\usepackage{graphicx}
\newcommand{\heart}{\ensuremath\heartsuit}
% title info
\title{Document preparation with \LaTeX{} in Emacs}
\author{\textbf{Blaine Mooers, PhD \\ [email protected] \\ 405-271-8300 \\ \url{https://github.com/MooersLab/BerlinEmacsAug22} }}
\institute{{Department of Biochemistry \& Molecular Biology}\\[2pt]{University of Oklahoma Health Sciences Center, \\ Oklahoma City, Oklahoma, USA} }
% to hide auto date,use \date{}
\date{Berlin Emacs Meetup, Zoom Meeting\\ 31 August 2022, 19 - 20:30 (CEST)}
\begin{document}
% title slide
{
\setbeamertemplate{footline}{} % no page number here
\frame{
\titlepage
\note{
} } }
% Slide 2
\subsection{40 to 51 hours per week}
\begin{frame}
\frametitle{40 to 51 hours per week}
\begin{center}
\begin{center}
\includegraphics[width=0.95\textwidth, angle=0]{./Figures/increase22percent}
\end{center}
\end{center}
\end{frame}
\note{After entering C-c C-o in Emacs, you are prompted to enter kind of environment. One option }
% \section{How I use Emacs to edit LaTeX Documents}
% - Writing projects on Overleaf
% - Copying tex from 750words to tex files in Overleaf
% - GhostText in Overleaf
% - GhostText in 750words
% - notable snippets
% Slide 3
\section{Outline}
\begin{frame}
\frametitle{Outline}
\begin{center}
\begin{Large}
\begin{itemize}[font=$\bullet$\scshape\bfseries]
\item \LaTeX{} in Emacs
%\item Elements of a \LaTeX{} document
\item Research Papers with writing logs
\item Books
\item Beamer: Slideshows and Posters
\item Tools
\end{itemize}
\end{Large}
\end{center}
%\textcolor{magenta}{Tasks that I still do with a word processor.}
\end{frame}
\note{}
% Slide 4
\subsection{Writing tasks in academic science}
\begin{frame}
\frametitle{Writing tasks in academic science}
\begin{center}
\begin{Large}
\begin{itemize}[font=$\bullet$\scshape\bfseries]
\item correspondence: \textcolor{magenta}{e-mails}, letters of support and recommendation
\item grant funding: \textcolor{magenta}{applications}, progress reports, grant reviews
\item research reporting: papers, posters, talks, manuscript reviews
\item teaching: lecture slides
\item administrative: \textcolor{magenta}{annual reports, committee reports, Biosketches,} CVs
\end{itemize}
\end{Large}
\end{center}
\textcolor{magenta}{Tasks that I still do with a word processor.}
\end{frame}
% \section{Introduction}
% % Slide 2
% \subsection{(1/2) Writing tasks in academic science}
% \begin{frame}
% \frametitle{(1/2) My writing tasks}
% \begin{center}
% \begin{Large}
% \begin{itemize}[font=$\bullet$\scshape\bfseries]
% \item Daily log book.
% \item Protocols.
% \item Grant proposals, \textcolor{magenta}{Biosketches}, Letters of support, budget justification, and \textcolor{magenta}{budgets}.
% \item \textcolor{magenta}{Annual progress reports for grants}
% \item Research papers and review articles
% \item Book chapters and books
% \item Slideshows for lectures; homework and exams
% \end{itemize}
% \end{Large}
% \end{center}
% \textcolor{magenta}{Tasks that I still do with a word processor.}
% \end{frame}
% \note{}
% \subsection{(2/2) My writing tasks}
% \begin{frame}
% \frametitle{(2/2) My writing tasks}
% \begin{center}
% \begin{Large}
% \begin{itemize}[font=$\bullet$\scshape\bfseries]
% \item Abstracts of talks and posters at Scientific Meetings
% \item Manuscript reviews
% \item Grant application reviews
% \item Letters of recommendation for students and colleagues
% \item Readme.md files on GitHub
% \item \textcolor{magenta}{Annual evaluation reports}; \textcolor{magenta}{promotion dossiers}.
% \item CVs of various lengths
% \end{itemize}
% \end{Large}
% \end{center}
% \textcolor{magenta}{Tasks that I still do with a word processor.}
% \end{frame}
% \note{}
% Slide 5
\subsection{Dissatisfaction with Word Processors}
\begin{frame}
\frametitle{Dissatisfaction with Word Processors}
\begin{center}
\begin{Large}
\begin{itemize}[font=$\bullet$\scshape\bfseries]
\item Trouble scrolling long documents on Macs.
\item Tedious figure handing.
\item Limited equation editor.
\item Poor support for tracking changes.
\end{itemize}
\end{Large}
\end{center}
\end{frame}
\note{}
% % Slide 2
% \subsection{(1/2) Downsides of Word Processors}
% \begin{frame}
% \frametitle{(1/2) Downsides of Word Processors}
% \begin{center}
% \begin{Large}
% \begin{itemize}[font=$\bullet$\scshape\bfseries]
% \item Trouble scrolling long documents.
% \item Poor support for the assembly of large documents.
% \item Heavy dependence on the mouse (not ergonomic).
% \item Poor support for version control.
% \item Limited scripting available
% \item Limited support for snippets.
% \item Limited support for autocompletion.
% \end{itemize}
% \end{Large}
% \end{center}
% \end{frame}
% \note{}
% \subsection{(2/2) Downsides of Word Processors}
% \begin{frame}
% \frametitle{(2/2) Downsides of Word Processors}
% \begin{center}
% \begin{Large}
% \begin{itemize}[font=$\bullet$\scshape\bfseries]
% \item Tedious figure handing.
% \item Limited support for complex tables.
% \item Limited support for syntax highlighting of code blocks.
% \item Limited number of key-bindings.
% \item Limited support for customization.
% \item Inferior equation typesetting
% \item Font issues when moving between operating systems.
% \end{itemize}
% \end{Large}
% \end{center}
% \end{frame}
% \note{}
% Slide 6
\subsection{Winding path to Emacs with \LaTeX}
\begin{frame}
\frametitle{Winding path to Emacs with \LaTeX}
\begin{center}
\begin{Large}
\begin{itemize}[font=$\bullet$\scshape\bfseries]
\item Markdown, RMarkdown, GitHub Book
\item AsciiDoc
\item Scrivener
\item LyX
\item LaTeX in several LaTeX editors and IDE \textcolor{red}{\heart}.
\item LaTeX in TextMate
\item LaTeX in Sublime Text.
\item LaTeX in Vim
\item LaTeX in Overleaf \textcolor{red}{\heart \heart}
\item reStructuredText and org-mode \textcolor{red}{\heart}
\item LaTeX in Emacs.\textcolor{red}{\heart \heart}
\end{itemize}
\end{Large}
\end{center}
\end{frame}
\note{}
% Slide 7
\subsection{606 Overleaf Projects}
\begin{frame}
\frametitle{606 Overleaf Projects}
\begin{center}
\begin{center}
\includegraphics[width=0.995\textwidth, angle=0]{./Figures/overleafProjects}
\end{center}
\end{center}
\end{frame}
\note{After entering C-c C-o in Emacs, you are prompted to enter kind of environment. One option }
% Slide 8
\subsection{Overleaf GUI with this slideshow}
\begin{frame}
\frametitle{Overleaf GUI with this slideshow}
\begin{center}
\begin{center}
\includegraphics[width=0.99\textwidth, angle=0]{./Figures/overLeafWorkArea}
\end{center}
\end{center}
\end{frame}
\note{After entering C-c C-o in Emacs, you are prompted to enter kind of environment. One option }
% Slide 9
\subsection{My uses of \LaTeX}
\begin{frame}
\frametitle{My uses of \LaTeX }
\begin{center}
\begin{Large}
\begin{itemize}[font=$\bullet$\scshape\bfseries]
\item Mooers (2016) Protein Science
\item Mooers (2020) Protein Science
\item Mooers and Brown (2021) Protein Science
\item Mooers (2021) Computing in Science and Engineering.
\item Acquah et al. (2021) International Journal of Molecular Science
\item Acquah (2022) PhD dissertation
\item 14 lectures times 8 years
\item $\sim$50 slideshows
\item $\sim$20 posters
\end{itemize}
\end{Large}
\end{center}
\end{frame}
\note{To establish my credibilitiy. }
% Slide 10
\subsection{ Advantages of \LaTeX}
\begin{frame}
\frametitle{Advantages of working with \LaTeX}
\begin{center}
\begin{Large}
\begin{itemize}[font=$\bullet$\scshape\bfseries]
\item \textcolor{magenta}{It is fun!} Combine coding with writing.
%\item Code reuse: recycle old documents.
%\item Precise control over appearance of output.
\item Equation typesetting par excellence.
\item Automated placement of figures.
% \item Syntax highlighting of code fragments.
% \item Reduced use of the mouse.
% \item Slideshows as PDFs are immune to embarassing font issues.
\item Support for multi-part documents (books).
% \item Precise control over typesetting of the bibliography.
% \item Automated assembly of table of contents and lists.
% \item Automated index generation \textcolor{red}{\heart}.
% \item Source files easy to share as e-mail attachments.
% \item Source files can be put under version control.
\item Overleaf supports collaborative writing.
\end{itemize}
\end{Large}
\end{center}
\end{frame}
\note{}
% Slide 11
\subsection{Downsides of \LaTeX}
\begin{frame}
\frametitle{Downsides of \LaTeX }
\begin{center}
\begin{Large}
\begin{itemize}[font=$\bullet$\scshape\bfseries]
\item Only for 2\% of the population.
%\item Only a few colleagues use it in my field.
\item Some packages only work with certain compilers (e.g., xelatex).
\item Sometimes difficult to debug.
\item Some publishers limit customization.
%\item Publisher staff can lack knowledge of \LaTeX.
\end{itemize}
\end{Large}
\end{center}
\end{frame}
\note{}
% Slide 12
\section{Elements of a LaTeX document}
\begin{frame}
\frametitle{Elements of a LaTeX document}
\begin{center}
\begin{Large}
\begin{itemize}[font=$\bullet$\scshape\bfseries]
\item preamble ($\sim$ init.el)
\item document environment
\begin{checklist}
\item sections, subsection, subsubsections
\item equations
\item code listings
\item tables
\item figures
\item citations
\end{checklist}
\end{itemize}
\end{Large}
\end{center}
\end{frame}
\note{}
% Slide 13
\subsection{C-c C-e Document environment}
\begin{frame}
\frametitle{C-c C-e document environment}
\begin{center}
\begin{center}
\includegraphics[width=0.99\textwidth, angle=0]{./Figures/documentA}
\end{center}
\end{center}
\end{frame}
\note{After entering C-c C-e in Emacs, you are prompted to enter kind of environment. One option }
% Slide 14
\subsection{Adding package names at prompt in mini-buffer}
\begin{frame}
\frametitle{Adding package name in mini-buffer}
\begin{center}
\begin{center}
\includegraphics[width=0.9998\textwidth, angle=0]{./Figures/documentB}
\end{center}
\end{center}
\end{frame}
\note{After entering C-c C-o in Emacs, you are prompted to enter kind of environment. One option }
% Slide 15
\subsection{Package with options}
\begin{frame}
\frametitle{Package with options}
\begin{center}
\begin{center}
\includegraphics[width=0.9975\textwidth, angle=0]{./Figures/geometry0}
\end{center}
\end{center}
\end{frame}
\note{After entering C-c C-o in Emacs, you are prompted to enter kind of environment. One option }
% Slide 16
\subsection{Options for geometry package}
\begin{frame}
\frametitle{Options for geometry package}
\begin{center}
\begin{center}
\includegraphics[width=0.9975\textwidth, angle=0]{./Figures/geometry1}
\end{center}
%Template writing.log on GitHub \footnote{\url{}}.
\end{center}
\end{frame}
\note{After entering C-c C-o in Emacs, you are prompted to enter kind of environment. One option }
% Slide 17
\subsection{Package with options}
\begin{frame}
\frametitle{Package with options}
\begin{center}
\begin{center}
\includegraphics[width=0.9975\textwidth, angle=0]{./Figures/geometry2}
\end{center}
\end{center}
\end{frame}
\note{After entering C-c C-o in Emacs, you are prompted to enter kind of environment. One option }
% Slide 18
\subsection{C-c C-e Document environment}
\begin{frame}
\frametitle{Document environment}
\begin{center}
\begin{center}
\includegraphics[width=0.995\textwidth, angle=0]{./Figures/geometry4}
\end{center}
\end{center}
\end{frame}
\note{After entering C-c C-o in Emacs, you are prompted to enter kind of environment. One option }
% Slide 19
\subsection{Custom \LaTeX{} Commands}
\begin{frame}
\frametitle{Custom \LaTeX{} Commands}
\begin{center}
\begin{center}
\includegraphics[width=0.995\textwidth, angle=0]{./Figures/customLaTeXCommands}
\end{center}
\end{center}
\end{frame}
\note{After entering C-c C-o in Emacs, you are prompted to enter kind of environment. One option }
% Slide 20
\subsection{Folded sections of writing log}
\begin{frame}
\frametitle{Folded sections of writing log}
C-c C-o C-b
\begin{center}
\includegraphics[width=0.85\textwidth, angle=0]{./Figures/writingLogSections}
\end{center}
\end{frame}
\note{ }
% Slide 21
\subsection{Unfolded section}
\begin{frame}
\frametitle{Unfolded section}
C-c C-o r \\
or \\
C-c C-o C-o \\
\begin{center}
\includegraphics[width=0.85\textwidth, angle=0]{./Figures/unfoldOneSection}
\end{center}
\end{frame}
\note{After entering C-c C-o in Emacs, you are prompted to enter kind of environment. One option }
% Slide 22
\subsection{C-c = generates TOC}
\begin{frame}
\frametitle{C-c = generates TOC}
\begin{center}
\includegraphics[width=0.99\textwidth, angle=0]{./Figures/TOC}
\end{center}
\end{frame}
\note{}
% Slide 23
\subsection{C-c C-j inserts next \\item}
\begin{frame}
\frametitle{C-c C-j inserts next item}
\begin{center}
\includegraphics[width=0.75\textwidth, angle=0]{./Figures/itemCcCj}
\end{center}
Template writing.log on GitHub \footnote{\url{}}.
\end{frame}
\note{}
% Slide 24
\subsection{Plot of words written}
\begin{frame}
\frametitle{Plot of words written}
\begin{center}
\begin{center}
\includegraphics[width=0.75\textwidth, angle=0]{./Figures/wordCountPlot}
\end{center}
%Template writing.log on GitHub \footnote{\url{}}.
\end{center}
\end{frame}
\note{}
% Slide 25
\subsection{Float environment for figure}
\begin{frame}
\frametitle{Float environment for figure}
\begin{center}
\begin{center}
\includegraphics[width=0.95\textwidth, angle=0]{./Figures/figCodeWCplot}
\end{center}
%Template writing.log on GitHub \footnote{\url{}}.
\end{center}
\end{frame}
\note{}
% Slide 25
\subsection{External data file}
\begin{frame}
\frametitle{External data file}
\begin{center}
\begin{center}
\includegraphics[width=0.75\textwidth, angle=0]{./Figures/wordCountTxt}
\end{center}
%Template writing.log on GitHub \footnote{\url{}}.
\end{center}
\end{frame}
\note{}
% Slide 26
\subsection{Code for pgfplot and table}
\begin{frame}
\frametitle{Code for pgfplot and table}
\begin{center}
\begin{center}
\includegraphics[width=0.95\textwidth, angle=0]{./Figures/pgftablePreambleCode}
\end{center}
%Template writing.log on GitHub \footnote{\url{}}.
\end{center}
\end{frame}
\note{}
% Slide 27
\subsection{Rendered table}
\begin{frame}
\frametitle{Rendered table}
\begin{center}
\begin{center}
\includegraphics[width=0.35\textwidth, angle=0]{./Figures/wcTable}
\end{center}
%Template writing.log on GitHub \footnote{\url{}}.
\end{center}
\end{frame}
\note{}
% Slide 28
\subsection{Table environment for pdfplotstable}
\begin{frame}
\frametitle{Table environment for pdfplotstable}
\begin{center}
\includegraphics[width=0.9985\textwidth, angle=0]{./Figures/pgfplotstableEnv}
\end{center}
%Template writing.log on GitHub \footnote{\url{}}.
\end{frame}
\note{}
% Slide 29
\subsection{Code for default table environment}
\begin{frame}
\frametitle{Code for default table environment}
\begin{center}
\includegraphics[width=0.99\textwidth, angle=0]{./Figures/codeDefaultTable}
\end{center}
%Template writing.log on GitHub \footnote{\url{}}.
\end{frame}
\note{}
% Slide 30
\subsection{Rendered default table}
\begin{frame}
\frametitle{Rendered default table}
\begin{table}[htp]
\centering
\begin{tabular}{lcl}
\hline
Date & Day & Words \\
\hline
20210916 & 1 & 1,148 \\
20211017 & 2 & 3,267 \\
\hline
\end{tabular}
\caption{\ref{tab:simpleTable}. Sample table in default format. }
\label{tab:simpleTable}
\end{table}
\end{frame}
\note{}
% Slide 31
\subsection{mol2chemfig and chemfig packages}
\begin{frame}
\frametitle{mol2chemfig and chemfig packages}
\begin{center}
\includegraphics[width=0.99\textwidth, angle=0]{./Figures/table2final}
\end{center}
%Template writing.log on GitHub \footnote{\url{}}.
\end{frame}
\note{}
% Slide 32
\subsection{Code for previous table}
\begin{frame}
\frametitle{Code for previous table}
\begin{center}
\includegraphics[width=0.99\textwidth, angle=0]{./Figures/table2code}
\end{center}
%Template writing.log on GitHub \footnote{\url{}}.
\end{frame}
\note{}
% Slide 33
\subsection{Placing urls in footnotes}
\begin{frame}
\frametitle{Placing urls in footnotes}
\begin{center}
\begin{center}
\includegraphics[width=0.995\textwidth, angle=0]{./Figures/furl}
\end{center}
%Template writing.log on GitHub \footnote{\url{}}.
\end{center}
\end{frame}
\note{I have trouble with long urls. They need to stick out into the margins of the page. I solved this problems by putting urls into footnotes. To ease doing so, I enter the tab trigger furl and then the cursor will sit on the default value http. I paste the url over http.}
% Slide 34
\subsection{Annotated bibliography}
\begin{frame}
\frametitle{Annotated bibliography}
\begin{center}
\begin{center}
\includegraphics[width=0.95\textwidth, angle=0]{./Figures/Annotated}
\end{center}
%Template writing.log on GitHub \footnote{\url{https://github.com/MooersLab/annotatedBibilography}}.
\end{center}
\end{frame}
\note{My writing projects have the main document and associated files and directories, the writing log, and an annotated bibliography. The latter is largely aspirational because there is never enough time to finish one. Nonetheless, these are useful when venturing into a new area. }
% Slide 35
\subsection{Annote field in BibTeX entry}
\begin{frame}
\frametitle{Annote field in BibTeX entry}
\begin{center}
\begin{center}
\includegraphics[width=1.5\textwidth, angle=0]{./Figures/annoteField}
\end{center}
\end{center}
\end{frame}
\note{ }
% Slide 36
\subsection{mainAnnote.tex file}
\begin{frame}
\frametitle{mainAnnote.tex file}
\begin{center}
\begin{center}
\includegraphics[width=0.99\textwidth, angle=0]{./Figures/mainAnnote}
\end{center}
\end{center}
\end{frame}
\note{ }
% Slide 37
\subsection{Multi-line equation}
\begin{frame}
\frametitle{Multi-line equation}
\begin{center}
\begin{center}
\includegraphics[width=0.99\textwidth, angle=0]{./Figures/equationCode}
\end{center}
\end{center}
\end{frame}
\note{}
% Slide 38
\subsection{C-c C-p C-s Preview for section}
\begin{frame}
\frametitle{C-c C-p C-s Preview for section}
\begin{center}
\begin{center}
\includegraphics[width=0.99\textwidth, angle=0]{./Figures/EquationPreview}
\end{center}
%Template writing.log on GitHub \footnote{\url{}}.
\end{center}
\end{frame}
\note{}
% Slide 39
\subsection{C-c C-a; compile and view}
\begin{frame}
\frametitle{C-c C-a compile and view}
\begin{center}
\begin{center}
\includegraphics[width=1.5\textwidth, angle=0]{./Figures/renderedEquation}
\end{center}
\end{center}
\end{frame}
\note{PDF opened in my default browser.}
% Slide 40
\subsection{eqc snippet}
\begin{frame}
\frametitle{eqc snippet}
\begin{center}
\begin{center}
\includegraphics[width=0.99\textwidth, angle=0]{./Figures/eqc}
\end{center}
\end{center}
\end{frame}
\note{PDF opened in my default browser.}
% Slide 41
\subsection{Equation float with caption}
\begin{frame}
\frametitle{Equation float with caption}
\begin{center}
\begin{center}
\includegraphics[width=0.99\textwidth, angle=0]{./Figures/codeBayesLinear}
\end{center}
\end{center}
\end{frame}
\note{PDF opened in my default browser.}
% Slide 42
\subsection{Rendered equation float with caption}
\begin{frame}
\frametitle{Rendered equation float with caption}
\begin{center}
\begin{center}
\includegraphics[width=1.4\textwidth, angle=0]{./Figures/renderedBayesLinear}
\end{center}
%Template writing.log on GitHub \footnote{\url{}}.
\end{center}
\end{frame}
\note{PDF opened in my default browser.}
% Slide 43
% \subsubsection{Section environments}
% \begin{frame}
% \frametitle{Section environments}
% \begin{center}
% \begin{center}
% \includegraphics[width=0.5\textwidth, angle=0]{./Figures/writingLogOutline}
% \end{center}
% Template writing.log on GitHub \footnote{\url{}}.
% \end{center}
% \end{frame}
% \note{}
% Slide 44
% \subsubsection{List environments}
% \begin{frame}
% \frametitle{Table environments}
% \begin{center}
% \begin{center}
% \includegraphics[width=0.5\textwidth, angle=0]{./Figures/writingLogOutline}
% \end{center}
% Template writing.log on GitHub \footnote{\url{}}.
% \end{center}
% \end{frame}
% \note{}
% Slide 43
\subsection{Code environments}
\begin{frame}
\frametitle{Code environments}
\begin{center}
\begin{center}
\includegraphics[width=0.99\textwidth, angle=0]{./Figures/mintedStan}
\end{center}
\end{center}
\end{frame}
\note{
The famous minted package by Geoffry Poore can be used to syntax highlighting or font locking in
Emacs parlance.
This requires configuration that enables the use of the -shell-escape when compiling the tex file.
Access to snippets from a language other than LaTeX requires expanding the scope of the LaTeX-mode to include say.
My code env that enables the use of indices and the labels.
}
% % Slide 2
% \subsection{Special Symbols}
% \begin{frame}
% \frametitle{Special Symbols}
% \begin{center}
% \begin{center}
% \includegraphics[width=0.5\textwidth, angle=0]{./Figures/writingLogOutline}
% \end{center}
% Template writing.log on GitHub \footnote{\url{}}.
% \end{center}
% \end{frame}
% \note{}
% Slide 44
\subsection{AUCTeX key-bindings?}
\begin{frame}
\frametitle{AUCTeX key-bindings?}
\begin{center}
\begin{itemize}[font=$\bullet$\scshape\bfseries]
\item C-c C-e ---> environments
\item C-c C-s ---> sections
\item C-c C-a ---> compile and view document.
\item C-c ` ---> go to errors.
\item C-c C-p C-s --> Preview regions.
\item C-c C-p C-c C-s ---> Remove preview of region.
\item C-c C-k ---> Kill processsing.
\item C-c ; ---> comment out region
\item M-x tex-validate-buffer.
\end{itemize}
\end{center}
\end{frame}
\note{}
% Slide 45
\subsection{Overleaf Pros and Cons}
\begin{frame}
\frametitle{Overleaf Pros and Cons}
\begin{Large}
\begin{center}
Overleaf Pros
\begin{itemize}[font=$\bullet$\scshape\bfseries]
\item One mouse click to compile.
\item Collaborative writing support.
\item File outline.
\item Store all writing projects on one site.
\item Vim or Emacs key bindings.
\item GhostView and Writefull.
\item Some autocompletion.
\end{itemize}
Overleaf Cons
\begin{itemize}[font=$\bullet$\scshape\bfseries]
\item Error messages more verbose.
\item No macros.