Removing underline form topic title

Post here questions and problems related to editing and publishing DITA content.
bennichs
Posts: 6
Joined: Mon Jan 19, 2015 11:12 pm

Removing underline form topic title

Post by bennichs »

Can you please point me in the right direction of the file I need to edit in order to remove the underline from topic titles?

Thank you so much for the help.

Regards,
Ben
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Re: Removing underline form topic title

Post by Radu »

Hi Ben,

Do you mean the thick line which appears under the topic title when the DITA content is published to PDF?
You would need a PDF XSLT customization for this.
This XSLT stylesheet:

OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\cfg\fo\attrs\commons-attr.xsl

defines an attribute set for the topic title:

Code: Select all

 <xsl:attribute-set name="topic.title" use-attribute-sets="common.title">
<xsl:attribute name="border-bottom">3pt solid black</xsl:attribute>
....................
That border-bottom attribute is responsible for the thick line under the title.

A topic describing how a PDF XSLT customization can be made without directly modifying the XSLTs which are bundled with the PDF plugin:

http://www.oxygenxml.com/doc/ug-oxygen/ ... ation.html

There is also a good book called http://xmlpress.net/publications/dita/dita-for-print/ which contains details about how various customizations can be made.
And the Yahoo Groups DITA Users List is also a very good place where to ask customization questions.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
bennichs
Posts: 6
Joined: Mon Jan 19, 2015 11:12 pm

Re: Removing underline form topic title

Post by bennichs »

Radu,

That's exactly what I was talking about. After posting that, I realized I should have been more clear. Tested it out, and it worked! Thank you so much. FYI, the quick and helpful response (in addition to the great software) here has convinced me to purchase the Oxygen after my trial ends. Thanks a lot.

Ben
bennichs
Posts: 6
Joined: Mon Jan 19, 2015 11:12 pm

Re: Removing underline form topic title

Post by bennichs »

One more question. Are there separate attributes to edit in order to remove the border under tasks, concept and reference elements? I was able to remove the border from the topic but can't find the file that contains tasks, concept and reference elements. Thanks again.

Also, thanks for the book recommendation. I've ordered it.

Ben
bennichs
Posts: 6
Joined: Mon Jan 19, 2015 11:12 pm

Re: Removing underline form topic title

Post by bennichs »

Looks like I got it working by editing <xsl:attribute name="border-bottom-width">

:)
RohitGhosh
Posts: 1
Joined: Fri Jun 21, 2019 10:03 am

Re: Removing underline form topic title

Post by RohitGhosh »

How will I shorten the length of border bottom line ? What attribute changes do I need to make ?
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Re: Removing underline form topic title

Post by Radu »

Hi,

The bottom border is as long as the element. So you probably need to set it on an element which has a specific width set on it.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply