Esempio n. 1
0
        void Online(StreamWriter sw, Entry ent)
        {
            // string l = "";

            string auth = "";
            if (ent.Get("author", null) != null)
                auth = FormatNames(ent.Get("author", null), true);
            else
                auth = ent.Get("organization", Error("organizatio/author"));

            sw.WriteLine(@"{{\sc {0}}}: {1}.", auth, ent.Get("title", ""));
            sw.WriteLine(@"\newblock {{{0}.}}", ent.Get("url", ""));

            if (ent.HasField("title") && ent.HasField("organization"))
                sw.WriteLine(@"\newblock {{{0}.}}", ent.Get("organization", ""));

            if (ent.HasField("note"))
                sw.WriteLine(@"\newblock {{{0}.}}", ent.Get("note", ""));
        }
Esempio n. 2
0
        private void InCollection(StreamWriter sw, Entry ent)
        {
            string author = ent.Get("author", null);
            if (string.IsNullOrEmpty(author))
                author = "??????????????????????";

            // authors
            sw.WriteLine(@"{{\sc {0}}}: ", FormatNames(author, true));

            // title
            sw.WriteLine(@"\newblock {{{0}.}}", ent.Get("title", Error("title")));

            // book - editors/authors
            string editor = "";
            if (ent.HasField("editor"))
                editor = @"{\sc " + FormatNames(ent.Get("editor", null), true) + "}, ed. ";
            else
                editor = Error("editor") + " ";

            sw.WriteLine(@"\newblock {{W: {0}{1}.}}", editor, Italicize(ent.Get("booktitle", Error("booktitle"))));

            // place of publication and the name of the publisher
            sw.WriteLine(GenerateBlock(ent.Get("publisher", ""), ent.Get("address", ""), ent.Get("year", "")));

            // pages
            sw.WriteLine(@"\newblock {{str. {0}}}.", ent.Get("pages", Error("pages")));
        }