feat: add funding metadata support and increase QR code caption max-width

bump version to 2.3.0

Change-Id: Ic58f2788d4412ffd6cde6bfc7835d57e04ae5945
4 files changed
tree: 64ced86ffd568c4d19aacc83e78bc00d0a0ebec0
  1. .github/
  2. ci/
  3. images/
  4. inst/
  5. man/
  6. R/
  7. vignettes/
  8. .gitattributes
  9. .gitignore
  10. .gitlab-ci.yml
  11. .Rbuildignore
  12. .travis.yml
  13. DESCRIPTION
  14. LICENSE
  15. NAMESPACE
  16. NEWS.md
  17. posterdown.ids.Rproj
  18. README.md
README.md

IDS Mannheim CD adaptation to the posterdown R package

Example Poster

Automatically generated from skeleton.Rmd:

Getting Started

Install with:

remotes::install_git("https://korap.ids-mannheim.de/gerrit/IDS-Mannheim/posterdown")

Now add this to the YAML options of your rmarkdown (.Rmd) file:

---
output: 
  posterdown.ids::posterdown_ids
---

For further customization options please see the (currently in progress :hammer:) wiki

Additional metadata / customization for IDS version, e.g.:

subtitle: Using RMarkdown and `posterdown.ids::posterdown_ids`
contact:
    name: Marc Kupietz
    department: Digital Linguistics
    email: kupietz@ids-mannheim.de
    website: "http://korap.ids-mannheim.de/instance/icc"
    qrlink: >
      `r posterdown.ids::qrlink('https://gitlab.ids-mannheim.de/ids/posterdown', text = 'Scan for repository & abstract')`
second_logo:
  url: https://raw.githubusercontent.com/brentthorne/posterdown/master/images/betterhexlogo.png
  margin-left: 14.5cm
funding:
  logo: dfg-logo.svg
  text: Deutsche Forschungsgemeinschaft (DFG)
  project: "Project number: 531750631"

To switch to German language, add the following to the YAML options:

lang:
  de: true

Use without R for plain markdown

Install pandoc, create a simple poster.md file, for example:

---
title: "A Simple Test Poster"
contact:
  name: "Marc Kupietz"
  website: "https://corpora.ids-mannheim.de/derekovecs"
  department: "Digital Linguistics"
  email: "kupietz@ids-mannheim.de"
author:
  - name: "Marc Kupietz"
date: "2024-06-05"
affiliation:
  address: "IDS Mannheim"
---

# Introduction

bla bla bla

# Methods

bla bla bla

# Results

bla bla bla

# Discussion

bla bla bla

Then run the following command:

pandoc poster.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --wrap preserve --section-divs --template https://gitlab.ids-mannheim.de/ids/posterdown/-/raw/master/inst/rmarkdown/templates/posterdown_ids/resources/template.html?ref_type=heads --highlight-style pygments '--mathjax=https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' --citeproc --output poster.html

View the resulting poster.html in your browser and print it as a PDF (don“t forget to tick print backgrounds and possibly select only the first page).

Alternatively, ci/html2pdf converts the HTML to an A0 PDF with exact dimensions and automatic hyphenation:

ci/html2pdf poster.html poster.pdf

Printing on fabric

When printing on light fabric, solid black tends to bleed out, making QR codes hard to scan and text fuzzy. ci/pdf-lighten-black produces a variant of a finished PDF in which all vector black is replaced by a dark grey (default 10%, configurable), while text and graphics stay vector and embedded raster images are untouched:

ci/pdf-lighten-black poster.pdf poster_fabric.pdf        # 10% grey
ci/pdf-lighten-black poster.pdf poster_fabric.pdf 0.25   # lighter, if black still bleeds

For mounting, pdfjam can place that A0 fabric version on a page which is 2 cm wider and taller, leaving a 1 cm margin on every side:

pdfjam poster_fabric.pdf \
    --papersize '{861mm,1209mm}' \
    --noautoscale true \
    --outfile poster_fabric-1cmborder.pdf

The CI workflow builds both variants automatically as target/skeleton_fabric.pdf and target/skeleton_fabric-1cmborder.pdf.