Skip to content
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
Merged

Added monash theme #10

merged 2 commits into from
Oct 9, 2018

Conversation

robjhyndman
Copy link
Contributor

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
Copy link
Owner

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
Copy link
Owner

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
Copy link
Contributor Author

Sorry. Now fixed I hope.

@eddelbuettel
Copy link
Owner

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
@robjhyndman
Copy link
Contributor Author

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants