Left and right align on the same line

I'm building a web page that includes math equations that I drag and drop from LaTeXiT. These come in as graphic images and are left aligned in my text box. All is good so far. But, as is typically done in scientific papers, I want to add an equation number aligned with the right margin (on the same line). The only way that I can think of doing this would be to create multiple text boxes, and this isn't an option because of the number of equations that I am dealing with. Any simple ways of having one item left aligned and the remainder right aligned?

Macbook Pro, Mac OS X (10.5.5)

Posted on Mar 18, 2009 11:10 PM

Reply
7 replies

Mar 19, 2009 2:22 AM in response to Roddy

Thanks for the reply.

I had tried tabbing, but it appeared to convert each tab to a few spaces, and I wasn't confident that this would survive the idiosyncrasies of browser rendering, and not end up shuffling things to the next line, or worse. I'll give it another look. Do tabs actually align to something in iWeb?

Another thought: Would it possible to create an html snippet that will override the text alignment and stick some text on the right side of the page?

Yet another thought: Would iWeb '09 have any additional features to help do this?

Mar 19, 2009 6:42 AM in response to RSW000

Unfortunately, vertically aligned text boxes seem to be the only sure fire way if you can't use a table.
I don't do that sort of stuff but I read here about people getting into a mess with tabs, bullets, indents and those sort of things.
Making it up in something like Pages, exporting to PDF and dragging this onto the iWeb page will preserve the alignment.
I don't know about the snippet thing but there's nothing in iWeb '09 that you can't do in '08.

Mar 19, 2009 3:05 PM in response to Old Toad

It looks like I've found another solution. I found a way to make Latexit add a right aligned equation number, so that it will be part of the dropped image. The images are now always uniform width and fill the horizontal space on the page.

For anyone else who uses Latexit, here is the formatting that I used:

\begin{tabular}{l p{3.0in} r}
& $<my_equation>$ & <my_eqno>
\end{tabular}

This formatting code is a bit kludgy because Latexit seems to have a bit of trouble understanding margins. You may need to adjust the number 3.0 (in the first line) depending on your page width, and how much you want to scale the image. But, once it's set it should be good for all equations. (Note, Latexit is public domain, and is distributed as part of MacTex which is also public domain.)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Left and right align on the same line

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.