| 
October 29th, 2009, 06:06 AM
| | MHF Contributor | | Join Date: Oct 2009
Posts: 1,164
Thanks: 52
Thanked 398 Times in 376 Posts
| | Some little help more with Latex, please Hi all:
Several times already I've tried to write about a function that is "defined" or "undefined" somewhere using LaTex, but I get the following error message: [LaTex Error: Restricted command found (def)]
Since I can't believe we can't write "defined" using LaTex. what is the way to overcome these restrictions? I tried using " ", enclosing the word in brackets [] , etc., but nothing.
Thanx for reading
Tonio | 
October 29th, 2009, 06:41 AM
|  | Super Member | | Join Date: Apr 2008
Posts: 791
Thanks: 152
Thanked 427 Times in 360 Posts
| | Quote:
Originally Posted by tonio Since I can't believe we can't write "defined" using LaTex. what is the way to overcome these restrictions? I tried using " ", enclosing the word in brackets [] , etc., but nothing. | Here is the answer given by Opalg in another thread: Quote:
Originally Posted by Opalg You can fool the system into accepting a reserved word like def by disguising it, splitting it up with a pair of braces.
[math]\buildrel \text{d{}ef}\over =[/math] produces  . | | | The Following 2 Users Say Thank You to flyingsquirrel For This Useful Post: | |  | 
October 29th, 2009, 07:12 AM
|  | MHF Contributor | | Join Date: Aug 2007 Location: Leeds, UK
Posts: 2,065
Country: Thanks: 126
Thanked 1,261 Times in 1,048 Posts
| | Quote:
Originally Posted by flyingsquirrel Here is the answer given by Opalg in another thread: Quote:
Originally Posted by Opalg You can fool the system into accepting a reserved word like def by disguising it, splitting it up with a pair of braces.
[math]\buildrel \text{d{}ef}\over =[/math] produces  . | | That's not the whole story, though. You can fool the MathHelpForum's LaTeX compiler into printing the word "def", but you cannot get it to implement a user-defined control sequence by using the \def command. I assume that is a security precaution, to stop malicious hackers. | | The following users thank Opalg for this useful post: | |  | 
October 29th, 2009, 11:30 AM
| | Super Member | | Join Date: May 2006 Location: Lexington, MA (USA)
Posts: 7,286
Thanks: 555
Thanked 4,647 Times in 3,710 Posts
| | Hello, tonio! Quote: Several times already I've tried to write about a function that is "defined"
or "undefined" somewhere using LaTex, but I get the following error message: . . [LaTex Error: Restricted command found (def)]
Since we can't write "defined" using LaTex.
what is the way to overcome these restrictions? |
Enclose one of the offending letters in a pair of braces.
While \text{defined} will generate that error message, . . \text{de{f}ined} will get us by.
The censor program here outlaws certain touchy words.
One of them is the nickname for Richard. . . (While Peter, Willy and Johnson are okay!)
If I want to refer to Mr. Clark of American Bandstand, . . I must use: .\text{Di{c}k Clark} . 
Please . . . do not use this technique to post obscene words.
You will offend many of us and get yourself banned. | | The following users thank Soroban for this useful post: | |  | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -7. The time now is 08:14 PM. | | |