Facebook Page
Twitter
RSS
+ Reply to Thread
Results 1 to 6 of 6
  1. MHB Master
    MHB Site Helper
    Peter's Avatar
    Status
    Offline
    Join Date
    Jun 2012
    Location
    Hobart, Tasmania
    Posts
    2,315
    Thanks
    2,198 times
    Thanked
    824 times
    Awards
    MHB Model User Award (2015)  

MHB Model User Award (Jul-Dec 2013)
    #1
    Recently I posted the following text on the Analysis forum ...


    " ... ... In order to demonstrate that $ \displaystyle K$ is closed, we prove that $ \displaystyle \mathbb{R}^n\K$ is open. Indeed, choose $ \displaystyle y \notin K$ and define $ \displaystyle O_j = \{ x \in \mathbb{R}^n \ \mid \ \mid \mid x - y \mid \mid \gt \frac{1}{j} \}$ for $ \displaystyle j \in \mathbb{N}$. ... ... "


    ... and (as I did above) got a red \K in \mathbb{R}^n\K presumably because I'm misusing a special character \ in the code ...

    What is wrong with what I've done and how do I correct it?

    Further, how does one correctly write Latex code for one set minus another as in A\B?

    Peter

  2. Pessimist Singularitarian
    MHB Coder
    MHB Math Helper
    MHB Ambassador
    MarkFL's Avatar
    Status
    Online
    Join Date
    Feb 2012
    Location
    St. Augustine, FL.
    Posts
    12,786
    Thanks
    33,515 times
    Thanked
    30,465 times
    Thank/Post
    2.383
    Trophies
    23 Highscores
    Awards
    MHB Chat Room Award (2017)  

MHB Calculus Award (2017)  

MHB Pre-University Math Award (2017)  

MHB Statistics Award (2016)  

MHB Calculus Award (2016)
    #2
    This works, although there might be a better solution...

    \mathbb{R}^n\text{\\}K

    gives:

    $ \displaystyle \mathbb{R}^n\text{\\}K$

  3. MHB Master
    MHB Site Helper
    Peter's Avatar
    Status
    Offline
    Join Date
    Jun 2012
    Location
    Hobart, Tasmania
    Posts
    2,315
    Thanks
    2,198 times
    Thanked
    824 times
    Awards
    MHB Model User Award (2015)  

MHB Model User Award (Jul-Dec 2013)
    #3 Thread Author
    Quote Originally Posted by MarkFL View Post
    This works, although there might be a better solution...

    \mathbb{R}^n\text{\\}K

    gives:

    $ \displaystyle \mathbb{R}^n\text{\\}K$


    Thanks Mark ... but seems strange to me that two \s are required in text{ \\ } ... but then ... hey ... that's the rules of the code

    Thanks again ...

    Peter

  4. Pessimist Singularitarian
    MHB Coder
    MHB Math Helper
    MHB Ambassador
    MarkFL's Avatar
    Status
    Online
    Join Date
    Feb 2012
    Location
    St. Augustine, FL.
    Posts
    12,786
    Thanks
    33,515 times
    Thanked
    30,465 times
    Thank/Post
    2.383
    Trophies
    23 Highscores
    Awards
    MHB Chat Room Award (2017)  

MHB Calculus Award (2017)  

MHB Pre-University Math Award (2017)  

MHB Statistics Award (2016)  

MHB Calculus Award (2016)
    #4
    Quote Originally Posted by Peter View Post
    Thanks Mark ... but seems strange to me that two \s are required in text{ \\ } ... but then ... hey ... that's the rules of the code

    Thanks again ...

    Peter
    Yeah, you have to escape the escape character to get a literal character.

    You can also use:

    \mathbb{R}^n\backslash K

    or:

    \mathbb{R}^n\setminus K (this one has more padding to the left and right of the slash)

  5. Pessimist Singularitarian
    MHB Coder
    MHB Math Helper
    MHB Ambassador
    MarkFL's Avatar
    Status
    Online
    Join Date
    Feb 2012
    Location
    St. Augustine, FL.
    Posts
    12,786
    Thanks
    33,515 times
    Thanked
    30,465 times
    Thank/Post
    2.383
    Trophies
    23 Highscores
    Awards
    MHB Chat Room Award (2017)  

MHB Calculus Award (2017)  

MHB Pre-University Math Award (2017)  

MHB Statistics Award (2016)  

MHB Calculus Award (2016)
    #5
    I also want to point out that in the "MHB Widgets" block to the right of the editor is "Detexify" listed as the second entry in the list, and clicking that will popup a window into which you can draw a character you wish to use, and it will give you in most cases several options to try.

  6. MHB Master
    MHB Site Helper
    MHB Math Scholar

    Status
    Offline
    Join Date
    Jan 2012
    Posts
    2,312
    Thanks
    517 times
    Thanked
    4,219 times
    Thank/Post
    1.825
    Awards
    MHB Humor Award (2017)  

MHB Discrete Mathematics Award (2017)  

MHB Chat Room Award (2016)  

MHB Humor Award (2016)  

MHB Discrete Mathematics Award (2016)
    #6
    Quote Originally Posted by MarkFL View Post
    \mathbb{R}^n\setminus K (this one has more padding to the left and right of the slash)
    This is the correct solution.

    Quote Originally Posted by Peter View Post
    What is wrong with what I've done and how do I correct it?
    The command \K is undefined. TeX commands usually consist of a backslash followed by letters.

Similar Threads

  1. Latex Code for a Parenthesis ...
    By Peter in forum Math Formulas (MathJax)
    Replies: 4
    Last Post: January 3rd, 2018, 18:12
  2. Replies: 0
    Last Post: November 13th, 2017, 12:13
  3. Latex code for the functor Hom_R( _ , X)
    By Peter in forum Math Formulas (MathJax)
    Replies: 3
    Last Post: December 4th, 2014, 22:45
  4. Latex code for the class SE of short exact sequences in Mod_R
    By Peter in forum Math Formulas (MathJax)
    Replies: 1
    Last Post: November 30th, 2014, 13:07
  5. Way to see Latex source code
    By Jameson in forum Math Formulas (MathJax)
    Replies: 4
    Last Post: February 7th, 2012, 01:17

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Math Help Boards