"autonum" being added to headings randomly

This forum is for all Flare issues not related to any of the other categories.
Post Reply
oceanclub
Sr. Propeller Head
Posts: 277
Joined: Thu Oct 10, 2013 4:45 am
Location: Dublin

"autonum" being added to headings randomly

Post by oceanclub »

Does anyone know occasionally when our topics are edited, a <h1> tag will change to <h1 MadCap:autonum="1 ">? Is this set as a per-use setting?

P.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2650
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: "autonum" being added to headings randomly

Post by ChoccieMuffin »

What is in your stylesheet for h1? If your stylesheet applies an autonum to a h1, then this is absolutely fine in your topic, because it's what you eventually want in your output.
Started as a newbie with Flare 6.1, now using Flare 2024r2.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
oceanclub
Sr. Propeller Head
Posts: 277
Joined: Thu Oct 10, 2013 4:45 am
Location: Dublin

Re: "autonum" being added to headings randomly

Post by oceanclub »

ChoccieMuffin wrote:What is in your stylesheet for h1? If your stylesheet applies an autonum to a h1, then this is absolutely fine in your topic, because it's what you eventually want in your output.
Our stylesheet for h1 is:

Code: Select all

h1
{
	color: #c30e2e;
	font-size: 1.5em;
	font-weight: bold;
	margin-bottom: 20px;
	margin-left: 0;
	margin-right: 0;
	margin-top: 0;
	padding: 0;
	mc-heading-level: 1;
	page-break-before: always;
}
@media print

h1
	{
		color: #000000;
		/* Black */
		mc-auto-number-format: 'GH:{n+} ';
	}
I'm curious but if the numbering is set via the stylesheet why does autonum need be to added to the heading in the topic?
P.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2650
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: "autonum" being added to headings randomly

Post by ChoccieMuffin »

Yup, it's your Print medium that's doing it.

I agree, this is not ideal behaviour from Flare and is just another way to add confusion (a bit like when you change from one medium to another and then insert a x-ref) but it won't do you any harm. The reason you have it in some places and not in others is because in some instances you added the h1 when in Print medium, Flare added the autonum, but if you added the h1 when using default medium, it didn't.

By all means have a grumble about it (the x-ref thing annoys me daily) but don't fret that there's something broken - there isn't.
Started as a newbie with Flare 6.1, now using Flare 2024r2.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Post Reply