Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cross-browser print problems with text_poster #11

Closed
tgerke opened this issue Jan 28, 2020 · 3 comments
Closed

cross-browser print problems with text_poster #11

tgerke opened this issue Jan 28, 2020 · 3 comments
Labels
priority: low Low priority status: considering Considering if/how this should be implemented type: documentation Documentation required or needs improvement

Comments

@tgerke
Copy link

tgerke commented Jan 28, 2020

The following example prints as expected in Firefox; however, in Safari, none of the poster text prints and, in Chrome, the size of the text is expanded and stretches beyond the window limit.

---
title: "MWE"
subtitle: "<br>"
author: "MWE"
output:
  xaringan::moon_reader:
    lib_dir: libs
    css: moffitt-xaringan.css
    seal: false
    nature:
      titleSlideClass: ["bottom", "left"]
      slideNumberFormat: "%current%"
      highlightStyle: github
      highlightLines: true
      ratio: "16:9"
      countIncrementalSlides: true
---

```{r setup, include=FALSE}
options(htmltools.dir.version = FALSE)

knitr::opts_chunk$set(
  fig.width = 10, fig.height = 6, fig.retina = 2,
  warning = FALSE, message = FALSE
)

library(tidyverse)

xaringanExtra::use_xaringan_extra(c("animate_css", "text_poster", "panelset"))
```

class: center inverse strive-to-recruit

`r xaringanExtra::text_poster(
  "I strive to recruit the 
  most talented 
  data scientists and
  compensate them accordingly.",
  width = "90%",
  height = "85%"
)`

.footnote.pull-right[— _Every good data science manager ever_]

```{css echo=FALSE}
@import url('https://fonts.googleapis.com/css?family=Merriweather:300');

.text-poster {
	font-family: 'Merriweather', serif;
  margin: 0 auto;
}
.strive-to-recruit .text-poster .line-container .line:nth-child(2) {
  color: #82c878;
}
.strive-to-recruit {
  background: #00589a;
}
@tgerke
Copy link
Author

tgerke commented Jan 28, 2020

well, not quite MWE: you'll need the moffitt-xaringan.css file, which I know you have

@gadenbuie
Copy link
Owner

gadenbuie commented Jan 28, 2020

sounds to me like it's working fine

@tgerke
Copy link
Author

tgerke commented Jan 28, 2020

classic. closed.

@gadenbuie gadenbuie added priority: low Low priority status: considering Considering if/how this should be implemented type: documentation Documentation required or needs improvement labels Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low Low priority status: considering Considering if/how this should be implemented type: documentation Documentation required or needs improvement
Projects
None yet
Development

No branches or pull requests

2 participants