From cec36e896f6bb4a2aff013573f8ca56127268445 Mon Sep 17 00:00:00 2001 From: autodocs Date: Mon, 31 Jul 2017 06:16:07 +0000 Subject: [PATCH] build based on 352997a --- latest/index.html | 11 ++++++++--- latest/search_index.js | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/latest/index.html b/latest/index.html index 7495c83..5f0e3b2 100644 --- a/latest/index.html +++ b/latest/index.html @@ -1,7 +1,9 @@ -Home · BibTeX.jl

Home

BibTeX.jl

parse_bibtex(text)

This is a simple input parser for BibTex. I had trouble finding a standard specification, but I've included several features of real BibTex.

julia> using BibTeX
+Home · BibTeX.jl

Home

BibTeX.jl

parse_bibtex(text)

This is a simple input parser for BibTex. I had trouble finding a standard specification, but I've included several features of real BibTex. Returns a preamble (or an empty string) and a dict of dicts.

julia> using BibTeX
 
-julia> result = parse_bibtex("""
+julia> preamble, result = parse_bibtex("""
+            @preamble{some instructions}
+            @comment blah blah
             @string{short = long}
             @a{b,
               c = { {c} c},
@@ -10,6 +12,9 @@ julia> result = parse_bibtex("""
             }
             """);
 
+julia> preamble
+"some instructions"
+
 julia> result["b"]["type"]
 "a"
 
@@ -28,4 +33,4 @@ ERROR: Expected { on line 1
 
 julia> parse_bibtex("@book@")
 ERROR: Expected { on line 1
-[...]
source

+[...]
source
diff --git a/latest/search_index.js b/latest/search_index.js index aef149a..109bdac 100644 --- a/latest/search_index.js +++ b/latest/search_index.js @@ -13,7 +13,7 @@ var documenterSearchIndex = {"docs": [ "page": "Home", "title": "BibTeX.parse_bibtex", "category": "Method", - "text": "parse_bibtex(text)\n\nThis is a simple input parser for BibTex. I had trouble finding a standard specification, but I've included several features of real BibTex.\n\njulia> using BibTeX\n\njulia> result = parse_bibtex(\"\"\"\n @string{short = long}\n @a{b,\n c = { {c} c},\n d = \"d d\",\n e = f # short\n }\n \"\"\");\n\njulia> result[\"b\"][\"type\"]\n\"a\"\n\njulia> result[\"b\"][\"c\"]\n\"{ c } c\"\n\njulia> result[\"b\"][\"d\"]\n\"d d\"\n\njulia> result[\"b\"][\"e\"]\n\"f short\"\n\njulia> parse_bibtex(\"@book\")\nERROR: Expected { on line 1\n[...]\n\njulia> parse_bibtex(\"@book@\")\nERROR: Expected { on line 1\n[...]\n\n\n\n" + "text": "parse_bibtex(text)\n\nThis is a simple input parser for BibTex. I had trouble finding a standard specification, but I've included several features of real BibTex. Returns a preamble (or an empty string) and a dict of dicts.\n\njulia> using BibTeX\n\njulia> preamble, result = parse_bibtex(\"\"\"\n @preamble{some instructions}\n @comment blah blah\n @string{short = long}\n @a{b,\n c = { {c} c},\n d = \"d d\",\n e = f # short\n }\n \"\"\");\n\njulia> preamble\n\"some instructions\"\n\njulia> result[\"b\"][\"type\"]\n\"a\"\n\njulia> result[\"b\"][\"c\"]\n\"{ c } c\"\n\njulia> result[\"b\"][\"d\"]\n\"d d\"\n\njulia> result[\"b\"][\"e\"]\n\"f short\"\n\njulia> parse_bibtex(\"@book\")\nERROR: Expected { on line 1\n[...]\n\njulia> parse_bibtex(\"@book@\")\nERROR: Expected { on line 1\n[...]\n\n\n\n" }, {