Beispiel #1
0
        public void XXX()
        {
            var database = BibTexHelper.LoadBibTextDatabase(@"Sample Files\Mendeley 2.bib");
            //var database = BibTexHelper.LoadBibTextDatabase(@"Sample Files\b4w.bib");
            //var database = BibTexHelper.LoadBibTextDatabase(@"Sample Files\BigFile.bib");
            var converter = new BibTexToCSLConverter();

            var q = converter.ToJSON(database);

            Console.WriteLine(q);
            File.WriteAllText(@"F:\old.txt", q);
        }
Beispiel #2
0
        public void TestBibTexToCSLConverter()
        {
            var database  = BibTexHelper.LoadBibTextDatabase(@"Sample Files\Docear.bib");
            var converter = new BibTexToCSLConverter();

/*
 * var temp = new BibTeXDatabase();
 * temp.AddEntry(database[0]);
 * temp.AddEntry(database[1]);
 * database = temp;
 */
            Console.WriteLine(converter.ToJSON(database));
        }
Beispiel #3
0
        public void XXX2()
        {
            var text      = @"
@techreport{Brandstadt91a,
author = {Andreas Brandst\""{a}dt},
title = {Special Graph Classes --- A Survey (preliminary version)},
institution = {University of Duisburg},
year = 1991}
";
            var database  = BibTexHelper.CreateBibTextDatabase(text);
            var converter = new BibTexToCSLConverter();

            Console.WriteLine(converter.ToJSON(database));
        }