Issue with setting a "Next" style with mc-next-tag

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
rogersm
Sr. Propeller Head
Posts: 106
Joined: Fri Nov 07, 2014 4:29 am

Issue with setting a "Next" style with mc-next-tag

Post by rogersm »

Hi all,

Sorry if this is a basic question. The Flare Styles Guide mentions that "You can specify that a particular style should be used when you press Enter at the end of the current style."

If I am on a paragraph style class and I want the next style to be the paragraph style, it does not seem to work if I use

Code: Select all

mc-next-tag
? For example, if I am currently on the below paragraph class and I want the next tag to be a paragraph style, I include the

Code: Select all

mc-next-tag:p
line as per below.

Code: Select all

p.Image_caption
{
	font-family: Arial;
	font-weight: normal;
	font-style: italic;
	font-size: 10pt;
	mc-auto-number-format: 'GF:Figure {n+}:';
	[color=#FF0000]mc-next-tag: p;[/color]
}
The above does seem to work if I specify the next tag to be a Heading 1 using

Code: Select all

mc-next-tag: h1;
I am on Flare 11 and I am not sure if I am missing something basic here if anyone can help?
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Issue with setting a "Next" style with mc-next-tag

Post by Nita Beck »

I believe you have hit a bug that's been around for quite a while. (I know that I've reported it several times... :( ). In my experience with Flare (which is pretty long by this point), one can't use the "mc-next-tag" attribute in a style's definition without also including the "mc-next-class" attribute. For instance, you can say that the next tag is to be p, but you must also specify the class of p, as in "Note" (assuming you have a p.Note style). In other words, you can't just have the next style be the base p tag.

When composing, if I need to quickly turn a paragraph into a plain p paragraph, I use keyboard shortcuts.
-- Press F12 to open the Styles window and then press P to select the p style.
-- Press Ctrl+Shift+H to open the Style Picker, press P to select the p style, and then press Enter.
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
rogersm
Sr. Propeller Head
Posts: 106
Joined: Fri Nov 07, 2014 4:29 am

Re: Issue with setting a "Next" style with mc-next-tag

Post by rogersm »

Hi Nita,

Ah great thanks for that and the shortcut tips. The mc-next-tag looked really useful to us so it is a pity it does not work so well.

thanks,
mark
dorcutt
Sr. Propeller Head
Posts: 234
Joined: Thu May 15, 2014 12:16 pm

Re: Issue with setting a "Next" style with mc-next-tag

Post by dorcutt »

To add to what Nita said, in my (much lesser!) experience, the only issue with the "mc-next-tag" is when the current style is a class of a tag, and the next style is supposed to be the same tag with no class. In all other cases I think it works fine.

What I usually use, like Nita, is a keyboard shortcut. However, Flare 11 allows you to streamline the class-resetting process with a macro. My "reset class" macro is set to ctrl-1, and I use it all the time. I wrote up part of a post here that explains how to set it up.
-Dan, Propellerhead-in-training
Post Reply