# Itex

1. Dec 28, 2007

### ehrenfest

[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. Dec 28, 2007

### Kurdt

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

Example:

blah blah $$E=mc^2$$ blah blah
blah blah $E = mc^2$ blah blah

blah blah $$\frac{a}{b}$$ blah blah
blah blah $\frac{a}{b}$ blah blah

3. Dec 28, 2007

### ehrenfest

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.

4. Dec 28, 2007

### Kurdt

Staff Emeritus
Not that I know of. Greg might consider adding a button to do that though.

5. Dec 28, 2007

### D H

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

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

6. Dec 29, 2007

### neutrino

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.

7. Jan 14, 2008

### Shooting Star

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.

8. Jan 14, 2008

### neutrino

9. Jan 14, 2008

### Shooting Star

10. Jan 14, 2008

### CompuChip

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>");
}
?>

11. Jan 14, 2008

### Shooting Star

Code (Text):
Thank you!

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook