Comments (3)
It definitely is appropriate! The current setup for using Citation.js in the browser is a bit awkward at times, and this is a good reminder. The solution is in the README, but not in the most obvious place (something that I should fix as well).
TL;DR: You need to load citeproc-js as well:
<script src="path/to/citeproc.js" type="text/javascript"></script>
<script src="path/to/citation-0.2.js" type="text/javascript"></script>
As I said, this is a bit clumsy, but should be fixed with #24, which I'll fix somewhere today or next week, I hope.
As for the CLI interface: Installing Citation.js globally with -g
or --global
should do the trick.
from citation.js.
Incredible, thanks! Don't know how I've missed it, felt like I scoured the docs.
And regarding the CLI - though I have a suspicion that I'm missing something small but essential in my understanding of the nodejs environment, many (but not all) of the packages I've installed globally failed to load without the .cmd file, which the npm i -g doesn't always create.
But that's neither here nor there. The point is, pretty sure I installed it globally, but I had to create a .cmd file for it to be initiated from the shell.
Thanks again, for your help and your prompt reply!
Lem
from citation.js.
I know what the issue with the CLI is now. I need to actually put a bin
entry in the package.json
. I thought it did that automatically, but I guess not. Anyway, it should be fixed in the next version, or the first patches after the next version.
from citation.js.
Related Issues (20)
- Error processing doi HOT 2
- `$` in entry causes fatal error HOT 2
- File size limit? HOT 4
- Add CODE_OF_CONDUCT.md to the project HOT 4
- [format BibTeX] proceedings-article from crossref data all formated to @misc HOT 2
- Add support for `dataset` of BibLaTeX HOT 3
- RIS input - publishing place not returned for type book HOT 3
- RIS Input - Missing "issue" for type magazine HOT 4
- exception when trying to add locale HOT 4
- larsgw/citation.js vs citation-js/citation-js
- What does citation JS use to escape citation data before turning it into html? HOT 2
- TypeError: Cannot read properties of undefined (reading 'config')
- Formatting bibliography HOT 3
- React.js? HOT 1
- how to format 'in press' articles? HOT 2
- Include DOI in exported BibTeX? HOT 1
- MLA In-Text Citations HOT 3
- Converting bibtex to json doesn't preserve abstract HOT 1
- Wikidata plugin depends on a deprecated package HOT 1
- JSON to BibLatex HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citation.js.