will-henney / globule-seminario

Evaporating globules in photoionized nebulae
0 stars 0 forks source link

Use bibtex for the references in Roberto's thesis #50

Closed will-henney closed 4 weeks ago

will-henney commented 4 months ago

There are various steps to this.

  1. Make a new file to contain the bibliographic database: for example, tesis-refs.bib.
  2. Get the references from ADS in bibtex format and put them in that file.
  3. In the latex file tesis.tex, you will need to add the following lines near the top
    ...
    \usepackage{natbib}
    ...
    \bibliographystyle{aasjournal}
    ...

    There might be better options for which bibliography style to use, but this will do for now

  4. At the end of the same file, add the line
    \bibliography{tesis-refs}

    which tells latex where to put the reference list and where to find the bibtex database.

For making citations in the text, there are two main commands: \citep{} and \citet{}. For instance:

The electron density of low ionization gas
(orange histogram in Figure~\ref{fig:brightness-cuts}b)
is calculated from the \sii{} nebular lines
using PyNeb \citep{Luridiana:2015a}
with radiative rates from \citet{Rynkun:2019g}
and collisional rates from \citet{Tayal:2010a}.

The citation keys must be the same as the ones in the .bib file. I have custom ones here (such as Rynkun:2019g), but you can just use the ones given by ADS, which are the bibcodes (for instance 2023MNRAS.523.4202G)