Ask Your Question

some text flush left and other text flush right on same line

asked 2018-03-03 00:55:38 +0200

catbill gravatar image

Equations need to be flush left and equation numbers flush right. The distance between equations and numbers will vary, depending on the length of the equations.

This could be done with tables but I want to know if there are other ways. Also, I am not asking about justification. There needs to be blank space between text on the left and text on the right.

Is there a name for this type of alignment? What is the easiest way to do this?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2018-03-03 08:11:19 +0200

ajlittoz gravatar image

Create a specific paragraph style with a tuned tab position: type of tab is Right and you set it to the right margin. You must compute the distance from the left margin taking into account the width of your left/right margins.

There is a shortcoming here: in all document processors I know of, tabs are anchored at left margin (mirror this for RTL languages) which needs manual adaptation when you change paper format (portrait -> landscape, or DIN Ax -> US sizes) or even modify your margins. I suggested an enhancement to define an anchor for tab based on relative position (such as "anchor for this tab is set at x% of page width or paragraph area width and measure distance from this anchor"). This proposal has been discarded because it would require substantial modification to ODF and could cause dramatic incompatibilities with existing documents.

The only "magical" tab which automatically aligns with right margin is in Contents x paragraph styles family used to display table of contents.

edit flag offensive delete link more


Thank you. For some reason, it did not occur to me to look for a right tab setting. This is much easier than I thought it would be.

catbill gravatar imagecatbill ( 2018-03-08 20:44:06 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-03-03 00:55:38 +0200

Seen: 1,471 times

Last updated: Mar 03 '18