Skip to content

Commit

Permalink
dfdgfdfdfg
Browse files Browse the repository at this point in the history
  • Loading branch information
svmiller committed Nov 2, 2024
1 parent 12e8884 commit c0cf19b
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ License: GPL-2
Encoding: UTF-8
Imports:
rmarkdown
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
Suggests:
testthat
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
- `word` now has a custom footnote style, which simply decreases the font size from 12 to 9.
- `article3` no longer has a hypothesis theorem hard-coded to it. `{bookdown}` can do that, if you need it. Rationale: you also won't need it for the simplest of simple cases, or could add one yourself by way of `header-includes:`.
- `cv2` is an updated version of `cv`, which I use now for my academic CV.
- `syllabus` now has the ability to add third and fourth co-teachers.
- `beamer` has some hacks (sic) for two-column layouts.

# stevetemplates 1.0.0

Expand Down
10 changes: 10 additions & 0 deletions R/syllabus.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
#' | `office` | Your office location. Technically optional, but you really should use it. |
#' | `classroom` | The classroom location. Technically optional, but you really should use it. |
#' | `classhours` | When/for how long the class meets in a given session. Technically optional, but you really should use it. |
#' | `coteaching` | If TRUE, changes format to allow for a second (third, or fourth) co-teacher |
#'
#' # Additional Comments
#'
#' There is a nested conditionality for co-teachers. If `coteaching` is TRUE,
#' format changes to allow a second teacher. Conditional on `coteaching` being
#' TRUE *and* there being an `email3` entry, a third co-teacher is added and
#' entries for the third teacher's office hours and office are assumed. If
#' `coteaching` is TRUE, `email3` has an entry *and* there is an `email4` entry,
#' a fourth co-teacher is added.
#'
#' @inheritParams rmarkdown::pdf_document
#' @param ... Arguments to [`rmarkdown::pdf_document`].
Expand Down
21 changes: 21 additions & 0 deletions inst/rmarkdown/templates/beamer/resources/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,27 @@
\draw (-0.1,0.2) to [out=15,in=-100] (0.4,0.95);
\end{tikzpicture}}

% cols environment, for column-hackery.

\newenvironment{cols}[1][]{}{}

\newenvironment{col}[1]{\begin{minipage}{#1}\ignorespaces}{%
\end{minipage}
\ifhmode\unskip\fi
\aftergroup\useignorespacesandallpars}

\def\useignorespacesandallpars#1\ignorespaces\fi{%
#1\fi\ignorespacesandallpars}

\makeatletter
\def\ignorespacesandallpars{%
\@ifnextchar\par
{\expandafter\ignorespacesandallpars\@gobble}%
{}%
}
\makeatother


% header includes go last.

$for(header-includes)$
Expand Down
8 changes: 8 additions & 0 deletions inst/rmarkdown/templates/syllabus/resources/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,14 @@
Office: $if(office)$$office$$else$TBD$endif$ & Office: $if(office2)$$office2$$else$TBD$endif$\\
& \\

$if(email3)$

Email: \texttt{$email3$} & $if(email4)$Email: \texttt{$email4$}$else$$endif$ \\
Office Hours: $officehours3$ & $if(email4)$Office Hours: $officehours$$else$$endif$ \\
Office: $office3$ & $if(email4)$Office: $office$$else$$endif$ \\

& \\
$else$$endif$
$else$

E-mail: $if(email)$\texttt{$email$}$else$TBD$endif$ & Web: $if(web)$\href{http://$web$}{\tt $web$}$else$TBD$endif$\\
Expand Down
10 changes: 10 additions & 0 deletions man/syllabus.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c0cf19b

Please sign in to comment.