Page 1 of 1
Removing underline form topic title
Posted: Mon Jan 19, 2015 11:16 pm
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
Re: Removing underline form topic title
Posted: Tue Jan 20, 2015 10:11 am
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
Re: Removing underline form topic title
Posted: Tue Jan 20, 2015 6:19 pm
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
Re: Removing underline form topic title
Posted: Tue Jan 20, 2015 6:59 pm
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
Re: Removing underline form topic title
Posted: Tue Jan 20, 2015 8:12 pm
by bennichs
Looks like I got it working by editing <xsl:attribute name="border-bottom-width">

Re: Removing underline form topic title
Posted: Fri Jun 21, 2019 10:32 am
by RohitGhosh
How will I shorten the length of border bottom line ? What attribute changes do I need to make ?
Re: Removing underline form topic title
Posted: Mon Jun 24, 2019 8:41 am
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