Compare commits
28 Commits
ee4ba6c2b4
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 22832af588 | |||
| dab1be34c5 | |||
| 0aee418e2a | |||
| 1e79d8d0f6 | |||
| c0406f157f | |||
| 6643132141 | |||
| cc993ca40d | |||
| c316de3312 | |||
| c4a709c22c | |||
| 2b29f051a6 | |||
| a0674e7f87 | |||
| 27e9bc3254 | |||
| bd8fa11def | |||
| f43488ef70 | |||
| 34b6fe4401 | |||
| 3b444f70fc | |||
| 86fbf0f0a6 | |||
| 5d115f3b36 | |||
| 1eb1a43806 | |||
| a2b3c971ce | |||
| fc3ab6b8d6 | |||
| c3e2622e1d | |||
| 34433f5b82 | |||
| 32d383d928 | |||
| eb509bcfb8 | |||
| 9bcc8f35bf | |||
|
|
76674241c8 | ||
|
|
3a16b40a5c |
143
README
@@ -1,52 +1,143 @@
|
||||
================================
|
||||
=== LaTeX Custom Scripts ======
|
||||
=== CDSC LaTeX Templates =======
|
||||
================================
|
||||
|
||||
Copyright (c) 2009-2018 Benjamin Mako Hill <mako@atdot.cc>
|
||||
Copyright (c) 2009-2026 Benjamin Mako Hill <mako@atdot.cc> / <makohill@uw.edu>
|
||||
|
||||
This repository contains LaTeX configuration files that I use to format
|
||||
my papers. They are all released under the GNU GPL version 3 or later.
|
||||
This repository contains LaTeX configuration files and templates used to
|
||||
format papers, memos, letters, and posters. All files are released under
|
||||
the GNU GPL version 3 or later.
|
||||
|
||||
The latest version can be found in git at:
|
||||
https://projects.mako.cc/source/latex_mako/
|
||||
https://gitea.communitydata.science/collective/cdsc_tex
|
||||
|
||||
As scripts and configuration files, I do not "release" these files. You
|
||||
can always check out the latest version with Git with the following
|
||||
command:
|
||||
You can check out the latest version with:
|
||||
|
||||
git clone git://projects.mako.cc/latex_mako
|
||||
git clone https://gitea.communitydata.science/collective/cdsc_tex.git
|
||||
|
||||
Bug reports, comments, questions, and patches can all be directed to:
|
||||
Bug reports, comments, questions, and patches can be directed to:
|
||||
|
||||
Benjamin Mako Hill <mako@atdot.cc>
|
||||
Benjamin Mako Hill <makohill@uw.edu> [work]
|
||||
Benjamin Mako Hill <mako@atdot.cc> [personal]
|
||||
|
||||
The paper template has seen quite a lot of recent work. The letter
|
||||
template has seen very little and may only barely function.
|
||||
To submit a patch, clone the repository, make your changes, and use
|
||||
git format-patch to generate patch files to send by email:
|
||||
|
||||
git format-patch origin/master
|
||||
git send-email *.patch
|
||||
|
||||
================================
|
||||
=== Dependencies ===============
|
||||
================================
|
||||
|
||||
If you are running Debian or Ubuntu, you will first need to install the
|
||||
following packages:
|
||||
On Debian or Ubuntu, install the following packages:
|
||||
|
||||
* rubber
|
||||
* latexmk
|
||||
* texlive-luatex
|
||||
* texlive-latex-recommended
|
||||
* texlive-fonts-extra
|
||||
* texlive-fonts-recommended
|
||||
* texlive-bibtex-extra
|
||||
* texlive-bibtex-extra
|
||||
|
||||
You can do so with the following command:
|
||||
|
||||
apt-get install rubber texlive-latex-recommended \
|
||||
apt install latexmk texlive-luatex texlive-latex-recommended \
|
||||
texlive-fonts-extra texlive-fonts-recommended \
|
||||
texlive-bibtex-extra
|
||||
texlive-bibtex-extra
|
||||
|
||||
I don't know the details of setting up these LaTeX files to work with on
|
||||
systems other than Debian or Ubuntu but imagine it will involve
|
||||
installing a full TeX Live distribution.
|
||||
On other systems, installing a full TeX Live distribution should provide
|
||||
everything needed.
|
||||
|
||||
In my templates, I make extensive use of the following Garamond font:
|
||||
All four templates build with LuaLaTeX (via latexmk -lualatex). The text
|
||||
fonts are EB Garamond (provided by texlive-fonts-extra) and TeX Gyre
|
||||
Heros.
|
||||
|
||||
http://www.ctan.org/tex-archive/fonts/urw/garamond/
|
||||
================================
|
||||
=== Accessibility ==============
|
||||
================================
|
||||
|
||||
All four templates produce PDF/UA-2 compliant tagged PDFs via the
|
||||
LaTeX tagging project (\DocumentMetadata + tagpdf). You can verify
|
||||
compliance with verapdf: https://verapdf.org/
|
||||
|
||||
The paper and memo templates were originally built on the memoir
|
||||
class, which is incompatible with the LaTeX tagged-PDF code. They now
|
||||
use the standard article class with custom styling (cdsc-paper.sty
|
||||
and cdsc-memo.sty) to keep their previous look while supporting full
|
||||
tagging.
|
||||
|
||||
================================
|
||||
=== Branches ===================
|
||||
================================
|
||||
|
||||
This repository has two main branches:
|
||||
|
||||
master Standard LaTeX templates (paper, memo, letter, poster)
|
||||
knitr Knitr/R template for reproducible research documents
|
||||
|
||||
================================
|
||||
=== Scripts ====================
|
||||
================================
|
||||
|
||||
new_tex_document
|
||||
----------------
|
||||
Creates a new document directory from a template. Takes a document type
|
||||
and destination directory as arguments:
|
||||
|
||||
new_tex_document <type> <directory>
|
||||
|
||||
Available types:
|
||||
|
||||
paper LaTeX paper template (master branch)
|
||||
memo LaTeX memo template (master branch)
|
||||
knitr Knitr/R paper template (knitr branch)
|
||||
letter LaTeX letter template (master branch)
|
||||
|
||||
Example:
|
||||
|
||||
new_tex_document paper my-new-paper
|
||||
|
||||
This creates my-new-paper/ populated with the template files, with the
|
||||
main source file renamed to my-new-paper.tex (or .Rtex for knitr).
|
||||
|
||||
rename_tex_to_dirname
|
||||
---------------------
|
||||
Renames the single .tex file in the current directory to match the
|
||||
directory name. Useful for cleaning up a template that was set up
|
||||
manually:
|
||||
|
||||
cd my-paper && rename_tex_to_dirname
|
||||
|
||||
================================
|
||||
=== Shell Aliases ==============
|
||||
================================
|
||||
|
||||
The file cdsc_tex_aliases.sh provides aliases for the old individual
|
||||
script names, for convenience or backwards compatibility. Add the
|
||||
following to your .bashrc or .zshrc:
|
||||
|
||||
[[ -f ~/tex/cdsc_tex/cdsc_tex_aliases.sh ]] && \
|
||||
source ~/tex/cdsc_tex/cdsc_tex_aliases.sh
|
||||
|
||||
This defines the following aliases (only if new_tex_document is in PATH):
|
||||
|
||||
new_tex_memo → new_tex_document memo
|
||||
new_knitr_document → new_tex_document knitr
|
||||
new_tex_letter → new_tex_document letter
|
||||
|
||||
================================
|
||||
=== Migration ==================
|
||||
================================
|
||||
|
||||
The individual scripts new_knitr_document and new_tex_letter have
|
||||
been consolidated into new_tex_document. The old scripts remain in
|
||||
the repository but are superseded.
|
||||
|
||||
To migrate, replace calls to the old scripts with new_tex_document:
|
||||
|
||||
Old: new_knitr_document mydir
|
||||
New: new_tex_document knitr mydir
|
||||
|
||||
Old: new_tex_letter mydir
|
||||
New: new_tex_document letter mydir
|
||||
|
||||
Alternatively, source cdsc_tex_aliases.sh (see above) to keep using the
|
||||
old names without changing your workflow.
|
||||
|
||||
@@ -1,67 +0,0 @@
|
||||
\documentclass[12pt]{memoir}
|
||||
|
||||
% article-1 and article-2 styles were originally based on kieran healy's
|
||||
% templates
|
||||
\usepackage{mako-mem}
|
||||
\chapterstyle{article-2}
|
||||
|
||||
% with article-3 \chapterstyle, change to: \pagestyle{memo}
|
||||
\pagestyle{mako-mem}
|
||||
|
||||
\usepackage[utf8]{inputenc}
|
||||
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{textcomp}
|
||||
\usepackage[garamond]{mathdesign}
|
||||
|
||||
\usepackage[letterpaper,left=1.65in,right=1.65in,top=1.3in,bottom=1.2in]{geometry}
|
||||
|
||||
% packages i use in essentially every document
|
||||
\usepackage{graphicx}
|
||||
\usepackage{enumerate}
|
||||
|
||||
% packages i use in many documents but leave off by default
|
||||
% \usepackage{amsmath, amsthm, amssymb}
|
||||
% \usepackage{dcolumn}
|
||||
% \usepackage{endfloat}
|
||||
|
||||
% import and customize urls
|
||||
\usepackage[usenames,dvipsnames]{color}
|
||||
\usepackage[breaklinks]{hyperref}
|
||||
|
||||
\hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=Blue,
|
||||
urlcolor=Blue, unicode=true}
|
||||
|
||||
% add bibliographic stuff
|
||||
% memoir function to take out of the space out of the whitespace lists
|
||||
\firmlists
|
||||
|
||||
% LATEX NOTE: these lines will import vc stuff after running `make vc` which
|
||||
% will add version control information to the bottom of each page. This can be
|
||||
% useful for keeping track of which version of a document somebody has:
|
||||
% \input{vc}
|
||||
% \pagestyle{mako-mem-git}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\setlength{\parskip}{4.5pt}
|
||||
% LATEX NOTE: Ideal linespacing is usually said to be between 120-140% the
|
||||
% typeface size. So, for 12pt (default in this document, we're looking for
|
||||
% somewhere between a 14.4-17.4pt \baselineskip. Single; 1.5 lines; and Double
|
||||
% in MSWord are equivalent to ~117%, 175%, and 233%.
|
||||
|
||||
\baselineskip 16pt
|
||||
|
||||
\title{Title}
|
||||
\author{Nathan TeGrotenhuis\\
|
||||
\href{mailto:nathante@uw.edu}{nathante@uw.edu}}
|
||||
\date{\today}
|
||||
|
||||
\maketitle
|
||||
|
||||
\section{Section}
|
||||
|
||||
|
||||
\end{document}
|
||||
|
||||
% LocalWords:
|
||||
@@ -1,232 +0,0 @@
|
||||
% Some article styles and page layout tweaks for the LaTeX Memoir class.
|
||||
%
|
||||
% Copyright 2009 Benjamin Mako Hill <mako@atdot.cc>
|
||||
% Copyright 2008-2009 Kieran Healy <kjhealy@soc.duke.edu>
|
||||
|
||||
% Distributed as free software under the GNU GPL v3
|
||||
|
||||
% This file is heavily based on one by Kieran Healy
|
||||
% available here: http://github.com/kjhealy/latex-custom-kjh/
|
||||
|
||||
\usepackage{lastpage}
|
||||
|
||||
% blank footnote
|
||||
% Use \symbolfootnote[0]{Footnote text} for a blank footnote.
|
||||
% Useful for initial acknowledgment note.
|
||||
\long\def\symbolfootnote[#1]#2{\begingroup%
|
||||
\def\thefootnote{\fnsymbol{footnote}}\footnote[#1]{#2}\endgroup}
|
||||
|
||||
% put a period after the section numbers
|
||||
\setsecnumformat{\csname the#1\endcsname.\enspace}
|
||||
|
||||
% >> article-1 <<
|
||||
\makechapterstyle{article-1}{
|
||||
\renewcommand{\rmdefault}{ugm}
|
||||
\renewcommand{\sfdefault}{phv}
|
||||
|
||||
\setsecheadstyle{\large\scshape}
|
||||
\setsubsecheadstyle{\normalsize\itshape}
|
||||
\renewcommand{\printchaptername}{}
|
||||
\renewcommand{\chapternamenum}{}
|
||||
\renewcommand{\chapnumfont}{\chaptitlefont}
|
||||
\renewcommand{\printchapternum}{\chapnumfont \thechapter\space}
|
||||
\renewcommand{\afterchapternum}{}
|
||||
\renewcommand{\printchaptername}{\secheadstyle}
|
||||
\renewcommand{\cftchapterfont}{\normalfont}
|
||||
\renewcommand{\cftchapterpagefont}{\normalfont\scshape}
|
||||
\renewcommand{\cftchapterpresnum}{\scshape}
|
||||
\captiontitlefont{\small}
|
||||
|
||||
% turn off chapter numbering
|
||||
\counterwithout{section}{chapter}
|
||||
\counterwithout{figure}{chapter}
|
||||
\counterwithout{table}{chapter}
|
||||
|
||||
% reduce skip after section heading
|
||||
\setaftersecskip{1.2ex}
|
||||
|
||||
\pretitle{\newline\centering \LARGE\scshape \MakeLowercase }
|
||||
\posttitle{\par\vskip 1em}
|
||||
\predate{\footnotesize \centering}
|
||||
\postdate{\par\vskip 1em}
|
||||
|
||||
% 'abstract' title, bigger skip from title
|
||||
\renewcommand{\abstractname}{}
|
||||
\abstractrunin
|
||||
|
||||
% set name of bibliography to 'references'
|
||||
\renewcommand{\bibname}{References}
|
||||
}
|
||||
|
||||
% >> article-2 <<
|
||||
\makechapterstyle{article-2}{
|
||||
\renewcommand{\rmdefault}{ugm}
|
||||
\renewcommand{\sfdefault}{phv}
|
||||
|
||||
\setsecheadstyle{\large\scshape}
|
||||
\setsubsecheadstyle{\normalsize\itshape}
|
||||
\setaftersubsubsecskip{-1em}
|
||||
\setsubsubsecheadstyle{\bfseries}
|
||||
\renewcommand{\printchaptername}{}
|
||||
\renewcommand{\chapternamenum}{}
|
||||
\renewcommand{\chapnumfont}{\chaptitlefont}
|
||||
\renewcommand{\printchapternum}{\chapnumfont \thechapter\space}
|
||||
\renewcommand{\afterchapternum}{}
|
||||
\renewcommand{\printchaptername}{\secheadstyle}
|
||||
\renewcommand{\cftchapterfont}{\normalfont}
|
||||
\renewcommand{\cftchapterpagefont}{\normalfont\scshape}
|
||||
\renewcommand{\cftchapterpresnum}{\scshape}
|
||||
\captiontitlefont{\small}
|
||||
|
||||
% turn off chapter numbering
|
||||
\counterwithout{section}{chapter}
|
||||
\counterwithout{figure}{chapter}
|
||||
\counterwithout{table}{chapter}
|
||||
|
||||
% supress chapter numbers
|
||||
\maxsecnumdepth{chapter}
|
||||
\setsecnumdepth{chapter}
|
||||
|
||||
% for numbered sections and subsections:
|
||||
% (a) comment out the above stanza; (b) uncomment the one below
|
||||
% \maxsecnumdepth{subsection}
|
||||
% \setsecnumdepth{subsection}
|
||||
|
||||
% reduce skip after section heading
|
||||
\setaftersecskip{1.7ex}
|
||||
|
||||
% Title flush left
|
||||
\pretitle{\flushleft\LARGE \itshape}
|
||||
\posttitle{\par\vskip 0.5em}
|
||||
\preauthor{\flushleft \large \lineskip 1em}
|
||||
\postauthor{\par\lineskip 1em}
|
||||
\predate{\flushleft\footnotesize\vspace{0.65em}}
|
||||
\postdate{\par\vskip 1em}
|
||||
|
||||
% 'abstract' title, bigger skip from title
|
||||
\renewcommand{\abstractname}{Abstract:}
|
||||
\renewcommand{\abstractnamefont}{\normalfont\small\bfseries}
|
||||
\renewcommand{\abstracttextfont}{\normalfont\small}
|
||||
\setlength{\absparindent}{0em}
|
||||
\setlength{\abstitleskip}{-1.5em}
|
||||
\abstractrunin
|
||||
|
||||
% set name of bibliography to 'references'
|
||||
\renewcommand{\bibname}{References}
|
||||
}
|
||||
|
||||
|
||||
% >> article-3 <<
|
||||
\makechapterstyle{article-3}{
|
||||
\renewcommand{\rmdefault}{ugm}
|
||||
\renewcommand{\sfdefault}{phv}
|
||||
|
||||
\setsecheadstyle{\large\sffamily\bfseries\MakeUppercase}
|
||||
\setsubsecheadstyle{\normalsize\itshape}
|
||||
\setaftersubsubsecskip{-1em}
|
||||
\setsubsubsecheadstyle{\small\bfseries}
|
||||
\renewcommand{\printchaptername}{}
|
||||
\renewcommand{\chapternamenum}{}
|
||||
\renewcommand{\chapnumfont}{\chaptitlefont}
|
||||
\renewcommand{\printchapternum}{\chapnumfont \thechapter\space}
|
||||
\renewcommand{\afterchapternum}{}
|
||||
\renewcommand{\printchaptername}{\secheadstyle}
|
||||
\renewcommand{\cftchapterfont}{\normalfont}
|
||||
\renewcommand{\cftchapterpagefont}{\normalfont\scshape}
|
||||
\renewcommand{\cftchapterpresnum}{\scshape}
|
||||
\captiontitlefont{\small}
|
||||
|
||||
% turn off chapter numbering
|
||||
\counterwithout{section}{chapter}
|
||||
\counterwithout{figure}{chapter}
|
||||
\counterwithout{table}{chapter}
|
||||
|
||||
% supress chapter numbers
|
||||
\maxsecnumdepth{chapter}
|
||||
\setsecnumdepth{chapter}
|
||||
|
||||
% reduce skip after section heading
|
||||
\setaftersecskip{1pt}
|
||||
\setbeforesecskip{-1em}
|
||||
|
||||
% 'abstract' title, bigger skip from title
|
||||
% \renewcommand{\maketitle}{\{\preauthor \theauthor\} \hfill \thetitle}
|
||||
\renewcommand{\maketitle}{
|
||||
{\Large\sffamily\bfseries\MakeUppercase\thetitle} \hfill
|
||||
{\Large\sffamily\MakeUppercase\theauthor}
|
||||
\vskip 0.7em}
|
||||
\renewcommand{\abstractname}{\normalfont\scriptsize\noindent}
|
||||
\renewcommand{\abstracttextfont}{\normalfont\scriptsize}
|
||||
\abstractrunin
|
||||
|
||||
% set name of bibliography to 'references'
|
||||
\renewcommand{\bibname}{References}
|
||||
|
||||
\parindent 0pt
|
||||
|
||||
}
|
||||
|
||||
%%% Custom styles for headers and footers
|
||||
%%% Basic
|
||||
\makepagestyle{mako-mem}
|
||||
%\makeevenfoot{mako-mem}{\thepage}{}{}
|
||||
%\makeoddfoot{mako-mem}{}{}{\thepage}
|
||||
%\makeheadrule{mako-mem}{\textwidth}{\normalrulethickness}
|
||||
\newcommand{\@makomarks}{%
|
||||
\let\@mkboth\markboth
|
||||
\def\chaptermark##1{%
|
||||
\markboth{%
|
||||
\ifnum \c@secnumdepth >\m@ne
|
||||
\if@mainmatter
|
||||
\thechapter. \ %
|
||||
\fi
|
||||
\fi
|
||||
##1}{}}
|
||||
\def\sectionmark##1{%
|
||||
\markright{##1}}
|
||||
}
|
||||
\makepsmarks{mako-mem}{\@makomarks}
|
||||
\makepsmarks{mako-mem}{}
|
||||
\makeevenhead{mako-mem}{}{}{\scshape\thepage}
|
||||
\makeoddhead{mako-mem}{}{}{\scshape\thepage}
|
||||
|
||||
%%% version control info in footers; requires vc package
|
||||
% Make the style for vc-git revision control headers and footers
|
||||
\makepagestyle{mako-mem-git}
|
||||
\newcommand{\@gitmarks}{%
|
||||
\let\@mkboth\markboth
|
||||
\def\chaptermark##1{%
|
||||
\markboth{%
|
||||
\ifnum \c@secnumdepth >\m@ne
|
||||
\if@mainmatter
|
||||
\thechapter. \ %
|
||||
\fi
|
||||
\fi
|
||||
##1}{}}
|
||||
\def\sectionmark##1{%
|
||||
\markright{##1}}
|
||||
}
|
||||
\makepsmarks{mako-mem-git}{\@gitmarks}
|
||||
\makeevenhead{mako-mem-git}{}{}{\scshape\thepage}
|
||||
\makeoddhead{mako-mem-git}{}{}{\scshape\thepage}
|
||||
\makeevenfoot{mako-mem-git}{}{\texttt{\footnotesize{\textcolor{BrickRed}{git revision \VCRevision\ on \VCDateTEX}}}}{}
|
||||
\makeoddfoot{mako-mem-git}{}{\texttt{\footnotesize \textcolor{BrickRed}{git revision \VCRevision\ on \VCDateTEX}}}{}
|
||||
|
||||
%% Create a command to make a note at the top of the first page describing the
|
||||
%% publication status of the paper.
|
||||
\newcommand{\published}[1]{%
|
||||
\gdef\puB{#1}}
|
||||
\newcommand{\puB}{}
|
||||
\renewcommand{\maketitlehooka}{%
|
||||
\par\noindent\footnotesize \puB}
|
||||
|
||||
\makepagestyle{memo}
|
||||
\makeevenhead{memo}{}{}{}
|
||||
\makeoddhead{memo}{}{}{}
|
||||
|
||||
\makeevenfoot{memo}{}{\scshape \thepage/\pageref{LastPage}}{}
|
||||
\makeoddfoot{memo}{}{\scshape \thepage/\pageref{LastPage}}{}
|
||||
|
||||
|
||||
\endinput
|
||||
|
||||
@@ -1,67 +0,0 @@
|
||||
\documentclass[12pt]{memoir}
|
||||
|
||||
% article-1 and article-2 styles were originally based on kieran healy's
|
||||
% templates
|
||||
\usepackage{mako-mem}
|
||||
\chapterstyle{article-2}
|
||||
|
||||
% with article-3 \chapterstyle, change to: \pagestyle{memo}
|
||||
\pagestyle{mako-mem}
|
||||
|
||||
\usepackage[utf8]{inputenc}
|
||||
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{textcomp}
|
||||
\usepackage[garamond]{mathdesign}
|
||||
|
||||
\usepackage[letterpaper,left=1.65in,right=1.65in,top=1.3in,bottom=1.2in]{geometry}
|
||||
|
||||
% packages i use in essentially every document
|
||||
\usepackage{graphicx}
|
||||
\usepackage{enumerate}
|
||||
|
||||
% packages i use in many documents but leave off by default
|
||||
% \usepackage{amsmath, amsthm, amssymb}
|
||||
% \usepackage{dcolumn}
|
||||
% \usepackage{endfloat}
|
||||
|
||||
% import and customize urls
|
||||
\usepackage[usenames,dvipsnames]{color}
|
||||
\usepackage[breaklinks]{hyperref}
|
||||
|
||||
\hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=Blue,
|
||||
urlcolor=Blue, unicode=true}
|
||||
|
||||
% add bibliographic stuff
|
||||
% memoir function to take out of the space out of the whitespace lists
|
||||
\firmlists
|
||||
|
||||
% LATEX NOTE: these lines will import vc stuff after running `make vc` which
|
||||
% will add version control information to the bottom of each page. This can be
|
||||
% useful for keeping track of which version of a document somebody has:
|
||||
% \input{vc}
|
||||
% \pagestyle{mako-mem-git}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\setlength{\parskip}{4.5pt}
|
||||
% LATEX NOTE: Ideal linespacing is usually said to be between 120-140% the
|
||||
% typeface size. So, for 12pt (default in this document, we're looking for
|
||||
% somewhere between a 14.4-17.4pt \baselineskip. Single; 1.5 lines; and Double
|
||||
% in MSWord are equivalent to ~117%, 175%, and 233%.
|
||||
|
||||
\baselineskip 16pt
|
||||
|
||||
\title{Title}
|
||||
\author{Nathan TeBlunthuis\\
|
||||
\href{mailto:nathante@uw.edu}{nathante@uw.edu}}
|
||||
\date{\today}
|
||||
|
||||
\maketitle
|
||||
|
||||
\section{Section}
|
||||
|
||||
|
||||
\end{document}
|
||||
|
||||
% LocalWords:
|
||||
9
cdsc_tex_aliases.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
# Aliases for cdsc_tex document creation scripts.
|
||||
# Source this file from ~/.bashrc or ~/.zshrc:
|
||||
# source ~/tex/cdsc_tex/cdsc_tex_aliases.sh
|
||||
|
||||
if command -v new_tex_document > /dev/null 2>&1; then
|
||||
alias new_tex_memo='new_tex_document memo'
|
||||
alias new_knitr_document='new_tex_document knitr'
|
||||
alias new_tex_letter='new_tex_document letter'
|
||||
fi
|
||||
@@ -3,7 +3,7 @@
|
||||
all: $(patsubst %.tex,%.pdf,$(wildcard *.tex))
|
||||
|
||||
%.pdf: %.tex
|
||||
latexmk -f -pdf $<
|
||||
latexmk -f -lualatex $<
|
||||
|
||||
clean:
|
||||
latexmk -C *.tex
|
||||
|
||||
@@ -1,16 +1,26 @@
|
||||
\DocumentMetadata{
|
||||
pdfversion=2.0,
|
||||
pdfstandard=ua-2,
|
||||
lang=en-US,
|
||||
}
|
||||
\documentclass[12pt]{letter}
|
||||
|
||||
\usepackage{ucs}
|
||||
\usepackage[utf8x]{inputenc}
|
||||
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{textcomp}
|
||||
\renewcommand{\rmdefault}{ugm}
|
||||
\renewcommand{\sfdefault}{phv}
|
||||
\usepackage[garamond]{mathdesign}
|
||||
\usepackage{fontspec}
|
||||
\setmainfont{EB Garamond}
|
||||
\setsansfont{TeX Gyre Heros}
|
||||
|
||||
\usepackage[letterpaper,left=1.3in,right=1.3in,top=0.8in,bottom=0.8in]{geometry}
|
||||
|
||||
\usepackage{tagpdf}
|
||||
\tagpdfsetup{activate-all}
|
||||
|
||||
\usepackage{hyperref}
|
||||
\hypersetup{unicode=true,
|
||||
pdftitle={Letter},
|
||||
pdfauthor={Benjamin Mako Hill},
|
||||
pdflang={en-US},
|
||||
pdfdisplaydoctitle=true}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\begin{letter}{Person Letter is Addressed To\\
|
||||
|
||||
@@ -8,7 +8,7 @@ all: $(patsubst %.tex,%.pdf,$(wildcard *.tex))
|
||||
# Rscript -e "library(knitr); knit('$<')"
|
||||
|
||||
%.pdf: %.tex
|
||||
latexmk -f -pdf $<
|
||||
latexmk -f -lualatex $<
|
||||
|
||||
clean:
|
||||
latexmk -C *.tex
|
||||
@@ -22,6 +22,8 @@ clean:
|
||||
viewpdf: all
|
||||
evince *.pdf
|
||||
|
||||
vc: resources/vc-git
|
||||
|
||||
pdf: all
|
||||
|
||||
.PHONY: clean all
|
||||
90
memo_template/cdsc-memo.sty
Normal file
@@ -0,0 +1,90 @@
|
||||
% Memo-style page layout for CDSC documents.
|
||||
%
|
||||
% Article-class equivalent of the old cdsc-memo chapterstyle that
|
||||
% lived in cdsc-memoir.sty. Targets the standard `article' class so
|
||||
% the LaTeX tagging-project can produce tagged, accessible PDFs.
|
||||
%
|
||||
% Look-and-feel: sans-serif uppercase title and author on a single
|
||||
% line, sans-serif uppercase section headings, no paragraph indent,
|
||||
% and a small-caps "page/total" footer.
|
||||
%
|
||||
% Copyright 2009-2026 Benjamin Mako Hill <mako@atdot.cc>
|
||||
% Copyright 2008-2009 Kieran Healy <kjhealy@soc.duke.edu>
|
||||
|
||||
% Distributed as free software under the GNU GPL v3
|
||||
|
||||
\usepackage{lastpage}
|
||||
\usepackage{xcolor}
|
||||
|
||||
%%% Page style: empty header; "page/total" centered in the footer.
|
||||
\usepackage{fancyhdr}
|
||||
\setlength{\headheight}{14.5pt}
|
||||
\addtolength{\topmargin}{-2.5pt}
|
||||
|
||||
\fancypagestyle{cdsc-page-memo}{%
|
||||
\fancyhf{}%
|
||||
\fancyfoot[C]{\scshape\thepage/\pageref*{LastPage}}%
|
||||
\renewcommand{\headrulewidth}{0pt}%
|
||||
}
|
||||
|
||||
% Variant with git revision info in the footer (requires the vc package).
|
||||
\fancypagestyle{cdsc-page-memo-git}{%
|
||||
\fancyhf{}%
|
||||
\fancyfoot[C]{\texttt{\footnotesize\textcolor{BrickRed}{git revision \VCRevision\ on \VCDateTEX}}}%
|
||||
\renewcommand{\headrulewidth}{0pt}%
|
||||
}
|
||||
|
||||
\pagestyle{cdsc-page-memo}
|
||||
|
||||
%%% Section headings: large sans-serif bold uppercase, with the
|
||||
%%% tight before/after spacing the original memo style used.
|
||||
\usepackage{titlesec}
|
||||
|
||||
\titleformat{\section}
|
||||
{\normalsize\sffamily\bfseries\MakeUppercase}{\thesection.}{0.5em}{}
|
||||
\titlespacing*{\section}{0pt}{*1.5}{1pt}
|
||||
|
||||
\titleformat{\subsection}
|
||||
{\small\sffamily\bfseries\MakeUppercase}{\thesubsection.}{0.5em}{}
|
||||
\titlespacing*{\subsection}{0pt}{*1}{1pt}
|
||||
|
||||
\titleformat{\subsubsection}[runin]
|
||||
{\footnotesize\sffamily\bfseries}{\thesubsubsection.}{0.5em}{}[\hskip 0.5em]
|
||||
|
||||
% By default, suppress section numbering. To enable numbered sections
|
||||
% and subsections, comment the line below and uncomment the alternative.
|
||||
\setcounter{secnumdepth}{0}
|
||||
% \setcounter{secnumdepth}{2}
|
||||
|
||||
%%% Title block: "TITLE [...] AUTHOR" on a single line, no date.
|
||||
\usepackage{titling}
|
||||
|
||||
\renewcommand{\maketitle}{%
|
||||
\par\noindent\footnotesize\puB\par
|
||||
{\large\sffamily\bfseries\MakeUppercase\thetitle}\hfill
|
||||
{\large\sffamily\MakeUppercase\theauthor}%
|
||||
\par\vskip 0.7em%
|
||||
}
|
||||
|
||||
%% \published{...}: a note about publication status, printed in small
|
||||
%% type at the very top of the title block.
|
||||
\newcommand{\puB}{}
|
||||
\newcommand{\published}[1]{\gdef\puB{#1}}
|
||||
|
||||
%%% List spacing
|
||||
\usepackage{enumitem}
|
||||
\setlist{topsep=0pt, partopsep=0pt}
|
||||
|
||||
%%% Caption font
|
||||
\usepackage{caption}
|
||||
\captionsetup{font=small}
|
||||
|
||||
%%% No paragraph indent (memos use a blank-line paragraph break style).
|
||||
\setlength{\parindent}{0pt}
|
||||
|
||||
%%% Footnote symbol command (for \thanks{} footnotes that should not
|
||||
%%% have a numeric mark). Use as \symbolfootnote[0]{Footnote text}.
|
||||
\long\def\symbolfootnote[#1]#2{\begingroup%
|
||||
\def\thefootnote{\fnsymbol{footnote}}\footnote[#1]{#2}\endgroup}
|
||||
|
||||
\endinput
|
||||
14
memo_template/refs.bib
Normal file
@@ -0,0 +1,14 @@
|
||||
@inproceedings{989866,
|
||||
author = {Ken Hinckley and Gonzalo Ramos and François
|
||||
Guimbretiere and Patrick Baudisch and Marc Smith},
|
||||
title = {Stitching: pen gestures that span multiple displays},
|
||||
booktitle = {AVI '04: Proceedings of the working conference on
|
||||
Advanced visual interfaces},
|
||||
year = {2004},
|
||||
isbn = {1-58113-867-9},
|
||||
pages = {23--31},
|
||||
location = {Gallipoli, Italy},
|
||||
doi = {http://doi.acm.org/10.1145/989863.989866},
|
||||
publisher = {ACM Press},
|
||||
address = {New York, NY, USA},
|
||||
}
|
||||
106
memo_template/text.tex
Normal file
@@ -0,0 +1,106 @@
|
||||
% Tagged PDF (PDF/UA-2) accessibility setup. The article class works
|
||||
% with the LaTeX tagging-project, so we use the full \DocumentMetadata
|
||||
% path here.
|
||||
\DocumentMetadata{
|
||||
pdfversion=2.0,
|
||||
pdfstandard=ua-2,
|
||||
lang=en-US,
|
||||
}
|
||||
|
||||
\documentclass[12pt]{article}
|
||||
|
||||
\usepackage{cdsc-memo}
|
||||
\usepackage{tagpdf}
|
||||
\tagpdfsetup{activate-all}
|
||||
|
||||
\usepackage{fontspec}
|
||||
\setmainfont{EB Garamond}
|
||||
\setsansfont{TeX Gyre Heros}
|
||||
|
||||
\usepackage[letterpaper,left=1.65in,right=1.65in,top=1.3in,bottom=1.2in]{geometry}
|
||||
|
||||
% packages i use in essentially every document
|
||||
\usepackage{graphicx}
|
||||
\usepackage{enumerate}
|
||||
|
||||
% packages i use in many documents but leave off by default
|
||||
% \usepackage{amsmath, amsthm, amssymb}
|
||||
% \usepackage{dcolumn}
|
||||
|
||||
% urls and colors
|
||||
\usepackage[dvipsnames]{xcolor}
|
||||
\usepackage[breaklinks]{hyperref}
|
||||
|
||||
% pdftitle/pdfauthor populate PDF and XMP metadata; keep these in sync
|
||||
% with \title{} and \author{} below. UA-2 requires dc:title in XMP.
|
||||
\hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=Blue,
|
||||
urlcolor=Blue, unicode=true,
|
||||
pdftitle={Memo Title},
|
||||
pdfauthor={Your Name},
|
||||
pdflang={en-US},
|
||||
pdfdisplaydoctitle=true}
|
||||
|
||||
% list of footnote symbols for \thanks{}
|
||||
\makeatletter
|
||||
\renewcommand*{\@fnsymbol}[1]{\ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or
|
||||
\mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger
|
||||
\or \ddagger\ddagger \else\@ctrerr\fi}}
|
||||
\makeatother
|
||||
\newcommand*\samethanks[1][\value{footnote}]{\footnotemark[#1]}
|
||||
|
||||
% add bibliographic stuff
|
||||
\usepackage[american]{babel}
|
||||
\usepackage{csquotes}
|
||||
\usepackage[natbib=true, style=apa, backend=biber]{biblatex}
|
||||
\addbibresource{refs.bib}
|
||||
\DeclareLanguageMapping{american}{american-apa}
|
||||
|
||||
\defbibheading{secbib}[\bibname]{%
|
||||
\section*{#1}%
|
||||
\markboth{#1}{#1}%
|
||||
\baselineskip 14.2pt}
|
||||
|
||||
\def\citepos#1{\citeauthor{#1}'s (\citeyear{#1})}
|
||||
\def\citespos#1{\citeauthor{#1}' (\citeyear{#1})}
|
||||
|
||||
% LATEX NOTE: these lines will import vc stuff after running `make vc`,
|
||||
% which adds a git revision footer to each page:
|
||||
% \input{vc}
|
||||
% \pagestyle{cdsc-page-memo-git}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\setlength{\parskip}{4.5pt}
|
||||
\baselineskip 16pt
|
||||
|
||||
\title{Memo Title}
|
||||
\author{Your Name}
|
||||
|
||||
\maketitle
|
||||
|
||||
\section{Section}
|
||||
|
||||
The quick brown fox jumps over the lazy dog. The quick brown fox jumps
|
||||
over the lazy dog. The quick brown fox jumps over the lazy dog. The
|
||||
quick brown fox jumps over the lazy dog. The quick brown fox jumps over
|
||||
the lazy dog \citep{989866}.
|
||||
|
||||
\section{Another Section}
|
||||
|
||||
The quick brown fox jumps over the lazy dog. The quick brown fox jumps
|
||||
over the lazy dog. The quick brown fox jumps over the lazy dog. The
|
||||
quick brown fox jumps over the lazy dog.
|
||||
|
||||
\subsection{A Subsection}
|
||||
|
||||
The quick brown fox jumps over the lazy dog. The quick brown fox jumps
|
||||
over the lazy dog.
|
||||
|
||||
% bibliography
|
||||
\setcounter{biburlnumpenalty}{9001}
|
||||
\printbibliography[title = {References}, heading=secbib]
|
||||
|
||||
|
||||
\end{document}
|
||||
|
||||
% LocalWords:
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Helper script to export LaTeX templates for new documents
|
||||
# Copyright (c) 2009-2016 Benjamin Mako Hill <mako@atdot.cc>
|
||||
# Released under the GPLv3 or later.
|
||||
|
||||
CURDIR=$(pwd)
|
||||
TMPDIR=$(mktemp -d)
|
||||
|
||||
if test $1
|
||||
then
|
||||
cd "$HOME/tex/cdsc_tex"
|
||||
git archive --format=tar knitr paper_template|tar x --strip=1 -C "$TMPDIR"
|
||||
cd "$CURDIR"
|
||||
|
||||
# get rid of paper_template subdir
|
||||
mv "$TMPDIR" "$1"
|
||||
cd "$1";
|
||||
mv "text.Rtex" "$1.Rtex"
|
||||
else
|
||||
echo "specifiy a directory where the template should go";
|
||||
fi
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Helper script to export LaTeX templates for new documents
|
||||
# Copyright (c) 2009-2016 Benjamin Mako Hill <mako@atdot.cc>
|
||||
# Released under the GPLv3 or later.
|
||||
|
||||
CURDIR=$(pwd)
|
||||
TMPDIR=$(mktemp -d)
|
||||
|
||||
if test $1
|
||||
then
|
||||
cd "$HOME/tex/cdsc_tex"
|
||||
git archive --format=tar master assignment_template|tar x --strip=1 -C "$TMPDIR"
|
||||
cd "$CURDIR"
|
||||
|
||||
# get rid of paper_template subdir
|
||||
mv "$TMPDIR" "$1"
|
||||
cd "$1";
|
||||
mv "text.tex" "$1.tex"
|
||||
else
|
||||
echo "specifiy a directory where the template should go";
|
||||
fi
|
||||
@@ -1,22 +1,64 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Helper script to export LaTeX templates for new documents
|
||||
# Copyright (c) 2009-2016 Benjamin Mako Hill <mako@atdot.cc>
|
||||
# Helper script to export LaTeX/knitr templates for new documents
|
||||
# Copyright (c) 2009-2026 Benjamin Mako Hill <mako@atdot.cc>
|
||||
# Released under the GPLv3 or later.
|
||||
|
||||
set -e
|
||||
|
||||
CURDIR=$(pwd)
|
||||
TMPDIR=$(mktemp -d)
|
||||
|
||||
if test $1
|
||||
then
|
||||
cd "$HOME/tex/cdsc_tex"
|
||||
git archive --format=tar master paper_template|tar x --strip=1 -C "$TMPDIR"
|
||||
cd "$CURDIR"
|
||||
usage() {
|
||||
echo "Usage: $(basename "$0") <type> <directory>"
|
||||
echo "Types: paper, memo, knitr, letter"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# get rid of paper_template subdir
|
||||
mv "$TMPDIR" "$1"
|
||||
cd "$1";
|
||||
mv "text.tex" "$1.tex"
|
||||
else
|
||||
echo "specifiy a directory where the template should go";
|
||||
[ -n "$1" ] && [ -n "$2" ] || usage
|
||||
|
||||
TYPE="$1"
|
||||
DEST="$2"
|
||||
|
||||
case "$TYPE" in
|
||||
paper)
|
||||
REPO="$HOME/tex/cdsc_tex"
|
||||
BRANCH="master"
|
||||
TEMPLATE="paper_template"
|
||||
EXT="tex"
|
||||
;;
|
||||
memo)
|
||||
REPO="$HOME/tex/cdsc_tex"
|
||||
BRANCH="master"
|
||||
TEMPLATE="memo_template"
|
||||
EXT="tex"
|
||||
;;
|
||||
knitr)
|
||||
REPO="$HOME/tex/cdsc_tex"
|
||||
BRANCH="knitr"
|
||||
TEMPLATE="paper_template"
|
||||
EXT="Rtex"
|
||||
;;
|
||||
letter)
|
||||
REPO="$HOME/tex/cdsc_tex"
|
||||
BRANCH="master"
|
||||
TEMPLATE="letter_template"
|
||||
EXT="tex"
|
||||
;;
|
||||
*)
|
||||
echo "error: unknown type '$TYPE'"
|
||||
usage
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -e "$DEST" ]; then
|
||||
echo "error: '$DEST' already exists"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
WORK_DIR=$(mktemp -d)
|
||||
cd "$REPO"
|
||||
git archive --format=tar "$BRANCH" "$TEMPLATE" | tar x --strip=1 -C "$WORK_DIR"
|
||||
cd "$CURDIR"
|
||||
mv "$WORK_DIR" "$DEST"
|
||||
cd "$DEST"
|
||||
mv "text.$EXT" "$(basename "$DEST").$EXT"
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Helper script to export LaTeX templates for new letters
|
||||
# Copyright (c) 2009-2016 Benjamin Mako Hill <mako@atdot.cc>
|
||||
# Released under the GPLv3 or later.
|
||||
|
||||
CURDIR=$(pwd)
|
||||
TMPDIR=$(mktemp -d)
|
||||
|
||||
if test $1
|
||||
then
|
||||
cd "$HOME/tex/latex_mako"
|
||||
git archive --format=tar HEAD letter_template|tar x --strip=1 -C "$TMPDIR"
|
||||
cd "$CURDIR"
|
||||
|
||||
# get rid of paper_template subdir
|
||||
mv "$TMPDIR" "$1"
|
||||
cd "$1";
|
||||
mv "text.tex" "$1.tex"
|
||||
else
|
||||
echo "specifiy a directory where the template should go";
|
||||
fi
|
||||
2
paper_template/.gitignore
vendored
@@ -13,5 +13,3 @@
|
||||
/*.ttt
|
||||
/*.bcf
|
||||
/*.run.xml
|
||||
/figures/*
|
||||
/*.tex
|
||||
|
||||
@@ -1,21 +1,23 @@
|
||||
#!/usr/bin/make
|
||||
|
||||
all: $(patsubst %.Rtex,%.pdf,$(wildcard *.Rtex))
|
||||
all: $(patsubst %.tex,%.pdf,$(wildcard *.tex))
|
||||
|
||||
%.tex: %.Rtex
|
||||
Rscript -e "library(knitr); knit('$<')"
|
||||
# use the following section for Rnw/knitr documents
|
||||
# all: $(patsubst %.Rnw,%.pdf,$(wildcard *.Rnw))
|
||||
# %.tex: %.Rnw
|
||||
# Rscript -e "library(knitr); knit('$<')"
|
||||
|
||||
%.pdf: %.tex
|
||||
latexmk -f -pdf $<
|
||||
latexmk -f -lualatex $<
|
||||
|
||||
clean:
|
||||
latexmk -C *.tex
|
||||
rm -f *.tmp *.run.xml
|
||||
rm -f vc
|
||||
rm -f *.bbl
|
||||
# the following lines are useful for Rtex/knitr
|
||||
rm -rf cache/ figure/
|
||||
rm -f *.tex
|
||||
# the following lines are useful for Rnw/knitr
|
||||
# rm -rf cache/ figure/
|
||||
# rm -f *.tex
|
||||
|
||||
viewpdf: all
|
||||
evince *.pdf
|
||||
@@ -25,4 +27,4 @@ vc: resources/vc-git
|
||||
pdf: all
|
||||
|
||||
.PHONY: clean all
|
||||
.PRECIOUS: %.tex
|
||||
# .PRECIOUS: %.tex
|
||||
|
||||
@@ -1,204 +0,0 @@
|
||||
% Some article styles and page layout tweaks for the LaTeX Memoir
|
||||
% class.
|
||||
%
|
||||
% Copyright 2009-2018 Benjamin Mako Hill <mako@atdot.cc>
|
||||
% Copyright 2008-2009 Kieran Healy <kjhealy@soc.duke.edu>
|
||||
|
||||
% Distributed as free software under the GNU GPL v3
|
||||
|
||||
% This file was originally based on one by Kieran Healy
|
||||
% available here: http://github.com/kjhealy/latex-custom-kjh/
|
||||
|
||||
%%% Custom styles for headers and footers
|
||||
%%% Basic
|
||||
|
||||
\makepagestyle{cdsc-page}
|
||||
%\makeevenfoot{cdsc-page}{\thepage}{}{}
|
||||
%\makeoddfoot{cdsc-page}{}{}{\thepage}
|
||||
%\makeheadrule{cdsc-page}{\textwidth}{\normalrulethickness}
|
||||
\newcommand{\@cdscmarks}{%
|
||||
\let\@mkboth\markboth
|
||||
\def\chaptermark##1{%
|
||||
\markboth{%
|
||||
\ifnum \c@secnumdepth >\m@ne
|
||||
\if@mainmatter
|
||||
\thechapter. \ %
|
||||
\fi
|
||||
\fi
|
||||
##1}{}}
|
||||
\def\sectionmark##1{%
|
||||
\markright{##1}}
|
||||
}
|
||||
\makepsmarks{cdsc-page}{\@cdscmarks}
|
||||
\makepsmarks{cdsc-page}{}
|
||||
\makeevenhead{cdsc-page}{}{}{\scshape\thepage}
|
||||
\makeoddhead{cdsc-page}{}{}{\scshape\thepage}
|
||||
|
||||
%%% version control info in footers; requires vc package
|
||||
% Make the style for vc-git revision control headers and footers
|
||||
\makepagestyle{cdsc-page-git}
|
||||
\newcommand{\@gitmarks}{%
|
||||
\let\@mkboth\markboth
|
||||
\def\chaptermark##1{%
|
||||
\markboth{%
|
||||
\ifnum \c@secnumdepth >\m@ne
|
||||
\if@mainmatter
|
||||
\thechapter. \ %
|
||||
\fi
|
||||
\fi
|
||||
##1}{}}
|
||||
\def\sectionmark##1{%
|
||||
\markright{##1}}
|
||||
}
|
||||
\makepsmarks{cdsc-page-git}{\@gitmarks}
|
||||
\makeevenhead{cdsc-page-git}{}{}{\scshape\thepage}
|
||||
\makeoddhead{cdsc-page-git}{}{}{\scshape\thepage}
|
||||
\makeevenfoot{cdsc-page-git}{}{\texttt{\footnotesize{\textcolor{BrickRed}{git revision \VCRevision\ on \VCDateTEX}}}}{}
|
||||
\makeoddfoot{cdsc-page-git}{}{\texttt{\footnotesize \textcolor{BrickRed}{git revision \VCRevision\ on \VCDateTEX}}}{}
|
||||
|
||||
%%% print a datestamp from ShareLaTeX
|
||||
\makepagestyle{cdsc-page-sharelatex}
|
||||
\newcommand{\@slmarks}{%
|
||||
\let\@mkboth\markboth
|
||||
\def\chaptermark##1{%
|
||||
\markboth{%
|
||||
\ifnum \c@secnumdepth >\m@ne
|
||||
\if@mainmatter
|
||||
\thechapter. \ %
|
||||
\fi
|
||||
\fi
|
||||
##1}{}}
|
||||
\def\sectionmark##1{%
|
||||
\markright{##1}}
|
||||
}
|
||||
\makepsmarks{cdsc-page-sharelatex}{\@slmarks}
|
||||
\makeevenhead{cdsc-page-sharelatex}{}{}{\scshape\thepage}
|
||||
\makeoddhead{cdsc-page-sharelatex}{}{}{\scshape\thepage}
|
||||
\makeevenfoot{cdsc-page-sharelatex}{}{\texttt{\footnotesize{\textcolor{BrickRed}{Buildstamp/Version:~\pdfdate}}}}{}
|
||||
\makeoddfoot{cdsc-page-sharelatex}{}{\texttt{\footnotesize{\textcolor{BrickRed}{Buildstamp/Version:~\pdfdate}}}}{}
|
||||
|
||||
%% Create a command to make a note at the top of the first page describing the
|
||||
%% publication status of the paper.
|
||||
\newcommand{\published}[1]{%
|
||||
\gdef\puB{#1}}
|
||||
\newcommand{\puB}{}
|
||||
\renewcommand{\maketitlehooka}{%
|
||||
\par\noindent\footnotesize \puB}
|
||||
|
||||
\makepagestyle{cdsc-page-memo}
|
||||
\makeevenhead{cdsc-page-memo}{}{}{}
|
||||
\makeoddhead{cdsc-page-memo}{}{}{}
|
||||
\makeevenfoot{cdsc-page-memo}{}{\scshape \thepage/\pageref{LastPage}}{}
|
||||
\makeoddfoot{cdsc-page-memo}{}{\scshape \thepage/\pageref{LastPage}}{}
|
||||
|
||||
\usepackage{lastpage}
|
||||
\usepackage{datetime}
|
||||
|
||||
% blank footnote
|
||||
% Use \symbolfootnote[0]{Footnote text} for a blank footnote.
|
||||
% Useful for initial acknowledgment note.
|
||||
\long\def\symbolfootnote[#1]#2{\begingroup%
|
||||
\def\thefootnote{\fnsymbol{footnote}}\footnote[#1]{#2}\endgroup}
|
||||
|
||||
% put a period after the section numbers
|
||||
\setsecnumformat{\csname the#1\endcsname.\enspace}
|
||||
|
||||
% set fonts to garamond and helvetica
|
||||
\renewcommand{\rmdefault}{ugm}
|
||||
\renewcommand{\sfdefault}{phv}
|
||||
|
||||
% material shared between the two modes
|
||||
|
||||
\setsubsecheadstyle{\normalsize\itshape}
|
||||
\setaftersubsubsecskip{-1em}
|
||||
\setsubsubsecheadstyle{\small\bfseries}
|
||||
\renewcommand{\printchaptername}{}
|
||||
\renewcommand{\chapternamenum}{}
|
||||
\renewcommand{\chapnumfont}{\chaptitlefont}
|
||||
\renewcommand{\printchapternum}{\chapnumfont \thechapter\space}
|
||||
\renewcommand{\afterchapternum}{}
|
||||
\renewcommand{\printchaptername}{\secheadstyle}
|
||||
\renewcommand{\cftchapterfont}{\normalfont}
|
||||
\renewcommand{\cftchapterpagefont}{\normalfont\scshape}
|
||||
\renewcommand{\cftchapterpresnum}{\scshape}
|
||||
\captiontitlefont{\small}
|
||||
|
||||
% turn off chapter numbering
|
||||
\counterwithout{section}{chapter}
|
||||
\counterwithout{figure}{chapter}
|
||||
\counterwithout{table}{chapter}
|
||||
|
||||
% supress chapter numbers
|
||||
\maxsecnumdepth{chapter}
|
||||
\setsecnumdepth{chapter}
|
||||
|
||||
% for numbered sections and subsections:
|
||||
% (a) comment out the above stanza; (b) uncomment the one below
|
||||
% \maxsecnumdepth{subsection}
|
||||
% \setsecnumdepth{subsection}
|
||||
|
||||
% set name of bibliography to 'references'
|
||||
\renewcommand{\bibname}{References}
|
||||
|
||||
% >> cdsc-article <<
|
||||
\makechapterstyle{cdsc-article}{
|
||||
|
||||
% section heading sytle
|
||||
\setsecheadstyle{\large\scshape}
|
||||
|
||||
% reduce skip after section heading
|
||||
\setaftersecskip{1.7ex}
|
||||
|
||||
% Title flush left
|
||||
\pretitle{\flushleft\LARGE \itshape}
|
||||
\posttitle{\par\vskip 0.5em}
|
||||
\preauthor{\flushleft \large \lineskip 1em}
|
||||
\postauthor{\par\lineskip 1em}
|
||||
\predate{\flushleft\footnotesize\vspace{0.65em}}
|
||||
\postdate{\par\vskip 1em}
|
||||
|
||||
% 'abstract' title, bigger skip from title
|
||||
\renewcommand{\abstractname}{Abstract:}
|
||||
\renewcommand{\abstractnamefont}{\normalfont\small\bfseries}
|
||||
\renewcommand{\abstracttextfont}{\normalfont\small}
|
||||
\setlength{\absparindent}{0em}
|
||||
\setlength{\abstitleskip}{-1.5em}
|
||||
\abstractrunin
|
||||
|
||||
% this is the default page style for chapters
|
||||
\pagestyle{cdsc-page}
|
||||
|
||||
}
|
||||
|
||||
% >> cdsc-memo <<
|
||||
\makechapterstyle{cdsc-memo}{
|
||||
|
||||
% section heading sytle
|
||||
\setsecheadstyle{\large\sffamily\bfseries\MakeUppercase}
|
||||
|
||||
% reduce skip after section heading
|
||||
\setaftersecskip{1pt}
|
||||
\setbeforesecskip{-1em}
|
||||
|
||||
% 'abstract' title, bigger skip from title
|
||||
% \renewcommand{\maketitle}{\{\preauthor \theauthor\} \hfill \thetitle}
|
||||
\renewcommand{\maketitle}{
|
||||
{\Large\sffamily\bfseries\MakeUppercase\thetitle} \hfill
|
||||
{\Large\sffamily\MakeUppercase\theauthor}
|
||||
\vskip 0.7em}
|
||||
\renewcommand{\abstractname}{\normalfont\scriptsize\noindent}
|
||||
\renewcommand{\abstracttextfont}{\normalfont\scriptsize}
|
||||
\abstractrunin
|
||||
|
||||
% set name of bibliography to 'references'
|
||||
\renewcommand{\bibname}{References}
|
||||
|
||||
\parindent 0pt
|
||||
|
||||
% this is the default page style for chapters
|
||||
\pagestyle{cdsc-page-memo}
|
||||
|
||||
}
|
||||
|
||||
\endinput
|
||||
|
||||
110
paper_template/cdsc-paper.sty
Normal file
@@ -0,0 +1,110 @@
|
||||
% Article-class styles and page layout for CDSC paper documents.
|
||||
%
|
||||
% This file replaces the older cdsc-memoir.sty. It targets the
|
||||
% standard `article' class so the LaTeX tagging-project can produce
|
||||
% tagged, accessible PDFs --- memoir is currently incompatible with
|
||||
% that work. The look-and-feel is kept as close to the previous
|
||||
% cdsc-article chapterstyle as is practical.
|
||||
%
|
||||
% Copyright 2009-2026 Benjamin Mako Hill <mako@atdot.cc>
|
||||
% Copyright 2008-2009 Kieran Healy <kjhealy@soc.duke.edu>
|
||||
|
||||
% Distributed as free software under the GNU GPL v3
|
||||
|
||||
\usepackage{lastpage}
|
||||
\usepackage{datetime}
|
||||
\usepackage{xcolor}
|
||||
|
||||
%%% Page styles (replaces memoir's \makepagestyle / \makeevenhead etc.)
|
||||
\usepackage{fancyhdr}
|
||||
\setlength{\headheight}{14.5pt}
|
||||
\addtolength{\topmargin}{-2.5pt}
|
||||
|
||||
% Basic: page number in small caps in the upper-right corner
|
||||
\fancypagestyle{cdsc-page}{%
|
||||
\fancyhf{}%
|
||||
\fancyhead[R]{\scshape\thepage}%
|
||||
\renewcommand{\headrulewidth}{0pt}%
|
||||
}
|
||||
|
||||
% Variant with git revision info in the footer (requires the vc package).
|
||||
\fancypagestyle{cdsc-page-git}{%
|
||||
\fancyhf{}%
|
||||
\fancyhead[R]{\scshape\thepage}%
|
||||
\fancyfoot[C]{\texttt{\footnotesize\textcolor{BrickRed}{git revision \VCRevision\ on \VCDateTEX}}}%
|
||||
\renewcommand{\headrulewidth}{0pt}%
|
||||
}
|
||||
|
||||
% Variant with a build timestamp in the footer (useful on Overleaf/etc.)
|
||||
\fancypagestyle{cdsc-page-overleaf}{%
|
||||
\fancyhf{}%
|
||||
\fancyhead[R]{\scshape\thepage}%
|
||||
\fancyfoot[C]{\texttt{\footnotesize\textcolor{BrickRed}{Buildstamp/Version:~\today}}}%
|
||||
\renewcommand{\headrulewidth}{0pt}%
|
||||
}
|
||||
|
||||
\pagestyle{cdsc-page}
|
||||
|
||||
%%% Section heading styles (replaces memoir's \setsecheadstyle etc.)
|
||||
\usepackage{titlesec}
|
||||
|
||||
% Sections: large small caps; period after the number
|
||||
\titleformat{\section}
|
||||
{\large\scshape}{\thesection.}{0.5em}{}
|
||||
\titlespacing*{\section}{0pt}{*2}{1.7ex}
|
||||
|
||||
% Subsections: italic
|
||||
\titleformat{\subsection}
|
||||
{\normalsize\itshape}{\thesubsection.}{0.5em}{}
|
||||
|
||||
% Subsubsections: small bold, runin (matches memoir's negative skip behavior)
|
||||
\titleformat{\subsubsection}[runin]
|
||||
{\small\bfseries}{\thesubsubsection.}{0.5em}{}[\hskip 0.5em]
|
||||
|
||||
% By default, suppress numbering at the section level (matches the
|
||||
% memoir template's default of \setsecnumdepth{chapter}). To enable
|
||||
% numbered sections and subsections, comment the line below and
|
||||
% uncomment the alternative.
|
||||
\setcounter{secnumdepth}{0}
|
||||
% \setcounter{secnumdepth}{2}
|
||||
|
||||
%%% Title block (titling package replaces memoir's title hooks)
|
||||
\usepackage{titling}
|
||||
|
||||
% Title flush left, italic, large
|
||||
\pretitle{\flushleft\LARGE\itshape}
|
||||
\posttitle{\par\vskip 0.5em}
|
||||
\preauthor{\flushleft\large\lineskip 1em}
|
||||
\postauthor{\par\lineskip 1em}
|
||||
\predate{\flushleft\footnotesize\vspace{0.65em}}
|
||||
\postdate{\par\vskip 1em}
|
||||
|
||||
%% \published{...}: a note about the publication status, printed in
|
||||
%% small type at the very top of the title block. Use this for
|
||||
%% draft/working-paper notices.
|
||||
\newcommand{\puB}{}
|
||||
\newcommand{\published}[1]{\gdef\puB{#1}}
|
||||
\renewcommand{\maketitlehooka}{\par\noindent\footnotesize\puB}
|
||||
|
||||
%%% Abstract: runin style ("**Abstract:** the quick brown fox..."),
|
||||
%%% indented from both margins (via the quote environment, which gives
|
||||
%%% the side indent without adding first-line paragraph indentation).
|
||||
\renewenvironment{abstract}%
|
||||
{\par\addvspace{\medskipamount}\small
|
||||
\begin{quote}\noindent\textbf{Abstract:}\hspace{0.5em}\ignorespaces}%
|
||||
{\end{quote}\par\medskip}
|
||||
|
||||
%%% List spacing (replaces memoir's \firmlists --- tighter lists)
|
||||
\usepackage{enumitem}
|
||||
\setlist{topsep=0pt, partopsep=0pt}
|
||||
|
||||
%%% Caption font
|
||||
\usepackage{caption}
|
||||
\captionsetup{font=small}
|
||||
|
||||
%%% Footnote symbol command (for \thanks{} footnotes that should not
|
||||
%%% have a numeric mark). Use as \symbolfootnote[0]{Footnote text}.
|
||||
\long\def\symbolfootnote[#1]#2{\begingroup%
|
||||
\def\thefootnote{\fnsymbol{footnote}}\footnote[#1]{#2}\endgroup}
|
||||
|
||||
\endinput
|
||||
@@ -1,50 +0,0 @@
|
||||
bold <- function(x) {paste('{\\textbf{',x,'}}', sep ='')}
|
||||
gray <- function(x) {paste('{\\textcolor{gray}{',x,'}}', sep ='')}
|
||||
wrapify <- function (x) {paste("{", x, "}", sep="")}
|
||||
|
||||
# load("knitr_data.RData"); now broken up into small files so we'll bring 'em all in together
|
||||
r <- do.call("c", lapply(paste("knitr_rdata/", list.files("knitr_rdata"), sep=""),
|
||||
function (x) {load(x); return(r)}))
|
||||
|
||||
attach(r)
|
||||
|
||||
f <- function (x) {formatC(x, format="d", big.mark=',')}
|
||||
|
||||
format.percent <- function(x) {paste(f(x*100),"\\%",sep='')}
|
||||
|
||||
format.day.ordinal <- function(x) {
|
||||
day <- format(x,format="%d")
|
||||
daylast <- substr(day,nchar(day),nchar(day))
|
||||
dayfirst <- substr(day,1,1)
|
||||
if(dayfirst == '0')
|
||||
day = daylast
|
||||
|
||||
if( daylast == "1")
|
||||
day <- paste0(day,"st")
|
||||
else if(daylast == "2")
|
||||
day <- paste0(day,"nd")
|
||||
else if (daylast == "3")
|
||||
day <- paste0(day,"rd")
|
||||
else
|
||||
day <- paste0(day,"th")
|
||||
|
||||
return(day)
|
||||
}
|
||||
|
||||
format.month <- function(x){
|
||||
return( format(x,format='%B %Y'))
|
||||
}
|
||||
|
||||
format.date <- function(x) {
|
||||
return(paste(format(x,format = '%B'),format.day.ordinal(x),format(x,format='%Y'),sep=' '))
|
||||
}
|
||||
|
||||
format.pvalue <- function (x, digits=3) {
|
||||
threshold <- 1*10^(-1*digits)
|
||||
x <- round(x, digits)
|
||||
if (x < threshold) {
|
||||
return(paste("p<", threshold, sep=""))
|
||||
} else {
|
||||
return(paste("p=", x, sep=""))
|
||||
}
|
||||
}
|
||||
@@ -1,29 +1,23 @@
|
||||
\documentclass[12pt]{memoir}
|
||||
% Tagged PDF (PDF/UA-2) accessibility setup. The article class works
|
||||
% with the LaTeX tagging-project, so we use the full \DocumentMetadata
|
||||
% path here.
|
||||
\DocumentMetadata{
|
||||
pdfversion=2.0,
|
||||
pdfstandard=ua-2,
|
||||
lang=en-US,
|
||||
}
|
||||
|
||||
\usepackage{cdsc-memoir}
|
||||
% there are two chapter styles: cdsc-article and cdsc-memo
|
||||
% memo assumes that you remove the "\\" and the email address from the
|
||||
% \author field below as well as that you will comment out the
|
||||
% \published tag
|
||||
\chapterstyle{cdsc-article}
|
||||
\documentclass[12pt]{article}
|
||||
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage{cdsc-paper}
|
||||
\usepackage{tagpdf}
|
||||
\tagpdfsetup{activate-all}
|
||||
|
||||
\usepackage{fontspec}
|
||||
\setmainfont{EB Garamond}
|
||||
\setsansfont{TeX Gyre Heros}
|
||||
\usepackage{wrapfig}
|
||||
|
||||
<<init, echo=FALSE>>=
|
||||
knit_hooks$set(document = function(x) {
|
||||
sub('\\usepackage[]{color}',
|
||||
'\\usepackage[usenames,dvipsnames]{color}', x, fixed = TRUE)
|
||||
})
|
||||
opts_chunk$set(fig.path="figures/knitr-")
|
||||
|
||||
source("resources/preamble.R")
|
||||
@
|
||||
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{textcomp}
|
||||
\usepackage[garamond]{mathdesign}
|
||||
|
||||
\usepackage[letterpaper,left=1.65in,right=1.65in,top=1.3in,bottom=1.2in]{geometry}
|
||||
|
||||
% packages i use in essentially every document
|
||||
@@ -36,9 +30,17 @@ source("resources/preamble.R")
|
||||
% \usepackage{endfloat}
|
||||
|
||||
% import and customize urls
|
||||
\usepackage[dvipsnames]{xcolor}
|
||||
\usepackage[breaklinks]{hyperref}
|
||||
|
||||
% pdftitle/pdfauthor populate PDF and XMP metadata; keep these in sync
|
||||
% with \title{} and \author{} below. UA-2 requires dc:title in XMP.
|
||||
\hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=Blue,
|
||||
urlcolor=Blue, unicode=true}
|
||||
urlcolor=Blue, unicode=true,
|
||||
pdftitle={Title},
|
||||
pdfauthor={Your Name},
|
||||
pdflang={en-US},
|
||||
pdfdisplaydoctitle=true}
|
||||
|
||||
% list of footnote symbols for \thanks{}
|
||||
\makeatletter
|
||||
@@ -58,15 +60,11 @@ source("resources/preamble.R")
|
||||
\defbibheading{secbib}[\bibname]{%
|
||||
\section*{#1}%
|
||||
\markboth{#1}{#1}%
|
||||
\baselineskip 14.2pt%
|
||||
\prebibhook}
|
||||
\baselineskip 14.2pt}
|
||||
|
||||
\def\citepos#1{\citeauthor{#1}'s (\citeyear{#1})}
|
||||
\def\citespos#1{\citeauthor{#1}' (\citeyear{#1})}
|
||||
|
||||
% memoir function to take out of the space out of the whitespace lists
|
||||
\firmlists
|
||||
|
||||
% LATEX NOTE: these lines will import vc stuff after running `make vc` which
|
||||
% will add version control information to the bottom of each page. This can be
|
||||
% useful for keeping track of which version of a document somebody has:
|
||||
@@ -74,8 +72,8 @@ source("resources/preamble.R")
|
||||
% \pagestyle{cdsc-page-git}
|
||||
|
||||
% LATEX NOTE: this alternative line will just input a timestamp at the
|
||||
% build process, useful for sharelatex
|
||||
% \pagestyle{cdsc-page-sharelatex}
|
||||
% build process, useful for Overleaf
|
||||
% \pagestyle{cdsc-page-overleaf}
|
||||
|
||||
\begin{document}
|
||||
|
||||
@@ -143,15 +141,6 @@ brown fox jumps over the lazy dog. The quick brown fox jumps over the
|
||||
lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
|
||||
fox jumps over the lazy dog \citep{989866}.
|
||||
|
||||
\begin{table}
|
||||
\centering
|
||||
<<test_table, echo=FALSE>>=
|
||||
kable(form.copy, format="latex")
|
||||
@
|
||||
\caption{This is a test table. There are \Sexpr{f(nrow(form.copy))} rows in the table.}
|
||||
\label{tab:test}
|
||||
\end{table}
|
||||
|
||||
The quick brown fox jumps over the lazy dog. The quick brown fox jumps
|
||||
over the lazy dog. The quick brown fox jumps over the lazy dog. The
|
||||
quick brown fox jumps over the lazy dog. The quick brown fox jumps over
|
||||
33
poster_template/beamercolorthememako.sty
Normal file
@@ -0,0 +1,33 @@
|
||||
% Copyright 2007 by Marco Barisione
|
||||
%
|
||||
% This file may be distributed and/or modified
|
||||
%
|
||||
% 1. under the LaTeX Project Public License and/or
|
||||
% 2. under the GNU Public License.
|
||||
|
||||
\mode<presentation>
|
||||
|
||||
% 57/39/91
|
||||
|
||||
\definecolor{makopurple1}{RGB}{57,39,91}
|
||||
\definecolor{makopurple2}{RGB}{137,119,173}
|
||||
\definecolor{makopurple3}{RGB}{29,13,59}
|
||||
\definecolor{makopurple4}{RGB}{124,99,173}
|
||||
|
||||
\definecolor{makopurple5}{RGB}{238,225,255}
|
||||
|
||||
\setbeamercolor*{palette primary}{fg=white,bg=makopurple2!50}
|
||||
\setbeamercolor*{palette secondary}{fg=white,bg=makopurple3!25}
|
||||
\setbeamercolor*{palette tertiary}{fg=white,bg=makopurple1!50}
|
||||
\setbeamercolor*{palette quaternary}{fg=white,bg=makopurple1}
|
||||
|
||||
\setbeamercolor*{titlelike}{bg=makopurple1}
|
||||
\setbeamercolor*{frametitle}{bg=white,fg=white}
|
||||
\setbeamercolor*{part title}{bg=black,fg=black}
|
||||
\setbeamercolor*{item}{fg=makopurple3}
|
||||
|
||||
\setbeamercolor*{separation line}{}
|
||||
\setbeamercolor*{fine separation line}{}
|
||||
|
||||
\mode
|
||||
<all>
|
||||
182
poster_template/beamerinnerthemefancy.sty
Normal file
@@ -0,0 +1,182 @@
|
||||
% Copyright 2007 by Marco Barisione
|
||||
%
|
||||
% This file may be distributed and/or modified
|
||||
%
|
||||
% 1. under the LaTeX Project Public License and/or
|
||||
% 2. under the GNU Public License.
|
||||
|
||||
\mode<presentation>
|
||||
|
||||
% Use alternative title page style.
|
||||
\DeclareOptionBeamer{alternativetitlepage}[true]{\def\beamer@fancy@alternativetitlepage{#1}}
|
||||
|
||||
% Logo to use in the alternative title page.
|
||||
\def\beamer@fancy@titlepagelogo{}
|
||||
\DeclareOptionBeamer{titlepagelogo}{\def\beamer@fancy@titlepagelogo{#1}}
|
||||
|
||||
% Bullet shape.
|
||||
\DeclareOptionBeamer{bullet}{\def\beamer@fancy@bullet{#1}}
|
||||
|
||||
\ExecuteOptionsBeamer{alternativetitlepage=false,bullet=square}
|
||||
\ProcessOptionsBeamer
|
||||
|
||||
% Colors.
|
||||
\setbeamercolor*{lineup}{parent=palette primary}
|
||||
\setbeamercolor*{linemid}{parent=palette secondary}
|
||||
\setbeamercolor*{linebottom}{parent=palette tertiary}
|
||||
\setbeamercolor*{title page header}{parent=palette quaternary}
|
||||
|
||||
% Lengths.
|
||||
\newlength{\beamer@fancy@lineup}
|
||||
\setlength{\beamer@fancy@lineup}{.025\paperheight}
|
||||
\newlength{\beamer@fancy@linemid}
|
||||
\setlength{\beamer@fancy@linemid}{.015\paperheight}
|
||||
\newlength{\beamer@fancy@linebottom}
|
||||
\setlength{\beamer@fancy@linebottom}{.01\paperheight}
|
||||
|
||||
% Margins.
|
||||
\newlength{\beamer@fancy@normalmargin}
|
||||
\setlength{\beamer@fancy@normalmargin}{.06\paperwidth}
|
||||
\setbeamersize{text margin left=\beamer@fancy@normalmargin}
|
||||
\setbeamersize{text margin right=\beamer@fancy@normalmargin}
|
||||
\setlength\leftmargini{.6\beamer@fancy@normalmargin}
|
||||
\setlength\leftmarginii{.6\beamer@fancy@normalmargin}
|
||||
\setlength\leftmarginiii{.6\beamer@fancy@normalmargin}
|
||||
|
||||
% Normal title page.
|
||||
\defbeamertemplate*{title page normal}{fancy theme}[1][]
|
||||
{
|
||||
\vbox{}
|
||||
\vfill
|
||||
\begin{centering}
|
||||
\begin{beamercolorbox}[wd=\paperwidth,sep=8pt,center,#1]{title page header}
|
||||
\usebeamerfont{title}\inserttitle\par%
|
||||
\ifx\insertsubtitle\@empty%
|
||||
\else%
|
||||
\vskip0.25em%
|
||||
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
|
||||
\fi%
|
||||
\end{beamercolorbox}%
|
||||
\vskip1em\par
|
||||
\begin{beamercolorbox}[sep=8pt,center,#1]{author}
|
||||
\usebeamerfont{author}\insertauthor
|
||||
\end{beamercolorbox}
|
||||
\begin{beamercolorbox}[sep=8pt,center,#1]{institute}
|
||||
\usebeamerfont{institute}\insertinstitute
|
||||
\end{beamercolorbox}
|
||||
\begin{beamercolorbox}[sep=8pt,center,#1]{date}
|
||||
\usebeamerfont{date}\insertdate
|
||||
\end{beamercolorbox}\vskip0.5em
|
||||
{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
|
||||
\end{centering}
|
||||
\vfill
|
||||
}
|
||||
|
||||
% Alternative title page, you should use this in a frame with the [plain]
|
||||
% option.
|
||||
\defbeamertemplate*{title page alternative}{fancy theme}[1][]
|
||||
{
|
||||
{\parskip0pt\offinterlineskip%
|
||||
\hbox{\hskip-\Gm@lmargin\hbox{\vbox{%
|
||||
\@tempdima=\textwidth\textwidth=\paperwidth\hsize=\textwidth\def\\{,}\vbox{}\vskip-1.5ex%
|
||||
% Title.
|
||||
\begin{beamercolorbox}[wd=\paperwidth,ht=.4\paperheight,center,#1]{title page header}
|
||||
\usebeamerfont{title}\inserttitle\par%
|
||||
\ifx\insertsubtitle\@empty%
|
||||
\else%
|
||||
\vskip0.25em%
|
||||
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
|
||||
\fi%
|
||||
\vspace{.125\paperheight}%
|
||||
\end{beamercolorbox}%
|
||||
\vbox{}\vskip-\beamer@fancy@lineup%
|
||||
\vbox{}\vskip-\beamer@fancy@linemid%
|
||||
% First line.
|
||||
\hbox{%
|
||||
\begin{beamercolorbox}[wd=.2\paperwidth,ht=\beamer@fancy@lineup,dp=0pt]{}%
|
||||
\end{beamercolorbox}%
|
||||
\begin{beamercolorbox}[wd=.8\paperwidth,ht=\beamer@fancy@lineup,dp=0pt]{lineup}%
|
||||
\end{beamercolorbox}%
|
||||
}%
|
||||
\vbox{}\vskip0ex%
|
||||
% Second line.
|
||||
\hbox{%
|
||||
\begin{beamercolorbox}[wd=.1\paperwidth,ht=\beamer@fancy@linemid,dp=0pt]{}%
|
||||
\end{beamercolorbox}%
|
||||
\begin{beamercolorbox}[wd=.9\paperwidth,ht=\beamer@fancy@linemid,dp=0pt]{linemid}%
|
||||
\end{beamercolorbox}%
|
||||
}%
|
||||
% Third line.
|
||||
\hbox{%
|
||||
\begin{beamercolorbox}[wd=.5\paperwidth,ht=\beamer@fancy@linebottom,dp=0pt]{}%
|
||||
\end{beamercolorbox}%
|
||||
\begin{beamercolorbox}[wd=.5\paperwidth,ht=\beamer@fancy@linebottom,dp=0pt]{linebottom}%
|
||||
\end{beamercolorbox}%
|
||||
}%
|
||||
\vskip0pt%
|
||||
}}%
|
||||
\hskip-\Gm@rmargin%
|
||||
}}\hfil%
|
||||
%
|
||||
\begin{columns}
|
||||
\ifx\beamer@fancy@titlepagelogo\@empty%
|
||||
\column{\textwidth}
|
||||
\else
|
||||
\column{.5\textwidth}
|
||||
% Logo.
|
||||
\begin{centering}
|
||||
\vbox{}\vspace{-2em}\vfill
|
||||
\includegraphics[height=.4\paperheight]{\beamer@fancy@titlepagelogo}
|
||||
\vfill
|
||||
\end{centering}
|
||||
\column{.5\textwidth}
|
||||
\fi
|
||||
% Authors, institute and date
|
||||
\vskip1em\par
|
||||
\begin{beamercolorbox}[sep=8pt,center,#1]{author}
|
||||
\usebeamerfont{author}\insertauthor
|
||||
\end{beamercolorbox}
|
||||
\begin{beamercolorbox}[sep=8pt,center,#1]{institute}
|
||||
\usebeamerfont{institute}\insertinstitute
|
||||
\end{beamercolorbox}
|
||||
\begin{beamercolorbox}[sep=8pt,center,#1]{date}
|
||||
\usebeamerfont{date}\insertdate
|
||||
\end{beamercolorbox}\vskip0.5em
|
||||
{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
|
||||
\end{columns}
|
||||
}
|
||||
|
||||
\defbeamertemplate*{title page}{fancy}[1][]
|
||||
{
|
||||
\def\beamer@fancy@truetext{true}%
|
||||
\ifx\beamer@fancy@alternativetitlepage\beamer@fancy@truetext%
|
||||
\usebeamertemplate{title page alternative}%
|
||||
\else%
|
||||
\usebeamertemplate{title page normal}%
|
||||
\fi%
|
||||
}
|
||||
|
||||
% Items.
|
||||
\defbeamertemplate{itemize item}{squarealt}%
|
||||
{\tiny\raise.5ex\hbox{\donotcoloroutermaths$\blacksquare$}}
|
||||
\defbeamertemplate{itemize subitem}{squarealt}%
|
||||
{\tiny\raise.4ex\hbox{\donotcoloroutermaths$\square$}}
|
||||
\defbeamertemplate{itemize subsubitem}{squarealt}%
|
||||
{\tiny\raise.3ex\hbox{\donotcoloroutermaths$\blacksquare$}}
|
||||
|
||||
\defbeamertemplate{itemize item}{circlealt}%
|
||||
{\small\raise.2ex\hbox{\donotcoloroutermaths$\bullet$}}
|
||||
\defbeamertemplate{itemize subitem}{circlealt}%
|
||||
{\small\raise.1ex\hbox{\donotcoloroutermaths$\circ$}}
|
||||
\defbeamertemplate{itemize subsubitem}{circlealt}%
|
||||
{\scriptsize\raise.1ex\hbox{\donotcoloroutermaths$\bullet$}}
|
||||
|
||||
\def\circletext{circle}
|
||||
\ifx\beamer@fancy@bullet\circletext
|
||||
\setbeamertemplate{items}[circlealt]
|
||||
\else
|
||||
\setbeamertemplate{items}[squarealt]
|
||||
\fi
|
||||
|
||||
\mode<all>
|
||||
|
||||
161
poster_template/beamerouterthemedecolines.sty
Normal file
@@ -0,0 +1,161 @@
|
||||
% Copyright 2007 by Marco Barisione
|
||||
%
|
||||
% This file may be distributed and/or modified
|
||||
%
|
||||
% 1. under the LaTeX Project Public License and/or
|
||||
% 2. under the GNU Public License.
|
||||
|
||||
\mode<presentation>
|
||||
|
||||
% String used between the current page and the total page count.
|
||||
\def\beamer@decolines@pageofpages{/}
|
||||
\DeclareOptionBeamer{pageofpages}{\def\beamer@decolines@pageofpages{#1}}
|
||||
|
||||
% Show a line below the frame title.
|
||||
\DeclareOptionBeamer{titleline}[true]{\def\beamer@decolines@titleline{#1}}
|
||||
|
||||
% Image used for the watermark.
|
||||
\def\beamer@decolines@watermarkorig{}
|
||||
\DeclareOptionBeamer{watermark}{\def\beamer@decolines@watermarkorig{#1}}
|
||||
|
||||
% Height of the watermark.
|
||||
\def\beamer@decolines@watermarkheight{100px}
|
||||
\DeclareOptionBeamer{watermarkheight}{\def\beamer@decolines@watermarkheight{#1}}
|
||||
|
||||
% The original image height is watermarkheightmult * watermarkheight.
|
||||
\def\beamer@decolines@watermarkheightmult{1}
|
||||
\DeclareOptionBeamer{watermarkheightmult}{\def\beamer@decolines@watermarkheightmult{#1}}
|
||||
|
||||
\ExecuteOptionsBeamer{titleline=false}
|
||||
\ProcessOptionsBeamer
|
||||
|
||||
% Enable/disable the watermark.
|
||||
\def\watermarkon{%
|
||||
\def\beamer@decolines@watermark{\beamer@decolines@watermarkorig}%
|
||||
}
|
||||
\def\watermarkoff{\def\beamer@decolines@watermark{}}
|
||||
|
||||
% Initially enable the watermark.
|
||||
\watermarkon
|
||||
|
||||
% Colors.
|
||||
\setbeamercolor*{lineup}{parent=palette primary}
|
||||
\setbeamercolor*{linemid}{parent=palette secondary}
|
||||
\setbeamercolor*{linebottom}{parent=palette tertiary}
|
||||
\setbeamercolor*{page header}{parent=titlelike}
|
||||
|
||||
% Lengths
|
||||
\newlength{\headerheight}
|
||||
\setlength{\headerheight}{.045\paperheight}
|
||||
\newlength{\beamer@decolines@lineup}
|
||||
\setlength{\beamer@decolines@lineup}{.018\paperheight}
|
||||
\newlength{\beamer@decolines@linemid}
|
||||
\setlength{\beamer@decolines@linemid}{.015\paperheight}
|
||||
\newlength{\beamer@decolines@linebottom}
|
||||
\setlength{\beamer@decolines@linebottom}{.01\paperheight}
|
||||
|
||||
% The height of the watermark part below the 3 bottom lines.
|
||||
\newlength{\beamer@decolines@watermarkheightbottom}
|
||||
\addtolength{\beamer@decolines@watermarkheightbottom}{\beamer@decolines@lineup}
|
||||
\addtolength{\beamer@decolines@watermarkheightbottom}{\beamer@decolines@linemid}
|
||||
\addtolength{\beamer@decolines@watermarkheightbottom}{\beamer@decolines@linebottom}
|
||||
|
||||
% The height of the watermark part over the 3 bottom lines before shrinking.
|
||||
\newlength{\beamer@decolines@watermarkheightupperorig}
|
||||
\setlength{\beamer@decolines@watermarkheightupperorig}{\beamer@decolines@watermarkheight}
|
||||
\addtolength{\beamer@decolines@watermarkheightupperorig}{-\beamer@decolines@watermarkheightbottom}
|
||||
\multiply\beamer@decolines@watermarkheightupperorig by \beamer@decolines@watermarkheightmult
|
||||
|
||||
% Footer.
|
||||
\defbeamertemplate*{footline}{decolines theme}
|
||||
{
|
||||
\leavevmode%
|
||||
% First line.
|
||||
\hbox{%
|
||||
\begin{beamercolorbox}[wd=.2\paperwidth,ht=\beamer@decolines@lineup,dp=1.5pt]{}%
|
||||
\end{beamercolorbox}%
|
||||
\begin{beamercolorbox}[wd=.8\paperwidth,ht=\beamer@decolines@lineup,dp=1.5pt,right]{lineup}%
|
||||
\usebeamerfont{palette primary}
|
||||
%\insertframenumber{} \beamer@decolines@pageofpages{} \inserttotalframenumber%
|
||||
\end{beamercolorbox}%
|
||||
} %
|
||||
% Second line.
|
||||
\hbox{%
|
||||
\begin{beamercolorbox}[wd=\paperwidth,ht=\beamer@decolines@linemid,dp=0pt]{linemid}%
|
||||
\end{beamercolorbox}%
|
||||
} %
|
||||
% Third line.
|
||||
\hbox{%
|
||||
\begin{beamercolorbox}[wd=.1\paperwidth,ht=\beamer@decolines@linebottom,dp=0pt]{}%
|
||||
\end{beamercolorbox}%
|
||||
\begin{beamercolorbox}[wd=.9\paperwidth,ht=\beamer@decolines@linebottom,dp=0pt]{linebottom}%
|
||||
\end{beamercolorbox}%
|
||||
}%
|
||||
% This seems to fix some alignment problems with the watermark. It has to be
|
||||
% always applied if you do not want to see the footer moving up and down when
|
||||
% moving from a page with watermark to a page without or vice versa.
|
||||
\vskip-.5px%
|
||||
% Watermark.
|
||||
\if\beamer@decolines@watermark\@empty\else%
|
||||
\vskip-\beamer@decolines@watermarkheightbottom%
|
||||
\llap{\includegraphics[height=\beamer@decolines@watermarkheightbottom,clip=true,%
|
||||
trim=0pt 0pt 0pt \beamer@decolines@watermarkheightupperorig]{\beamer@decolines@watermark}\hskip-\paperwidth}%
|
||||
\fi%
|
||||
}
|
||||
|
||||
\defbeamertemplate*{headline}{decolines theme}{}
|
||||
%
|
||||
%{
|
||||
% \leavevmode%
|
||||
% \hbox{%
|
||||
% \begin{beamercolorbox}[wd=\paperwidth,ht=\headerheight,dp=0pt]{page header}%
|
||||
% \end{beamercolorbox}%
|
||||
% } %
|
||||
% \vskip0pt%
|
||||
%}
|
||||
|
||||
\defbeamertemplate*{frametitle}{decolines theme}[1][left]
|
||||
{
|
||||
\ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
|
||||
\@tempdima=\textwidth%
|
||||
\advance\@tempdima by\beamer@leftmargin%
|
||||
\advance\@tempdima by\beamer@rightmargin%
|
||||
\vbox{}\vskip-.5\beamer@leftmargin%
|
||||
\begin{beamercolorbox}[sep=.5\beamer@leftmargin,#1,wd=\the\@tempdima]{page header}
|
||||
\usebeamerfont{frametitle}\usebeamercolor[bg]{framesubtitle}%
|
||||
\vbox{}\vskip0ex%
|
||||
\if@tempswa\else\csname beamer@fte#1\endcsname\fi%
|
||||
\strut\insertframetitle\strut\par%
|
||||
{%
|
||||
\ifx\insertframesubtitle\@empty%
|
||||
\else%
|
||||
{\usebeamerfont{framesubtitle}\usebeamercolor[bg]{framesubtitle}\insertframesubtitle\strut\par}%
|
||||
\fi
|
||||
}%
|
||||
\vskip-1ex%
|
||||
\if@tempswa\else\vskip-\beamer@leftmargin\fi
|
||||
\end{beamercolorbox}%
|
||||
\def\beamer@decolines@truetext{true}%
|
||||
\ifx\beamer@decolines@titleline\beamer@decolines@truetext%
|
||||
\vskip-.5\beamer@leftmargin%
|
||||
\begin{beamercolorbox}[wd=\textwidth,ht=.1ex,dp=0ex]{linemid}%
|
||||
\end{beamercolorbox}%
|
||||
\fi
|
||||
}
|
||||
|
||||
% Frame title continuations, default
|
||||
\defbeamertemplate*{frametitle continuation}{decolines theme}{(\insertcontinuationcount)}
|
||||
|
||||
\defbeamertemplate*{sidebar right}{decolines theme}
|
||||
{
|
||||
\vskip.1\beamer@leftmargin%
|
||||
\llap{\insertlogo\hskip.5\beamer@leftmargin}%
|
||||
\vfill%
|
||||
\if\beamer@decolines@watermark\@empty\else%
|
||||
\llap{\includegraphics[height=\beamer@decolines@watermarkheight]{\beamer@decolines@watermark}}%
|
||||
\vskip-\beamer@decolines@watermarkheightbottom%
|
||||
\fi
|
||||
}
|
||||
|
||||
\mode
|
||||
<all>
|
||||
26
poster_template/beamerthemeTorino.sty
Normal file
@@ -0,0 +1,26 @@
|
||||
% Copyright 2007 by Marco Barisione
|
||||
%
|
||||
% This file may be distributed and/or modified
|
||||
%
|
||||
% 1. under the LaTeX Project Public License and/or
|
||||
% 2. under the GNU Public License.
|
||||
|
||||
\mode<presentation>
|
||||
|
||||
\DeclareOptionBeamer{alternativetitlepage}[true]{\PassOptionsToPackage{alternativetitlepage=#1}{beamerinnerthemefancy}}
|
||||
\DeclareOptionBeamer{titlepagelogo}{\PassOptionsToPackage{titlepagelogo=#1}{beamerinnerthemefancy}}
|
||||
\DeclareOptionBeamer{bullet}{\PassOptionsToPackage{bullet=#1}{beamerinnerthemefancy}}
|
||||
\DeclareOptionBeamer{pageofpages}{\PassOptionsToPackage{pageofpages=#1}{beamerouterthemedecolines}}
|
||||
\DeclareOptionBeamer{titleline}[true]{\PassOptionsToPackage{titleline=#1}{beamerouterthemedecolines}}
|
||||
\DeclareOptionBeamer{watermark}{\PassOptionsToPackage{watermark=#1}{beamerouterthemedecolines}}
|
||||
\DeclareOptionBeamer{watermarkheight}{\PassOptionsToPackage{watermarkheight=#1}{beamerouterthemedecolines}}
|
||||
\DeclareOptionBeamer{watermarkheightmult}{\PassOptionsToPackage{watermarkheightmult=#1}{beamerouterthemedecolines}}
|
||||
|
||||
\ProcessOptionsBeamer
|
||||
|
||||
\useinnertheme{fancy}
|
||||
\useoutertheme{decolines}
|
||||
\usecolortheme{mako}
|
||||
|
||||
\mode
|
||||
<all>
|
||||
BIN
poster_template/figures/Drexel_Vertical-stacked_black.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
poster_template/figures/Taboo Topics Analytical Pipeline.jpg
Normal file
|
After Width: | Height: | Size: 144 KiB |
BIN
poster_template/figures/V2 Taboo Topics Analytical Pipeline.pdf
Normal file
BIN
poster_template/figures/ageGrowth.pdf
Normal file
BIN
poster_template/figures/ageGrowth.png
Normal file
|
After Width: | Height: | Size: 106 KiB |
BIN
poster_template/figures/anonRate.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
poster_template/figures/asset.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
poster_template/figures/boxAgeQualityYrSrc.pdf
Normal file
BIN
poster_template/figures/boxAgeQualityYrSrc.png
Normal file
|
After Width: | Height: | Size: 102 KiB |
BIN
poster_template/figures/boxContribSrc.pdf
Normal file
BIN
poster_template/figures/boxContribSrc.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
poster_template/figures/boxContribSrcNoBot.pdf
Normal file
BIN
poster_template/figures/boxContribSrcNoBot.png
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
poster_template/figures/boxLengthSrc.pdf
Normal file
BIN
poster_template/figures/boxLengthSrc.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
poster_template/figures/boxLengthSrcNoBot.pdf
Normal file
BIN
poster_template/figures/boxLengthSrcNoBot.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
poster_template/figures/boxQualitySrc.pdf
Normal file
BIN
poster_template/figures/boxQualitySrc.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
poster_template/figures/bubble_plot-mako_20190812.pdf
Normal file
BIN
poster_template/figures/damageRate.pdf
Normal file
BIN
poster_template/figures/damageRate.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
poster_template/figures/editBlocked.png
Normal file
|
After Width: | Height: | Size: 416 KiB |
BIN
poster_template/figures/genderProp.pdf
Normal file
BIN
poster_template/figures/logo.pdf
Normal file
BIN
poster_template/figures/mailProp.pdf
Normal file
BIN
poster_template/figures/member.png
Normal file
|
After Width: | Height: | Size: 63 KiB |
BIN
poster_template/figures/nyu.png
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
poster_template/figures/qualityAtBirth.pdf
Normal file
BIN
poster_template/figures/qualityAtBirth.png
Normal file
|
After Width: | Height: | Size: 122 KiB |
BIN
poster_template/figures/revRateCount.pdf
Normal file
BIN
poster_template/figures/revRateCount.png
Normal file
|
After Width: | Height: | Size: 364 KiB |
BIN
poster_template/figures/revertRate.pdf
Normal file
BIN
poster_template/figures/revertRate.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
poster_template/figures/taboo topics hypotheses.jpg
Normal file
|
After Width: | Height: | Size: 136 KiB |
BIN
poster_template/figures/torBanner.png
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
poster_template/figures/uw_logo.pdf
Normal file
BIN
poster_template/figures/viewsBox.pdf
Normal file
BIN
poster_template/figures/viewsBox.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
poster_template/figures/viewsOverTime.pdf
Normal file
BIN
poster_template/figures/viewsOverTime.png
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
poster_template/figures/viewsOverTimeLogged.pdf
Normal file
BIN
poster_template/figures/viewsOverTimeLogged.png
Normal file
|
After Width: | Height: | Size: 73 KiB |
BIN
poster_template/figures/volumeBox.pdf
Normal file
479
poster_template/main.tex
Normal file
@@ -0,0 +1,479 @@
|
||||
\DocumentMetadata{
|
||||
pdfversion=2.0,
|
||||
pdfstandard=ua-2,
|
||||
lang=en-US,
|
||||
}
|
||||
\documentclass[xcolor=dvipsnames, 12pt]{beamer}
|
||||
|
||||
\usepackage[size=custom, width=114, height=80, scale=1.5]{beamerposter}
|
||||
|
||||
\usepackage{tagpdf}
|
||||
\tagpdfsetup{activate-all}
|
||||
|
||||
% Tag frame titles as H1 headings for PDF accessibility
|
||||
\addtobeamertemplate{frametitle}{%
|
||||
\tagstructbegin{tag=H1}%
|
||||
\tagmcbegin{tag=H1}%
|
||||
}{%
|
||||
\tagmcend%
|
||||
\tagstructend%
|
||||
}
|
||||
|
||||
\usepackage[absolute,overlay]{textpos}
|
||||
% set up the file to create notes in the output PDFs
|
||||
|
||||
\usepackage{caption}
|
||||
\captionsetup[figure]{name=}
|
||||
\setlength{\TPHorizModule}{0.332in}
|
||||
\setlength{\TPVertModule}{4.2322in}
|
||||
\usepackage{xcolor}
|
||||
\definecolor{m1}{HTML}{00BC57} % matches what is in the figure
|
||||
\definecolor{m2}{HTML}{CD79FF} % matches what is in the figure
|
||||
|
||||
\usepackage{pgfpages}
|
||||
|
||||
% \renewcommand{\rmdefault}{ugm}
|
||||
% \usepackage[garamond]{mathdesign}
|
||||
|
||||
\usepackage{libertine}
|
||||
|
||||
% \renewcommand{\sfdefault}{phv}
|
||||
\usepackage{relsize}
|
||||
|
||||
%\usepackage{ucs}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{textcomp}
|
||||
\usepackage{multicol}
|
||||
\usepackage{dcolumn}
|
||||
\usepackage{wrapfig}
|
||||
\usepackage{rotating}
|
||||
\usepackage{booktabs}
|
||||
|
||||
\usepackage{longtable}
|
||||
\usepackage{subfig}
|
||||
% add tikz and a bunch of tikz foo
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{shapes,shapes.misc,backgrounds,fit,positioning}
|
||||
\tikzstyle{every picture}+=[overlay,remember picture]
|
||||
|
||||
% add functions to circle parts of slides (e.g., in tables)
|
||||
\newcommand\marktopleft[1]{\tagmcbegin{artifact}\tikz \node (marker-#1-a) at (0,1.5ex) {};\tagmcend}
|
||||
\newcommand\markbottomright[1]{%
|
||||
\tagmcbegin{artifact}\tikz{\node (marker-#1-b) at (0,0) {};}\tagmcend
|
||||
\tagmcbegin{artifact}\tikz[dashed,inner sep=3pt]{\node[violet!75,ultra thick,draw,rounded rectangle,fit=(marker-#1-a.center) (marker-#1-b.center)] {};}\tagmcend}
|
||||
|
||||
% DEPRECATED function to build a huge centered dropshadow
|
||||
\newcommand\dropshadow[3]{%
|
||||
\node[black!30!white] at (#1+0.1,#2-0.1) {
|
||||
\scalebox{2}{\Huge \text bf{#3}}
|
||||
};
|
||||
\node at (#1,#2) {
|
||||
\scalebox{2}{\Huge \e{#3}}
|
||||
};
|
||||
}
|
||||
|
||||
% create an empty quotetxt so we can reuse it
|
||||
\newcommand{\quotetxt}{}
|
||||
|
||||
% more flexible non-tikz alternative with no dropshadow
|
||||
\newlength{\centertxtlen}
|
||||
\makeatletter
|
||||
\newcommand\centertext[2]{%
|
||||
\setlength{\centertxtlen}{#1}%
|
||||
\setlength{\centertxtlen}{0.48\centertxtlen}%
|
||||
{\centering
|
||||
\fontsize{#1}{2\centertxtlen}\selectfont
|
||||
\e{#2}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
% add function to stop numbering appendix slides
|
||||
\newcommand{\backupbegin}{
|
||||
\newcounter{framenumberappendix}
|
||||
\setcounter{framenumberappendix}{\value{framenumber}}
|
||||
}
|
||||
\newcommand{\backupend}{
|
||||
\addtocounter{framenumberappendix}{-\value{framenumber}}
|
||||
\addtocounter{framenumber}{\value{framenumberappendix}}
|
||||
}
|
||||
|
||||
% packages i use in essentially every document
|
||||
\usepackage{graphicx}
|
||||
\usepackage{url}
|
||||
% \usepackage{dcolumn}
|
||||
% \usepackage{booktabs}
|
||||
% bibliography stuff — uncomment these if you load biblatex
|
||||
% \DeclareLanguageMapping{american}{american-apa}
|
||||
% \defbibheading{secbib}[\bibname]{%
|
||||
% \section{#1}%
|
||||
% \markboth{#1}{#1}%
|
||||
% \baselineskip 14.2pt%
|
||||
% \prebibhook}
|
||||
|
||||
\def\citepos#1{\citeauthor{#1}'s (\citeyear{#1})}
|
||||
\def\citespos#1{\citeauthor{#1}' (\citeyear{#1})}
|
||||
|
||||
|
||||
% replace footnotes with symbols instead of numbers
|
||||
\renewcommand*{\thefootnote}{\fnsymbol{footnote}}
|
||||
\usepackage{perpage}
|
||||
\MakePerPage{footnote}
|
||||
|
||||
%% BEAMER THEME STUFF
|
||||
\usetheme[pageofpages=/,% String used between the current page and the
|
||||
% total page count.
|
||||
bullet=default,% Use circles instead of squares for bullets.
|
||||
titleline=false,% Show a line below the frame title.
|
||||
alternativetitlepage=true,% Use the fancy title page.
|
||||
titlepagelogo=figures/logo.pdf,% Logo for the first page.
|
||||
%watermark=watermark-polito,% Watermark used in every page.
|
||||
watermarkheight=100px,% Height of the watermark.
|
||||
watermarkheightmult=4,% The watermark image is 4 times bigger
|
||||
% than watermarkheight.
|
||||
]{Torino}
|
||||
|
||||
\usecolortheme{mako}
|
||||
\useinnertheme{rectangles}
|
||||
%\setbeamertemplate{blocks}[rounded][]
|
||||
\setbeamercolor{block title}{bg=gray!25, fg=Black}
|
||||
|
||||
\setbeamertemplate{items}[default]
|
||||
\setbeamertemplate{blocks}[shadow=true]
|
||||
\addtobeamertemplate{blocks}{\vspace{5cm}}{\vspace{-5.2cm}}
|
||||
\usepackage{tcolorbox}
|
||||
% These options will be applied to all `tcolorboxes`
|
||||
\tcbset{%
|
||||
noparskip,
|
||||
colback=makopurple5, %background color of the box
|
||||
colframe=makopurple1, %color of frame and title background
|
||||
coltext=black, %color of body text
|
||||
coltitle=black, %color of title text
|
||||
arc=0em,
|
||||
left=0.1em,
|
||||
right=0.1em,
|
||||
fonttitle=\bfseries,
|
||||
alerted/.style={coltitle=red,
|
||||
colframe=gray!40},
|
||||
example/.style={coltitle=black,
|
||||
colframe=green!20,
|
||||
colback=green!5},
|
||||
}
|
||||
|
||||
|
||||
%\useoutertheme{infolines}p
|
||||
%\usepackage[breaklinks]{hyperref}
|
||||
|
||||
\hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=makopurple1, urlcolor=Plum, unicode=true,
|
||||
pdflang={en-US},
|
||||
pdfdisplaydoctitle=true}
|
||||
|
||||
% create a boldface version of the header
|
||||
\setbeamerfont{frametitle}{series=\bfseries}
|
||||
\setbeamerfont{title}{series=\bfseries}
|
||||
|
||||
% tweak the beamer font to make it a bit lists a bit smaller
|
||||
\setbeamerfont*{itemize/enumerate body}{size=\normalsize}
|
||||
\setbeamerfont*{itemize/enumerate subbody}{size=\footnotesize}
|
||||
\setbeamerfont*{itemize/enumerate subsubbody}{size=\footnotesize}
|
||||
|
||||
% indent the margins of the itemize lists a little bit
|
||||
\setlength{\leftmargin}{0pt}
|
||||
\setlength{\leftmargini}{2cm}
|
||||
\setlength{\leftmarginii}{3.5cm}
|
||||
|
||||
% create a new \e{} command to make things purple and bold
|
||||
\newcommand{\e}[1]{\textcolor{makopurple1}{\textbf{#1}}}
|
||||
|
||||
% remove the nagivation symbols
|
||||
\setbeamertemplate{navigation symbols}{}
|
||||
|
||||
|
||||
\title{Taboo and Collaborative Knowledge Production: Evidence from Wikipedia}
|
||||
|
||||
\author[Champion and Hill]{Kaylea Champion and Benjamin Mako Hill}
|
||||
|
||||
\institute[Universities]{University of Washington}
|
||||
|
||||
\TPMargin{1cm}
|
||||
|
||||
\date{}
|
||||
|
||||
\newcommand{\credit}[1]{%
|
||||
\tikz[overlay]{\node at (current page.south east)
|
||||
[anchor=south east,yshift=1.3em,xshift=0.35em]
|
||||
{\tagmcbegin{artifact}\smaller {[}#1{]}\tagmcend};}}
|
||||
\begin{document}
|
||||
|
||||
\begin{frame}[t]{}
|
||||
|
||||
\begin{textblock}{10}(2,0)
|
||||
\centering
|
||||
|
||||
\vspace*{1ex}
|
||||
|
||||
\includegraphics[width=8cm,alt={University of Washington logo}]{figures/uw_logo}
|
||||
\vspace*{1ex}
|
||||
\end{textblock}
|
||||
|
||||
\begin{textblock}{90}(20,0)
|
||||
\begin{center}
|
||||
|
||||
\begin{columns}
|
||||
\column{\linewidth}
|
||||
%\column{0.05\linewidth}
|
||||
%\column{.95\linewidth}
|
||||
\begin{center}
|
||||
%{\Large \larger \noindent\textbf{{The Use of Anonymity to Resist Taboo: Evidence from Wikipedia}}}
|
||||
{\Large \larger \noindent\textbf{Taboo and Collaborative Knowledge Production: Evidence from Wikipedia}}
|
||||
|
||||
\end{center}
|
||||
|
||||
\end{columns}
|
||||
|
||||
\vspace{1em}
|
||||
|
||||
|
||||
{\large
|
||||
|
||||
\begin{columns}
|
||||
\column{.5\linewidth}
|
||||
\centering
|
||||
\noindent\textbf{Kaylea Champion} \\ kaylea@uw.edu \\
|
||||
|
||||
\column{.5\linewidth}
|
||||
\centering
|
||||
\noindent Benjamin Mako Hill \\ makohill@uw.edu
|
||||
|
||||
\end{columns}
|
||||
|
||||
}
|
||||
%\vspace{1em}
|
||||
|
||||
{\large
|
||||
|
||||
\begin{columns}
|
||||
\column{.5\linewidth}
|
||||
\centering
|
||||
Department of Communication
|
||||
|
||||
\end{columns}
|
||||
|
||||
}
|
||||
\end{center}
|
||||
|
||||
\end{textblock}
|
||||
|
||||
\begin{textblock}{2}(122,0)
|
||||
\includegraphics[width=6.5cm,alt={Community Data Science Collective logo}]{figures/logo}
|
||||
|
||||
\vspace*{1ex}
|
||||
\end{textblock}
|
||||
|
||||
\TPMargin{1cm}
|
||||
\TPGrid[1cm,15.5cm]{12}{12}
|
||||
|
||||
\begin{textblock}{4}(0,-0.9)
|
||||
\begin{block}{\rule[-0.3ex]{0pt}{2.2ex}\textbf{Summary}}
|
||||
\vspace{0.3em}
|
||||
\e{Online information-seekers are highly interested in knowledge about taboo subjects. But does taboo inhibit the volunteers producing that information?} Often it does not---and when it does, not always in the ways you might think! \\
|
||||
\bigskip
|
||||
\vspace{1em}
|
||||
\e{We hypothesized that:}
|
||||
% Studies of taboo often focus on censorship. However,
|
||||
%We find that Wikipedia articles about taboo topics are popular and high quality relative to other articles, despite receiving high levels of damaging contributions. Although we hypothesize that stigma will cause contributors to taboo subjects to seek to be less identifiable, and although our results are consistent with this proposal across several different measures, we surprisingly find that contributors make themselves more identifiable by specifying their gender.
|
||||
|
||||
|
||||
% Our further analysis will explore if and how anonymity plays a role in the successful production of valuable taboo knowledge.
|
||||
|
||||
%\bigskip
|
||||
%\end{block}
|
||||
%\end{textblock}
|
||||
|
||||
%\begin{textblock}{4}(0,2.0)
|
||||
%\begin{block}{\rule[-.5ex]{0pt}{2.2ex}\textbf{Hypotheses}}
|
||||
%\vspace{0.3em}
|
||||
\vspace{1em}
|
||||
\begin{figure}
|
||||
\centering
|
||||
\includegraphics[width=0.8\textwidth,alt={Diagram of project hypotheses}]{figures/taboo topics hypotheses.jpg}
|
||||
\end{figure}
|
||||
|
||||
|
||||
\end{block}
|
||||
|
||||
\end{textblock}
|
||||
|
||||
\begin{textblock}{4}(0,6.8)
|
||||
\begin{block}{\rule[-.5ex]{0pt}{2.2ex}\textbf{Setting: \textit{Wikipedia} and \textit{Wiktionary}}}
|
||||
\vspace{0.3em}
|
||||
With billions of viewers, Wikipedia is one of the top ten most visited sites on the Internet. Wiktionary is a sister project to Wikipedia, focused on the creation of a dictionary.
|
||||
% Broad cooperation has allowed these free and open projects to flourish.
|
||||
|
||||
\end{block}
|
||||
\end{textblock}
|
||||
|
||||
\begin{textblock}{4}(0,9.2)
|
||||
\begin{block}{\rule[-0.3ex]{0pt}{2.2ex}\textbf{H1: Taboo subjects are popular}}
|
||||
\vspace{0.3em}
|
||||
\begin{center}
|
||||
\begin{figure}
|
||||
\includegraphics[width=0.8\textwidth,alt={Boxplot of article ranks by popularity}]{figures/viewsBox.pdf}
|
||||
\caption{Rank of articles in our sample versus all articles with dictionary salience. The most popular article is ranked ``1''.}
|
||||
\end{figure}
|
||||
\end{center}
|
||||
\end{block}
|
||||
\end{textblock}
|
||||
|
||||
\begin{textblock}{4}(8,-0.9)
|
||||
\begin{block}{\rule[-0.3ex]{0pt}{2.2ex}\centering\textbf{A New Computational Method for Identifying Taboo Subjects}}
|
||||
|
||||
|
||||
|
||||
\bigskip
|
||||
|
||||
Inspired by findings in linguistics that people use euphemism to discuss taboo subjects, we used word sense tags in Wiktionary.
|
||||
|
||||
Definitions tagged with euphemistic usages were marked as taboo. We extracted all n-grams from Wiktionary and then used TFIDF and ridge regression to identify n-grams highly indicative of taboo.
|
||||
|
||||
\vspace{2em}
|
||||
|
||||
\begin{figure}
|
||||
\centering
|
||||
\includegraphics[width=\textwidth,alt={Screenshot of the Wiktionary definition of ``member''}]{figures/member.png}
|
||||
|
||||
\caption{The Wiktionary definition of ``member''---which has meanings ranging from the organizational to the anatomical.}
|
||||
\label{fig:wiktEntry}
|
||||
\end{figure}
|
||||
|
||||
\vspace{2em}
|
||||
%\e{Wikipedia articles vary widely: from biographies and books to concepts and cultures---what is a reasonable comparison sample?}
|
||||
\bigskip
|
||||
|
||||
To develop a comparison sample, we filtered the population of articles to just those that correspond to n-grams present in Wiktionary. We think of this as articles that have a ``dictionary salience''---topics it makes sense to discuss in a dictionary definition.
|
||||
|
||||
\bigskip
|
||||
\vspace{2em}
|
||||
|
||||
\begin{figure}
|
||||
\centering
|
||||
\includegraphics[width=.9\textwidth,alt={Flowchart of the analytical pipeline}]{figures/V2 Taboo Topics Analytical Pipeline.pdf}
|
||||
\caption{Our analytical pipeline first extracts n-grams, labeling them taboo if they are drawn from definitions tagged as euphemistic. Our samples are drawn from those articles that match these n-grams.} \label{fig:pipeline}
|
||||
\end{figure}
|
||||
\end{block}
|
||||
\end{textblock}
|
||||
|
||||
|
||||
\begin{textblock}{4}(4,-0.9)
|
||||
\begin{block}{\rule[-0.3ex]{0pt}{2.2ex}\textbf{H2: Taboo subjects receive many contributions}}
|
||||
\vspace{0.3em}
|
||||
\begin{figure}
|
||||
\centering
|
||||
\includegraphics[width=0.5\textwidth,alt={Boxplot of contribution volume}]{figures/volumeBox.pdf}
|
||||
\caption{Taboo articles receive more contributions than comparable articles.}
|
||||
\label{fig:volumeBox}
|
||||
\end{figure}
|
||||
|
||||
\bigskip
|
||||
|
||||
\end{block}
|
||||
\end{textblock}
|
||||
|
||||
\begin{textblock}{4}(4,5.2)
|
||||
\begin{block}{\rule[-0.3ex]{0pt}{2.2ex}\textbf{H4: Articles on taboo subjects are high quality}}
|
||||
\vspace{0.3em}
|
||||
\begin{figure}
|
||||
\centering
|
||||
\includegraphics[width=0.5\textwidth,alt={Boxplot of article quality}]{figures/boxQualitySrc.pdf}
|
||||
\caption{Articles about taboo subjects exceed the quality of our comparison set.}
|
||||
\label{fig:ageGrowth}
|
||||
\end{figure}
|
||||
|
||||
\bigskip
|
||||
|
||||
\end{block}
|
||||
\end{textblock}
|
||||
|
||||
\begin{textblock}{4}(4,2.1)
|
||||
\begin{block}{\rule[-0.3ex]{0pt}{2.2ex}\textbf{H3: Taboo subjects get attacked}}
|
||||
\vspace{0.3em}
|
||||
\begin{center}
|
||||
\begin{figure}
|
||||
\includegraphics[width=0.5\textwidth,alt={Plot of damage rates by article category}]{figures/damageRate.pdf}
|
||||
\caption{The rate of damaging contributions to taboo subjects is higher.}
|
||||
\end{figure}
|
||||
\end{center}
|
||||
\end{block}
|
||||
\end{textblock}
|
||||
|
||||
\begin{textblock}{4}(4,8.2)
|
||||
\begin{block}{\rule[-0.3ex]{0pt}{2.2ex}\textbf{H5: Contributors to taboo subjects are less identifiable in some dimensions....but not others!}}
|
||||
Editors of taboo subjects are less likely to use an account, have less experience, and have shorter user pages, although these differences are small. However, contrary to our expectations, they're more likely to make themselves emailable and more likely to disclose their gender---in fact, they are \textbf{more} likely to identify themselves as female.
|
||||
\vspace{0.3em}
|
||||
|
||||
\begin{figure}
|
||||
%\begin{minipage}{0.45\textwidth}
|
||||
\includegraphics[width=.45\textwidth,alt={Proportion of contributors who disclose an email address}]{figures/mailProp.pdf}
|
||||
\end{figure}
|
||||
%\end{minipage}\hfill
|
||||
%\begin{minipage}{0.45\textwidth}
|
||||
\begin{figure}
|
||||
\includegraphics[width=.45\textwidth,alt={Proportion of contributors who disclose gender}]{figures/genderProp.pdf}
|
||||
%\end{minipage}\hfill
|
||||
\end{figure}
|
||||
|
||||
\end{block}
|
||||
\end{textblock}
|
||||
|
||||
\begin{textblock}{12}(0,14.8)
|
||||
% \small{\textit{ICA 2022}, Paris, France\\}
|
||||
\small{We are grateful for support from the NSF}\\
|
||||
\small{CNS-1703736 and CNS-1703049}
|
||||
\end{textblock}
|
||||
|
||||
\end{frame}
|
||||
|
||||
\end{document}
|
||||
\begin{textblock}{4}(8,8.6)
|
||||
\begin{block}{\rule[-0.3ex]{0pt}{2.2ex}\textbf{Some Taboo Subjects We Identified}}
|
||||
|
||||
\vspace{0.5em}
|
||||
|
||||
%The following is a selection of n-grams that rated highly in our classifier as indicators of taboo (we have omitted racial/ethnic slurs, explicit sexual acts, and profanity in this table but included them in our dataset):
|
||||
|
||||
\vspace{1em}
|
||||
|
||||
\begin{table*}
|
||||
\centering
|
||||
\begin{tabular}{l l }
|
||||
Sex differences in human physiology & Love God \\
|
||||
Cat meat & Genitourinary system \\
|
||||
Gastrointestinal tract & Damnation \\
|
||||
Alive and Dead & Old Age \\
|
||||
Monosodium glutamate & Being Bobby Brown \\
|
||||
Abdominal Obesity & Feral cat \\
|
||||
Amazon Women on the Moon & Menstruation \\
|
||||
Love and God & Layoff \\
|
||||
Mental disorder & Unemployment \\
|
||||
Head on Collision & Vulva \\
|
||||
\end{tabular}
|
||||
\caption{A selection of articles from our taboo dataset. We have omitted racial/ethnic slurs, explicit sexual acts, and profanity in this table but included them in our dataset.}
|
||||
%\label{tab:tabooArticles}
|
||||
\end{table*}
|
||||
|
||||
|
||||
\vspace{0.5em}
|
||||
|
||||
\end{block}
|
||||
\end{textblock}
|
||||
|
||||
\begin{figure}
|
||||
\begin{minipage}{0.45\textwidth}
|
||||
\includegraphics[width=\textwidth]{figures/boxLengthSrc.png}
|
||||
\end{minipage}\hfill
|
||||
\begin{minipage}{0.45\textwidth}
|
||||
\includegraphics[width=\textwidth]{figures/boxContribSrc.png}
|
||||
\end{minipage}\hfill
|
||||
\end{figure}
|
||||
22
rename_tex_to_dirname
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
TARGET="$(basename "$(pwd)").tex"
|
||||
|
||||
if [ -e "$TARGET" ]; then
|
||||
echo "error: '$TARGET' already exists"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
files=(*.tex)
|
||||
if [ "${files[0]}" = "*.tex" ]; then
|
||||
echo "error: no .tex files found"
|
||||
exit 1
|
||||
fi
|
||||
if [ "${#files[@]}" -gt 1 ]; then
|
||||
echo "error: multiple .tex files found: ${files[*]}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mv "${files[0]}" "$TARGET"
|
||||