Skip to content

Commit

Permalink
add source
Browse files Browse the repository at this point in the history
  • Loading branch information
jlevine18 committed Nov 11, 2024
1 parent 5e3d388 commit ec611a7
Show file tree
Hide file tree
Showing 20 changed files with 873 additions and 0 deletions.
37 changes: 37 additions & 0 deletions assets/cs374a/fa24/mt2/src/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
SHELL=/bin/bash
NAME=uibeamernew
VERSION=0.1
DISTDIR=$(NAME)
ARCHIVE_NAME=/tmp/$(NAME)-$(VERSION)
SAMPLES=sample.pdf
DISTFILES=beamerthemeACMNew.sty beamernotes.sty Makefile README.txt README *.tex *.pdf *.svgz

all: pdf

ps: $(NAME).ps

%.ps: %.dvi
dvips $(DVIPSOPT) $< -o $@

pdf: $(SAMPLES) $(DEP)

%.pdf: %.tex
pdflatex $<

dist: $(DISTFILES)
rm -rf $(DISTDIR)
mkdir $(DISTDIR)
cp -aL --parents $(DISTFILES) $(DISTDIR)
tar cfvz $(ARCHIVE_NAME).tgz $(DISTDIR)
rm -rf $(DISTDIR)

distzip: $(DISTFILES)
rm -rf $(DISTDIR)
mkdir $(DISTDIR)
cp -aL --parents $(DISTFILES) $(DISTDIR)
zip -r $(ARCHIVE_NAME).zip $(DISTDIR)
rm -rf $(DISTDIR)

