LaTeX forum ⇒ Document ClassesLatex document class issue

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

Latex document class issue

Postby mn_hossen » Thu Apr 04, 2024 6:12 pm

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 2021:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Exclusive June 2024 offer: All LaTeX eBooks (PDF, EPBUB) for $9.99 or €8.99

LaTeX books

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

Latex document class issue

Postby rais » Thu Apr 04, 2024 9:25 pm

You could try
\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

Postby mn_hossen » Fri Apr 05, 2024 4:43 am

@Rainer
It doesn't work.

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

Thanks

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

Latex document class issue

Postby rais » Mon Apr 08, 2024 9:40 pm

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


Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 10 guests