WeBWorK Main Forum

Solutions and latex environment using unnecessary brackets

Solutions and latex environment using unnecessary brackets

by Luis Calderón -
Number of replies: 1

Hi everyone,

I've trying to write some codes for my students, but in the solution I ever get a problem. When I use latex mode and I call some expression it puts an extra bracket. I'd like to remove those brackets. Thanks for any help.

These are some examples:

This appears when I use `(-$r,$r)` and $r is a random variable, but is setting as 1 in this case 

This is for the external brackets and in this case it is using a point that I didn't put there



This is my set up:

loadMacros(

   "PGstandard.pl",

   "PGML.pl",

   "AnswerFormatHelp.pl",

   "parserRadioButtons.pl",

   "parserPopUp.pl",

   "contextFraction.pl",

);

############################################################

# Header

############################################################

TEXT(beginproblem());

$ShowPartialCorrectAnswers = 1;

###############################################################

# PG Setup

Context("Fraction");

Context("Interval");

Context("Numeric");

Context()->variables->add(n => 'Real');


In reply to Luis Calderón

Re: Solutions and latex environment using unnecessary brackets

by Danny Glin -
Can you please include a complete problem, and a description of exactly what you see for that example?