| commit | a487fb74ce4c985cb5b0568eed67a3c2602ea32a | [log] [tgz] |
|---|---|---|
| author | Marc Kupietz <kupietz@ids-mannheim.de> | Thu Jul 23 15:16:59 2026 +0200 |
| committer | Marc Kupietz <kupietz@ids-mannheim.de> | Thu Jul 23 15:38:23 2026 +0200 |
| tree | e65f42505faa7abf4d5bc2ae68cd29a52b1dd022 | |
| parent | 817166976b2942cf793ea01c33c1d358ac61f76f [diff] |
Render emoji with a Chrome-PDF-compatible Twemoji build The previous attempt (8171669, reverted in 8abef81) installed upstream Twemoji's own release, which uses the SVGinOT color-font format. Chrome renders SVGinOT in color on screen, but its print-to-PDF path doesn't support it and silently falls back to the font's monochrome outline glyphs -- confirmed via `pdffonts` showing the embedded glyphs as a plain (non-color) font subset in a real CI-built poster. Fedora's twitter-twemoji-fonts package instead ships Twemoji as CBDT/CBLC (bitmap glyphs), the same technology Noto Color Emoji uses, which Chrome does support for PDF export (verified locally: embeds as a color Type 3 font, and renders correctly in the printed poster). Extract just the .ttf from Fedora's RPM via rpm2cpio/cpio rather than adding a whole extra package repository. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Change-Id: Ic6168efa44af3b0a84ecdb643e483d107aaac547
Automatically generated from skeleton.Rmd:
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
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')` second_logo: url: https://raw.githubusercontent.com/brentthorne/posterdown/master/images/betterhexlogo.png margin-left: 14.5cm
To switch to German language, add the following to the YAML options:
lang: de: true
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
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 15%, configurable), while text and graphics stay vector and embedded raster images are untouched:
ci/pdf-lighten-black poster.pdf poster_fabric.pdf # 15% grey ci/pdf-lighten-black poster.pdf poster_fabric.pdf 0.25 # lighter, if black still bleeds
The CI workflow builds this variant automatically as target/skeleton_fabric.pdf.