コード例 #1
0
        private static IReadOnlyDictionary <string, ICommandParser> GetCommands(List <List <Atom> > rows)
        {
            var nextRowCommand = new NextRowCommand(rows);

            return(new Dictionary <string, ICommandParser>
            {
                [@"\"] = nextRowCommand,
                ["cr"] = nextRowCommand
            });
        }
コード例 #2
0
        public override bool ProcessUnknownCharacter(TexFormula formula, char character)
        {
            if (character == '&')
            {
                NextRowCommand.NextCell(_rows, formula);
                return(true);
            }

            return(false);
        }