add qrcode
Change-Id: I3236c82ebf301927462881ef4c78967ab1dfa5d3
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 361fc7d..f1c7f23 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,7 +23,7 @@
- start_section install_linux_packages "Installing missing Linux packages"
- apt-get update
- - apt-get install -y libvulkan1 libu2f-udev fonts-liberation build-essential libglpk40 libcurl4-gnutls-dev libxml2-dev libsodium-dev libsecret-1-dev libfontconfig1-dev libssl-dev libxt6 libpq-dev imagemagick ghostscript inkscape scour
+ - apt-get install -y libvulkan1 libu2f-udev fonts-liberation build-essential libglpk40 libcurl4-gnutls-dev libxml2-dev libsodium-dev libsecret-1-dev libfontconfig1-dev libssl-dev libxt6 libpq-dev imagemagick ghostscript inkscape scour poppler-utils
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- dpkg -i google-chrome-stable_current_amd64.deb || apt-get install -y -f
- locale-gen de_DE.utf8 en_GB.utf8 en_US.utf8
@@ -56,4 +56,3 @@
- scour -i target/poster.svg -o target/poster_optimized.svg --enable-viewboxing --enable-id-stripping --shorten-ids --indent=none
- end_section render
-
diff --git a/R/poster.Rmd b/R/poster.Rmd
index edd999b..c6bb39d 100644
--- a/R/poster.Rmd
+++ b/R/poster.Rmd
@@ -67,16 +67,23 @@
logoleft_name: "../Figures/ICC_COL.svg"
author_textsize: "32pt"
+contact:
+ qrcode: icc_qrcode.svg
+
output:
- posterdown::posterdown_ids
+ posterdown::posterdown_ids:
+ self_contained: false
+ keep_md: true
bibliography: ../tex/references.bib
csl: ids.csl
---
```{r setup, include=FALSE, echo=FALSE, warning=FALSE}
+library(qrcode)
knitr::opts_chunk$set(dev = 'svg', echo = FALSE, warnings = FALSE)
source("common.R")
+generate_svg(qr_code("https://korap.ids-mannheim.de/instance/icc"), "icc_qrcode.svg")
```
# ICC aims & charcteristics
diff --git a/ci/html2pdf b/ci/html2pdf
index 9341aea..b16a183 100755
--- a/ci/html2pdf
+++ b/ci/html2pdf
@@ -1,9 +1,4 @@
#!/bin/sh -eu
in=$1 out=$2 page0=${3:-} page1=${4:-$page0}
-google-chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-startup-window --disable-gpu --run-all-compositor-stages-before-draw --no-pdf-header-footer --print-to-pdf="$out" "$in"
-GS_ARGS=
-if [ -n "$page0" ]; then
- GS_ARGS="-dFirstPage=$page0 -dLastPage=$page1"
-fi
-gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH $GS_ARGS -sOutputFile="$2.tmp" "$2"
-mv "$2.tmp" "$2"
+google-chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-startup-window --disable-gpu --run-all-compositor-stages-before-draw --no-pdf-header-footer --print-to-pdf="$out".tmp "$in"
+pdfseparate -f 1 -l 1 "$out".tmp $out