Module Brzo_b0_latex.Doi

DOIs and their resolution.

val default_resolver : B0_http.Uri.t

default_resolver is the default resolver used to resolve DOIs. This is https://doi.org.

type t = string

The type for DOIs.

val pp : t B0_std.Fmt.t

pp formats a DOI.

val default_bib_format : string

default_bib_format is the default bibliographic format. This is "application/x-bibtex; charset=utf-8"

val oneline_bib_format : string

oneline_bib_format is "text/bibliography; charset=utf-8".

val resolve_to_uri : ?⁠resolver:string -> B0_http.Httpr.t -> t -> (string, string) Stdlib.result

resolve_to_uri r ~resolver doi resolve doi with resolver to an URI with resolver (defaults to default_resolver).

val resolve_to_bib : ?⁠format:string -> ?⁠resolver:B0_http.Uri.t -> B0_http.Httpr.t -> t -> (string, string) Stdlib.result

resolve_to_bib r ~resolver doi resolves doi to a bibliographic entry with resolver (defaults to default_resolver)