Document ClassesLatex document class issue

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
mn_hossen
Posts: 2
Joined: Thu Apr 04, 2024 5:57 pm

Latex document class issue

Post by mn_hossen »

Hi,
I'm preparing my manuscript in Applied Intelligence (Springer Nature) overleaf template. As the journal mentioned reference format should be numbered and in journal instruction they mnetioned to use \documentclass[pdflatex,sn-basic]{sn-jnl}. But that \documentclass{} is authoryear format. When I use \documentclass[numbers]{natbib} for generating number format, it shows below error:

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.42

The package natbib has already been loaded with options:
[authoryear]
There has now been an attempt to load it with options
[numbers]
Adding the global options:
authoryear,numbers
to your \documentclass declaration may fix this.
Try typing <return> to proceed.

After that, when I try global options like: \documentclass[pdflatex,sn-basic,numbers]{sn-jnl}
\usepackage{natbib}

Still it is not number format and the error persists.

Thanks in advance.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Latex document class issue

Post by rais »

You could try

Code: Select all

\PassOptionsToPackage{numbers}{natbib}
before your \documentclass line.
If that doesn't help, please provide a Infominimal working example that demonstrates your problem and a link to the class file you're using.

KR
Rainer
mn_hossen
Posts: 2
Joined: Thu Apr 04, 2024 5:57 pm

Latex document class issue

Post by mn_hossen »

@Rainer
It doesn't work.

I attached the overleaf link:
https://www.overleaf.com/9544167513qcbbqhdfgjpd#ff9803

Thanks
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Latex document class issue

Post by rais »

Well, if you wish to discuss your problem here, you should present it here. A link to join your project won't do, IMHO.

KR
Rainer
Post Reply