Results 1 to 6 of 6

Math Help - Bug

  1. #1
    Member courteous's Avatar
    Joined
    Aug 2008
    From
    big slice of heaven
    Posts
    206

    Post Bug

    I was trying to display standalone percent/modulus sign ... and got some weird :
    %

    Namely, % if input bare-bones produces some long blank comment.
    Obviously, one should escape the sign and get \%, but previous usage of % (and perhaps others) serves only as a potential exploit ... so it should be patched up.
    Last edited by courteous; October 2nd 2010 at 12:15 PM.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor

    Joined
    Aug 2006
    Posts
    18,788
    Thanks
    1683
    Awards
    1
    [tex]\%[/tex] gives \%.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by courteous View Post
    I was trying to display standalone percent/modulus sign ... and got some weird :
    [tex]%[/tex]

    Namely, % if input bare-bones produces some long blank comment.
    Obviously, one should escape the sign and get \%, but previous usage of % (and perhaps others) serves only as a potential exploit ... so it should be patched up.
    Not a bug but a >>feature<<

    CB
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor

    Joined
    Apr 2005
    Posts
    15,954
    Thanks
    1629
    Ah, yes! First rule of software engineering- if you can't fix it, feature it!
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by HallsofIvy View Post
    Ah, yes! First rule of software engineering- if you can't fix it, feature it!
    It's a feature of LaTeX but a bug in the LaTeX add in we use (% starts a comment which ends with the line in a LaTeX document, but seems to give multiple blank lines here).

    CB
    Follow Math Help Forum on Facebook and Google+

  6. #6
    Member courteous's Avatar
    Joined
    Aug 2008
    From
    big slice of heaven
    Posts
    206
    These also behave ishly: \vdot, \ldot, \ddot (\cdot is OK, as are all plural \dots).
    Follow Math Help Forum on Facebook and Google+

Search Tags


/mathhelpforum @mathhelpforum