Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ref-section not working for Overleaf #86

Open
happypanda94 opened this issue Feb 23, 2025 · 1 comment
Open

Ref-section not working for Overleaf #86

happypanda94 opened this issue Feb 23, 2025 · 1 comment

Comments

@happypanda94
Copy link

Hello,

I generally use Overleaf to write my articles. I am submitting to a journal that provide its own csl file, I am using the following commands:

`
\usepackage{citation-style-language} % your CSL package

\cslsetup{style = journal}

% \cslsetup{ref-section = section+}

\addbibresource{references.bib, getwriting.bib}
`

The journal also requires the references for the main and supplementary files to be separate, so I was thinking about using the ref-section argument to separate their reference lists. However, whenever I try to pass ref-section as an argument, I get the following error:

LaTeX Error: The key 'csl/ref-section' is unknown and is being ignored.

In more detail:
`
\TeXr@lab=\toks22
) (/usr/local/texlive/2024/texmf-dist/tex/latex/citation-style-language/citation-style-language.sty
Package: citation-style-language 2024-03-12 v0.4.8 Citation Style Language for LaTeX
(/usr/local/texlive/2024/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty
Package: l3keys2e 2024-03-14 LaTeX2e option processing using LaTeX3 keys
)
\l__csl_ccf_iow=\write4

\openout4 = output.ccf
(/usr/local/texlive/2024/texmf-dist/tex/latex/citation-style-language/citation-style-language-init.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/citation-style-language/citation-style-language-data.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/citation-style-language/citation-style-language-cite.sty
\l__csl_citation_count_int=\count281
\g__csl_pseudo_note_index_int=\count282
) (/usr/local/texlive/2024/texmf-dist/tex/latex/citation-style-language/citation-style-language-bib.sty
\g__bib_list_index_int=\count283
\l__csl_bib_hang_dim=\dimen155
\l__csl_url_big_break_penalty_int=\count284
\l__csl_url_break_penalty_int=\count285
\l__csl_url_num_penalty_int=\count286
\l__csl_url_uc_penalty_int=\count287
\l__csl_url_lc_penalty_int=\count288
\l__csl_url_big_muskip=\muskip17
\l__csl_url_num_muskip=\muskip18
\l__csl_url_uc_muskip=\muskip19
\l__csl_url_lc_muskip=\muskip20
) (/usr/local/texlive/2024/texmf-dist/tex/latex/citation-style-language/citation-style-language-compatible.sty))

! LaTeX Error: The key 'csl/ref-section' is unknown and is being ignored.

For immediate help type H .
...

l.20 \cslsetup{ref-section = section+}

The module 'csl' does not have a key called 'csl/ref-section'.
Check that you have spelled the key name correctly.

`

I am using LuaLatex with 2024 Tex Live as this seems to be the only one that supports the citation-style-language package.

Can you please help me with this one? The other modules I am using are as follows:

`
\documentclass[nonatbib,12pt]{elsarticle}

\usepackage{textcomp}
\usepackage{hyperref}
\usepackage{multirow}
\usepackage{makecell}
\usepackage{graphicx}
\usepackage{array}

`

I cannot even use other existing commands, such as \refsection or \bibunits, because they all throw incompatibility errors with the csl package.

Is there a way to solve this issue?

@zepinglee
Copy link
Owner

The the refsection feature of citation-style-language was added since v0.6.0 2024-07-31 but the package on Overleaf (2024-03-12 v0.4.8) is outdated. You can load the latest version by copying all of the .lua and .sty files in citeproc/ and latex/ directories to your project along with the main .tex document. I know there are many files and look messy but I don't know other way to load the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants