# Underlined or bold vectors in Maple T.A. browsing

• Let's say you have three variables $a,$b and $c that can all take values from -2 to +2. You often end up getting expressions that look like this $$1 i + -2 j + 0 k$$ This is because you have locked down the mathematical form using latex and latex doesn't understand mathematical simplification. The way to resolve this problem is shown below. Version with bold vectors $a=range(-2,2);
$b=range(-2,2);$c=range(-2,2);
$dis=maple(" expr := _i*($a2)+_j*($b2)+_k*($c2):
iexpr := latex(expr, output = string):
printf(StringTools:-SubstituteAll(iexpr, convert(\\it \\_,string), convert(\\bf ,string) ));
");



Version with underlined vectors

$a=range(-2,2);$b=range(-2,2);
$c=range(-2,2);$dis=maple("
expr := _i*($a2)+_j*($b2)+_k*(\$c2):
iexpr := latex(expr, output = string):
printf(StringTools:-SubstituteAll(iexpr, convert(\\it \\_,string), convert(\\underline ,string) ));
");



In the question text you would then enter To generate the typeset expression.