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

TCS3: Autofit tables to content

New Here ,
Mar 31, 2014 Mar 31, 2014

Copy link to clipboard

Copied

Hi,

I'm an occasional user of Framemaker  10 and RoboHelp 9, which I use to generate AirHelp.
In the Framemaker source documents  I have  a large number of 'Note:' and 'Caution:' paragraphs that I want to stand out from the rest of the text.

I investigated doing this using the Framemaker reference pages to insert a suitable graphic in front of each Note or Caution paragraph; this works fine in Framemaker, but is then no good in RoboHelp (as importing from reference pages is not supported).

I don't want to get involved in writing scripts as I feel this would be beyond my level of experience (which is very basic!) so I thought the best way to proceed would be to put all the relevant paragraphs into single row tables instead - the graphic would be in a fixed width column and the text in a second column that autofits to the width of the AirHelp window. 

The problem that I'm struggling to resolve is: once the FrameMaker files are imported into RoboHelp, the tables are always a fixed width - how can I make them autofit without having to select each one individually and click Table > Autofit > Autofit to Window?

I guess I'm missing something simple, but I can't figure it out.

Thanks for any suggestions.

Views

1.5K

Translate

Translate

Report

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 ,
Mar 31, 2014 Mar 31, 2014

Copy link to clipboard

Copied

Can you show us an example of what’s not working? Use the camera icon in the web interface to add screenshots.

Votes

Translate

Translate

Report

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 ,
Apr 01, 2014 Apr 01, 2014

Copy link to clipboard

Copied

As a test I created several tables in FrameMaker and then linked it to RoboHelp - The RoboHelp WebHelp output is shown below:

image1.png

When the browser window is resized, as shown below, the table text does not wrap:

image2.png

In RoboHelp I could select each table individually and choose Table > AutoFit > AutoFit to Contents but this would be impractical as there are many instances, plus I would need to repeat the process each time the Framemaker document is updated.

Thanks

Votes

Translate

Translate

Report

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 ,
Apr 01, 2014 Apr 01, 2014

Copy link to clipboard

Copied

2 questions – (1) what happens when you create HTML5 output? Does it resize then? And (2) how are your Conversion Settings mapping the table in FM to a RH table style?

Votes

Translate

Translate

Report

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 ,
Apr 01, 2014 Apr 01, 2014

Copy link to clipboard

Copied

1. The same thing happens when I create HTML Help (i.e. it does not resize).

2. In FrameMaker the tables have the Table Tag of 'Format B' and the text in the table has the CellBody Paragraph Tag. When I access the Project Settings in RoboHelp and edit the conversion settings, the mapping for this table is as shown below:
image4.png

Votes

Translate

Translate

Report

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 ,
Apr 01, 2014 Apr 01, 2014

Copy link to clipboard

Copied

HTML help is a .chm in my books – I was talking about Multi-Screen HTML5 or Responsive HTML5 content depending on your RH version.

You may want to experiment with changing the mapping from “Source” to one of your “resizable” RH table styles and see how that behaves.

Votes

Translate

Translate

Report

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 ,
Apr 03, 2014 Apr 03, 2014

Copy link to clipboard

Copied

Success...

I did what you said and tried mapping to a RH table style & finally got it to work by:

1. In the css I added the following line into the definitition of the table being mapped to:

        

width: 100%  ! important ;

2. In the Framemaker document I fixed the widths of the two columns in the table to 2cm and 10cm respectively.

Thanks Jeff for your help

Votes

Translate

Translate

Report

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
Mentor ,
Apr 15, 2014 Apr 15, 2014

Copy link to clipboard

Copied

Hi

I am facing a similar issue. When I added the width: 100% in the CSS it still doesn't autofit. Can you please share a screeshot of the relevant section in the CSS?

Sreekanth

Votes

Translate

Translate

Report

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 ,
Apr 16, 2014 Apr 16, 2014

Copy link to clipboard

Copied

Did you also include the "!" as below? (I don't actually know what function it serves though).

image1.png

Votes

Translate

Translate

Report

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
Mentor ,
Apr 16, 2014 Apr 16, 2014

Copy link to clipboard

Copied

Hi

Thanks a ton for that. I mistook "! important" in your reply was to highlight the code's importance and skipped that. I added that and it works perfectly now.

With my limited knowledge of CSS, I would not have figured out that adding !important will make a difference.

Sreekanth

Votes

Translate

Translate

Report

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 Beginner ,
Aug 16, 2017 Aug 16, 2017

Copy link to clipboard

Copied

Srikanth,

I added that width to 100% and !important in the CSS file, but no luck. Robohelp does not consider this change and takes FM source table height and width.

How do I change it to autofit to window.

Thanks

Sharada

Votes

Translate

Translate

Report

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 16, 2017 Aug 16, 2017

Copy link to clipboard

Copied

LATEST

If you are generating a responsive layout output, I believe RoboHelp has an option "Convert absolute table size to relative table size". I wouldn't like to say that will fix it but it's worth a try.


See www.grainge.org for RoboHelp and Authoring information

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

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