Itex Programming: Testing Resizing Formulas

  • Thread starter Thread starter sylas
  • Start date Start date
  • Tags Tags
    Programming
Click For Summary

Discussion Overview

The discussion revolves around testing and exploring itex and tex programming for mathematical expressions in a forum setting. Participants are experimenting with resizing formulas and comparing the two types of markup for displaying mathematical content.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses frustration with the inability to preview itex properly and seeks to test resizing formulas.
  • Another participant suggests using an external tool for rendering math expressions in a different mode.
  • There is a discussion about the differences between itex and tex, noting that itex is typically used for inline math while tex is preferred for larger expressions.
  • A participant provides examples demonstrating the readability differences between itex and tex, particularly with fractions.
  • One participant highlights the existence of both inline and displaymath styles in TeX, indicating that the two tags handle different cases.

Areas of Agreement / Disagreement

Participants generally agree on the functional differences between itex and tex, but there is no consensus on the best practices for their use or the specifics of their implementations.

Contextual Notes

Participants mention limitations in previewing tools and express uncertainty about the exact implementation of mathematical expressions across different platforms.

sylas
Science Advisor
Messages
1,647
Reaction score
9
I don't see any forum where I can just test out itex programming, so I'm doing it here. I will try to delete this thread after posting. My apologies if I can't do that.BD = [itex](2\omega + 3)/(2\omega + 4)[/itex] 0.0409

In paper: 2/3(3/2 - 2ξ/η), and fs 1 - σ/η

Using itex
[itex]\sigma = \frac{1}{\sqrt{(2\varpi+3)(2\varpi+4)}}[/itex]

Added in edit... sorry. I could not delete. It is annoying that the preview facility seems not to preview itex. I think?

Oh well. Now that the thread is here, I'll see how resizeing works, both outside itex and inside.

First, putting the above inside size tags.
[itex]\sigma = \frac{1}{\sqrt{(2\varpi+3)(2\varpi+4)}}[/itex][/size]

Second, adding a "large" tag inside the itex. (Not the proper way to do it in real LaTeX.)
[itex]\large \sigma = \frac{1}{\sqrt{(2\varpi+3)(2\varpi+4)}}[/itex]

Hm. Can I make a formula larger some other way?
 
Last edited:
Technology news on Phys.org
Use can use the http://at.org/~cola/tex2img/index.php" (use Math mode)
 
Last edited by a moderator:
sylas said:
Hm. Can I make a formula larger some other way?

Instead of using itex use tex:

[tex]\sigma = \frac{1}{\sqrt{(2\varpi+3)(2\varpi+4)}}[/tex]
 
mattmns said:
Instead of using itex use tex:

OK... let me try...

[tex]\sigma = \frac{1}{\sqrt{(2\varpi+3)(2\varpi+4)}}[/tex]
[tex]\eta = \sqrt{\frac{2\varpi+4}{2\varpi+3}}[/tex]
[tex]\xi = 1 - \eta + 2\varpi[/tex]
geodetic factor [tex]\frac{2}{3}(\frac{3}{2} - 2\frac{\xi}{\eta}) = 1 - \frac{4\xi}{3\eta}[/tex]

[tex]\begin{array}{rcl}\frac{2}{3}(\frac{3}{2}-\frac{2\xi}{\eta})<br /> &=&1-\frac{4\xi}{3\eta}\\<br /> &=&1-\frac{4-4\eta+8\sigma}{3\eta}\\<br /> &=&1-\frac{4}{3}\sqrt{\frac{2\varpi+3}{2\varpi+4}}+\frac{4}{3}-\frac{8}{3}\sqrt{\frac{(2\varpi+3)}{(2\varpi+4)^2(2\varpi+3)}}\\<br /> &\approx&1-\frac{4}{3}(1-\frac{1}{2(2\varpi+4)})+\frac{4}{3}-\frac{8}{3(2\varpi+4)}\\<br /> &=&1+\frac{1}{3(\varpi+2)}-\frac{4}{3(\varpi+2)}\\<br /> &=&1-\frac{1}{\varpi+2}\end{array}[/tex]

Excellent -- just what I want. But what is the difference? tex still seems to use a math mode. Where are these documented?

Using the various preview tools at other sites is helpful, but I don't feel confident that the implementation will be exactly as it is here.

Cheers -- Sylas
 
Last edited:
The difference is that itex is small, and tex is big :smile: Generally, you use itex when you are writing math in-line. And you use tex whenever you feel like you need/want to. For example, as you saw, fractions sometimes are difficult to read when you use itex, so it is probably better to use tex for fractions.

Consider the following example.

I am using itex here: [itex]\sum_{i=1}^{\infty}x^i[/itex] and I am using tex here: [tex]\sum_{i=1}^{\infty}x^i[/tex]. See how tex is kind of messing with the line spacing.edit... You can probably find some more info here: https://www.physicsforums.com/showthread.php?t=8997
 
Last edited:
Aha. That link was great. It would be good to have as a standard help page.

TeX has both inline and displaymath styles; and the two tags tex and itex handle those two cases.

Trying an equation...

[tex]\begin{equation*}\begin{split}\frac{2}{3}(\frac{3}{2}-\frac{2\xi}{\eta})&=1-\frac{4\xi}{3\eta}\\&=1-\frac{4-4\eta+8\sigma}{3\eta}\\<br /> &=1-\frac{4}{3}\sqrt{\frac{2\varpi+3}{2\varpi+4}}+\delta\end{split}\end{equation*}[/tex]
 
Last edited:

Similar threads

  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 23 ·
Replies
23
Views
3K
Replies
7
Views
3K
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 37 ·
2
Replies
37
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
4K