Module Brzo_b0_latex.Doi

DOIs and their resolution.

val default_resolver : B0_std.Net.Url.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_url : ?resolver:string -> B0_http.Http_client.t -> t -> (string, string) Stdlib.result

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

val resolve_to_bib : ?format:string -> ?resolver:B0_std.Net.Url.t -> B0_http.Http_client.t -> t -> (string, string) Stdlib.result

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