New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added monash theme #10

Merged
merged 2 commits into from Oct 9, 2018

Conversation

Projects
None yet
2 participants
@robjhyndman
Contributor

robjhyndman commented Oct 8, 2018

First pass.

  • I've tried to make it as similar as possible in structure to other binb themes.
  • I've made carlito the default font for now.
  • I've not included a demo at this stage.

Please feel free to modify what I've done as you see fit.

@eddelbuettel

This comment has been minimized.

Owner

eddelbuettel commented Oct 8, 2018

Giving it a spin .... and looks like we're missing resources:

/usr/lib/rstudio/bin/pandoc/pandoc +RTS -K512m -RTS Monash.utf8.md --to beamer --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output Monash.tex --template /usr/local/lib/R/site-library/binb/rmarkdown/templates/monash/resources/template.tex --slide-level 2 --variable theme=monash --highlight-style tango --pdf-engine pdflatex --self-contained 
output file: Monash.knit.md

tlmgr search --file --global '/MonashTitleSlide'
Cannot determine type of tlpdb from /home/edd/texmf!
cannot setup TLPDB in /home/edd/texmf at /usr/bin/tlmgr line 6424.
! LaTeX Error: File `MonashTitleSlide' not found.

I see your R code already accounts for a file in

    for (f in c("beamercolorthememonash.sty", "beamerfontthememonash.sty",
                "beamerthememonash.sty", "titlepage.png", "figs/"))

but I guess you i) need to add it and b) sort out the naming: MonashTitleSlide.png vs titleslide.png.

Once I copy it in (as MonashTitleSlide.png) all is well.

@eddelbuettel

This comment has been minimized.

Owner

eddelbuettel commented Oct 8, 2018

One trick might be to take titleslide from YAML, also copy the default slide and if/else the code so an alternate is used as given (under name titleslide.png) and otherwise yours is used.

For now just change the code to copy in the hardcode MonashTitleSlide.png may do too.

@robjhyndman

This comment has been minimized.

Contributor

robjhyndman commented Oct 8, 2018

Sorry. Now fixed I hope.

@eddelbuettel

This comment has been minimized.

Owner

eddelbuettel commented Oct 9, 2018

All good -- tried again, once home.

I wonder if we should invert the colors as you did in your 'Writing.pdf' -- ie header with blue background, body with light/white background? Thoughts?

@eddelbuettel eddelbuettel merged commit 65d58df into eddelbuettel:master Oct 9, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@robjhyndman

This comment has been minimized.

Contributor

robjhyndman commented Oct 9, 2018

I have two versions of the monash theme, one with blue body and white headers, and one with white body and blue headers. I could add a yaml option to switch between them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment