コード例 #1
0
            public TexWrapper()
            {
                this.Configuration = new TexConfig();
                var exeDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
                var config = new FileInfo(Path.Combine(exeDir, "Configuration.xml"));

                if (config.Exists)
                {
                    this.Configuration.Load(config);
                }
                else
                {
                    config = new FileInfo(Path.Combine(exeDir, "Config", "Configuration.xml"));
                    if (config.Exists)
                    {
                        this.Configuration.Load(config);
                    }
                }
            }
コード例 #2
0
 public LatexEngine(TexConfig config)
     : this()
 {
     this.texWrapper_ = new TexWrapper(config);
 }
コード例 #3
0
 public TexWrapper(TexConfig config) : this()
 {
     this.Configuration = config;
 }