src/Pure/Thy/bibtex.ML
changeset 76958 d9727629cb67
parent 76956 e47fb5cfef41
child 76959 3d491a0af6ef
equal deleted inserted replaced
76957:deb7dffb3340 76958:d9727629cb67
    55           val bibtex_entries = Resources.theory_bibtex_entries thy_name;
    55           val bibtex_entries = Resources.theory_bibtex_entries thy_name;
    56           val _ =
    56           val _ =
    57             if null bibtex_entries andalso thy_name <> Context.PureN then ()
    57             if null bibtex_entries andalso thy_name <> Context.PureN then ()
    58             else
    58             else
    59               citations |> List.app (fn (name, pos) =>
    59               citations |> List.app (fn (name, pos) =>
    60                 if member (op =) bibtex_entries name then ()
    60                 if member (op =) bibtex_entries name orelse name = "*" then ()
    61                 else error ("Unknown Bibtex entry " ^ quote name ^ Position.here pos));
    61                 else error ("Unknown Bibtex entry " ^ quote name ^ Position.here pos));
    62 
    62 
    63           val kind = Config.get ctxt cite_macro;
    63           val kind = Config.get ctxt cite_macro;
    64           val location = Document_Output.output_document ctxt {markdown = false} loc;
    64           val location = Document_Output.output_document ctxt {markdown = false} loc;
    65         in Latex.cite {kind = kind, citations = citations, location = location} end));
    65         in Latex.cite {kind = kind, citations = citations, location = location} end));