WeBWorK Main Forum

Why PGML embedded Latex doesn't allow \Box or \square? Are parts of Latex off limits?

Why PGML embedded Latex doesn't allow \Box or \square? Are parts of Latex off limits?

by Christian Seberino -
Number of replies: 2
Why PGML embedded Latex doesn't allow \Box or \square?

When I try to do [`\Box`] and [`\square`]

I get these error messages..

Unknown control sequence '\Box'

Unknown control sequence '\square'


In reply to Christian Seberino

Re: Why PGML embedded Latex doesn't allow \Box or \square? Are parts of Latex off limits?

by Davide Cervone -
They work for me. What output mode are you using? MathJax and Images both work for me. These symbols are part of the AMSsymbols package in TeX, so perhaps that isn't being loaded in your configuration?
In reply to Christian Seberino

Re: Why PGML embedded Latex doesn't allow \Box or \square? Are parts of Latex off limits?

by Paul Pearson -
Hi,

A cheap substitute might be \fbox{~} or a variation of that (in other words, put a frame box \fbox{} or \framebox[][]{} around a space ~ or multiple spaces ~~). See

http://www.personal.ceu.hu/tex/spacebox.htm#framebox

Good luck!

Paul Pearson