BKP for Print w/numbering, Online w/o numbering
-
David Levy
- Jr. Propeller Head
- Posts: 7
- Joined: Wed Jan 23, 2013 6:50 am
- Location: Israel
BKP for Print w/numbering, Online w/o numbering
New Flare user here looking for Flare's way of resolving the single-sourcing numbering dilemma. I tried applying a Condition for a class/paragraph style, but that doesn't seem possible. I can't believe that I'd have to go through and apply a Condition to every instance of numbering text. What's the BKP? Is there a tutorial somewhere or a topic in the Help? Thanks. David
Re: BKP for Print w/numbering, Online w/o numbering
You use mediums in the stylesheet. Use the "default" medium for the online input and set it to not have numbering. Then switch to the print medium and set the tag to have numbering. For example, the h1 tag might look something like the following when you view the stylesheet file in the Internal Text Editor (other styles removed to make it a shorter list, obviously):
In online output, you would see a heading tag like: Introduction.
In print output, it would be: 1. Introduction.
The print medium will inherit from the "default" medium, so you only need to specify in the print medium the attributes that are to be different for print than for online output. In the above example, the bold attribute isn't included in the print medium because it's inheriting it from the default medium, so it's still bold for print output. The mc-auto-number-format attribute is empty by default, so in the print medium I'm overriding the default value with one that I've specified for print output. (The "G" is a global counter flag; "H" identifies the sequence for the headers so I'll use a different letter for sequences for figures and another for tables, etc.)
Code: Select all
h1 {
color:#0000FF;
font-weight:bold;
}
@media print {
h1 {
color:#000000;
mc-auto-number-format:'GH:{n+}. ';
}In print output, it would be: 1. Introduction.
The print medium will inherit from the "default" medium, so you only need to specify in the print medium the attributes that are to be different for print than for online output. In the above example, the bold attribute isn't included in the print medium because it's inheriting it from the default medium, so it's still bold for print output. The mc-auto-number-format attribute is empty by default, so in the print medium I'm overriding the default value with one that I've specified for print output. (The "G" is a global counter flag; "H" identifies the sequence for the headers so I'll use a different letter for sequences for figures and another for tables, etc.)
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.