Giter Site home page Giter Site logo

Comments (5)

KarlHegbloom avatar KarlHegbloom commented on June 2, 2024

Perhaps answering my own question, at least in part, I see from the HTML output format that it's to "add decorations to bibliography output of individual items". I'm using Scheme code inside of TeXmacs to create a list of pagerefs, linking back to the points in the document where each item was cited. I suppose that it could be used for that purpose, provided that it has access to all of the necessary information.

It does not need much other than the citation cluster id pasted to the system id of the zotero database entry with some string between them to delimit them to make it visually obvious which part of the label is which... then use that as a \label within the document, so that \reference{label} or \pageref{label} will print the reference wrapped in an intra-document hyperlink: e.g., [1, 4, 17, 28] means the reference is cited on pages 1, 4, 17, and 28, with the links jumping to the exact points of citation.

from citeproc-js.

fbennett avatar fbennett commented on June 2, 2024

Karl (@KarlHegbloom): Sorry for the long delay in responding! Should any action be taken on this in the processor?

from citeproc-js.

KarlHegbloom avatar KarlHegbloom commented on June 2, 2024

I need access to the Zotero held information, the fieldid's as the same strings the editor --> LibreOffice + propachi-texmacs gives it when it recieves the response to documentGetFields, in combination with the already visible to variableWrapper sysid, so that for each citationcluster or editor zcite... there is for each citation in that cluster, an intra-document reference target label formed from the fieldid and the sysid, to provide ref target anchor labels for a list of pagerefs for each item in the bibliography (sysid) linking back to each citation in the document this bib item is referenced by.

How do I obtain the information from inside the variablewrapper? Or is the embedBibliographyEntry a better way? How can I make it return that list of labels, each the composition of the citationcluster zfieldid (the fieldid coming from within xpcom/integration.js of Juris-M / Zotero, defined by the editor it is integrating with) and the sysid I already see from inside the variableWrapper?

I want to return either an in document order list of those label strings, or a string join, comma separated, of them suitable for direct use as a comma separated argument list for a LaTeX macro. The idea is to make the one syntax compatible with both TeXmacs and LaTeX. I already do this in Scheme code that runs in my TeXmacs plugin, tm-zotero. (zotero-texmacs-integration in my github). I think that Zotero already knows all of the necessary information at that point, and that it will work better to have zotero return those labels. And for LaTeX it just makes sense to have zotero do that part of the work since, unlike TeXmacs which has an embedded scheme extension language, LaTeX can't as easily do that computation as can javascript inside of zotero. LaTeX can easily process that comma separated list into a string of comma separated pagerefs for typetting and pdf hyperlinks inside the document, so that clicking on the pageref number displayed in the list of them that is inserted behind each bibliography item causes a hyperlink jump to the location in the document where that item is cited. (Automagically by just having a correct label at the place being pageref'd...)

from citeproc-js.

KarlHegbloom avatar KarlHegbloom commented on June 2, 2024

A tool that can draw me a visual graph showing how the objects are all hooked up inside of zotero or any javascript program like that, to make it easier to explore and understand the program, and to see how to get at the information it requires.

Accessors added to those objects that own that information could then perhaps be inquired from elsewhere to obtain the needed information? Or could it be passed in to the citeproc so it can be seen from inside the variableWrapper or embedBibliographyEntry?

from citeproc-js.

fbennett avatar fbennett commented on June 2, 2024

Debugging infrastructure to this level is beyond the reach of my own programming skills. I could look at a pull request, but beyond that I can't do much to help here.

from citeproc-js.

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.