Using 'Save as HTML' to format text in Word

tips and hints on using BrainStorm with other programs

Moderators: david, OG, Galen

Post Reply
david
Staff
Posts: 329
Joined: Sun Oct 23, 2005 7:08 am
Location: London, England
Contact:

Using 'Save as HTML' to format text in Word

Post by david » Sat Jan 21, 2006 2:14 am

If you are handy with HTML, you can add font decoration to BrainStorm then Publish the model as HTML with the "Full JavaScript model" unchecked. When opened, Word and other programs will recognise the simple HTML and apply the formatting.

Here are some examples:

<b>This text is bold</b>
<strong>so is this</strong>
<i>This is italic</i>
<em>so is this</em>
<font color="#ff0000">And this is red</font>

By default, the model is published as an indented outline with different font sizes at each level. You may tweak the font sizes if you feel like getting slightly technical.

Open the HTML file using a text processor - NotePad, TextPad or whatever. You will see the sizes defined near the start:

h1 { font-size: 200%; font-weight: bold }
h2 { font-size: 180% }
h3 { font-size: 160% }
h4 { font-size: 140% }
h5 { font-size: 120% }
h6 { font-size: 100% }

Just change the percentages to suit.

If you'd prefer them all to be the same size, you can replace these entries with a single line:

h1, h2, h3, h4, h5, h6 {font-size: 100%; font-weight:normal; }

(One last thing, a tiny glitch sometimes rears its head when multiple formats are used within the same BrainStorm entry. If you see the opening format - eg <i> - but not the closing </i> and the emphasis doesn't happen, this is BrainStorm's doing, not yours. This is fixed and will be in the next maintenance release.)
David Tebbutt

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests