crsh / citr

RStudio Addin to Insert Markdown Citations
Other
407 stars 46 forks source link

`citr` not updating `references.bib` in subdirectory #51

Closed IndrajeetPatil closed 5 years ago

IndrajeetPatil commented 5 years ago

I am using citr to generate bibliography for my citations but my references.bib is neither getting regenerated (if I delete the existing copy) nor is it getting updated with the new citations I add.

This is the yaml for my RMarkdown:

---
title: "xyz"
author: x, y, z
date: "`r Sys.Date()`"
output: 
  html_document:
    toc: true
  pdf_document:
    toc: true
    keep_tex: true
    keep_md: true
  latex_engine: xelatex
header-includes: 
  - \usepackage{amsmath}
  - \usepackage{amssymb}
  - \usepackage{longtable}
  - \usepackage{booktabs}
  - \usepackage{amsfonts}
  - \usepackage{hyperref}
  - \usepackage{booktabs}
  - \usepackage[dvipsnames]{xcolor}
  - \usepackage{fontawesome}
bibliography: references.bib
csl: apa.csl
---

If it makes any difference, this is the citr settings I have:

image

The entire folder where the paper is located can be found here for more info, if needed: https://github.com/IndrajeetPatil/ggstatsplot/tree/paper_draft_wip/paper

crsh commented 5 years ago

Thanks for reporting this. Are you sure this is related to the output-format? From what I can tell that the problem seems to be that the Rmd is in a subdirectory. I've just pushed a fix that should address this. Could you try it out and see if that resolves the issue for you?

IndrajeetPatil commented 5 years ago

That solved it! Thank you very much :)

crsh commented 5 years ago

Excellent, a release with this fix is on its way to CRAN.