public void Test02() { var database = BibTexHelper.LoadBibTexDatabase(@"Sample Files\Docear.bib"); var citeproc = new CiteProcRunner(HavardCslStyle, () => database); var idList = database.GetEntryNames().ToArray(); idList = database.GetEntryNames().Take(300).ToArray(); Console.WriteLine("Total of " + idList.Length + " items."); citeproc.UpdateItems(idList, false, true); //var bib = citeproc.MakeBibliography(); //foreach (var entry in bib.Entries) Console.WriteLine(entry); }
public void Test01(int x) { var citeproc = new CiteProcRunner(HavardCslStyle, () => DocearDatabase); var listOfItems = new[] { "Agarwal05", "Agrawal08", "Aho75" }; var result = citeproc.UpdateItems(listOfItems, false, true); foreach (var s in result) { Console.WriteLine(s); } var bib = citeproc.MakeBibliography(); foreach (var entry in bib.Entries) { Console.WriteLine(entry); } }