Ask Your Question
2

Can a list number be right-aligned following the paragraph text? [closed]

asked 2014-08-02 02:56:32 +0100

Subsea gravatar image

updated 2016-03-01 21:17:03 +0100

Alex Kemp gravatar image

Using Win7Pro, LO Writer 4.2.4.2 For example, I'd like to define a paragraph style in which the text is centered and then followed at the right margin by the list number value as equations often are in technical papers.

Left Margin|                             a = b+c                             (Eq 1)|Right Margin

Thanks.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-03-01 21:17:14.459037

Comments

So the white space was compressed in my example. Sorry. In the example 'a=b+c' would be centered on the line and '(Eq 1)' would be at the right margin.

Subsea gravatar imageSubsea ( 2014-08-02 02:57:52 +0100 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2014-08-03 10:34:47 +0100

ajlittoz gravatar image

Hi!

Here are some leads, but I was unable to solve your problem.

a. Using caption on a frame containing the formula

Unfortunately, frame captions can only be inserted above or under the contents. Second, you can't fully customise the 'category' auto-inserted text, i.e. you can have this caption text before the number (as in Formula x), not around it ( first part (Eq. before, closing parentheses after the automatic number).

b. Defining a new paragraph style with tabulation

I can now have text at left margin, a center-tab at centre for the formula and a right-flush-tab at right margin for the number but I don't know how to have this latter attached to any list to get auto-numbering (and eventually generate an index/TOC)

c. Work-around based on b.

The nasty trick is to use the line numbering feature but you'll lose the ability to number your lines because the feature is used for something else.

  1. Modify "Standard" style (Outline & Numbering tab) to uncheck "Include this paragraph in line numbering". This will propagate to all styles.
  2. In your custom formula style (see b.), check "Include ... line numbering" box.
  3. Activate line numbering in menu Tools->Line Numbering. Set Position to Right and Interval to 1 so that every line gets a number.

You can now use your custom formula style as follows: an optional short title or id (at left), tab, your formula, tab, a fixed caption "Eq." (without parentheses since you wouldn't get one after the line number).

The sequential line number (= your equation number) is automatically inserted by LO inside the right margin.

Limitations:

Your equation is limited to a single line, otherwise you have multiple numbers.

You can't capture these numbers to build an index/TOC.

You can't reference these numbers from the text as you would for outline numbers (so that they're automatically adjusted when you change the order of the formulas or when you insert a new one).

edit flag offensive delete link more

Comments

Thanks for the thorough list. Looks like "d) Put the equation number on the left" might be the LO answer.

Subsea gravatar imageSubsea ( 2014-08-06 23:55:16 +0100 )edit

Question Tools

2 followers

Stats

Asked: 2014-08-02 02:56:32 +0100

Seen: 2,231 times

Last updated: Aug 03 '14