# HG changeset patch # User wenzelm # Date 1513892517 -3600 # Node ID 68177abb29885015204701906f431334cb51d47b # Parent 3a965131801526263ef7ad3424149f7176766d42 isabelle.preview presents bibtex database files as well; diff -r 3a9651318015 -r 68177abb2988 NEWS --- a/NEWS Thu Dec 21 22:38:28 2017 +0100 +++ b/NEWS Thu Dec 21 22:41:57 2017 +0100 @@ -70,7 +70,8 @@ "isabelle.antiquoted_cartouche" turns an antiquotation with 0 or 1 arguments into this format. -* Action "isabelle.preview" presents auxiliary text files as well. +* Action "isabelle.preview" is able to present more file formats, +notably bibtex database files and plain text files. diff -r 3a9651318015 -r 68177abb2988 src/Pure/Tools/bibtex.scala --- a/src/Pure/Tools/bibtex.scala Thu Dec 21 22:38:28 2017 +0100 +++ b/src/Pure/Tools/bibtex.scala Thu Dec 21 22:41:57 2017 +0100 @@ -503,6 +503,7 @@ "unsortlist" -> "html-u") def html_output(bib: List[Path], + body: Boolean = false, citations: List[String] = List("*"), style: String = "empty", chronological: Boolean = false): String = @@ -553,10 +554,21 @@ val html = File.read(tmp_dir + out_file) - cat_lines( - split_lines(html). - dropWhile(line => !line.startsWith("