Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Itex

  1. Dec 28, 2007 #1
    [SOLVED] itex

    Sometimes when I click on tex blocks, I see the quote surrounded by [ itex] [/itex] instead of [ tex] [/tex]. What is that about?

    There is really not a space between the [ and next character but I had to put one in or else it does not show up.
     
    Last edited: Dec 28, 2007
  2. jcsd
  3. Dec 28, 2007 #2

    Kurdt

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    itex keeps the maths typeset in line with the text so it looks neater in the middle of a sentence.

    Example:

    blah blah [tex] E=mc^2[/tex] blah blah
    blah blah [itex] E = mc^2 [/itex] blah blah

    blah blah [tex]\frac{a}{b} [/tex] blah blah
    blah blah [itex]\frac{a}{b} [/itex] blah blah
     
  4. Dec 28, 2007 #3
    That's convenient. Also, is there any way I can avoid actually typing in [ tex] and [ /tex] all the time? In other forums I have visited, you can just highlight the text that you want typeset and click some button.

    There is really not a space between the [ and next character but I had to put one in or else it does not show up.
     
  5. Dec 28, 2007 #4

    Kurdt

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Not that I know of. Greg might consider adding a button to do that though.
     
  6. Dec 28, 2007 #5

    D H

    User Avatar
    Staff Emeritus
    Science Advisor

    Another thing that helps keep the text clean-looking is to avoid using raising and lowering operations if possible. For example [itex]a/b[/itex] looks better to me as inline text compared to [itex]\frac a b[/itex].

    If you use LaTeX outside of PF (e.g., you use it to write papers), think of [ itex ] simple math [ /itex ] as equivalent to $ simple math $ and
    [ tex ] hairy math [ /tex ]
    as equivalent to
    \begin {equation} hairy math \end{equation}
     
  7. Dec 29, 2007 #6
    If you use Firefox, add the BBCode extension. (Scroll down the page to Miscellaneous.) Apart from being VERY handy on internet forums, it also lets you add custom tags. For PF, I have added the superscript, subscript, tex and itex tags.

    I know that the link I provided leads you to a Third-party site, instead of AMO, but I've been using this extension for a year (since the release of Fx 2) and it has not given me a problem.
     
  8. Jan 14, 2008 #7

    Shooting Star

    User Avatar
    Homework Helper

    Could anyone please tell me what is the button for wrapping
    Code (Text):
     tags around selected text? And also the [php] tag?

    Also, is there any [B]existing[/B] way, without using firefox, to write the oft used suffix, powers etc without tex? Like you do im ms-word.
     
  9. Jan 14, 2008 #8
     
  10. Jan 14, 2008 #9

    Shooting Star

    User Avatar
    Homework Helper

     
  11. Jan 14, 2008 #10

    CompuChip

    User Avatar
    Science Advisor
    Homework Helper

    Code (Text):

    Is for
       computer code
     that you
               want to layout
      properly (keeping         indentation)

    and for writing very long code blocks without making your post too long and messing up the horizontal page layout by adding some scrollbars.
     
    PHP tags do the same thing but automatically add highlighting for PHP code, compare
    Code (Text):
    <?
    $diary_directory = opendir(".");
      while($filename = readdir($diary_directory))
    {
        $filesplit = explode(".", $filename);
        $check_filename = $filesplit[0];
           if(ereg("[0-9]{6}", $check_filename))
          {
             $check_filename .= ".$filesplit[1]";
             $valid_filename[] = $check_filename;
          }
      }
    closedir($diary_directory);
    for($index = 0; $index < count($valid_filename); $index++)
    {
      print("$valid_filename[$index]<br>");
    }
    ?>
    to
    PHP:

    <?
    $diary_directory = opendir(".");
      while($filename = readdir($diary_directory))
    {
        $filesplit = explode(".", $filename);
        $check_filename = $filesplit[0];
           if(ereg("[0-9]{6}", $check_filename))
          {
             $check_filename .= ".$filesplit[1]";
             $valid_filename[] = $check_filename;
          }
      }
    closedir($diary_directory);
    for($index = 0; $index < count($valid_filename); $index++)
    {
      print("$valid_filename[$index]<br>");
    }
    ?>
     
  12. Jan 14, 2008 #11

    Shooting Star

    User Avatar
    Homework Helper

    Code (Text):
    Thank you!
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Itex
  1. ITex trouble (Replies: 3)

  2. Itex happy (Replies: 8)

  3. Tex v itex (Replies: 3)

Loading...