hughjonesd / huxtable

An R package to create styled tables in multiple output formats, with a friendly, modern interface.
http://hughjonesd.github.io/huxtable
Other
322 stars 28 forks source link

Rmarkdown italics turned to underline #191

Closed HankStevens closed 3 years ago

HankStevens commented 3 years ago

Before using this form, please read ?"huxtable-FAQ". In particular:

PLEASE DON'T USE GITHUB ISSUES FOR HELP REQUESTS.

Github issues are for bug reports and feature requests only. If you have a help request, post it to e.g. stackoverflow or community.rstudio.com, and drop me an email with the link. I will try to help out, and this will benefit other users. Help requests found here will be closed with a short response, which is not guaranteed to be polite.

OK? On with the show.

When I use hux() in an Rmarkdown document, my italic text get turned into underlined text.

Minimal Reproducible Example

title: "Trial" author: 'Hank Stevens' output: pdf_document: default

This should be italics

library(huxtable)
mdf <- data.frame( A=1:2, B=3:4 )
hux(mdf) 

I expected This should be italics be rendered in italics, but it was rendered underlined instead.

System details Please report the output of packageVersion("huxtable"), as well as your R version and Rstudio version if applicable. "R version 4.0.2 (2020-06-22)" RStudio: Version 1.3.1073 huxtable: 5.1.1 latex: tinytex (version?)

hughjonesd commented 3 years ago

OK, I think I know what this is.

Could you try the following workaround: add \normalem in the LaTeX preamble. Meanwhile I'll work on a fix.

hughjonesd commented 3 years ago

Try with GitHub master: remotes::install_github("hughjonesd/huxtable").

HankStevens commented 3 years ago

Boom! That works - thank you!

On Wed, Dec 16, 2020 at 5:28 AM David Hugh-Jones notifications@github.com wrote:

Try with GitHub master: remotes::install_github("hughjonesd/huxtable").

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hughjonesd/huxtable/issues/191#issuecomment-746052813, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKF6IRLGM7NVTP4GY7CGNP3SVCDVJANCNFSM4U4PNKNA .

--

U.S. Deaths Vietnam KIA+MIA: 59,904 World War II Combat: 291,557 CoVID-19: >300,000 Dr. Hank Stevens Pronouns: he/his

Director, Ph.D. Program in Ecology, Evolution, and Environmental Biology https://miamioh.edu/cas/academics/programs/eeeb/

Associate Professor (lab website https://blogs.miamioh.edu/stevens-lab/)

Miami University | Department of Biology

172 Pearson Hall

Oxford, OH 45056 O: 513-529-4206 | Hank.Stevens@MiamiOH.edu

Learn more about Miami Tribe Relations https://miamioh.edu//miami-tribe-relations/index.html