Skip to main content
1-Visitor
December 14, 2015
Solved

Set first column in landscape

  • December 14, 2015
  • 1 reply
  • 3132 views

Hello every one,

I am currently facing a table issue. I shall keep my table in portrait but increase the number of columns (x4...), but doing so my table is too width.

If I change the first title column to display text in landscape, I can keep the current layout. I only found the attribute to change the whole page in landscape and when I applied it on a p element inside the table it does not correctly work: the table width take all the page even for small table.

Do you have any tip or clue to help me? You can find below exemples of the table I am trying to achieve and what I am actually achieving...

Thank you in advance,

Capture.JPG

Capture2.JPG

Best answer by ClayHelberg

Hi Camille--

Sorry, it seems I may have gotten your hopes up prematurely. This built-in support seems to only apply to CALS tables, used by several but not all doctypes. If your doctype doesn't use CALS table markup, then you would probably have to figure out how to support a rotation attribute on your own. It would depend on what attributes are available on your table cell element in your table model, and your stylesheet would have to support an appropriate attribute setting. For example, if you don't have a "rotate" attribute, but you have an "outputclass" attribute, you could configure your stylesheet to recognize a table cell where outputclass="landscape" and apply the rotation to its contents.

I haven't tried this rotation formatting for arbitrary markup (e.g. non-CALS tables), so I'm not sure how easy or difficult it would be in Styler. In the old days you used to have to do this using TeX macro insertion or other such dark magic. I don't know if that's still the case, or if there is a mechanism in Styler to do it more easily. I poked around in Styler just a little bit and didn't find anything obvious for doing this.

--Clay

1 reply

18-Opal
December 14, 2015

Hi Camille--

To achieve this, you can set the rotate attribute on the table cell to 1:

  1. Place the caret in the cell you want to rotate
  2. Right-click, and select Modify Attribute->Cell...
  3. Find the rotate attribute and enter a 1

You will not see the rotated text in the editor view, but you will see it in PDF output.

Note that this is a fairly recently added feature, you would need version 6.0 or later to use this, and you either need to be using a standard Styler stylesheet, or you need to make sure your FOSI or XSL-FO stylesheet has appropriate templates to handle the rotate attribute.

--Clay

ctant1-VisitorAuthor
1-Visitor
December 15, 2015

Hi Clay,

Thank you for this answer! I use an Arbortext v6.1 with a modified Styler stylesheet and I do not have this attribute for table cells... How can I improve my stylesheet? I never modify FOSI or XSL-FO stylesheet and I do not know wher I can find appropriate templates.

Thank you again for your help

Camille

18-Opal
December 16, 2015

Hi Camille--

Sorry, it seems I may have gotten your hopes up prematurely. This built-in support seems to only apply to CALS tables, used by several but not all doctypes. If your doctype doesn't use CALS table markup, then you would probably have to figure out how to support a rotation attribute on your own. It would depend on what attributes are available on your table cell element in your table model, and your stylesheet would have to support an appropriate attribute setting. For example, if you don't have a "rotate" attribute, but you have an "outputclass" attribute, you could configure your stylesheet to recognize a table cell where outputclass="landscape" and apply the rotation to its contents.

I haven't tried this rotation formatting for arbitrary markup (e.g. non-CALS tables), so I'm not sure how easy or difficult it would be in Styler. In the old days you used to have to do this using TeX macro insertion or other such dark magic. I don't know if that's still the case, or if there is a mechanism in Styler to do it more easily. I poked around in Styler just a little bit and didn't find anything obvious for doing this.

--Clay