Ejemplo n.º 1
0
        public void AddParagraph()
        {
            Novacode.DocX         d = Novacode.DocX.Create("thing.docx");
            List <List <string> > p = new List <List <string> >();

            p.Add(new List <string>());
            p[0].Add("let's get TeXy with {1} and {2}");
            p[0].Add("\\textbf{Bold bits}");
            p[0].Add("\\textit{italic bits}");
            WordifyThings.AddParagraph(p, d);

            d.Save();
        }
Ejemplo n.º 2
0
        public void rlapTest()
        {
            Novacode.DocX         d   = Novacode.DocX.Create(@"rlap.docx");
            List <List <string> > tex = new List <List <string> >();

            tex.Add(new List <string>());

            tex[0].Add("`This is a quoted sentence{0}");
            tex[0].Add("\\rlap{.}{'}");

            WordifyThings.AddParagraph(tex, d);
            d.Save();
        }