rstudio/tufte

References not formatted properly (and text in italics) on the Tufte Rmd template out-of-the-box

xalario opened this issue · 2 comments

Hello

Thanks a lot for this beautiful package!

I have started using the package recently, tinkering with the Tufter Rmd template to learn by doing.

I have trouble getting the references right.

With the same Rmd code, out of the box:

  1. on HTML, from the reference ownards the text appears in italics, and the reference on the margin is not complete

Screenshot 2023-03-30 at 20 09 17

  1. Separating the reference on a separate line solves the italics issue but the reference disappears:

HTML2

  1. on PDF, the text is (rightly) not in italics but the references appear at the end, not in the margin:

PDF

I have read the instructuion about pandoc-citeproc. My installation does not have pandoc-citeproc but I don't know how to proceed because pandoc-citeproc is deprecated in favor of citeproc.

I have updated everything I can think of, and I tinkered around with the Rmd text and the reference list, without a solution. I don't feel confident enough to try the development version.

I filing this as "bug" because I get the result out of the box. Apologies if this is obvious, I do not know much about pandoc filters.

Thank you in advance & kind regards

Xavier


xfun::session_info('tufte')

R version 4.2.3 (2023-03-15)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Monterey 12.6.4, RStudio 2023.3.0.386

Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8

Package version:
base64enc_0.1.3 bslib_0.4.2 cachem_1.0.7 cli_3.6.1 digest_0.6.31
ellipsis_0.3.2 evaluate_0.20 fastmap_1.1.1 fontawesome_0.5.0 fs_1.6.1
glue_1.6.2 graphics_4.2.3 grDevices_4.2.3 highr_0.10 htmltools_0.5.5
jquerylib_0.1.4 jsonlite_1.8.4 knitr_1.42 lifecycle_1.0.3 magrittr_2.0.3
memoise_2.0.1 methods_4.2.3 mime_0.12 R6_2.5.1 rappdirs_0.3.3
rlang_1.1.0 rmarkdown_2.21 sass_0.4.5 stats_4.2.3 stringi_1.7.12
stringr_1.5.0 tinytex_0.44 tools_4.2.3 tufte_0.12 utils_4.2.3
vctrs_0.6.1 xfun_0.38 yaml_2.3.7


By filing an issue to this repo, I promise that

  • I have fully read the issue guide at https://yihui.name/issue/.

  • I have provided the necessary information about my issue.

    - If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.

    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('tufte'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/tufte').

    - If I have posted the same issue elsewhere, I have also mentioned it in this issue.

  • I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

Ok, after finding this earlier commit related to this very issue, I downloaded the development version (moving from 0.12 to 0.12.4).

The side notes and references now work as expected.

Sorry about the clutter.

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.