How to deactivate the block merge automatically when the same head is repeating on the top of the page?

HI,

I am using block merge macro <tm;?> to render one of the heads that I have captured in the text register on the top of each page but I do not want to generate when the same type of heads comes on the top of the page.

For example, <h1>Head 1</h1> is the head which I want to render on each of the page but I do not want to render auto generated head that is generating through block merge macro when <h1>Head 1</h1> comes on the top of any page.

Can anybody help me to achieve this without putting <tm;0> manually on the bottom of previous page.

I want to achieve it through programmatically.

Thanks!     

Shahnawaz

Parents
  • Shahnawaz,

    The only way to stop a text merge is to use the <tm;0> macro.

    Question: does the <h1> tag start a new page - or in other words: is it always placed at the top of a page or can it appear anywhere on the page?

    If it is always placed at the top of a page, I would imagine that your h1 tag is embedded in bigger wrapper tag like <chapter>. If that is the case you can put your <tm;0> macro in the chapter end tag </chapter>.

    Or if the h1 tag can appear anywhere on the page, maybe - if the layout allows it - abandon the text merge solution and switch to a text register/frills solution...? 

Reply
  • Shahnawaz,

    The only way to stop a text merge is to use the <tm;0> macro.

    Question: does the <h1> tag start a new page - or in other words: is it always placed at the top of a page or can it appear anywhere on the page?

    If it is always placed at the top of a page, I would imagine that your h1 tag is embedded in bigger wrapper tag like <chapter>. If that is the case you can put your <tm;0> macro in the chapter end tag </chapter>.

    Or if the h1 tag can appear anywhere on the page, maybe - if the layout allows it - abandon the text merge solution and switch to a text register/frills solution...? 

Children