Git Product home page Git Product logo

Comments (3)

zepinglee avatar zepinglee commented on June 11, 2024

Do you have an up-to-date installation of TeX Live 2022? This package (https://ctan.org/pkg/citation-style-language) is already a part of it and the example is expected to run successfully out-of-the-box with latexmk -lualatex example.tex.

  1. I found I got an error about a missing "inspect" package.

I check the dependency and find the inspect is only required for debugging. It should be removed in pure running procedures.

  1. I installed that using luarocks, and still got the error.

The texlua interpreter doesn't lookup into the packages installed by luarocks by default.

  1. I then symlinked it to the texmfhome dir, and that ran, but ...

The texmf structure of this package is different from its code repository. You may need make install to install it to TEXMFHOME which is usually ~/texmf or ~/Library/texmf. The file structure should be as follows (with some similar files omitted). The locales and styles modules need be initialized with git submodule update --init before the installation.

~/Library/texmf
├── scripts
│   └── citation-style-language
│       ├── citeproc
│       ├── citeproc-bib.lua
│       ├── citeproc-element.lua
│       ├── citeproc-engine.lua
│       ├── citeproc-formats.lua
│       ├── citeproc-node-choose.lua
│       ├── citeproc-node-date.lua
│       ├── citeproc-node-group.lua
│       ├── citeproc-node-label.lua
│       ├── citeproc-node-layout.lua
│       ├── citeproc-node-locale.lua
│       ├── citeproc-node-names.lua
│       ├── citeproc-node-number.lua
│       ├── citeproc-node-sort.lua
│       ├── citeproc-node-style.lua
│       ├── citeproc-node-text.lua
│       ├── citeproc-nodes.lua
│       ├── citeproc-richtext.lua
│       ├── citeproc-util.lua
│       ├── citeproc.lua
│       ├── csl-core.lua
│       └── csl.lua
└── tex
    └── latex
        └── citation-style-language
            ├── citation-style-language.sty
            ├── citeproc-bib-data.json
            ├── locales
            │   ├── csl-locales-af-ZA.xml
            │   ├── csl-locales-ar.xml
            │   ├──     .
            │   ├──     .
            │   ├──     .
            │   ├── csl-locales-en-GB.xml
            │   ├── csl-locales-en-US.xml
            │   ├──     .
            │   ├──     .
            │   ├──     .
            │   ├── csl-locales-zh-CN.xml
            │   └── csl-locales-zh-TW.xml
            └── styles
                ├── american-chemical-society.csl
                ├── american-medical-association.csl
                ├──     .
                ├──     .
                ├──     .
                ├── nature.csl
                └── vancouver.csl

from citeproc-lua.

bdarcus avatar bdarcus commented on June 11, 2024

Do you have an up-to-date installation of TeX Live 2022?

I use fedora to handle texlive updating. It's currently at 2021, but looks like 2022 is coming soon; likely with the release of F36 on Tuesday.

This package (https://ctan.org/pkg/citation-style-language) is already a part of it and the example is expected to run successfully out-of-the-box with latexmk -lualatex example.tex.

Oh good. This may be moot then.

You may want to mention that on the README?

You may need make install to install it to TEXMFHOME.

I should have mentioned: I did that.

from citeproc-lua.

zepinglee avatar zepinglee commented on June 11, 2024

You may want to mention that on the README?

Yes, I'll add some notes about the TeX Live versions.

After I sorted that all out, I did get it to run, with reasonable output, but got an error about an unsupported "en-US" locale.

I've just installed the TeX Live 2021 version and reproduced all you described. The “unsupported en-US” message is misleading and it's actually caused by the absence of this language in lua-uca, the library required for sorting. Since en-US is the default language, this warning should not occur.

from citeproc-lua.

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.