Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ztable changes font family in Rmarkdown #11

@tspeidel

Description

@tspeidel

I've noticed that as soon as soon as the ztable package is loaded all the tables in my markdown documents change font from sans serif to serif. This is reproducible:

`

title: "Ztable Test"
author: "some author"
date: "October 18, 2017"
output: html_document

knitr::opts_chunk$set(echo = TRUE)

Kable (from knitr) in markdown

cars <- cars
knitr::kable(head(cars))

`
The above renders with sans serif font. Now if I load ztable:

`

title: "Ztable Test"
author: "some author"
date: "October 18, 2017"
output: html_document

knitr::opts_chunk$set(echo = TRUE)

Kable (from knitr) in markdown

cars <- cars
knitr::kable(head(cars))

Using ztable

library(moonBook)
library(ztable)

options(ztable.type="html")
options(ztable.zebra=1)
options(ztable.zebra.color="platinum")
options(ztable.colnames.bold=TRUE)
ztable(head(cars))

`

All tables use serif fonts. How can I override this behavior? I want my fonts to remain sans serif.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions