Git Product home page Git Product logo

Comments (6)

tabias avatar tabias commented on May 22, 2024

Including the below section in each chapter.tex allowed me to include a reference chapterwise using natbib.

%********************************** % Reference Section *************************************
\setcounter{NAT@ctr}{0}
\bibliographystyle{unsrtnat}
\bibliography{References/library}

this worked for me when running latexmk -xelatex thesis.tex

from phd-thesis-template.

blazzter avatar blazzter commented on May 22, 2024

Almost works, it creates the same bibliography section with same references, even tho there is no such citation in some chapters. Could this be bacause I use same bibliography file for all chapters? Chapters are in separate dirs.

from phd-thesis-template.

tabias avatar tabias commented on May 22, 2024

I have 1 general library.bib file in References/ used for all chapters, so that can't be it.

Did you remove the bibliography from thesis.tex?
This could overwrite a whole lot.

these lines should be commented in thesis.tex

\bibliographystyle{abbrvnat} % use this to have URLs listed in References
\cleardoublepage
\bibliography{References/library} % Path to your References.bib file

\printbibliography[heading=bibintoc, title={References}]

from phd-thesis-template.

kks32 avatar kks32 commented on May 22, 2024

Thanks for your comments @tabias I'll include it in the README docs.

from phd-thesis-template.

blazzter avatar blazzter commented on May 22, 2024

I can get it running by using \usepackage{chapterbib} in preamble.tex
I also have to manually do bibtex chapterX.aux within all chapter dirs, but then it runs ok
// also need to use code from @tabias as was suggested, thx

from phd-thesis-template.

tabias avatar tabias commented on May 22, 2024

might have forgotten to mention that, was included somewhere else in the preamble than I expected.
furthermore

latexmk -xelatex thesis.tex -jobname="thesis"

generated the chapter reference lists automatically if that helps.

from phd-thesis-template.

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.