I tried to compile my latex document and I am getting an undefined control sequence error, but I dont know where it comes from. I get this error message in line 13:
! Undefined control sequence.
l.13 \newblock {\em \aap
}, 229:441--451.
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
) [24
And this is my code at line 13 (hidelinks line) and I have no idea what could be the problem (line 13 is:
\usepackage[
pdftitle={Bestimmung kinematischer Parameter von elliptischen Galaxien},
pdfsubject={},
pdfauthor={Valentin Reichel},
pdfkeywords={},
hidelinks
]{hyperref}
Maybe the error is for a different file, but how do I know which file the error message is generated for ?
\aapis unknown. It wasn't defined by you or by any of the packages you use. And the string\newblockgives it away: it is abiblatex-related error. I assume you, or whoever created the bibliographic entry, expects\aapto print (the title of the journal) Astronomy and Astrophysics? – marquinho Jul 25 '22 at 10:17.bblthat is generated when bib(la)tex compiles, not on l. 13 of your main .tex file. And the root cause is most definitely the entry for "Astronomy and Astrophysics" in the .bib file. (Did you write that entry yourself, or get the .bib from another source?) // The abbreviation\aapand others are defined by theaastexclass: https://journals.aas.org/aastexguide/, but unless you are writing your text as\documentclass{aastex631}or the like, you'll have to define\aapyourself, or just get rid of it. – marquinho Jul 25 '22 at 10:30}, the processing could fail at the next line, or 10k lines later. Depends on the code. – Cicada Jul 25 '22 at 10:32\newblock {\em \aapnot line 13 of your document (I would guss you are using bibtex, not biblatex, despite the question having a biblatx tag) – David Carlisle Jul 25 '22 at 11:17.bblfile. The line number refers to line 13 of your.bblfile and not of your.texfile. You can trace back which file the line number refers to by counting round brackets in the log output (TeX opens a round bracket for each file it opens and closes the bracket if the file is closed). See e.g. https://tex.stackexchange.com/q/32213/35864. The snippet also shows that you are using classical BibTeX and notbiblatex(as the tag suggested, I've retagged), though that is not really relevant to the issue. ... – moewe Jul 25 '22 at 15:58.bibfile (possibly because you get your entries from the ADS), but you do not have suitable definitions for those macros. See https://tex.stackexchange.com/q/366618/35864 for a duplicate question with help for that issue (use AASTeX, loadaas_macros.stylinked in the answer or get rid of the macros in your.bibfile). – moewe Jul 25 '22 at 16:00