Repository: arfc/presentation-template
Pull request #8: Add Figure numbers to plots with captions
Author: login: nsryan2
Labels: name: Comp:Output
name: Difficulty:1-Beginner
name: Priority:3-Desired
name: Status:5-In Review
name: Type:Feature
Created: 2025-03-20T17:26:33Z | Merged: 2025-03-20T18:20:42Z

## Summary of changes
<!--- In one or more sentences, describe the PR you are submitting. -->
This PR adds 
```
\setbeamertemplate{caption}[numbered]
```
to the preamble of the main `arfc-pres.tex` file in this repo. It also adds a `.gitignore` file as well that has myriad file extensions associated with building LaTeX files. I have attached the rendered version of the new example pdf below.

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] I have read the **CONTRIBUTING** document.
- [x] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.

## Associated Issues and PRs
<!--- Please note any issues or pull requests associated with this pull request. -->

- Issue: # na


## Associated Developers
<!--- Please mention any developers who should be alerted of this PR. -->

- Dev: @katyhuff (provided the snippet I pasted into this template)


## Checklist for Reviewers

Reviewers should use [this link](https://arfc.github.io/manual/guides/pull_requests) to get to the
Review Checklist before they begin their review.


[arfc-pres.pdf](https://github.com/user-attachments/files/19372444/arfc-pres.pdf)




Diff:
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..bfe34d5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,307 @@
+## Core latex/pdflatex auxiliary files:
+*.aux
+*.lof
+*.log
+*.lot
+*.fls
+*.out
+*.toc
+*.fmt
+*.fot
+*.cb
+*.cb2
+.*.lb
+*.ist
+
+*.DS_Store
+
+## Intermediate documents:
+*.dvi
+*.xdv
+*-converted-to.*
+# these rules might exclude image files for figures etc.
+# *.ps
+# *.eps
+
+
+## Bibliography auxiliary files (bibtex/biblatex/biber):
+*.bbl
+*.bbl-SAVE-ERROR
+*.bcf
+*.blg
+*-blx.aux
+*-blx.bib
+*.run.xml
+
+## Build tool auxiliary files:
+*.fdb_latexmk
+*.synctex
+*.synctex(busy)
+*.synctex.gz
+*.synctex.gz(busy)
+*.pdfsync
+*.rubbercache
+rubber.cache
+
+## Build tool directories for auxiliary files
+# latexrun
+latex.out/
+
+## Auxiliary and intermediate files from other packages:
+# algorithms
+*.alg
+*.loa
+
+# achemso
+acs-*.bib
+
+# amsthm
+*.thm
+
+# beamer
+*.nav
+*.pre
+*.snm
+*.vrb
+
+# changes
+*.soc
+
+# comment
+*.cut
+
+# cprotect
+*.cpt
+
+# elsarticle (documentclass of Elsevier journals)
+*.spl
+
+# endnotes
+*.ent
+
+# fixme
+*.lox
+
+# feynmf/feynmp
+*.mf
+*.mp
+*.t[1-9]
+*.t[1-9][0-9]
+*.tfm
+
+#(r)(e)ledmac/(r)(e)ledpar
+*.end
+*.?end
+*.[1-9]
+*.[1-9][0-9]
+*.[1-9][0-9][0-9]
+*.[1-9]R
+*.[1-9][0-9]R
+*.[1-9][0-9][0-9]R
+*.eledsec[1-9]
+*.eledsec[1-9]R
+*.eledsec[1-9][0-9]
+*.eledsec[1-9][0-9]R
+*.eledsec[1-9][0-9][0-9]
+*.eledsec[1-9][0-9][0-9]R
+
+# glossaries
+*.acn
+*.acr
+*.glg
+*.glo
+*.gls
+*.glsdefs
+*.lzo
+*.lzs
+*.slg
+*.slo
+*.sls
+
+# uncomment this for glossaries-extra (will ignore makeindex's style files!)
+# *.ist
+
+# gnuplot
+*.gnuplot
+*.table
+
+# gnuplottex
+*-gnuplottex-*
+
+# gregoriotex
+*.gaux
+*.glog
+*.gtex
+
+# htlatex
+*.4ct
+*.4tc
+*.idv
+*.lg
+*.trc
+*.xref
+
+# hypdoc
+*.hd
+
+# hyperref
+*.brf
+
+# knitr
+*-concordance.tex
+# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files
+# *.tikz
+*-tikzDictionary
+
+# listings
+*.lol
+
+# luatexja-ruby
+*.ltjruby
+
+# makeidx
+*.idx
+*.ilg
+*.ind
+
+# minitoc
+*.maf
+*.mlf
+*.mlt
+*.mtc[0-9]*
+*.slf[0-9]*
+*.slt[0-9]*
+*.stc[0-9]*
+
+# minted
+_minted*
+*.pyg
+
+# morewrites
+*.mw
+
+# newpax
+*.newpax
+
+# nomencl
+*.nlg
+*.nlo
+*.nls
+
+# pax
+*.pax
+
+# pdfpcnotes
+*.pdfpc
+
+# sagetex
+*.sagetex.sage
+*.sagetex.py
+*.sagetex.scmd
+
+# scrwfile
+*.wrt
+
+# svg
+svg-inkscape/
+
+# sympy
+*.sout
+*.sympy
+sympy-plots-for-*.tex/
+
+# pdfcomment
+*.upa
+*.upb
+
+# pythontex
+*.pytxcode
+pythontex-files-*/
+
+# tcolorbox
+*.listing
+
+# thmtools
+*.loe
+
+# TikZ & PGF
+*.dpth
+*.md5
+*.auxlock
+
+# titletoc
+*.ptc
+
+# todonotes
+*.tdo
+
+# vhistory
+*.hst
+*.ver
+
+# easy-todo
+*.lod
+
+# xcolor
+*.xcp
+
+# xmpincl
+*.xmpi
+
+# xindy
+*.xdy
+
+# xypic precompiled matrices and outlines
+*.xyc
+*.xyd
+
+# endfloat
+*.ttt
+*.fff
+
+# Latexian
+TSWLatexianTemp*
+
+## Editors:
+# WinEdt
+*.bak
+*.sav
+
+# Texpad
+.texpadtmp
+
+# LyX
+*.lyx~
+
+# Kile
+*.backup
+
+# gummi
+.*.swp
+
+# KBibTeX
+*~[0-9]*
+
+# TeXnicCenter
+*.tps
+
+# auto folder when using emacs and auctex
+./auto/*
+*.el
+
+# expex forward references with \gathertags
+*-tags.tex
+
+# standalone packages
+*.sta
+
+# Makeindex log files
+*.lpz
+
+# xwatermark package
+*.xwm
+
+# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib
+# option is specified. Footnotes are the stored in a file with suffix Notes.bib.
+# Uncomment the next line to have this generated file ignored.
+#*Notes.bib
\ No newline at end of file
diff --git a/arfc-pres.tex b/arfc-pres.tex
index 685b788..ded5870 100644
--- a/arfc-pres.tex
+++ b/arfc-pres.tex
@@ -31,7 +31,7 @@
 \newcommand{\units}[1] {\:\text{#1}}%
 \newcommand{\SN}{S$_N$}%{S$_\text{N}$}%{$S_N$}%
 \DeclareMathOperator{\erf}{erf}
-%I need some complimentary error funcitons... 
+%I need some complimentary error functions...
 \DeclareMathOperator{\erfc}{erfc}
 %Those icons in the references are terrible looking
 \setbeamertemplate{bibliography item}[text]
@@ -61,9 +61,12 @@
   \vskip0pt%
 }
 \makeatletter
+% This will add figure numbers to captions.
+\setbeamertemplate{caption}[numbered]
+
 \begin{document}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% From uw-beamer Here's a handy bit of code to place at 
+%% From uw-beamer Here's a handy bit of code to place at
 %% the beginning of your presentation (after \begin{document}):
 \newcommand*{\alphabet}{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz}
 \newlength{\highlightheight}


Reviews:
user: login: ZoeRichter
body: I'm going to fix this little typo I caught, and then I think it's good to merge.  I didn't notice any critical file types in the gitignore or anything like that.
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-20T17:58:23Z
user: login: munkm
body: I noticed something small and suggested an additional comment. 
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-20T17:59:13Z
user: login: ZoeRichter
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-20T18:01:47Z
user: login: nsryan2
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-20T18:02:27Z
user: login: katyhuff
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-20T18:03:54Z
user: login: nsryan2
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-20T18:06:07Z
user: login: munkm
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-20T18:39:14Z

Review comments:
diff_hunk: @@ -31,7 +31,7 @@
 \newcommand{\units}[1] {\:\text{#1}}%
 \newcommand{\SN}{S$_N$}%{S$_\text{N}$}%{$S_N$}%
 \DeclareMathOperator{\erf}{erf}
-%I need some complimentary error funcitons... 
+%I need some complimentary error funcitons...
path: arfc-pres.tex
user: login: munkm
body: ```suggestion
%I need some complimentary error functions...
```
created_at: 2025-03-20T17:47:29Z
author_association: MEMBER
diff_hunk: @@ -31,7 +31,7 @@
 \newcommand{\units}[1] {\:\text{#1}}%
 \newcommand{\SN}{S$_N$}%{S$_\text{N}$}%{$S_N$}%
 \DeclareMathOperator{\erf}{erf}
-%I need some complimentary error funcitons... 
+%I need some complimentary error funcitons...
path: arfc-pres.tex
user: login: ZoeRichter
body: ```suggestion
%I need some complimentary error functions...
```
created_at: 2025-03-20T17:56:52Z
author_association: CONTRIBUTOR
diff_hunk: @@ -61,9 +61,11 @@
   \vskip0pt%
 }
 \makeatletter
+\setbeamertemplate{caption}[numbered]
path: arfc-pres.tex
user: login: munkm
body: Maybe it would be helpful to add a comment here saying what this is doing/overriding. 
created_at: 2025-03-20T17:58:18Z
author_association: MEMBER
diff_hunk: @@ -61,9 +61,11 @@
   \vskip0pt%
 }
 \makeatletter
+\setbeamertemplate{caption}[numbered]
path: arfc-pres.tex
user: login: ZoeRichter
body: ```suggestion
% This will add figure numbers to captions.
\setbeamertemplate{caption}[numbered]
```
created_at: 2025-03-20T18:01:47Z
author_association: CONTRIBUTOR
diff_hunk: @@ -61,9 +61,11 @@
   \vskip0pt%
 }
 \makeatletter
+\setbeamertemplate{caption}[numbered]
path: arfc-pres.tex
user: login: nsryan2
body: I think that's a good idea!

created_at: 2025-03-20T18:02:27Z
author_association: MEMBER
diff_hunk: @@ -61,9 +61,11 @@
   \vskip0pt%
 }
 \makeatletter
+\setbeamertemplate{caption}[numbered]
path: arfc-pres.tex
user: login: katyhuff
body: I actually think the line speaks for itself (it changes the beamer template to numbered captions.) But, a comment doesn't hurt unless it gets out of date with the code. . . 
created_at: 2025-03-20T18:03:54Z
author_association: MEMBER
diff_hunk: @@ -61,9 +61,11 @@
   \vskip0pt%
 }
 \makeatletter
+\setbeamertemplate{caption}[numbered]
path: arfc-pres.tex
user: login: nsryan2
body: That's true. It might be more in line with the style of the preamble to have a comment, but it is a pretty explanatory snippet.
created_at: 2025-03-20T18:06:07Z
author_association: MEMBER
diff_hunk: @@ -61,9 +61,11 @@
   \vskip0pt%
 }
 \makeatletter
+\setbeamertemplate{caption}[numbered]
path: arfc-pres.tex
user: login: munkm
body: I'm fine either way. 
created_at: 2025-03-20T18:39:14Z
author_association: MEMBER

PR comments:
user: login: nsryan2
created_at: 2025-03-20T18:04:04Z
body: Thank you @munkm and @ZoeRichter for your suggestions and edits! I think Zoe made the changes you both pointed out.
author_association: MEMBER
user: login: ZoeRichter
created_at: 2025-03-20T18:06:44Z
body: I'll give ~10 minutes or so for final comments and edits, then I'll merge if nothing else comes up.
author_association: CONTRIBUTOR