Ejemplo n.º 1
0
        public void PublishLatex()
        {
            List <string> chap = new List <string>();

            chap.AddRange(A3Presentation.LatexMap[A3Presentation.LatexLines.CHAPTER]
                          .Replace("_CHAPTER_TITLE_", Title)
                          .Split(new string[] { Environment.NewLine }, StringSplitOptions.None)
                          .ToList());
            Subchapters.ForEach(sub =>
            {
                Directory.CreateDirectory(string.Concat(A3Environment.A3_LATEX, @"\chapters\", Title));
                chap.Add(A3Presentation.LatexMap[A3Presentation.LatexLines.CHAPTERSUBCHAPTER]
                         .Replace("_LATEX_PATH_", A3Environment.A3_LATEX)
                         .Replace("_CHAPTER_TITLE_", Title)
                         .Replace("_SUBCHAPTER_TITLE_", sub.Title));
                sub.PublishLatex(Title);
            });
            File.WriteAllLines(string.Concat(A3Environment.A3_LATEX, @"\chapters\", Title, @".tex"), chap);
        }
Ejemplo n.º 2
0
 private void WriteSubChapterSlides(Presentation presentation)
 {
     Subchapters?.ForEach(sub => sub.WriteToPresentation(presentation, Title));
 }