aimalz / prob-z

working with probabilistic redshifts
2 stars 2 forks source link

Makefile does not include bibtex command #24

Closed drphilmarshall closed 9 years ago

drphilmarshall commented 9 years ago

To compile the paper fully, with citations correct, you need:

    pdflatex maindoc
    pdflatex maindoc
    bibtex maindoc
    pdflatex maindoc
    pdflatex maindoc
aimalz commented 9 years ago

Thanks, it should be taken care of now.

davidwhogg commented 9 years ago

I am not sure if this is the same issue, but

git clone https://github.com/aimalz/prob-z.git
cd nz/paper
make

failed for me. First it was a tabification thing (I just fixed and will push). Second it is this:

[ . . . ]
This is BibTeX, Version 0.99d (TeX Live 2013)
The top-level auxiliary file: maindoc.aux
The style file: apj.bst
Database file #1: references.bib
You're missing a field name---line 2 of file references.bib
 : 
 : %     author="",
(Error may have been on previous line)
I'm skipping whatever remains of this entry
Warning--empty journal in bal08
Warning--empty journal in ben00
Warning--empty journal in bon13
Warning--empty journal in for12
Warning--empty journal in for14
Warning--empty journal in car13
Warning--empty journal in car14
Warning--empty journal in lop14
Warning--empty journal in abe09
Warning--empty journal in men13
Warning--empty journal in she11
(There was 1 error message)
make: *** [all] Error 2
aimalz commented 9 years ago

The individual commands in the makefile work in spite of the error, but the error on the bibtex command causes make to exit before executing the remaining commands. Does it work for you now? It seemed to be caused by a few commented lines I removed.

davidwhogg commented 9 years ago

now it makes with warnings, but makes. Here are the undefined references:

[davidwhogg@hollaback paper]$ grep undefined maindoc.log
Package natbib Warning: Citation `bon15' on page 2 undefined on input line 60.
LaTeX Warning: Reference `eq:fakeprior' on page 11 undefined on input line 317.
Package natbib Warning: There were undefined citations.
LaTeX Warning: There were undefined references.
[davidwhogg@hollaback paper]$
aimalz commented 9 years ago

The version that's up now should compile without those errors.