unhcr-dataviz / unhcrdown Goto Github PK
View Code? Open in Web Editor NEWUNHCR branded templates for R Markdown
Home Page: https://unhcr-dataviz.github.io/unhcrdown/
License: Other
UNHCR branded templates for R Markdown
Home Page: https://unhcr-dataviz.github.io/unhcrdown/
License: Other
Got the following warning with unhcrdown::pptx_slides
[WARNING] Powerpoint template warning: Couldn't find layout named "Comparison" in provided reference doc. Falling back to the default included with pandoc.
[WARNING] Powerpoint template warning: Couldn't find layout named "Content with Caption" in provided reference doc. Falling back to the default included with pandoc.
[WARNING] Powerpoint template warning: Couldn't find layout named "Blank" in provided reference doc. Falling back to the default included with pandoc.
Hi,
I noticed this on the Paged simple template. After you define the metadata at the YAML header:
author:
- name: John Doe
affiliation: Poetry Officer
email: [email protected]
The email
field seems it gets picked twice at render time, so I'm getting the following output where it gets also added right after the affiliation
:
CONTACT US
John Doe
Poetry [email protected]
[email protected]
Cross posting here - davidgohel/officer#474
Also a note the version https://github.com/vidonne/unhcrdown/blob/master/inst/resources/webfonts/fa-solid-900.ttf does not seems to include the humanitarian icon - https://fontawesome.com/icons/categories/humanitarian
Those are available here -
https://raw.githubusercontent.com/FortAwesome/Font-Awesome/6.x/webfonts/fa-solid-900.ttf
Maybe this is the reasons why the humanitarian glyph do not appear ?
Could be good anyway to demonstrate this in the pptx template - https://github.com/vidonne/unhcrdown/blob/master/inst/rmarkdown/templates/pptx_slides/skeleton/skeleton.Rmd
Could be convenient to have the landscape layout options - would used it directly for https://edouard-legoupil.github.io/XlsFormPrettyPrint/ as the table is too wide to easily rendered in portrait..
Review paged-report skeleton to include for information on how to use the template.
Implement CCS grid from Bootstrap 5 to enable more advanced layout. See cccmdown package approach.
In https://vidonne.github.io/unhcrdown/reference/docx_simple.html
I was trying to add the table of content - as explained here: https://ardata-fr.github.io/officeverse/officedown-for-word.html#toc
by adding
# Table of content
```{r}
block_toc()
Ideally it would be great to also have a parameter to number sections like in
word_document:
toc: yes
toc_depth: 2
number_sections: yes
Review the approach of https://github.com/rfortherestofus/pagedreport/ to darken the cover image a make title pops-out more if needed.
Bring back the resources from {unhcrdesign}
package directly within {unhcrdown}
to avoid some issues with Rstudio connect and other.
Add https://github.com/vidonne/unhcr-testing/tree/master/unhcrdown_factsheet as new template -
The date in the header does not change dynamically when you generate a new document. As long as you are using the Rmd code to create a new Microsoft Word document, it continuously displays 10 DECEMBER 2021.
This will alow us to serve only one CSS file per output and simplify the styling. See cccmdown package approach.
Make back-cover email clickable with a mailto.
When self_contained argument is added either to the yaml or the document function it gives an empty document. Weird behaviour as the toc or toc_depth are at the same level.
Fix the margins of background boxes that are stuck to the following text.
Develop the base style for tables. Need to discuss the approach kable vs flextable vs others.
Find a way to separate the concatenated string of author-afil and author-email to use it for the back-cover content.
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.