Re: [XXE] adjusting .pdf output

Hussein Shafie <[email protected]> Fri, 25 Mar 2016 16:31:58 +0100
Newsgroups gmane.text.xml.xfc.general,gmane.editors.xxe.general
Message-ID <[email protected]>
On 03/25/2016 09:07 AM, Grundtvig Nielsen Niels wrote:
>
> Thanks to XML Mind, I've done a good job* of rescuing content from a
> huge, poorly-structured developer wiki with no hard-copy output option
> :-} But instead of focusing on the content, the developers are asking
> questions about layout in the pdf.
>
> I'm found my way to "Customize document conversion stylesheets" and
> created a custom stylesheet ready for adjusting, but I'm not sure
> whether this will let me do what the developers are asking for: they
> find that the 2pt difference in font size is not enough to help them
> spot the difference between a level two heading and a level three
> heading. I would like to change the size for level three headings, and I
> would also like to remove the underline (text-decoration?) on
> lower-level headings.
>
> Can I make this sort of customisation through the XXE tools?

Yes, please use the "XMLmind XSL customizer" tool to customize the 
relevant attribute sets.

See 
http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.app.part.ConversionStylesheetsEditor.html



> all I've seen so far is references to 'sections' in the Attribute sets, and the
> structure of my document is driven by the topicref levels in the
> bookmap: I do not use sections within topics.
>

The "section" term refer to chapters and sections in the deliverable, 
not in the DITA source.

When a map is used, the deliverable is given the structure of an article.

When a bookmap is used, the deliverable is given the structure of an book.



For example, in a map where:

---
   <topicref href="specialized_topics.dita">
     <topicref href="concept.dita">
       <topicref href="samples/sample_concept.dita" toc="no"/>
     </topicref>
---

* specialized_topics.dita is given the role of a section1.
* concept.dita is given the role of a section2.
* samples/sample_concept.dita is given the role of a section3.



Same example but using a bookmap:

---
   <chapter href="specialized_topics.dita">
     <topicref href="concept.dita">
       <topicref href="samples/sample_concept.dita" toc="no"/>
     </topicref>
---

* specialized_topics.dita is given the role of a chapter.
* concept.dita is given the role of a section1.
* samples/sample_concept.dita is given the role of a section2.



Therefore you may have to customize attribute-set

topic-title

For example, if you use "XMLmind XSL customizer" to add attribute 
border-bottom-style="none" to attribute-set "topic-title", you'll remove 
the line below topic titles whatever the role of the topic.

You may also have to customize some or all of the following 
attribute-sets (which all "inherit" from attribute-set topic-title):

part-title
chapter-title
appendices-title
appendix-title
section1-title
section2-title
section3-title
section4-title
section5-title
section6-title
section7-title
section8-title
section9-title

The simplest is to take a look at the stock attribute-sets found in:

<XXE_install_dir>/addon/config/dita/xsl/fo/topic.xsl



[[[
XMLmind XSL Utility users: 
<xslutil_install_dir>/addon/config/dita/xsl/fo/topic.xsl

Ditac users: <ditac_install_dir>/xsl/fo/topic.xsl
]]]



--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support