Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Snippets in Printed Output

New Here ,
Aug 22, 2011 Aug 22, 2011

Hi,

I am using RH9 and Word 2007 .

I have created several snippets and for the most part the formatting appears correctly in the printed output.

The topic has a CSS attached and I manually added the CSS to the snippet as suggested in one of the posts here.

The problem is with the 'Normal' style - all other styles appear correctly in the printed output.

Looking at the Style Inspector in Word I can see that the Normal Style appears with some Text Level Formatting - if you clear this then everything is displayed correctly. Other text in the same topic marked as normal in RH9 appears correctly in Word.

So the question is does anyone know where the text marked as normal in the snippet is getting the text level formatting from and how do I fix it?

TIA

Morven

819
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 22, 2011 Aug 22, 2011

Where did you see about applying a CSS to a Snippet? I don't believe you can do that.

Text in the snippet should take its style definition from the CSS for the topic it resides in.

When you create the printed document, are you selecting a single CSS or a Word document?


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 23, 2011 Aug 23, 2011

Hi Peter,

I found a thread here from Jan 15 2011:

rh8: Snippets: CSS styling - how is it done?

"In addition to Peter's answer, you can manually add a style sheet to a snippet. The style sheet is not used in the output, but you can select styles in the regular way.

A snippet is just a .htm file with a different extension. To add a style sheet, go to HTML mode and add <link rel="stylesheet" type="text/css"  href="mycss.css" />

The snippet is in the root of your project, so be sure to use the correct path. Save and go to WYSIWYG mode. The snippet is now correctly formatted and you can use the styles from your css."

Now, what I understand from this is that style sheet is not used from the actual snippet but that this allows you to format the snippet and then it takes the formatting from the css which is attached to the topic.

The strange thing is that the mapping seems to be mostly correct (including tables!) except the text marked as 'Normal' - this appears as blue text which is how the font is formatted in RH.

I am outputing to a Word document and using a Word Template (Style Mapping.dot).

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 23, 2011 Aug 23, 2011

Hi,

The method of manually adding a css to a snippet is a bit of a workaround. You understand correct: It allows you to select the styles from the css to use in the snippet. This is only to help you format the snippet itself. When creating output, the snippet takes the styling from the css applied to the topic.

How does the HTML of such a 'normal' paragraph look in your snippet? Is there some inline styling? Also, what happens if you remove the css from the snippet? Does that have any effect.

Greet,

Willam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 23, 2011 Aug 23, 2011

Hi William,

This is how the HTML looks in the snippet:

<p>You must have a valid user identification and password.</p>

I actually added the css in order to see if that made a difference - so no difference with or without the css.

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 23, 2011 Aug 23, 2011

OK so that is a means of defining a style when you are working but as you acknowledge, it does not mean it will work in the output. The CSS used there will apply although in many cases it will be the same CSS. I think that what you have encountered is a different problem.

See http://www.grainge.org/pages/authoring/rh_tour/index.htm and go to RoboHelp 8 New Features > Tables. Scroll down to the section Not So Good. I suspect the problem is to do with mapping.

Are you mapping to a Word document of a CSS file?


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 23, 2011 Aug 23, 2011
LATEST

Hi Peter,

Well I changed the colour of the Normal font to Black from Automatic in the tempalte as suggested in the link.

Voila - it now outputs correctly.

Many thanks

In the quest to find a solution to one problem - I learned how to 'format' my snippet '(or at least make it look formatted) - thanks William.

Morven

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp