Giter VIP home page Giter VIP logo

Comments (5)

GeoBosh avatar GeoBosh commented on May 30, 2024

This is not currently implemented but is supported by the underlying functions, so can be implemented.
This is already in my TODO items to equip \insertAllCited{} with a non-empty argument style.

If a style is made available, then it might be desirable to set it package-wide. One way to do this would be for a package requiring a specific style to export a variable that identifies it.

Further comments on this would be helpful.

from rdpack.

GeoBosh avatar GeoBosh commented on May 30, 2024

A draft implementation is in branch bibstyles. Not document yet, but to cause all list of references produced by \insertAllCited in a package to appear with full names, add .onLoad() function to your package. If you don't have .onLoad(), just copy the following definition:

.onLoad <- function(lib, pkg){
    Rdpack::Rdpack_bibstyles(package = pkg, authors = "LongNames")
    invisible(NULL)
}

If you already have .onLoad(), add the line containing the Rdpack::Rdpack_bibstyles call to it.

Comments and further suggestions are very welcome.

from rdpack.

jhal324 avatar jhal324 commented on May 30, 2024

This fix is precisely the kind of thing I was looking for. Thank you for the fix!

Attractively, this fix doesn't require an argument in \insertAllCited{} - which would be a little unnecessary if the command was needed repeatedly. Setting the global bibstyle is a much neater approach.

One suggestion I would make would be for a similar change to be enforced to \insertRef{tag}{pkg}.
If both \insertAllCited{} and \insertRef{tag}{pkg} are used within a package, it makes for an inconsistent style.
Naturally, this fix has been created to deal with my issue, but as more styles could be added, perhaps a naming system more in line with LaTeX would be appreciated by the general user.

from rdpack.

GeoBosh avatar GeoBosh commented on May 30, 2024

I have now added support for long names in \insertRef. This will become version 0.8-0 after further testing and documenting the new features.

from rdpack.

GeoBosh avatar GeoBosh commented on May 30, 2024

The feature is now merged in the main branch of Rdpack and is available from version 0.8-0.

from rdpack.

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.