/// <summary> /// The base curaddto only adds a \draw ; /// We also need to add a plot coordinates { } /// </summary> /// <param name="created"></param> /// <returns></returns> protected override bool EnsureCurAddToExists(out bool created) { bool ret = base.EnsureCurAddToExists(out created); if (!ret) { return(ret); } if (created) { curAddTo.AddChild(new Tikz_Something(" plot")); Tikz_Options topts = new Tikz_Options(); topts.starttag = "["; topts.endtag = "]"; smoothOption = topts.AddOption("smooth"); topts.AddOption("tension", ".7"); curAddTo.options = topts; curAddTo.AddChild(topts); curAddTo.AddChild(new Tikz_Something(" coordinates ")); Tikz_Path tp = new Tikz_Path(); tp.starttag = "{"; tp.endtag = "}"; curAddTo.AddChild(tp); curAddTo = tp; } return(ret); }
protected override bool AddNewCurAddTo() { bool ret = base.AddNewCurAddTo(); if (ret) { // add options Tikz_Options topts = new Tikz_Options(); topts.starttag = "["; topts.endtag = "]"; topts.AddOption("help lines"); topts.AddOption("step", "1cm"); curAddTo.options = topts; curAddTo.AddChild(topts); } return(ret); }