Equation numbers in Word output

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
enricosavazzi
Propeller Head
Posts: 58
Joined: Wed Apr 09, 2008 2:10 am

Equation numbers in Word output

Post by enricosavazzi »

I need equation numbers at the right text margin of the page (slightly inside or slightly outside the margin, it does not matter), like:

_______________________[my equation here, either as text or bitmap]______________________(1)

(I am using underscores because spaces are just eliminated when I post)
The paragraph style of the equation is centered. I tried autonumbering with:
mc-auto-number-position=outside-tail, produces: α = 2 arctan (d / 2f)(1) (no space between formula and equation number)
mc-auto-number-position=outside-frame, produces: α = 2 arctan (d / 2f) (no autonumber anywhere)
mc-auto-number-position=inside-tail, produces: α = 2 arctan (d / 2f)(1) (no space between formula and equation number)
mc-auto-number-position=float-right, produces: α = 2 arctan (d / 2f) (no autonumber anywhere)

I know that in theory I can use mc-auto-number-offset (in the above examples, set to zero) to insert a fixed space between equation and equation number (sometimes it works, sometimes the equation number just disappears), but this is not what I am after.

Has anyone succeeded in making this work?
Carsten Pedersen
Propeller Head
Posts: 95
Joined: Wed Feb 08, 2006 1:11 am

Re: Equation numbers in Word output

Post by Carsten Pedersen »

Well I want to bump this.
How to do a one-line formatting with auto-numbering?

cpede
SteveS
Senior Propellus Maximus
Posts: 2089
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Equation numbers in Word output

Post by SteveS »

Can you use a 2 column table?
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
Carsten Pedersen
Propeller Head
Posts: 95
Joined: Wed Feb 08, 2006 1:11 am

Re: Equation numbers in Word output

Post by Carsten Pedersen »

I thought about that. But to make it easy I want to have a style like "p.Formula".
And I don't know if it is possible to write css that makes a 2 column table in a
paragraph style?

But, why does the "float-right" style for the number formatting span tag not
float the text right?

Does anyone have an example?

-cpede
NorthEast
Master Propellus Maximus
Posts: 6363
Joined: Mon Mar 05, 2007 8:33 am

Re: Equation numbers in Word output

Post by NorthEast »

Carsten Pedersen wrote:I thought about that. But to make it easy I want to have a style like "p.Formula".
And I don't know if it is possible to write css that makes a 2 column table in a
paragraph style?

But, why does the "float-right" style for the number formatting span tag not
float the text right?

Does anyone have an example?

-cpede
Try putting the float on the autonumber (setting the float on the mc-auto-number-position property doesn't work for me either).
This should work:

Code: Select all

p.formula
{
	text-align: center;
	mc-auto-number-class: formula_number;
	mc-auto-number-format: '({n+})';
}

span.formula_number
{
	float: right;
}
Carsten Pedersen
Propeller Head
Posts: 95
Joined: Wed Feb 08, 2006 1:11 am

Re: Equation numbers in Word output

Post by Carsten Pedersen »

You are right. That was actually what I did, but I only looked in the UI in Flare, and here it is not correct.
But, when doing a preview of the topic it is correctly positioned :-)

Now my next problem is, that I want the number to vertically centered to the formula.
I tried vertical-alignment: middle and position:absolute and 50% on the span, but nothing works.

Maybe you have an idea of this?

-cpede
Carsten Pedersen
Propeller Head
Posts: 95
Joined: Wed Feb 08, 2006 1:11 am

Re: Equation numbers in Word output

Post by Carsten Pedersen »

Just bringing this up again.

What is the correct way of numbering equations in MadCap Flare.

The suggestion above does not seem to work with PDF output ?

-cpede
Post Reply