useStrictBehavior method
Implementation
bool useStrictBehavior(String errorCode, String errorMsg, [Token? token]) {
var strict = this.strict;
if (strict == Strict.function) {
try {
strict = strictFun!(errorCode, errorMsg, token);
} on Object {
strict = Strict.error;
}
}
switch (strict) {
case Strict.ignore:
return false;
case Strict.error:
return true;
case Strict.warn:
warn("LaTeX-incompatible input and strict mode is set to 'warn': "
'$errorMsg [$errorCode]');
return false;
default:
warn('LaTeX-incompatible input and strict mode is set to '
"unrecognized '$strict': $errorMsg [$errorCode]");
return false;
}
}