Page 1 of 1

Table title appearance

Posted: Fri Mar 23, 2018 1:51 pm
by Jaz
Hi

New in the forum so just learning. Having problem with table title. Do not know how to edit it. Would like to get it closer to the table, maybe give same background and bold it. Original code made by another and trying to make the basic changes, but failing all the time. Tried table.title, table.th, table.header, nothing seems to work.

All files here:

https://drive.google.com/folderview?id= ... I1-gjvUPN2

Thanks.

-Jaz

Code: Select all


    <style name="table.data">
<formatting name="font-size">9pt</formatting>
<formatting name="font-size" xml:lang="zh">11</formatting>
<formatting name="space-before">4mm</formatting>
<formatting name="space-after">7mm</formatting>
<formatting name="table-layout">fixed</formatting>
<formatting name="width">100%</formatting>
</style>
<style name="table.data.row">
<formatting name="keep-together.within-column">always</formatting>
</style>
<style name="table.data.caption">
<formatting name="start-indent">inherit</formatting>
<formatting name="font-weight">bold</formatting>
</style>
<style name="table.data.tbody">
</style>
<style name="table.data.td">
<formatting name="padding">1pt</formatting>
</style>
<style name="table.data.tf">
<formatting name="color">blue</formatting>
<formatting name="padding">2pt</formatting>
</style>
<style name="table.data.th">
<formatting name="color">black</formatting>
<formatting name="padding">2pt</formatting>
<formatting name="text-align">center</formatting>
<formatting name="font-weight">bold</formatting>
</style>
<style name="table.data.tf">
<formatting name="color">blue</formatting>
<formatting name="padding">2pt</formatting>
</style>
<style name="table.footer.cell">
<!--formatting name="color">blue</formatting-->
<formatting name="padding">2pt</formatting>
<formatting name="keep-together.within-column">always</formatting>
</style>
<style name="table.footer.cell.footnotes">
<formatting name="border-top">black solid 0.1pt</formatting>
<formatting name="border-bottom">transparent solid 0.1pt</formatting>
<formatting name="border-left">transparent solid 0.1pt</formatting>
<formatting name="border-right">transparent solid 0.1pt</formatting>
<formatting name="padding">2pt</formatting>
<formatting name="keep-together.within-column">always</formatting>
</style>
<!-- Did not get to work table title element
<style name="table.th">
<formatting name="font-size">11pt</formatting>
<formatting name="font-weight">bold</formatting>
</style>

Re: Table title appearance

Posted: Mon Mar 26, 2018 2:02 pm
by Radu
Hi Jaz,

You seem to have an XML document developed with Arbortext editor along with certain styling which worked in Arbortext.
Oxygen uses the DITA Open Toolkit publishing engine to create HTML and PDF output from DITA content so the stylings you made in Arbortext are not compatible with it.
If you open a DITA Map in Oxygen in the "DITA Maps Manager" view, in the view you have a button called "Configure Validation Scenarios" which should allow you to produce the PDF using the "DITA Map PDF - WYSIWYG" transformation.
This transformation is CSS-based and you can add your custom CSS to it:

https://www.oxygenxml.com/doc/versions/ ... s-x-2.html

for example the equivalent CSS for customizing a DITA section's "title" element could look like:

Code: Select all

section > title {
color:black;
font-size:11pt;
font-weight:bold;
padding-left:1em;
}
Regards,
Radu