clean:
rm -f $(NAME).{glo,log,toc,lot,lof,idx,ilg,ind,aux,blg,bbl,dvi}
rm -f *~
Binary file added assets/cs374a/fa24/mt2/src/SCC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
128 changes: 128 additions & 0 deletions assets/cs374a/fa24/mt2/src/T1-WGL4.enc
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
% T1-WGL4.enc
%
%
% This is LaTeX T1 encoding for WGL4 encoded TrueType fonts
% (e.g. from Windows 95)
%
%
% Note that /hyphen appears twice (for the T1 code points `hyphen' 0x2d
% and `hyphenchar' 0x7f).
%
%
% LIGKERN space l =: lslash ;
% LIGKERN space L =: Lslash ;
% LIGKERN question quoteleft =: questiondown ;
% LIGKERN exclam quoteleft =: exclamdown ;
% LIGKERN hyphen hyphen =: endash ;
% LIGKERN endash hyphen =: emdash ;
% LIGKERN quoteleft quoteleft =: quotedblleft ;
% LIGKERN quoteright quoteright =: quotedblright ;
% LIGKERN comma comma =: quotedblbase ;
% LIGKERN less less =: guillemotleft ;
% LIGKERN greater greater =: guillemotright ;
%
% LIGKERN f i =: fi ;
% LIGKERN f l =: fl ;
% LIGKERN f f =: ff ;
% LIGKERN ff i =: ffi ;
% LIGKERN ff l =: ffl ;
%
% We blow away kerns to and from spaces (TeX doesn't have a
% space) and also remove any kerns from the numbers.
%
% LIGKERN space {} * ; * {} space ;
% LIGKERN zero {} * ; * {} zero ;
% LIGKERN one {} * ; * {} one ;
% LIGKERN two {} * ; * {} two ;
% LIGKERN three {} * ; * {} three ;
% LIGKERN four {} * ; * {} four ;
% LIGKERN five {} * ; * {} five ;
% LIGKERN six {} * ; * {} six ;
% LIGKERN seven {} * ; * {} seven ;
% LIGKERN eight {} * ; * {} eight ;
% LIGKERN nine {} * ; * {} nine ;

/T1Encoding [ % now 256 chars follow
% 0x00
/grave /acute /circumflex /tilde
/dieresis /hungarumlaut /ring /caron
/breve /macron /dotaccent /cedilla
/ogonek /quotesinglbase /guilsinglleft /guilsinglright
% 0x10
/quotedblleft /quotedblright /quotedblbase /guillemotleft
/guillemotright /endash /emdash /compwordmark
/perthousandzero /dotlessi /dotlessj /ff
/fi /fl /ffi /ffl
% 0x20
/visualspace /exclam /quotedbl /numbersign
/dollar /percent /ampersand /quoteright
/parenleft /parenright /asterisk /plus
/comma /hyphen /period /slash
% 0x30
/zero /one /two /three
/four /five /six /seven
/eight /nine /colon /semicolon
/less /equal /greater /question
% 0x40
/at /A /B /C
/D /E /F /G
/H /I /J /K
/L /M /N /O
% 0x50
/P /Q /R /S
/T /U /V /W
/X /Y /Z /bracketleft
/backslash /bracketright /asciicircum /underscore
% 0x60
/quoteleft /a /b /c
/d /e /f /g
/h /i /j /k
/l /m /n /o
% 0x70
/p /q /r /s
/t /u /v /w
/x /y /z /braceleft
/bar /braceright /asciitilde /hyphen
% 0x80
/Abreve /Aogonek /Cacute /Ccaron
/Dcaron /Ecaron /Eogonek /Gbreve
/Lacute /Lcaron /Lslash /Nacute
/Ncaron /Eng /Odblacute /Racute
% 0x90
/Rcaron /Sacute /Scaron /Scedilla
/Tcaron /Tcedilla /Udblacute /Uring
/Ydieresis /Zacute /Zcaron /Zdot
/IJ /Idot /dmacron /section
% 0xA0
/abreve /aogonek /cacute /ccaron
/dcaron /ecaron /eogonek /gbreve
/lacute /lcaron /lslash /nacute
/ncaron /eng /odblacute /racute
% 0xB0
/rcaron /sacute /scaron /scedilla
/tcaron /tcedilla /udblacute /uring
/ydieresis /zacute /zcaron /zdot
/ij /exclamdown /questiondown /sterling
% 0xC0
/Agrave /Aacute /Acircumflex /Atilde
/Adieresis /Aring /AE /Ccedilla
/Egrave /Eacute /Ecircumflex /Edieresis
/Igrave /Iacute /Icircumflex /Idieresis
% 0xD0
/Eth /Ntilde /Ograve /Oacute
/Ocircumflex /Otilde /Odieresis /OE
/Oslash /Ugrave /Uacute /Ucircumflex
/Udieresis /Yacute /Thorn /Germandbls
% 0xE0
/agrave /aacute /acircumflex /atilde
/adieresis /aring /ae /ccedilla
/egrave /eacute /ecircumflex /edieresis
/igrave /iacute /icircumflex /idieresis
% 0xF0
/eth /ntilde /ograve /oacute
/ocircumflex /otilde /odieresis /oe
/oslash /ugrave /uacute /ucircumflex
/udieresis /yacute /thorn /germandbls
] def

% eof
Binary file added assets/cs374a/fa24/mt2/src/acm-banner-white.pdf
Binary file not shown.
Binary file added assets/cs374a/fa24/mt2/src/acm-square-white.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions assets/cs374a/fa24/mt2/src/acm-square-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions assets/cs374a/fa24/mt2/src/beamernotes.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
%% In file.tex containing a Beamer presentation, Use \bnote{} so that
%% your notes on slides get converted automatically into
%% pdf-presenter-console notes (file.pdfpc)
%%

\begingroup
\catcode`\#=12
\gdef\slidenumberprefix{### }%
\endgroup
\typeout{Starting beamer notes.}
\let\BeamerNotesBuffer\empty
\newcounter{BeamerNotesCounter}
\newcommand{\bnote}[1]{\typeout{Creating note: #1}
\stepcounter{BeamerNotesCounter}%
\xdef\BeamerNotesBuffer{\BeamerNotesBuffer
^^J\slidenumberprefix \theBeamerNotesCounter ^^J#1}%
\mode<article>{#1}}
\AtEndDocument{%
\newwrite\file
\immediate\openout\file=\jobname.pdfpc
\immediate\write\file{[file]^^J%
\jobname.pdf^^J%
[end_user_slide]^^J%
\theBeamerNotesCounter^^J%
[notes]%
\BeamerNotesBuffer}
\closeout\file
}
133 changes: 133 additions & 0 deletions assets/cs374a/fa24/mt2/src/beamerthemeACMNew.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
%% Beamer template for ACM slides,
\ProvidesPackage{beamerthemeACMNew}
\RequirePackage{amsfonts}
\RequirePackage{graphicx}
\RequirePackage[T1]{fontenc}
\usepackage{times}

% 9:5 (approx), as in ppt template


\definecolor{ACMblue}{RGB}{0, 83, 179}
\definecolor{ACMltblue}{RGB}{83, 134, 228}
\definecolor{ACMorange}{RGB}{243, 155, 109}

\pdfmapline{+outfit < outfit.ttf <T1-WGL4.enc}

% Define a new command to use outfit
\newcommand\outfitfont[1]{{\usefont{T1}{outfit}{m}{n} #1 }}

%% choose one of the following:
\newcommand{\beamer@acm@color}{ACMblue}
\DeclareOptionBeamer{color}{\def\beamer@acm@color{#1}}


\newdimen\beamer@acm@titleheight
\beamer@acm@titleheight=10ex
\DeclareOptionBeamer{theight}{\beamer@acm@titleheight=#1}

\geometry{paperwidth=25.40cm, paperheight=19.05cm}

\ProcessOptionsBeamer

\newcommand\crule[3][\beamer@acm@color]{\textcolor{#1}{\rule{#2}{#3}}}

\setbeamerfont{title}{series=\bfseries,size=\fontsize{32}{36}}%
\setbeamerfont{subtitle}{size=\fontsize{24}{28}}
\setbeamerfont{author}{size={\fontsize{20}{24}}}
\setbeamerfont{institute}{size=\fontsize{22}{26}}
\setbeamerfont{pagexofy}{size=\tiny}
\setbeamerfont{caption}{size=\Large}
\setbeamerfont{frametitle}{family=\sffamily,series=\bfseries,size={\fontsize{23}{26}}}
\setbeamerfont{itemize item}{family=\sffamily,size={\fontsize{16}{18}}}
\setbeamerfont{itemize subitem}{family=\sffamily,size={\fontsize{16}{18}}}
\setbeamertemplate{itemize/enumerate body begin}{\fontsize{16}{19}\selectfont}
\setbeamertemplate{itemize/enumerate subbody begin}{\fontsize{16}{19}\selectfont}
\AtBeginDocument{\fontsize{16}{19}\selectfont}

%\setbeamertemplate{items}[ball]
\setbeamertemplate{navigation symbols}{}
\pgfdeclareimage[width=10cm]{acm-banner-white}{acm-banner-white}
\pgfdeclareimage[width=4.65cm]{acm-square-white}{acm-square-white}
\pgfdeclareimage[width=1.25cm]{little=u}{acm-square-white}
\setbeamerfont{alerted text}{series=\bfseries}
\setbeamercolor{alerted text}{fg=\beamer@acm@color}
\setbeamercolor{title}{fg=black}
\setbeamercolor{normal text}{fg=black}
\setbeamertemplate{itemize item}{\color{\beamer@acm@color}$\bullet$}
\setbeamertemplate{itemize
subitem}{\color{\beamer@acm@color}$\circ$}


\newcommand{\SetACMTitleMargin}[1]{\beamer@acm@titleheight=#1}
\newcommand{\SetACMTitleHeight}[1]{\beamer@acm@titleheight=#1}


\newlength\barheight\setlength\barheight{\paperheight}
\divide\barheight by 12

\setbeamertemplate{title page}
{
\begin{minipage}{.6\linewidth}
\raggedright
{\usebeamerfont{title}\textcolor{white}\inserttitle\par~}
\ifx\insertsubtitle\@empty\else%
\\[1ex]
{\usebeamerfont{subtitle}\textcolor{white}\insertsubtitle}
\fi
\\[3ex]
{\usebeamerfont{author}\textcolor{white}\insertauthor}
\ifx\insertinstitute\@empty\else%
\\[3ex]
{\\\usebeamerfont{institute}\textcolor{white}\insertinstitute}
\fi
\ifx\insertdate\empty\else%
\\[3ex]
\usebeamerfont{date}\textcolor{white}{\insertdate}
\fi
\end{minipage}
}
% \setbeamercolor{background canvas}{bg=USHERorange}
\setbeamertemplate{background}{
\setlength{\unitlength}{1cm}
\ifnum\c@framenumber=1%
\begin{picture}(25.4,19.05)(0,0)
\put(-.1, 0){\crule[\beamer@acm@color]{25.4cm}{19.05cm}}
%\put(1, 1){\pgfuseimage{acm-banner-white}}
\put(16, 7){\includegraphics[width=7cm]{acm-square-white}}
\end{picture}
\else%
\begin{picture}(25.4,19.05)(0,0)
\put(23.5, 0){\crule[\beamer@acm@color]{1.75cm}{19.05cm}}
\put(23.75, 17.3){\includegraphics[width=1.25cm,height=1.25cm]{acm-square-white}}
\end{picture}
\fi
}

\setbeamertemplate{frametitle}{
\ifnum\c@framenumber=1%
\empty%
\else
\vspace*{\beamer@acm@titleheight}
\fi
\usebeamercolor[fg]{title}%
\usebeamerfont{title}\textcolor{black}{\insertframetitle}\vspace*{0.5ex}
}

%\newcommand{\ushersettitleheight}[1]{\makeatletter\beamer@acm@titleheight=#1\makeatother}
\setbeamersize{text margin left=2cm,text margin right=2.5cm}
%% set top margin for each frame
%\addtolength{\headsep}{1cm}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: "sample"
%%% End:


\setbeamercolor{block title}{bg=ACMblue, fg=ACMorange}
\setbeamercolor{block body}{bg=ACMltblue!70!white}
\setbeamercolor{block title alerted}{fg=white, bg=red}
\setbeamercolor{block body alerted}{fg=black, bg=red!30!white}
\setbeamercolor{block title example}{fg=white, bg=green!50!black}
\setbeamercolor{block body example}{fg=black, bg=green!30!white}
Binary file added assets/cs374a/fa24/mt2/src/binary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/cs374a/fa24/mt2/src/dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/cs374a/fa24/mt2/src/feedback.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/cs374a/fa24/mt2/src/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/cs374a/fa24/mt2/src/karatsuba.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/cs374a/fa24/mt2/src/mergesort.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/cs374a/fa24/mt2/src/moontower_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/cs374a/fa24/mt2/src/outfit.tfm
Binary file not shown.
Empty file.
Binary file added assets/cs374a/fa24/mt2/src/quicksort.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ec611a7

Please sign in to comment.