We need to search for the \cite_engine line starting from the
beginning of the document header.
del document.header[i]
# We are looking for the natbib citation engine
del document.header[i]
# We are looking for the natbib citation engine
- i = find_token(document.header, "\\cite_engine natbib", i)
+ i = find_token(document.header, "\\cite_engine natbib", 0)
if i == -1:
return
document.header[i] = "\\cite_engine natbib_" + engine_type
if i == -1:
return
document.header[i] = "\\cite_engine natbib_" + engine_type