robjhyndman / monashebstemplates Goto Github PK
View Code? Open in Web Editor NEWRmarkdown templates for use at Monash University Department of Econometrics and Business Statistics
License: GNU General Public License v3.0
Rmarkdown templates for use at Monash University Department of Econometrics and Business Statistics
License: GNU General Public License v3.0
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?
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
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
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
---
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.