Results 1 to 4 of 4

Thread: Some little help more with Latex, please

  1. #1
    Banned
    Joined
    Oct 2009
    Posts
    4,261
    Thanks
    3

    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
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Super Member flyingsquirrel's Avatar
    Joined
    Apr 2008
    Posts
    802
    Quote Originally Posted by tonio View Post
    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 View Post
    You can fool the system into accepting a reserved word like def by disguising it, splitting it up with a pair of braces.

    [tex]\buildrel \text{d{}ef}\over =[/tex] produces \buildrel \text{d{}ef}\over = .
    Follow Math Help Forum on Facebook and Google+

  3. #3
    MHF Contributor
    Opalg's Avatar
    Joined
    Aug 2007
    From
    Leeds, UK
    Posts
    4,041
    Thanks
    10
    Quote Originally Posted by flyingsquirrel View Post
    Here is the answer given by Opalg in another thread:
    Quote Originally Posted by Opalg View Post
    You can fool the system into accepting a reserved word like def by disguising it, splitting it up with a pair of braces.

    [tex]\buildrel \text{d{}ef}\over =[/tex] produces \buildrel \text{d{}ef}\over = .
    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.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Super Member

    Joined
    May 2006
    From
    Lexington, MA (USA)
    Posts
    12,028
    Thanks
    847
    Hello, tonio!

    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} . \text{Dick Clark}


    Please . . . do not use this technique to post obscene words.
    You will offend many of us and get yourself banned.

    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 1
    Last Post: Dec 10th 2011, 06:40 PM
  2. LaTex inside of LaTex
    Posted in the LaTeX Help Forum
    Replies: 2
    Last Post: Nov 12th 2009, 11:07 AM
  3. Some little help more with Latex, please
    Posted in the LaTeX Help Forum
    Replies: 3
    Last Post: Oct 25th 2009, 07:23 AM
  4. Latex Help
    Posted in the LaTeX Help Forum
    Replies: 1
    Last Post: Feb 16th 2009, 09:48 AM
  5. Latex help
    Posted in the LaTeX Help Forum
    Replies: 1
    Last Post: Feb 8th 2008, 10:57 AM

Search Tags


/mathhelpforum @mathhelpforum