Git Product home page Git Product logo

monashebstemplates's Introduction

R Markdown templates for Monash University

This package is now retired. Please use the monash package instead.

monashebstemplates's People

Contributors

dicook avatar emitanaka avatar ffancheng avatar imgbotapp avatar mitchelloharawild avatar robjhyndman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

monashebstemplates's Issues

Problems with toc links

Hi Rob,

When I was using the "monashwp.tex" with bookdown. It seems that the following code has made hyperlinks of toc and pdf bookmarks to the wrong page:

\usepackage[unicode=true]{hyperref}
$if(colorlinks)$
\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
$endif$
\hypersetup{
$if(title-meta)$
            pdftitle={$title-meta$},
$endif$
$if(author-meta)$
            pdfauthor={$author-meta$},
$endif$
$if(keywords)$
            pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
$endif$
$if(colorlinks)$
            colorlinks=true,
            linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
            citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
            urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
$else$
            pdfborder={0 0 0},
$endif$
            breaklinks=true}
\urlstyle{same}  % don't use monospace font for urls

I have an example here: https://github.com/CarolineXGao/GSP/tree/main/Draft. The "template.tex" file is a simplified version "monashwp.tex". If the above code is added, then the links would be incorrect. I am not sure if it is an issue with using bookdown. However, I couldn't figure out why it is the case.

Thanks~~

Best,
Caroline

LaTeX Error: Environment cslreferences undefined

Hi Rob,

Thanks for the templets. I have been trying to find a nice template for paper submission and find rticles templets quite hard to manually edit anything. Your template works beautifully. One problem that I found with the WorkingPaper template when using under bookdown (with additional csl specification), is that it seems to report an error of cslreferences. Adding this code in the template seems to be able to fix the problem. Although I am not sure why : )

$if(csl-refs)$
\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
\newenvironment{cslreferences}%
  {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
  \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
  {\par}
$endif$

Thanks again for sharing ~~

Best,
Caroline

Re-import Beamer theme?

This is a lovely package and quite coherent in its Markdown support for Monash EBS.

But it feels weird that the Beamer is now "gone". Given that the binb package is on CRAN, should this package maybe have an Imports: or Suggests: and bring the binb::monash() function back here?

Problem trying to change parameters

Hi, and thanks for reading me

I am trying to enter my email in the corresponding field, but when rendering the document, the sample email is recompiled. Is it a bug?

The preamble is:

---
title: "Pronóstico de servicios"
author:
- familyname: Hernández Castelán
  othernames: Jorge Valente
  address: IKE Asistencia
  email: [email protected]
  correspondingauthor: true
  qualifications: Economista
department: Equipo de\newline Business Inteligence
organization: IKE Asistencia
bibliography: references.bib
biblio-style: authoryear-comp
linestretch: 1.5
output:
  MonashEBSTemplates::report:
    fig_caption: yes
    fig_height: 5
    fig_width: 8
    includes:
      in_header: preamble.tex
    keep_tex: yes
    number_sections: yes
    citation_package: biblatex
    toc: false
---

MBS Consulting Report Author name error

Hi Prof, I tried to knit the template report but end up with this error message:

{{\sf \Large \textbf { Marie Curie}\\sf \large Nobel Prize, PhD\[0.\ETC.
! Paragraph ended before \author was complete.

\par
l.203

I did not change anything to the template, just tried to knit it. If I delete the author field, it can knit the pdf

Templates don't work when using rmarkdown::render

Thanks for the great templates.
I have been using your templates quite a lot in my work, however, recently the template don't work when I use rmarkdown::render. It works when I click on the knit button in Rstudio though!!
Just to clarify that, when I use rmarkdown::render, the pdf document is created but it is in the default format not the customised one. It must have something to do with rmarkdown.

My session is
R version 3.6.3 (2020-02-29)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15.7

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] readxl_1.3.1 forcats_0.5.0 stringr_1.4.0 dplyr_1.0.2 purrr_0.3.4 readr_1.3.1 tidyr_1.1.1
[8] tibble_3.0.3 ggplot2_3.3.2 tidyverse_1.3.0

R version 3.6.3 (2020-02-29)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15.7

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] rmarkdown_2.6 readxl_1.3.1 forcats_0.5.0 stringr_1.4.0 dplyr_1.0.2 purrr_0.3.4 readr_1.3.1
[8] tidyr_1.1.1 tibble_3.0.3 ggplot2_3.3.2 tidyverse_1.3.0

loaded via a namespace (and not attached):
[1] Rcpp_1.0.5 cellranger_1.1.0 pillar_1.4.6 compiler_3.6.3 dbplyr_1.4.3 tools_3.6.3
[7] digest_0.6.27 evaluate_0.14 jsonlite_1.7.2 lubridate_1.7.8 lifecycle_0.2.0 nlme_3.1-144
[13] gtable_0.3.0 lattice_0.20-38 pkgconfig_2.0.3 rlang_0.4.10 reprex_0.3.0 cli_2.0.2
[19] DBI_1.1.0 rstudioapi_0.11 xfun_0.20 haven_2.2.0 knitr_1.31 withr_2.2.0
[25] xml2_1.3.1 httr_1.4.1 fs_1.4.1 generics_0.0.2 vctrs_0.3.2 hms_0.5.3
[31] grid_3.6.3 tidyselect_1.1.0 glue_1.4.2 R6_2.4.1 fansi_0.4.1 modelr_0.1.6
[37] magrittr_2.0.1 htmltools_0.5.1.1 backports_1.1.9 scales_1.1.1 ellipsis_0.3.1 rvest_0.3.5
[43] assertthat_0.2.1 colorspace_1.4-1 stringi_1.5.3 munsell_0.5.0 broom_0.5.6 crayon_1.3.4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.