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

Not working with custom css? #6

Closed
pat-s opened this issue Nov 27, 2017 · 9 comments
Closed

Not working with custom css? #6

pat-s opened this issue Nov 27, 2017 · 9 comments

Comments

@pat-s
Copy link

pat-s commented Nov 27, 2017

When using a custom css file with xaringan, icons do not render for me, only the code gets printed.

Everything works fine with the default xaringan template. Anything crucial that is missing in my custom css? [Its quite large so I would only post it if it really helps)

@earowang
Copy link
Collaborator

I couldn't replicate the issue. The icons render as expected when I use a custom css fill in xaringan. Which version of xaringan do you use?

@pat-s
Copy link
Author

pat-s commented Nov 28, 2017

Thanks for looking into this, @earowang!

Here's a reprex with my custom css. Wondering if it works for you 😄 If yes, it might be an OS problem? However, the default template works for me so this is mysterious 🤔

@earowang
Copy link
Collaborator

Seems not a problem on a macOS machine. which OS do you use?

screen shot 2017-11-29 at 10 37 54 am

@mitchelloharawild
Copy link
Owner

I also cannot reproduce this on Ubuntu 16.04 and Windows 10.

@pat-s
Copy link
Author

pat-s commented Nov 30, 2017

I'm using Arch KDE. Tested it on a second machine to verify this. On the second machine the default template does not even work for me.

Wondering what library I might be missing here 🤔

@earowang
Copy link
Collaborator

earowang commented Dec 7, 2017

Interestingly, I've had the same problem when using xaringan::infinite_moon_reader in RStudio. But it appears perfect if using the infinite moon reader in the terminal.

@earowang earowang closed this as completed Dec 7, 2017
@earowang earowang reopened this Dec 7, 2017
@pat-s
Copy link
Author

pat-s commented Dec 11, 2017

Tried it using the terminal but did not help either. Even on 16.04 I cannot get it to work.
Am I missing a specific library?

Here's the full render call, maybe it helps somehow:

/usr/lib/rstudio/bin/pandoc/pandoc +RTS -K512m -RTS 2017_12_Vitoria.utf8.md --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output 2017_12_Vitoria.html --smart --email-obfuscation none -V 'mathjax-url=https://cdn.bootcss.com/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML' --standalone --section-divs --template /home/pjs/R/x86_64-pc-linux-gnu-library/3.4/xaringan/rmarkdown/templates/xaringan/resources/default.html --no-highlight --include-in-header /tmp/RtmpYxWV2Y/rmarkdown-str652c7a26100d.html --include-before-body /tmp/RtmpYxWV2Y/xaringan652c54075c5e.md --include-after-body /tmp/RtmpYxWV2Y/xaringan652c5a5fada2.js --variable title-slide=true --variable math=true

@peterchristofferholm
Copy link

I have the same issue as @pat-s on my machine (macOS). When using a custom css, the icon does not render at all. I have this problem in infinite-moonreader rendered slideshows. However, there are no missing icons if I just knit to moonreader.

@peterchristofferholm
Copy link

I think this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants