Skip to main content
Participant
June 2, 2023
Question

Equation numbering and conditional text

  • June 2, 2023
  • 3 replies
  • 379 views

I have a document that has conditional text (I-P and SI units). I have set up styles for each unit's equations (initial and continuation). Each unit's equations must have their own sequence (1,2, 3, 4, etc.) So, when the SI or I-P conditional text is turned off or on, the equations show the proper sequential numbering.

Currently, if the I-P equations are all in order, the numbering is ok. But, our usual set up is to put each unit's equation one after the other (I-P eq. 1, SI eq. 1, I-P eq. 2, SI eq. 2, etc.

If each unit is paired, the next equation starts numbering from the last equation instead of the previous sequence (see attached visual).

I brought up the conditional text only in case there is something I can do using that to help keep the I-P and SI unit equations separate so that each unit's equations number sequentially.

Thank you!

 

This topic has been closed for replies.

3 replies

Community Expert
July 19, 2023

Would setting it up as a paragraph style help

Just thinking if the equation is a table - then the I-P and SI part is in a row by itself.

 

You could have a Paragraph Style with Bullets and Numbering
and in the Numbering section you could setup a style like this

I-P^y(#)

Where ^y is a right indent tab and # is the numbering

 

Then another style for SI setup the same way

 

You can now control the setup of the numbering

 

I'd need to see a sample document in InDesign of your current setup - not working

And a sample document setup with a sample set of what you're trying to do

 

But I think Numbering might work.

 

If not might be another way that I havne't thought of 

but seeing a sample set would be crucial to building it correctly.

Participant
October 23, 2024

I spent a great deal of time trying to figure out equation numbering and I finally landed on a solution.  I number with chapter and equation number so the fourth equation of chapter 3 would be labelled (3.4).  So I write the equation in LaTeXiT and insert the image inline on its own paragraph.  I have a paragraph type set for equations and it counts, but does not display.  Instead, at the end of the line with the equation, I insert the current chapter number followed by a  Type→Hyperlinks & Cross-references→Insert-Cross-reference... to insert a pointer to itself.  The result is below.

 

James Gifford—NitroPress
Legend
October 23, 2024

I'll just note that while conditional text is a fantastic feature any time two or more variants of a document are needed, I think it's a mistake to use it in too fine or granular a mode. Rather than, for example, condition-tagging words within a paragraph, back and forth between "US English" and "UK English" or whatever, it's better to duplicate the whole paragraph and apply conditional status to each one. I haven't tried to completely absorb the details of the OP and this solution, but I'd completely duplicate the equations, each on its own numbering list, and swap them out 1-for-1, rather than build a complex juggernaut of conditional text, cross-refs, etc.

 

YMMV. Me, I've had too many delicately-built docs cause too many hours of mistake-chasing even when the conditional feature is carefully used.