Giter Club home page Giter Club logo

Comments (9)

mitchelloharawild avatar mitchelloharawild commented on May 20, 2024

How are you trying to order the publications?
bibliography_entries are processed differently to brief_entries and detailed_entries, as it uses biblatex. You can specify the biblatex sorting scheme using the sorting argument.

---
name: Mitchell O'Hara-Wild
date: "`r format(Sys.time(), '%B, %Y')`"
github: mitchelloharawild
headcolor: 414141
output: vitae::awesomecv
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE, warning = FALSE)
library(vitae)
```

# Publications

```{r}
knitr::write_bib(c("forecast", "vitae", "ggquiver", "naniar", "taipan"), "packages.bib")
bibliography_entries("packages.bib", sorting = "ydnt")
```

Possible sorting schemes can be found in the answer in this thread: https://tex.stackexchange.com/questions/51434/biblatex-citation-order

from vitae.

mitchelloharawild avatar mitchelloharawild commented on May 20, 2024

@robjhyndman
Do you think it is possible to provide the entries in a custom order? This would allow us to display the entries in the order shown in the table, which could then be modified with arrange().

from vitae.

jmcascalheira avatar jmcascalheira commented on May 20, 2024

@mitchelloharawild
Sorry my bad! I didn't know the "ydnt" option for sorting. Many thanks!

from vitae.

robjhyndman avatar robjhyndman commented on May 20, 2024

sorting='none' will retain the order the bibentries are already in. So then you can use tidyverse tools to arrange as you wish.

from vitae.

mitchelloharawild avatar mitchelloharawild commented on May 20, 2024

Good to know. In that case, is there any other reason why the sorting option is needed?
I think sorting should be deprecated and require it to be sorting="none", so that the output order matches the displayed table order in R.
If bibliography entries don't require a title, it would also be neater to have the title added via markdown and remove this argument too.

from vitae.

robjhyndman avatar robjhyndman commented on May 20, 2024

Yes, let's do that. As well as removing the arguments from bibliography_entries(), the following changes need to be made to knit_print.vitae_bibliography()

    \\newrefcontext[sorting="none"]\\setcounter{papers}{0}\\pagebreak[3]
    \\printbibliography[category=<<bibname>>,heading=none]<<endlabel>>\\setcounter{papers}{0}

from vitae.

robjhyndman avatar robjhyndman commented on May 20, 2024

I'd forgotten that the title was also being used to create unique bib categories within bibliography_header(). Now all categories are called "bibRefereed journal papers" which causes conflicts. We still need to create unique bib category names each time bibliographic_entries() is called.

from vitae.

mitchelloharawild avatar mitchelloharawild commented on May 20, 2024

I thought this would be handled here?
https://github.com/ropenscilabs/vitae/blob/31a489f34e4530471322c9162fd3569fb5850311/R/bibliography.R#L36

from vitae.

robjhyndman avatar robjhyndman commented on May 20, 2024

Sorry. Forgot to rebuild after pulling.

from vitae.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.