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

Using a different .bib for supplementary material #56

Open
KALEIDOSCOPEIP opened this issue Nov 16, 2024 · 2 comments
Open

Using a different .bib for supplementary material #56

KALEIDOSCOPEIP opened this issue Nov 16, 2024 · 2 comments

Comments

@KALEIDOSCOPEIP
Copy link

KALEIDOSCOPEIP commented Nov 16, 2024

Hi, I am encountering a problem with using another bibliography file for my supplementary material.

I have included my supplementary material .tex file in the main.tex for better cross-reference between the main paper and the supplementary material, and the bibliography file for my main paper is named "main.bib". I want to create a new independent reference list for my supplementary material, so I created another .bib file to be included in my supplementary material, namely "x.bib". However, I am unable to include this new x.bib in my supplementary material, as it always includes the "main.bib" content no matter what I do. The reference list in my supplementary material is just a copy-paste of that in my main paper. Can anyone tell me what should I do about this situation?

The main.tex codes:

\begin{document}
\maketitle
\input{sec/0_abstract}    
\input{sec/1_intro}
\input{sec/2_related}
\input{sec/3_method}
\input{sec/4_experiments}
\input{sec/5_conclusion}
{
    \small
    \bibliographystyle{ieeenat_fullname}
    \bibliography{main}
}

% WARNING: do not forget to delete the supplementary pages from your submission 
\input{sec/X_suppl}

{
    \small
    \bibliographystyle{ieeenat_fullname}
    \bibliography{x}  % Always include main.bib instead of x.bib in my supplementary material
}

\end{document}
@ryanxingql
Copy link

In your case, the supplementary material is part of a single PDF file. Therefore, having one .bib file for the entire PDF is reasonable, and a single "References" section should suffice.

However, if you prefer to create an independent supplementary file for submission, you can simply copy main.tex to supp.tex and retain only the \input{sec/X_suppl}.

@cr333
Copy link
Collaborator

cr333 commented Nov 18, 2024

Multiple bibliographies in the same can probably be achieved with the chapterbib package.

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

3 participants