How to implement this kind of table?

Post here questions and problems related to editing and publishing DITA content.
liyan
Posts: 12
Joined: Fri Jun 28, 2024 5:42 am

How to implement this kind of table?

Post by liyan »

Hi I came across an issue. I want to insert this kind of table, see the following figure but I don't know how to do that. Image
Attachments
Capture.PNG
Capture.PNG (20.88 KiB) Viewed 222 times
julien_lacour
Posts: 638
Joined: Wed Oct 16, 2019 3:47 pm

Re: How to implement this kind of table?

Post by julien_lacour »

Hello,

Oxygen PDF Chemistry doesn't support split cells, but you can insert an SVG image to render this:

Code: Select all

<table frame="all" rowsep="1" colsep="1" id="table_ztm_52q_k2c">
    <tgroup cols="3">
        <colspec colnum="1" colname="c1" colwidth="1*"/>
        <colspec colnum="2" colname="c2" colwidth="5*"/>
        <colspec colnum="3" colname="c3" colwidth="7*"/>
        <thead>
            <row>
                <entry morerows="1">No.</entry>
                <entry>Items</entry>
                <entry>Index</entry>
            </row>
            <row>
                <entry>
                    <svg-container>
                        <svg:svg width="225" height="38" viewBox="0 0 225 38">
                            <svg:line x1="0" y1="0" x2="225" y2="38" stroke="black" stroke-width="1"/>
                            <svg:text x="5" y="35" font-size="10pt" font-family="Roboto, sans-serif" font-weight="bold">Test items</svg:text>
                            <svg:text x="135" y="15" font-size="10pt" font-family="Roboto, sans-serif" font-weight="bold">Voltage level</svg:text>
                        </svg:svg>
                    </svg-container>
                </entry>
                <entry>35KV and below</entry>
            </row>
        </thead>
        <tbody>
            <row>
                <entry>1</entry>
                <entry>Breakdown voltage. KV / 2.5mm</entry>
                <entry>45</entry>
            </row>
            <row>
                <entry>2</entry>
                <entry>Dielectric loss factor (90° C)</entry>
                <entry>4</entry>
            </row>
            <row>
                <entry>3</entry>
                <entry>Water content in oil, mg / L</entry>
                <entry>-</entry>
            </row>
            <row>
                <entry>4</entry>
                <entry>Gas content in oil, % (volume fraction)</entry>
                <entry>-</entry>
            </row>
        </tbody>
    </tgroup>
</table>
Regards,
Julien
liyan
Posts: 12
Joined: Fri Jun 28, 2024 5:42 am

Re: How to implement this kind of table?

Post by liyan »

Okay. Thank you very much!!!!
Post Reply