22.6.2 Changing CSS files in the middle of a document
To have Mif2Go reference different style sheets for output from different parts of your FrameMaker document, you can use a macro to provide the CSS link, then insert markers in your document to signal a change of CSS file. To prevent Mif2Go from automatically generating a CSS file reference, you must also specify:
To generate a CSS file reference from your document, assign a macro to be placed in the <head> element of each HTML output file; for example:
Include in the macro definition a macro variable (for example, $$myAltCSS) in place of the base name of the CSS file:
; You must type the following all on one line:
<link rel='stylesheet' href='<$$myAltCSS>.css' charset=ISO-8859-1 type='text/css' />
Give the macro variable an initial value: the base name of the first CSS file you want referenced:
Mif2Go uses the value of macro variable $$myAltCSS to select a CSS file at the start of each file split.
To change $$myAltCSS to a different value for a subsequent split, you must place a marker in a paragraph before the split. You can use a FrameMaker HTML Macro marker, with content as follows:
Or, you could create a new marker type (for example, CSSname; see §29.2 Adding custom marker types), and provide as content only the base name of the CSS file:
To assemble the macro around the CSS file value, also specify the following:
To change the value of $$myAltCSS for a particular FrameMaker file in your document, place in the project directory a file-specific configuration file that contains (only) the following setting:
See §33.1 Using a different configuration for selected files.
> 22 Setting up CSS for HTML > 22.6 Linking to alternate CSS files > 22.6.2 Changing CSS files in the middle of a document