Forum archive 2000-2006

Bill Ziemer - braces in hard copy problem

Bill Ziemer - braces in hard copy problem

by Arnold Pizer -
Number of replies: 0
inactiveTopicbraces in hard copy problem topic started 2/4/2002; 7:35:27 PM
last post 2/5/2002; 6:27:48 AM
userBill Ziemer - braces in hard copy problem  blueArrow
2/4/2002; 7:35:27 PM (reads: 776, responses: 1)
The code

$ansStr1 = EV2(" \( $LBRACE 1,2,3 $RBRACE \) "); . . @answers = ($ansStr1, .. . . TEXT( . &OL(@answers[@slice]); );

displays and behaves correctly, but the hard copy yields an error:

item[A.] ( 3 )

The braces and the rest of the set are suppressed. This is consistent behavior with similar problems. Also, the same setup with "x : x \le 5" in place of the "1,2,3" behaves correctly but yields the hard copy error: {bf WARNINGS:par{tiny * ERROR in old_safe_ev, PGbasicmacros.pl: <PRE> #\# There is an error occuring inside evaluation brackets { ...code... } #\# somewhere in an EV2 or EV3 or BEGIN_TEXT block. #\# Code evaluated: #\# x : xle 5 #\#Backslash found where operator expected at (eval 131) line 1, near "x\" #\#<-/PRE>\parnoindent at (eval 120) line 1117. par

#\#More details: par

-------- PG_priv::old_safe_ev called at (eval 120) line 1090par

---- PG_priv::ev_substring called at (eval 120) line 1174par

---- PG_priv::EV2 called at (eval 53) line 23par

---- PG_priv::_\_ANON_\_ called at -/usr-/local-/lib-/perl5-/5.6.0-/i686-linux-/Safe.pm line 222par

---- Safe::reval called at -/var-/www-/webwork-/system-/lib-/-/PGtranslator.pm line 714par

---- PGtranslator::translate called at -/var-/www-/webwork-/system-/cgi-/cgi-scripts-/welcomeAction.pl line 576par

---- main::createTexSource called at -/var-/www-/webwork-/system-/cgi-/cgi-scripts-/welcomeAction.pl line 343par

---- main::downloadAllSets called at -/var-/www-/webwork-/system-/cgi-/cgi-scripts-/welcomeAction.pl line 150par

par

<| Post or View Comments |>


userArnold K. Pizer - Re: braces in hard copy problem  blueArrow
2/5/2002; 6:27:48 AM (reads: 1023, responses: 0)
Inside a LaTeX equation, i.e. inside \( ... \) or \[ ... \], you should only use LaTeX commands since these equations will always be processed be TeX. Try using \lbrace and \rbrace instead. Note that \{ ... \} has a special meaning in the .pg language so you can not use them for left and right braces.

<| Post or View Comments |>