You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function citep() doesn't appear to format the accent characters. After digging around, It seems that print.bibentry() calls format.bibentry(), which seems to work some voodoo via Rd files using tools::Rd2txt(). In any case, my hopefully reproducible code is below. Is there any easy way to work the formatting into the inline citations?
library(knitcitations)
x <- structure(list(grunwald2006hierarchical = structure(list(title = "Hierarchical analysis of diversity, selfing, and genetic differentiation in populations of the oomycete Aphanomyces euteiches",
author = structure(list(structure(list(given = c("N.", "J."
), family = "Gr{\\\"u}nwald", role = NULL, email = NULL, comment = NULL), .Names = c("given", "family", "role", "email", "comment")), structure(list(given = "G.-A.", family = "Hoheisel", role = NULL, email = NULL, comment = NULL), .Names = c("given", "family", "role", "email", "comment"))), class = "person"), journal = "Phytopathology", volume = "96", number = "10", pages = "1134--1141", year = "2006", publisher = "Am Phytopath Society"), .Names = c("title", "author", "journal", "volume", "number", "pages", "year", "publisher"), bibtype = "Article", key = "grunwald2006hierarchical")), .Names = "grunwald2006hierarchical", class = "bibentry")citep(x)## [1] "(<a href=\"\">Gr{\\\"u}nwald & Hoheisel, 2006</a>)"
Okay, I still have to fix this, (think I have a good way to improve all the formatting), but meanwhile I'm curious if you might prefer the pandoc-based solution I've just released to address #57? Since pandoc will be handling the final formatting of the inline citation, this should sidestep the issue. (Note that a pandoc markdown parser is set to become a standard part of RStudio as well).
Hello, this is similar to my previous issue*.
The function
citep()
doesn't appear to format the accent characters. After digging around, It seems thatprint.bibentry()
callsformat.bibentry()
, which seems to work some voodoo via Rd files usingtools::Rd2txt()
. In any case, my hopefully reproducible code is below. Is there any easy way to work the formatting into the inline citations?It appears as:
(Gr{"u}nwald & Hoheisel, 2006)
when it should be:
(Grünwald & Hoheisel, 2006)
Here is my
sessionInfo()
:Thanks!
Zhian
*I swear it's not a problem existing between the keyboard and chair this time!
The text was updated successfully, but these errors were encountered: